joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404030
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov eax, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x22c]
push eax
xor edi, edi
push edi
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x220], eax
cmp eax, edi
jle 0x404169
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea ecx, [ebp - 0x110]
push ecx
push esi
call edi
lea edx, [ebp - 0x218]
push edx
push esi
mov ebx, eax
call edi
test ebx, ebx
je 0x404154
test eax, eax
jne 0x404154
mov byte [ebp - 0x21c], al
mov word [ebp - 0x21b], ax
mov byte [ebp - 0x219], al
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x224], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x404154
mov edx, 0x4313f2
lea ecx, [ebp - 0x21c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404135
test al, al
je 0x404131
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x404135
add ecx, 2
add edx, 2
test al, al
jne 0x404115
xor eax, eax
jmp 0x40413a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404154
mov eax, dword [ebp - 0x220]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00417619
mov esp, ebp
pop ebp
ret
Function at 0x404180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, edx
push 0x432510
mov edi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ebx
call fcn.00417d01
add esp, 4
cmp dword [ebx], 0
jne 0x4041f4
mov eax, dword [esi]
test eax, eax
je 0x4041df
push eax
call fcn.004176ca
add esp, 4
mov dword [esi], 0
push 0x400
mov dword [ebx], 0x400
call fcn.0041695e
add esp, 4
mov dword [esi], eax
push 0x400
call fcn.0041695e
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
push 0
push edx
call fcn.0041c390
push 0x400
push 0
push ebx
call fcn.0041c390
mov eax, dword [ebp - 0x34]
add esp, 0x1c
xor esi, esi
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2e], 0
mov dword [eax], esi
cmp dword [edi + 0x3c], 0
je 0x404261
mov eax, dword [edi + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x54]
movzx ecx, byte [edi + 8]
add eax, 4
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x38], 0
setne al
test al, al
je 0x40429a
mov eax, dword [edi + 0x2c]
push 0
push 1
lea edx, [ebp - 0x2e]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x404290
js 0x404296
mov cl, byte [ebp - 0x2e]
mov byte [esi + ebx], cl
inc esi
cmp byte [esi + ebx - 2], 0xd
jne 0x40422f
cmp byte [esi + ebx - 1], 0xa
jne 0x40422f
jmp 0x40429a
mov byte [ebp - 0x2d], 1
jmp 0x40429a
mov byte [ebp - 0x2d], 0
mov edx, dword [ebp - 0x3c]
mov byte [esi + ebx], 0
mov ecx, dword [edx]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x38], edx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4042c0
sub eax, dword [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403150
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0041695e
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
mov dword [eax], esi
mov ecx, dword [edi]
lea eax, [esi + 1]
push eax
push 0
push ecx
call fcn.0041c390
mov edx, dword [edi]
push esi
push ebx
push edx
call fcn.004199f0
push ebx
call fcn.004176d5
add esp, 0x20
cmp dword [ebp - 0x18], 0x10
jb 0x404322
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004176d5
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret 4
Function at 0x404490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cd98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._________AHttpSocket::readHttpHead_____________
call fcn.00417d01
mov eax, dword [esi + 0x38]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4044dc
push eax
call fcn.004176ca
add esp, 4
mov dword [esi + 0x38], edi
push 0x19000
call fcn.0041695e
add esp, 4
mov ebx, eax
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2e], 0
cmp edi, 0x2800
jge 0x404571
cmp dword [esi + 0x3c], 0
je 0x40452d
mov eax, dword [esi + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [esi + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x54]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x34], 0
setne al
test al, al
je 0x404571
mov edx, dword [esi + 0x2c]
push 0
push 1
lea ecx, [ebp - 0x2e]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40456d
mov al, byte [ebp - 0x2e]
mov byte [edi + ebx], al
inc edi
cmp edi, 4
jl 0x4044f3
cmp byte [edi + ebx - 4], 0xd
jne 0x4044f3
cmp byte [edi + ebx - 3], 0xa
jne 0x4044f3
cmp byte [edi + ebx - 2], 0xd
jne 0x4044f3
cmp byte [edi + ebx - 1], 0xa
jne 0x4044f3
jmp 0x404571
mov byte [ebp - 0x2d], 0
mov byte [edi + ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404590
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403150
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], 0
call fcn.0041695e
lea ecx, [edi + 1]
push ecx
push 0
push eax
mov dword [esi + 0x38], eax
call fcn.0041c390
mov ecx, dword [esi + 0x38]
push edi
push ebx
push ecx
call fcn.004199f0
mov edx, dword [esi + 0x38]
add esp, 0x1c
push edx
call fcn.00404d90
push eax
push str._________m_szResultHead________len___d
call fcn.00417d01
mov eax, dword [esi + 0x38]
add esp, 8
push eax
call fcn.00404d90
mov dword [esi + 0x10], eax
test ebx, ebx
je 0x404600
push ebx
call fcn.004176ca
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x404612
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004176d5
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
Function at 0x404c70
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, dword [esi + 0x34]
push edi
push eax
push str._______________________m_szHead__n__s
call fcn.00417d01
mov ecx, dword [esi + 0x34]
push ecx
push str._____________n_baotou__n__s
call fcn.00417d01
mov ecx, dword [esi + 0x34]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404c98
mov edx, dword [esi + 0x2c]
push 0
sub eax, edi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, dword [esi + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404cb7
sub eax, edx
push eax
push str._____________n_chanff__n__d
call fcn.00417d01
add esp, 8
test edi, edi
jns 0x404cf9
push str._____________n______________AHttpSocket::sendMsg_failed_________
call fcn.00417d01
mov eax, dword [esi + 0x2c]
add esp, 4
cmp eax, 0xffffffff
je 0x404cf5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
xor al, al
pop edi
ret
setne al
pop edi
ret

Function at 0x404d20
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x58], 0
jne 0x404d89
mov eax, dword [esi + 0x54]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add eax, 4
push eax
call edi
mov ecx, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ecx, 4
push ecx
mov byte [esi + 8], 1
call ebx
mov edx, dword [esi + 0x54]
add edx, 4
push edx
call edi
mov eax, dword [esi + 0x54]
add eax, 4
push eax
mov dword [esi + 0x14], 1
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi + 0x5c]
push ecx
push 0
push esi
push 0x403f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x58], eax
mov al, 1
pop ebx
ret
xor al, al
ret
Function at 0x406e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cd98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x406f41
cmp byte [edi + 0x49], bl
je 0x406f41
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x406f35
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x406e95
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x406ead
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x406ed6
dec eax
je 0x406eda
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x406f30
jmp 0x406f3c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x406eea
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x406f13
cmp ebx, 0x10
jae 0x406ef9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041835b
add esp, 0x10
cmp esi, eax
jne 0x406f2d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x406f39
test esi, esi
jne 0x406ea1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406b70
jmp 0x406e9b
lea ecx, [ebp - 0x2c]
call fcn.004030a0
xor al, al
jmp 0x406f43
lea ecx, [ebp - 0x2c]
call fcn.004030a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
Function at 0x407230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x439654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov edx, dword [edi + 0x14]
cmp edx, esi
je 0x4072a8
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407274
sub eax, ebx
je 0x4072a8
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
jne 0x4072aa
lea esi, [ebp - 0x1c]
call fcn.00407be0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov eax, dword [edi + 0xc]
push eax
lea esi, [ebp - 0x1c]
call fcn.00407a60
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x407328
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4072e4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4072f4
push eax
call fcn.004176d5
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407304
push eax
call fcn.004176d5
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407314
push eax
call fcn.004176d5
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4072d9
cmp dword [edi + 8], 0
jbe 0x4072d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [edi + 8]
push eax
call fcn.0041695e
mov ecx, dword [edi + 8]
push ecx
push esi
push eax
mov dword [edi + 4], eax
call fcn.004199f0
add esp, 0x10
test ebx, ebx
je 0x407373
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [ebp - 0x1c]
call fcn.00407be0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075a0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, dword [edi + 0x14]
test esi, esi
je 0x4075ea
mov ecx, esi
mov eax, 0x4313bb
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4075d0
test dl, dl
je 0x4075cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4075d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4075b0
xor eax, eax
jmp 0x4075d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4075ea
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4075ec
xor eax, eax
pop esi
ret
xor esi, esi
cmp dword [edi + 0x20], 0x4313cd
je 0x4075e6
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x407460
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
test eax, eax
setne bl
test bl, bl
jne 0x407627
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3b02
je 0x407625
test eax, eax
jne 0x407627
mov bl, 1
test esi, esi
je 0x407632
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, bl
pop ebx
pop esi
ret
Function at 0x4082c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cceb
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0041c390
add esp, 0xc
push 1
push 0x1a
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x408409
push 0x14
push str.config_systemprofile
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00403150
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408370
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00403150
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x4083a1
lea eax, [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
push ecx
push eax
lea edx, [ebp - 0x14c]
push edx
xor eax, eax
call fcn.004037a0
cmp eax, 0xffffffff
je 0x4083c3
mov byte [0x43bc04], 1
cmp dword [ebp - 0x138], 0x10
jb 0x4083db
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004176d5
add esp, 4
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
jb 0x408409
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.004176d5
add esp, 4
mov al, byte [0x43bc04]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
Function at 0x408430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca8b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x228
mov esi, ecx
lea ecx, [ebp - 0x238]
push ebx
push ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x23c], ebx
call fcn.0041c390
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24c], edi
cmp edi, 0xffffffff
jne 0x4084a3
xor eax, eax
jmp 0x4085d4
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x240], ebx
push esi
lea esi, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.00407a60
lea edx, [ebp - 0x23c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408590
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ebx, [ebx]
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x218]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408526
cmp dx, bx
je 0x408522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408526
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x408500
xor eax, eax
jmp 0x40852b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x408542
lea eax, [ebp - 0x23c]
push eax
push edi
call esi
test eax, eax
jne 0x4084f0
lea esi, [eax + 1]
jmp 0x408592
mov ecx, dword [ebp - 0x234]
push ecx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x250]
push edx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
cmp edi, ebx
jne 0x408574
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x248]
call fcn.00407be0
mov eax, edi
jmp 0x4085d4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
cmp eax, ebx
je 0x4085ac
push eax
call fcn.004176d5
add esp, 4
mov eax, dword [ebp - 0x248]
cmp eax, ebx
je 0x4085bf
push eax
call fcn.004176d5
add esp, 4
mov eax, dword [ebp - 0x240]
cmp eax, ebx
je 0x4085d2
push eax
call fcn.004176d5
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret 4
Function at 0x408c00
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 8], 0
jne 0x408c0d
xor eax, eax
pop esi
ret
push ebx
push edi
push 0x400
call fcn.0041695e
push 0x400
mov ebx, eax
push 0
push ebx
call fcn.0041c390
add esp, 0x10
lea eax, [ebx - 1]
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408c30
mov ecx, dword [str.schtasks__delete__TN]
mov dword [eax], ecx
mov edx, dword [0x431db8]
mov dword [eax + 4], edx
mov ecx, dword [0x431dbc]
mov dword [eax + 8], ecx
mov edx, dword [0x431dc0]
mov dword [eax + 0xc], edx
mov ecx, dword [0x431dc4]
mov dword [eax + 0x10], ecx
mov dx, word [0x431dc8]
mov word [eax + 0x14], dx
mov eax, dword [esi + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c74
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408c80
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408ca0
mov eax, dword [0x431dcc]
push 0
push ebx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
call fcn.004176ca
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
ret
Function at 0x408e90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x10]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ea0
push ebx
sub eax, edx
push edi
lea edi, [eax + 1]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x408ec3
push eax
call fcn.004176ca
add esp, 4
mov dword [esi + 8], ebx
push edi
call fcn.0041695e
push edi
push ebx
push eax
mov dword [esi + 8], eax
call fcn.0041c390
xor eax, eax
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, eax
jle 0x408f21
mov edx, dword [esi + 0x10]
mov cl, byte [edx + eax]
cmp cl, 0x3a
je 0x408f21
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov edx, dword [esi + 0x10]
mov cl, byte [edx + eax]
cmp cl, 0x2e
jne 0x408eff
inc ebx
jmp 0x408f1c
cmp dword [ebp - 4], 1
je 0x408f1c
test cl, cl
jns 0x408f15
mov dword [ebp - 4], 1
cmp cl, 0x39
jg 0x408f1c
mov dword [ebp - 4], 0
inc eax
cmp eax, edi
jl 0x408ee3
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408f30
sub eax, edi
cmp eax, 1
ja 0x408f5e
test edx, edx
je 0x408ff5
push edx
call fcn.004176ca
add esp, 4
pop edi
mov dword [esi + 8], 0
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jne 0x408f72
xor ebx, ebx
cmp dword [ebp - 4], ebx
jne 0x408f74
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x408fe2
mov edi, dword [eax + 0xc]
cmp dword [edi], ebx
je 0x408fe2
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x408f99
push eax
call fcn.004176ca
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [edi]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408fb0
sub eax, edx
inc eax
push eax
call fcn.0041695e
add esp, 4
mov dword [esi + 8], eax
mov ecx, edi
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x408fd0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x408ff5
push eax
call fcn.004176ca
mov dword [esi + 8], ebx
add esp, 4
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c480
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca5b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004172b0
push 4
mov dword [ebp - 4], 0
call fcn.004177a6
mov edi, eax
add esp, 4
test edi, edi
je 0x40c500
call fcn.00416e0b
mov dword [edi], eax
call fcn.00416bca
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00416ef4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c4f6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00416f1c
jmp 0x40c502
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret