joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f96
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x587b6a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fb490]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5fb490]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
cmp edi, ebx
jne 0x415fe4
xor eax, eax
jmp 0x416160
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x41600e
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x41600e
dec dword [edx]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x416160
cmp dword [esi + 0x50], 0
je 0x41615e
mov ecx, esi
call fcn.00416add
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x41603b
push dword [esi + 0x50]
push edi
call fcn.00414fc3
test al, al
pop ecx
pop ecx
cmovne ebx, edi
jmp 0x41615e
mov eax, dword [ebp + 8]
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
push 8
mov byte [esp + 0x2c], al
mov dword [esp + 0x44], 0xf
call fcn.00404503
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x2c]
mov edi, dword [esi]
cmovae ecx, dword [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x35]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [edi + 0x1c]
test eax, eax
js 0x416151
cmp eax, 1
jg 0x416134
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp edi, 0x10
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x14], edx
je 0x416101
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x2c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.0054d468
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp edx, eax
jne 0x416151
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x24]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x41612f
test edx, edx
jne 0x41606e
cmp dword [esp + 0x38], 0x20
jae 0x416151
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.0041441d
jmp 0x41606a
mov ebx, dword [ebp + 8]
jmp 0x416151
cmp eax, 3
jne 0x416151
mov eax, dword [esp + 0x10]
push dword [eax + 0x50]
push dword [esp + 0x28]
call fcn.00414fc3
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0040400f
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0054b0f5
mov esp, ebp
pop ebp
ret 4
Function at 0x416958
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x587eec
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5fb490]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5fb490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x416a92
cmp byte [ebx + 0x45], 0
je 0x416a92
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4169b8
xor al, al
jmp 0x416a94
xor eax, eax
mov dword [esp + 0x2c], 0xf
push eax
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call fcn.00404503
and dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x416a1d
dec eax
je 0x416a21
dec eax
dec eax
je 0x416a7f
xor bl, bl
jmp 0x416a81
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x416a60
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0054d468
add esp, 0x10
cmp esi, eax
jne 0x416a19
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x416a7f
test esi, esi
jne 0x4169e3
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0041441d
jmp 0x4169db
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040400f
mov al, bl
jmp 0x416a94
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0054b0f5
mov esp, ebp
pop ebp
ret

Function at 0x4170d2
Capabilities:
Resolve dns

Disassembly:
push 0x3c
mov eax, 0x587f49
call fcn.0054eeb6
mov eax, ecx
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
call fcn.0040fc80
xor bl, bl
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41716c
mov eax, dword [eax + 0xc]
and dword [ebp - 0x28], 0
cmp dword [eax], 0
je 0x41716e
inc bl
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403d74
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00412b96
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0040400f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0xc]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jne 0x417115
jmp 0x41716e
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040400f
mov al, bl
call fcn.0054ee65
ret
Function at 0x4191c0
Capabilities:
Set socket configuration

Disassembly:
push 0xa8
mov eax, 0x588314
call fcn.0054eeb6
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x74]
xor ebx, ebx
mov dword [ebp - 0x84], ebx
call fcn.00407602
xor eax, eax
mov dword [ebp - 4], ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x41921e
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x41922c
mov dword [ebp - 0x1c], 0x124f80
mov dword [ebp - 0x18], 0x7d0
push ebx
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push 0xc
lea eax, [ebp - 0x80]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x98000004
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x4192aa
mov byte [ebp - 0x74], bl
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x9c]
call fcn.0040495e
push eax
mov edx, str.setKeepAlive_WSAIoctl_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00404acd
pop ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00407035
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.0040400f
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.0040400f
jmp 0x4192c4
mov esi, 0x5d057d
mov byte [ebp - 0x74], 1
push esi
call fcn.004034ca
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00404199
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0040bd09
lea ecx, [ebp - 0x74]
call fcn.004052db
mov eax, edi
call fcn.0054ee65
ret 4

Function at 0x4192e1
Capabilities:
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x588355
call fcn.0054eeb6
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.00407602
mov dword [ebp - 4], ebx
xor eax, eax
inc ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, 0x5d057d
mov byte [edi], bl
push esi
call fcn.004034ca
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.00404199
mov eax, edi
call fcn.0054ee65
ret 4
Function at 0x41d5da
Capabilities:
Get disk information

Disassembly:
push 0x664
mov eax, 0x588a14
call fcn.0054eeb6
mov ebx, edx
mov dword [ebp - 0x654], ebx
mov esi, ecx
mov dword [ebp - 0x650], esi
and dword [ebp - 0x658], 0
lea ecx, [ebp - 0x648]
push 0x5d057d
call fcn.00403d74
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov word [ebp - 0x220], ax
test ebx, ebx
je 0x41d75b
lea eax, [ebp - 0x220]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41d75b
mov eax, dword [0x5d3dd4]
mov ebx, edi
mov esi, dword [ebp - 0x654]
lea edi, [ebp - 0x220]
mov dword [ebp - 0x18], eax
mov ax, word [0x5d3dd8]
mov word [ebp - 0x14], ax
mov dword [ebp - 0x64c], edi
mov ax, word [edi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x428]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor edx, edx
test eax, eax
je 0x41d718
lea edi, [ebp - 0x428]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x41d696
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x41d712
push edi
lea eax, [ebp - 0x428]
push eax
push esi
call fcn.0054df83
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x41d710
lea eax, [esi + edi*2]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x630]
push str._s_s
push eax
call fcn.0041deb6
add esp, 0x10
lea edx, [ebp - 0x630]
lea ecx, [ebp - 0x670]
call fcn.00411f46
push eax
lea ecx, [ebp - 0x648]
call fcn.00407035
xor edi, edi
lea ecx, [ebp - 0x670]
push edi
push 1
call fcn.0040400f
xor edx, edx
mov edi, dword [ebp - 0x64c]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x41d718
mov dword [ebp - 0x64c], edi
test ebx, ebx
jne 0x41d736
cmp word [edi], dx
jne 0x41d666
mov esi, dword [ebp - 0x650]
lea eax, [ebp - 0x648]
push eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edx
mov byte [esi], dl
call fcn.00403de5
xor edi, edi
push edi
jmp 0x41d778
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x648]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00403de5
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.0040400f
mov eax, esi
call fcn.0054ee65
ret

Function at 0x41d78d
Capabilities:
Get process image filename

Disassembly:
push 0x234
mov eax, 0x588a5e
call fcn.0054eeb6
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x5d057d
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
call fcn.00403d74
push esi
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41d83e
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.0054f350
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x41d837
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x240]
call fcn.0041d5da
push eax
mov ecx, edi
call fcn.00407035
push ebx
push 1
lea ecx, [ebp - 0x240]
call fcn.0040400f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0054ee65
ret
Function at 0x41d846
Capabilities:
Enumerate processes

Disassembly:
push 0x284
mov eax, 0x588aa1
call fcn.0054eeb6
mov dword [ebp - 0x260], ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ecx]
push esi
push 2
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x5d057d
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00403d74
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
je 0x41d951
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x41d942
mov edx, dword [ebp - 0x254]
lea ecx, [ebp - 0x278]
call fcn.0041d78d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407035
push esi
push 1
lea ecx, [ebp - 0x278]
call fcn.0040400f
lea edx, [ebp + 8]
lea ecx, [ebp - 0x290]
call fcn.00411fad
mov esi, eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00411fad
mov edx, esi
mov ecx, eax
call fcn.00407463
xor esi, esi
lea ecx, [ebp - 0x278]
push esi
push 1
mov bl, al
call fcn.0040400f
push esi
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.0040400f
test bl, bl
je 0x41d934
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
call fcn.004098fa
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41d8a7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040400f
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040400f
call fcn.0054ee65
ret

Function at 0x41d96d
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x41da04
Capabilities:
Create process on windows

Disassembly:
push 0x46c
mov eax, 0x588ad1
call fcn.0054eeb6
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.00403d4e
call fcn.00415082
add esp, 0x18
test al, al
je 0x41daec
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 8]
call fcn.00411ef4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00403d4e
lea ecx, [ebp - 0x438]
call fcn.00415879
add esp, 0x18
lea ecx, [ebp - 0x438]
cmp dword [ebp - 0x424], 0x10
lea edx, [ebp - 0x420]
cmovae ecx, dword [ebp - 0x438]
call fcn.00411ef4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x474], 0x3c
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x458], 5
mov dword [ebp - 0x454], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 1
lea ecx, [ebp - 0x438]
call fcn.0040400f
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040400f
call fcn.0054ee65
ret
Function at 0x42038d
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x130]
sub eax, dword [ecx + 0x134]
cmp eax, 0x28
jl method.AgentAppLink.virtual_0
ret
cmp byte [ecx + 0x61], 0
jne 0x4203a2
cmp byte [ecx + 0x60], 0
je 0x4203a2
mov byte [ecx + 0x60], 0
jmp fcn.004203a3
ret
Function at 0x420dd8
Capabilities:
Connect socket

Disassembly:
push 0xdc
mov eax, 0x589104
call fcn.0054eeb6
mov esi, ecx
mov ebx, dword [ebp + 8]
and dword [ebp - 0x6c], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00407602
mov byte [ebp - 4], 1
cmp byte [esi + 0x61], 0
je 0x420e0f
mov byte [ebp - 0x68], 0
jmp 0x420ecd
lea ecx, [esi + 0x34]
lea eax, [ebp + 0x10]
cmp ecx, eax
je 0x420e23
push 0xffffffffffffffff
push 0
push eax
call fcn.00403f7b
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x1e]
xor eax, eax
mov word [esi + 0x4c], cx
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop eax
push ecx
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x24], 0x10
mov word [ebp - 0x1e], ax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov ecx, esi
lea eax, [ebp - 0xe8]
push eax
call fcn.00420c08
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004082bc
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call fcn.004052db
cmp byte [ebp - 0x68], 0
je 0x420f37
lea eax, [ebp - 0xe8]
mov ecx, esi
push eax
call fcn.00420d6f
lea ecx, [ebp - 0xe8]
call fcn.004052db
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
test esi, esi
jne 0x420ee5
mov byte [ebp - 0x68], 1
mov esi, 0x5d057d
push esi
call fcn.004034ca
pop ecx
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.00404199
jmp 0x420f37
mov edx, eax
mov byte [ebp - 0x68], 0
lea ecx, [ebp - 0x9c]
call fcn.0040495e
push eax
mov edx, str.connect_err._lastErr:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00404acd
pop ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.00407035
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.0040400f
push 0
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0040400f
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.0040bd09
lea ecx, [ebp - 0x68]
call fcn.004052db
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.0040400f
mov eax, ebx
call fcn.0054ee65
ret 0x20
Function at 0x421cd0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push 0xa8
mov eax, 0x5891aa
call fcn.0054eeb6
mov edi, edx
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push edi
call fcn.0054f350
add esp, 0xc
lea ecx, [ebp - 0x2c]
push esi
call fcn.00403d74
push dword [ebp + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], ebx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], ebx
push eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x5c], 0xc
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x421d3c
or esi, 0xffffffff
jmp 0x421e9f
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421d4a
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x2c]
push ebx
sub ecx, edx
cmp dword [ebp - 0x18], 0x10
push ebx
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push ebx
push 0xfde9
call esi
test eax, eax
jg 0x421d7c
push 0xfffffffffffffffe
pop esi
jmp 0x421e9f
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
push ebx
add eax, 0xa
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48]
call fcn.00422922
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x421dab
push dword [ebp - 0x38]
sub edx, ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
push edx
push eax
push ebx
push 0xfde9
call esi
test eax, eax
jg 0x421de3
push 0xfffffffffffffffd
jmp 0x421e75
push 0x40
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
xorps xmm0, xmm0
push ebx
push eax
movdqu xmmword [ebp - 0x6c], xmm0
call fcn.0054f350
add esp, 0xc
mov dword [ebp - 0x88], 0x101
lea ecx, [ebp - 0x6c]
xor eax, eax
cmp dword [ebp - 0x34], 8
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x74], eax
push ecx
push ebx
push ebx
push ebx
push 1
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x421e4c
push 0xfffffffffffffffc
jmp 0x421e75
push 0xfa0
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421e78
push 0xfffffffffffffffb
pop esi
jmp 0x421e94
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x68]
call esi
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00422950
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040400f
mov eax, esi
call fcn.0054ee65
ret
Function at 0x4327cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x432812
call fcn.0043d15f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x432812
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43282e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043d2f8
mov ebx, eax
test edi, edi
je 0x43282c
test esi, esi
je 0x43282c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x438af3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0043d15f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x438b2a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00438b4b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b38cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0043c5b7
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4b3908
call fcn.004b3aeb
mov dword [esi + 0xc], 1
jmp 0x4b390d
call fcn.004b3aeb
cmp dword [esi], 0
je 0x4b3956
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4b3930
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00432885
jmp 0x4b3941
push 0xff
mov ecx, esi
call fcn.004091ce
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00430737
jmp 0x4b397a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4b397a
push dword [esi]
push dword [ebp - 4]
call fcn.0043fcba
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b3a40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004b3aeb
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4b3a88
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00432885
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00430737
jmp 0x4b3a93
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043fcba
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5160b2
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00546cec
call fcn.0043d1b3
cmp dword [eax + 0x14], 0
jne 0x5160cd
mov ecx, esi
pop esi
jmp fcn.005154b3
pop esi
ret

Function at 0x5228d3
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0040495d
call fcn.0043d1b3
cmp dword [eax + 0x14], 0
jne 0x5228ee
mov ecx, esi
pop esi
jmp fcn.005221bc
pop esi
ret