joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490638
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b04dc]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4b04dc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov word [esp + 0x1c], ax
xor edi, edi
push 0xac
mov eax, str.var_wbddref_kuxnd__document.createElement__a___wbddref_kuxnd.href___url__wbddref_kuxnd.target____self__document.body.appendChild_wbddref_kuxnd__wbddref_kuxnd.click___
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
call fcn.00405b90
mov dword [esp + 0x80], edi
add esi, 0x244
push esi
lea edi, [esp + 0x3c]
call fcn.00419180
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
lea ebx, [esp + 0x58]
mov byte [esp + 0x84], 1
call fcn.004061b0
add esp, 4
mov edi, eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x80], 2
call fcn.00405a10
mov esi, 8
mov byte [esp + 0x80], 1
cmp dword [esp + 0x68], esi
jb 0x404b7d
mov edx, dword [esp + 0x54]
push edx
call fcn.0047659a
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x404b8b
lea ebx, [esp + 0x1c]
mov eax, dword [0x4b1374]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b1374
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 3
test ebx, ebx
je 0x404bcf
test ebx, 0xffff0000
jne 0x404bcf
movzx edi, bx
call fcn.00402580
test eax, eax
je 0x404bd8
push eax
mov eax, edi
lea edi, [esp + 0x18]
call fcn.00405d70
jmp 0x404bd8
lea eax, [esp + 0x14]
call fcn.004056f0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov byte [esp + 0x80], 4
mov ecx, dword [ecx + 0x2c4]
push eax
call fcn.004189a0
mov bl, al
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404c21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x4c], esi
jb 0x404c34
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0047659a
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
cmp dword [esp + 0x30], esi
jb 0x404c5e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047659a
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
Function at 0x405360
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
lea eax, [ebp - 0x14]
mov dword [esi], edi
push eax
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
push edi
push str.Shell_TrayWnd
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x4053bf
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4053bf
lea ecx, [ebp - 0x24]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x240]
cmp eax, 3
jne 0x405405
mov edx, dword [ebp - 0xc]
sub edx, dword [ebx + 0x238]
mov eax, dword [ebp - 0x20]
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
sub edx, 5
mov dword [esi], edx
sub eax, dword [ebx + 0x234]
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
lea edx, [eax + ecx - 5]
mov dword [esi + 4], edx
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x405433
mov eax, dword [ebp - 0xc]
sub eax, dword [ebx + 0x238]
mov dword [esi + 4], 5
sub eax, dword [ebp - 0x14]
sub eax, 5
mov dword [esi], eax
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x405468
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov dword [esi], 5
sub ecx, dword [ebx + 0x234]
sub ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
lea eax, [ecx + edx - 5]
mov dword [esi + 4], eax
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40548a
mov dword [esi], 5
mov dword [esi + 4], 5
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4054b6
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebx + 0x238]
mov edx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x14]
shr ecx, 1
mov dword [esi], ecx
sub edx, dword [ebx + 0x234]
sub edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
shr edx, 1
mov dword [esi + 4], edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
Function at 0x4090c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491248
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b04dc]
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]
mov esi, ecx
mov ecx, dword [esi + 0x60]
xor ebx, ebx
mov dword [ebp - 0x4c], esi
cmp byte [ecx], bl
jne 0x40926e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401910
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x40912c
lea eax, [ebp - 0x2c]
push 7
push str.http:__
push eax
call fcn.00477077
add esp, 0xc
test eax, eax
je 0x40919e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40914b
lea eax, [ebp - 0x2c]
push 8
push str.https:__
push eax
call fcn.00477077
add esp, 0xc
test eax, eax
je 0x40919e
lea edx, [ebp - 0x48]
push str.http:__
push edx
lea ebx, [ebp - 0x2c]
call fcn.0040e2b0
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 1
call fcn.00405790
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 0x10
jb 0x409196
mov eax, dword [ebp - 0x48]
push eax
call fcn.0047659a
add esp, 4
mov esi, dword [ebp - 0x4c]
mov edi, 0x10
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4091a9
lea eax, [ebp - 0x2c]
cmp byte [eax], 0x22
je 0x4091ed
lea ecx, [ebp - 0x48]
push 0x49b26c
push ecx
lea ebx, [ebp - 0x2c]
call fcn.0040e2b0
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 2
call fcn.00405790
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 0x10
jb 0x4091e5
mov edx, dword [ebp - 0x48]
push edx
call fcn.0047659a
add esp, 4
mov esi, dword [ebp - 0x4c]
mov edi, 0x10
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4091f8
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp byte [eax + ecx - 1], 0x22
je 0x409211
push 1
mov eax, 0x49b26c
lea ecx, [ebp - 0x2c]
call fcn.004058f0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40921c
lea eax, [ebp - 0x2c]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [esi + 0xf9], 0
jne 0x40925d
mov ecx, dword [esi + 0xf0]
test ecx, ecx
jne 0x409248
call fcn.0047511b
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esi + 0xf8]
push eax
call edx
mov byte [esi + 0xf9], 1
cmp dword [ebp - 0x18], edi
jb 0x40926e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047659a
add esp, 4
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.00475dcc
mov esp, ebp
pop ebp
ret 4
Function at 0x40c6b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ed0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b04dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00475871
push 4
mov dword [ebp - 4], 0
call fcn.004765f6
mov edi, eax
add esp, 4
test edi, edi
je 0x40c72c
call fcn.00475749
mov dword [edi], eax
call fcn.00475508
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00475832
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c722
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0047585a
jmp 0x40c72e
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 4
Function at 0x419ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00480950
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x419f15
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41b300
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, 0x10
push esi
cmp dword [ebp + 0x1c], ebx
jae 0x41b315
lea eax, [ebp + 8]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
jne 0x41b33f
cmp dword [ebp + 0x1c], ebx
jb 0x41b337
mov eax, dword [ebp + 8]
push eax
call fcn.0047659a
add esp, 4
pop esi
xor al, al
pop ebx
pop ebp
ret 0x1c
push 0
push esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 0xf001f
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
jne 0x41b37f
cmp dword [ebp + 0x1c], ebx
jb 0x41b337
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047659a
add esp, 4
pop esi
xor al, al
pop ebx
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], ebx
jb 0x41b390
mov edx, dword [ebp + 8]
push edx
call fcn.0047659a
add esp, 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x1c

Function at 0x41b3d0
Capabilities:
Resolve dns

Disassembly:
push edi
mov dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x41b3f3
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov eax, 1
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41b401
xor eax, eax
ret
cmp word [eax + 8], 2
jne 0x41b3fe
xor ecx, ecx
lea ebx, [ebx]
mov edx, dword [eax + 0xc]
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x41b429
mov edx, dword [edx]
mov dword [esi + ecx*4 + 8], edx
inc ecx
mov dword [esi + 4], ecx
cmp ecx, 5
jl 0x41b410
xor eax, eax
cmp eax, dword [esi + 4]
sbb eax, eax
neg eax
ret
Function at 0x41b590
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
test eax, eax
je 0x41b618
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push 0
push eax
add ecx, ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x41b5f5
cmp edi, 0xffffffff
jne 0x41b60d
mov eax, dword [esi + 4]
push eax
mov dword [esi + 8], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test edi, edi
jle 0x41b62d
add ebx, edi
sub dword [ebp - 8], edi
jne 0x41b5b5
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 4
Function at 0x41bc90
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490c18
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.00486960
mov eax, dword [0x4b04dc]
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 + 0x24]
mov esi, ecx
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1014], eax
sub esp, 0x1c
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1024], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00401910
mov ecx, esi
call fcn.0041b7b0
test al, al
jne 0x41bd21
cmp dword [ebp + 0x1c], 0x10
jb 0x41bedf
mov eax, dword [ebp + 8]
push eax
call fcn.0047659a
add esp, 4
jmp 0x41bedf
add esi, 4
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x101c]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 0x101c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esi + 4]
push 0
push 1
lea eax, [ebp + ebx - 0x1010]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x41bd65
cmp edi, 0xffffffff
jne 0x41bd7d
mov edx, dword [esi + 4]
push edx
mov dword [esi + 8], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test edi, edi
jle 0x41bd06
inc ebx
cmp ebx, 0x1000
ja 0x41be5a
cmp ebx, 4
jbe 0x41bd24
cmp dword [ebp + ebx - 0x1014], 0xa0d0a0d
jne 0x41bd24
push 5
lea edx, [ebp - 0x1010]
push str.HTTP_
push edx
mov byte [ebp + ebx - 0x1010], 0
call fcn.0047a356
add esp, 0xc
test eax, eax
jne 0x41bd06
fldz
lea ecx, [ebp - 0x1028]
push ecx
fstp dword [ebp - 0x1024]
lea edx, [ebp - 0x1024]
push edx
lea eax, [ebp - 0x1010]
push str.HTTP__f__d
xor edi, edi
push eax
mov dword [ebp - 0x1028], edi
call fcn.0047836c
add esp, 0x10
cmp eax, 2
jne 0x41bed7
mov eax, dword [ebp - 0x1028]
cmp eax, 0xc8
je 0x41be19
cmp eax, 0xce
jne 0x41bed7
mov dword [ebp - 0x102c], edi
lea ebx, [ebp - 0x102c]
lea edi, [ebp - 0x1010]
call fcn.0041bf00
cmp eax, 2
jne 0x41be6e
mov ecx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
push ecx
mov ebx, edi
call fcn.0041bf90
lea ecx, [ebp + 8]
mov bl, al
call fcn.0046fe30
mov al, bl
jmp 0x41bee1
cmp dword [ebp + 0x1c], 0x10
jb 0x41bedf
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047659a
add esp, 4
jmp 0x41bedf
cmp eax, 1
jne 0x41bea6
mov edx, dword [ebp - 0x1014]
push edx
lea ebx, [ebp - 0x1020]
mov dword [ebp - 0x1020], esi
mov byte [ebp - 0x101c], 0
call fcn.0041b440
lea ecx, [ebp + 8]
call fcn.0046fe30
cmp byte [ebp - 0x101c], 0
sete al
jmp 0x41bee1
test eax, eax
jne 0x41bed7
mov eax, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x1014]
mov edi, dword [ebp - 0x1018]
push eax
push ecx
lea ebx, [ebp - 0x1010]
call fcn.0041c030
lea ecx, [ebp + 8]
mov bl, al
call fcn.0046fe30
mov al, bl
jmp 0x41bee1
lea ecx, [ebp + 8]
call fcn.0046fe30
xor al, al
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.00475dcc
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41bf90
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], eax
mov edx, dword [esi + 8]
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 8]
push 0
push 0x1000
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x41bfde
cmp edi, 0xffffffff
jne 0x41bff6
mov ecx, dword [esi + 8]
push ecx
mov dword [esi + 0xc], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
test edi, edi
jle 0x41c011
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x41c024
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
push ebx
call eax
jmp 0x41bfa7
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 4
call fcn.0047511b
int3

Function at 0x41c030
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov edi, edi
mov edx, dword [edi + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [edi + 8]
push 0
push 0x1000
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x41c087
cmp esi, 0xffffffff
jne 0x41c09f
mov ecx, dword [edi + 8]
push ecx
mov dword [edi + 0xc], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 0xffffffff
test esi, esi
jle 0x41c0c5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x41c0df
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push ebx
call eax
mov eax, dword [ebp - 8]
add eax, esi
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0xc]
jb 0x41c050
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 8
call fcn.0047511b
int3

Function at 0x41c4a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
mov word [ebp - 0x14], ax
push 0x10
lea eax, [ebp - 0x14]
mov word [ebp - 0x12], cx
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41c4f3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
mov dword [esi + 8], eax
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
Function at 0x41c510
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebx + 4]
push esi
lea eax, [ebp - 4]
push eax
push 0x8004667e
xor esi, esi
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test edi, edi
jle 0x41c554
mov eax, dword [ebp + 8]
push 0
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebx + 4]
lea ecx, [esi + eax]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41c560
add esi, eax
cmp esi, edi
jl 0x41c531
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41cb00
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
mov dword [ebp - 8], 0x1000
call fcn.004765f6
mov ebx, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push ecx
push esi
push 0
mov dword [esi], eax
call ebx
mov edi, eax
test edi, edi
je 0x41cb52
test dword [esi + 0xc], 0x100000
jne 0x41cb9d
mov edx, dword [esi + 4]
push edx
jmp 0x41cb97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41cb64
push 0
jmp 0x41cc28
mov eax, dword [ebp - 8]
push eax
call fcn.004765f6
mov ecx, dword [ebp - 8]
add esp, 4
lea edx, [ebp - 8]
mov esi, eax
push edx
push esi
push 0
mov dword [esi], ecx
call ebx
mov edi, eax
test edi, edi
je 0x41cc2e
test dword [esi + 0xc], 0x100000
jne 0x41cb9d
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
lea ecx, [ebp - 8]
push ecx
push esi
push edi
call ebx
test eax, eax
je 0x41cbc4
test dword [esi + 0xc], 0x100000
jne 0x41cba3
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
jmp 0x41cba3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41cc03
mov eax, dword [ebp - 8]
push eax
call fcn.004765f6
mov ecx, dword [ebp - 8]
add esp, 4
lea edx, [ebp - 8]
mov esi, eax
push edx
push esi
push edi
mov dword [esi], ecx
call ebx
test eax, eax
je 0x41cc27
test dword [esi + 0xc], 0x100000
jne 0x41cba3
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
jmp 0x41cba3
push edi
cmp eax, 0x103
jne 0x41cc28
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
Function at 0x41cc50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a9158
push 0x4800f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4b04dc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x41ccf2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ccf2
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x41ccf2
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x41ccf2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cf20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea esi, [eax - 0x10000]
movzx eax, si
push edi
test eax, eax
je 0x41cf38
sub esi, eax
cmp esi, dword [ebp + 8]
jbe 0x41cfc5
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ecx]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x41cf64
mov esi, 0x4fff0000
jmp 0x41cfc0
xor eax, eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
je 0x41cfc5
mov eax, 0x10000
cmp dword [ebp - 0xc], eax
jne 0x41cfae
cmp dword [ebp - 0x10], eax
jb 0x41cfae
push 0x40
push 0x3000
push eax
push esi
call edi
test eax, eax
jne 0x41cfc7
sub esi, 0x10000
jmp 0x41cfc0
mov esi, dword [ebp - 0x18]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x41cfc0
sub esi, eax
cmp esi, dword [ebp + 8]
ja 0x41cf50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret