joyce8/EMBER2024-capa huggingface dataset:
Function at 0x522ab8
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5e10b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x522cd1
mov eax, dword [0x87a768]
push ebx
push ebp
push edi
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x2c], 0
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005b0c08
mov ebx, eax
push 0x623524
lea edx, [esp + 0x18]
lea edi, [ebx + 0x1f4]
push edi
push edx
call fcn.005b4a06
mov ecx, dword [esi + 0x3c]
mov edx, dword [eax]
push 0x7235b8
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s_d_s
push eax
mov byte [esp + 0x40], 1
call fcn.005ad17a
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005b4761
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi + 0x3c]
mov edx, dword [0x88045c]
mov ebp, dword [0x880460]
dec esi
sub ebp, esi
push 1
lea eax, [edx + esi*4]
dec ebp
push eax
call fcn.005ad1bb
test ebp, ebp
je 0x522b82
mov eax, dword [0x88045c]
lea ecx, [ebp*4]
push ecx
lea edx, [eax + esi*4 + 4]
lea eax, [eax + esi*4]
push edx
push eax
call fcn.005306e0
add esp, 0xc
mov edx, dword [0x880460]
mov ecx, dword [esp + 0x18]
dec edx
mov dword [0x880460], edx
mov esi, dword [ecx + 0x3c]
mov eax, dword [ebx + 0x1f8]
inc esi
cmp esi, eax
jg 0x522c6e
lea ebp, [esi - 1]
push 0x623524
lea edx, [esp + 0x20]
push edi
push edx
call fcn.005b4a06
mov eax, dword [eax]
push 0x7235b8
push esi
push eax
lea ecx, [esp + 0x1c]
push str._s_d_s
push ecx
mov byte [esp + 0x40], 2
call fcn.005ad17a
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.005b4761
mov edx, dword [0x87a768]
mov dword [esp + 0x14], edx
push 0x623524
lea eax, [esp + 0x24]
push edi
push eax
mov byte [esp + 0x38], 3
call fcn.005b4a06
mov ecx, dword [eax]
push 0x7235b8
push ebp
push ecx
lea edx, [esp + 0x20]
push str._s_d_s
push edx
mov byte [esp + 0x40], 4
call fcn.005ad17a
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.005b4761
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005b4761
mov eax, dword [ebx + 0x1f8]
inc esi
inc ebp
cmp esi, eax
jle 0x522ba8
mov ecx, 0x8802b0
call fcn.0054a8e0
mov esi, eax
mov edi, 1
test esi, esi
je 0x522cb6
push 0
mov ecx, esi
call fcn.00547260
test eax, eax
je 0x522cb6
mov ecx, dword [esp + 0x18]
cmp edi, dword [ecx + 0x3c]
je 0x522caa
push 0
push eax
mov ecx, esi
inc edi
call fcn.00547400
test eax, eax
jne 0x522c90
jmp 0x522cb6
mov edx, dword [eax]
push 1
push edx
mov ecx, esi
call fcn.00547c20
mov ecx, ebx
call fcn.00521d40
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005b4761
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x5234a0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
lea eax, [edi + edi]
push eax
call fcn.005b449a
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x5234c9
cmp edi, 0x400
jl 0x5234c9
mov eax, esi
pop edi
pop esi
ret 4
push 0
call fcn.00531179

Function at 0x524950
Capabilities:
Encode data using base64

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x524adf
mov ebp, dword [esp + 0x10]
test ebp, ebp
jl 0x524adf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x524ac8
push edi
mov edi, ebp
test ebp, ebp
jle 0x524ac2
push ebx
cmp edi, 3
jl 0x524a2a
mov cl, byte [esi]
mov dl, byte [esi + 1]
inc esi
mov byte [esp + 0x18], cl
inc esi
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esp + 0x14], dl
add eax, 2
mov cl, byte [esi]
add eax, 2
mov byte [esp + 0x1c], cl
mov ecx, dword [esp + 0x18]
and ecx, 0xff
inc esi
mov edx, ecx
and ecx, 3
shr edx, 2
shl ecx, 4
movsx dx, byte [edx + ebx]
mov word [eax - 4], dx
mov edx, dword [esp + 0x14]
and edx, 0xff
add eax, 2
mov ebx, edx
and edx, 0xf
shr ebx, 4
or ebx, ecx
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shl edx, 2
movsx cx, byte [ebx + ecx]
mov word [eax - 4], cx
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
mov ebx, ecx
shr ebx, 6
or ebx, edx
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
movsx dx, byte [ebx + edx]
mov word [eax - 2], dx
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movsx cx, byte [ecx + edx]
mov word [eax], cx
jmp 0x524ab3
mov dl, byte [esi]
inc esi
cmp edi, 2
mov byte [esp + 0x18], dl
jne 0x524a3f
mov cl, byte [esi]
inc esi
mov byte [esp + 0x14], cl
jmp 0x524a44
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x18]
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0xff
add eax, 2
mov edx, ecx
and ecx, 3
shr edx, 2
shl ecx, 4
movsx dx, byte [edx + ebx]
mov word [eax - 2], dx
mov edx, dword [esp + 0x14]
and edx, 0xff
add eax, 2
mov ebx, edx
shr ebx, 4
or ebx, ecx
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
cmp edi, 1
movsx cx, byte [ebx + ecx]
mov word [eax - 2], cx
jne 0x524a9a
mov ecx, 0x3d
jmp 0x524aa8
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0xf
movsx cx, byte [ecx + edx*4]
mov word [eax], cx
add eax, 2
mov word [eax], 0x3d
sub edi, 3
add eax, 2
test edi, edi
jg 0x524982
pop ebx
mov word [eax], 0
pop edi
lea ecx, [ebp + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
pop esi
shr edx, 0x1f
add eax, edx
pop ebp
shl eax, 2
ret
pop esi
or eax, 0xffffffff
pop ebp
ret
Function at 0x5256f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5e1348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x52579a
mov eax, dword [0x87a768]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.005b4ba6
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.005b4bf6
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.005b4b52
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x525781
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x525781
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.005b4761
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5259d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 8
Function at 0x52c2c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e15c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push ebx
push esi
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x1c0], esi
call fcn.005cb95c
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
jne 0x52c313
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.005b4761
jmp 0x52c443
mov eax, dword [ecx]
call dword [eax + 0xc0]
mov ecx, eax
call fcn.005c891c
cmp eax, esi
jne 0x52c32c
mov dword [esp + 8], esi
jmp 0x52c333
mov ecx, dword [eax + 0x3c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x1c8]
push ebp
push edi
push esi
mov eax, dword [edx - 8]
push esi
push 3
push esi
push esi
push 0x80000000
push eax
lea ecx, [esp + 0x1ec]
xor ebp, ebp
call fcn.005b4ba6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x52c39b
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
call fcn.005b449a
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push 0
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.0054aa20
test esi, esi
mov byte [esp + 0x1c8], 1
je 0x52c403
push ebp
push esi
lea ecx, [esp + 0x20]
call fcn.0054b5a0
lea ecx, [esp + 0x18]
call fcn.0054a8e0
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x40]
mov edx, dword [esp + 0x10]
push 0
push 0
lea eax, [esp + 0x20]
push 2
lea ecx, [ebx + 0x1774]
push eax
push ecx
push edx
lea ecx, [ebx + 0x37c]
call fcn.0046d360
push 0
lea ecx, [esp + 0x1c]
call fcn.0055dec0
push esi
call fcn.005b44c3
add esp, 4
mov ecx, ebx
call fcn.0052bc20
push 0
push 0
lea ecx, [ebx + 0x1774]
call fcn.0054ae60
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c8], 0
call fcn.0054abd0
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.005b4761
pop edi
pop ebp
mov ecx, dword [esp + 0x1b8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1bc
ret 4

Function at 0x52d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52d328
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x880da0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52d31b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x52d32a
xor eax, eax
pop esi
leave
ret 4
Function at 0x52d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4470
push 0x53147c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x80], 0xb
mov byte [ebp - 0x7f], 0xcd
xor ebx, ebx
mov byte [ebp - 0x7e], bl
mov byte [ebp - 0x7d], 0x10
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push ebx
call fcn.00531583
push eax
call fcn.00531554
add esp, 8
xor esi, esi
call fcn.00531561
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x84]
fmul qword [0x5f4468]
call fcn.00530020
mov byte [ebp + esi - 0x28], al
inc esi
cmp esi, 0x10
jl 0x52d6e4
and byte [ebp - 0x27], 0x7f
wait
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x10], eax
wait
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov cl, byte [eax + str.p_NMs]
xor cl, 0x5b
mov byte [ebp + eax - 0x3c], cl
inc eax
cmp eax, 0x10
jl 0x52d725
lea edx, [ebp - 0x3c]
push edx
call fcn.0052ed60
lea eax, [ebp - 0x28]
push eax
call fcn.0052e3c0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x80]
push edx
push esi
call fcn.0052d7b0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52eac0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
push ebx
mov cl, byte [eax]
mov dl, byte [ecx + 0x5f45ac]
mov ecx, dword [esp + 0xc]
xor dl, byte [ecx]
mov byte [eax], dl
mov bl, byte [ecx + 1]
xor edx, edx
mov dl, byte [eax + 1]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 1], dl
mov bl, byte [ecx + 2]
xor edx, edx
mov dl, byte [eax + 2]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 2], dl
mov bl, byte [ecx + 3]
xor edx, edx
mov dl, byte [eax + 3]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 3], dl
mov bl, byte [ecx + 4]
xor edx, edx
mov dl, byte [eax + 4]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 4], dl
mov bl, byte [ecx + 5]
xor edx, edx
mov dl, byte [eax + 5]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 5], dl
mov bl, byte [ecx + 6]
xor edx, edx
mov dl, byte [eax + 6]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 6], dl
mov bl, byte [ecx + 7]
xor edx, edx
mov dl, byte [eax + 7]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 7], dl
mov bl, byte [ecx + 8]
xor edx, edx
mov dl, byte [eax + 8]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 8], dl
mov bl, byte [ecx + 9]
xor edx, edx
mov dl, byte [eax + 9]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 9], dl
mov bl, byte [ecx + 0xa]
xor edx, edx
mov dl, byte [eax + 0xa]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 0xa], dl
mov bl, byte [ecx + 0xb]
xor edx, edx
mov dl, byte [eax + 0xb]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 0xb], dl
mov bl, byte [ecx + 0xc]
xor edx, edx
mov dl, byte [eax + 0xc]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 0xc], dl
mov bl, byte [ecx + 0xd]
xor edx, edx
mov dl, byte [eax + 0xd]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 0xd], dl
mov bl, byte [ecx + 0xe]
xor edx, edx
mov dl, byte [eax + 0xe]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
mov byte [eax + 0xe], dl
mov bl, byte [ecx + 0xf]
xor edx, edx
mov dl, byte [eax + 0xf]
mov dl, byte [edx + 0x5f45ac]
xor dl, bl
pop ebx
mov byte [eax + 0xf], dl
ret
Function at 0x52ec50
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov dx, word [ecx]
push esi
mov word [eax], dx
mov dx, word [ecx + 2]
mov word [eax + 2], dx
mov dx, word [ecx + 4]
mov word [eax + 4], dx
mov dx, word [ecx + 6]
mov word [eax + 6], dx
mov dx, word [ecx + 8]
mov word [eax + 8], dx
mov dx, word [ecx + 0xa]
mov word [eax + 0xa], dx
mov dx, word [ecx + 0xc]
mov word [eax + 0xc], dx
mov cx, word [ecx + 0xe]
push edi
mov word [eax + 0xe], cx
mov esi, 0x87a608
mov word [esp + 0x10], dx
mov word [esp + 0x12], cx
add eax, 0x10
mov edi, 0x10
mov ebx, 0x28
mov ebp, edi
and ebp, 0x8000000f
jns 0x52ecc8
dec ebp
or ebp, 0xfffffff0
inc ebp
jne 0x52ed32
mov edx, dword [esp + 0x11]
mov cl, byte [esp + 0x10]
and edx, 0xff
mov byte [esp + 0x20], cl
mov cl, byte [edx + str.cw]
mov edx, dword [esp + 0x12]
and edx, 0xff
mov byte [esp + 0x10], cl
mov cl, byte [edx + str.cw]
mov edx, dword [esp + 0x13]
and edx, 0xff
mov byte [esp + 0x11], cl
mov cl, byte [edx + str.cw]
mov edx, dword [esp + 0x20]
and edx, 0xff
mov byte [esp + 0x12], cl
mov cl, byte [edx + str.cw]
mov dx, word [esp + 0x10]
xor dx, word [esi]
mov byte [esp + 0x13], cl
mov cx, word [esp + 0x12]
add esi, 2
xor dx, word [eax - 0x10]
xor cx, word [eax - 0xe]
add edi, 4
mov word [eax], dx
mov word [eax + 2], cx
add eax, 4
dec ebx
mov word [esp + 0x10], dx
mov word [esp + 0x12], cx
jne 0x52ecb9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x53dfb0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
pop ecx
ret 8

Function at 0x53dff0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
pop ecx
ret 8

Function at 0x53e040
Capabilities:
Terminate thread

Disassembly:
jmp 0x53e080
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x53e0a7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x53e050
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push esi
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 4], eax
test eax, eax
setne dl
mov eax, edx
pop esi
ret 8
Function at 0x53e110
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
cmp eax, 0x3ff
push edi
mov esi, ecx
ja 0x53e147
push str.Ftd2xx.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebp, ebp
mov dword [esi + 0x2c], eax
cmp eax, ebp
jne 0x53e150
push ebp
push str.Error
push str.Error:_Cant_Load_Ftd2xx.dll
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FT_ListDevices
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x2c]
push str.FT_Open
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.FT_Close
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x2c]
push str.FT_Purge
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x2c]
push str.FT_SetTimeouts
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.FT_Read
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 0x2c]
push str.FT_Write
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x2c]
push str.FT_GetQueueStatus
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.FT_GetComPortNumber
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x2c]
push str.FT_ResetPort
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x2c]
push str.FT_GetDriverVersion
push eax
call edi
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0053e2e0
mov ecx, dword [esp + 0x18]
push 0x80000000
lea edx, [esp + 0x10]
push ebp
push edx
mov dword [esi + 0x38], ecx
mov dword [esp + 0x18], ebp
call dword [esi]
test eax, eax
jne 0x53e147
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebp
jbe 0x53e27d
lea edi, [esi + 0x30]
push edi
push ebx
mov dword [edi], ebp
call dword [esi + 4]
test eax, eax
jne 0x53e261
mov ecx, dword [esi + 0x30]
lea edi, [esi + 0x30]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ecx
call dword [esi + 0x20]
test eax, eax
jne 0x53e261
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, edx
je 0x53e26c
mov eax, dword [edi]
push eax
call dword [esi + 0x24]
mov ecx, dword [edi]
push ecx
call dword [esi + 8]
mov dword [edi], 1
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x53e221
jmp 0x53e27d
mov edx, dword [esi + 0x30]
push 0xbb8
push 0xbb8
push edx
call dword [esi + 0x10]
mov eax, dword [esi + 0x30]
pop ebx
cmp eax, 1
je 0x53e147
cmp eax, ebp
je 0x53e147
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push ecx
push eax
call dword [esi + 0x28]
cmp dword [esp + 0x14], 0x20814
je 0x53e2c4
push ebp
push str.Error
push str.Error:_The_Version_of_USB_Serial_Port_Driver_is_not_compatible
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
mov dword [esi + 0x34], 1
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
Function at 0x593230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e4fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
call fcn.005acb70
lea edi, [ebp + 8]
xor ebx, ebx
push 0x20
mov ecx, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi], ebx
call fcn.0041b410
lea ecx, [edi + 0xc]
push 0x20
mov byte [esp + 0x30], 1
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx], ebx
call fcn.0041b410
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], 1
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
lea esi, [edi + 0x2c]
push 0x20
mov ecx, esi
mov byte [esp + 0x30], 2
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
call fcn.0041b410
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x28], ebx
mov eax, dword [esi]
mov edi, str.UTF_8
mov ecx, edi
mov dword [esi + 8], ebx
test ecx, ecx
mov byte [esp + 0x2c], 3
mov byte [eax], bl
mov dword [esp + 0x18], edi
je 0x5933dd
mov cl, byte [str.UTF_8]
mov eax, 0x637bd9
cmp cl, bl
je 0x5932f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5932e9
mov ecx, dword [esi + 8]
sub eax, str.UTF_8
dec eax
mov edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], edx
lea edx, [ecx + edx + 2]
cmp eax, edx
ja 0x5933b8
shr eax, 5
inc eax
shl eax, 5
add eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ebp, eax
cmp ebp, 0x20
ja 0x593329
mov ebp, 0x20
mov edi, dword [esi]
cmp edi, ebx
jne 0x59335a
push ebp
call fcn.005b449a
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
mov byte [eax], bl
jmp 0x5933b0
push ebp
mov dword [esp + 0x14], edi
call fcn.005b449a
mov edx, edi
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 1]
cmp byte [edx], bl
je 0x593386
mov edx, ecx
dec ecx
test edx, edx
jbe 0x593386
mov dl, byte [edi]
mov byte [eax], dl
mov dl, byte [edi + 1]
inc eax
inc edi
cmp dl, bl
jne 0x593372
mov byte [eax], bl
mov edi, dword [esi]
mov eax, edi
mov dword [esi + 4], ebp
mov cl, byte [eax]
inc eax
test cl, cl
je 0x59339d
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x593396
sub eax, edi
dec eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.005b44c3
add esp, 4
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
add eax, ecx
mov cl, byte [str.UTF_8]
cmp cl, bl
je 0x5933d4
mov byte [eax], cl
mov cl, byte [edi + 1]
inc eax
inc edi
cmp cl, bl
jne 0x5933c9
mov ecx, dword [esp + 0x1c]
mov byte [eax], bl
add dword [esi + 8], ecx
mov ecx, dword [esp + 0x24]
pop edi
mov dword [ebp + 0x40], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret