joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fc00
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 2
mov eax, dword [esi + 0xe8]
push eax
call sub.WSOCK32.dll_shutdown
mov edx, dword [esi + 0xe4]
lea edi, [esi + 0xe4]
mov ecx, edi
call dword [edx + 0x10]
push 0
push 0x3f
push 1
push 0
mov ecx, edi
call fcn.00484fef
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x42fc44
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 8]
push 1
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0xe8]
lea edx, [esp + 8]
push 1
push edx
push 8
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x164]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
push ecx
mov ecx, edi
call fcn.004851ad
test eax, eax
jne 0x42fcc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x164]
mov edi, eax
push edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push str.Connect_to_ATMP___s:_d__Failed:GetLastError____d_
push 6
call fcn.0042aae0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov esi, dword [esi + 0x164]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
push str.Connect_To_ATMP___s:_d__Success
push 6
call fcn.0042aae0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x42fc01
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 2
mov eax, dword [esi + 0xe8]
push eax
call sub.WSOCK32.dll_shutdown
mov edx, dword [esi + 0xe4]
lea edi, [esi + 0xe4]
mov ecx, edi
call dword [edx + 0x10]
push 0
push 0x3f
push 1
push 0
mov ecx, edi
call fcn.00484fef
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x42fc44
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 8]
push 1
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0xe8]
lea edx, [esp + 8]
push 1
push edx
push 8
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x164]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
push ecx
mov ecx, edi
call fcn.004851ad
test eax, eax
jne 0x42fcc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x164]
mov edi, eax
push edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
push str.Connect_to_ATMP___s:_d__Failed:GetLastError____d_
push 6
call fcn.0042aae0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov esi, dword [esi + 0x164]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
push str.Connect_To_ATMP___s:_d__Success
push 6
call fcn.0042aae0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x42fcf1
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 2
mov dword [esi + 0x10c], 0
mov eax, dword [esi + 0xfc]
push eax
call sub.WSOCK32.dll_shutdown
mov edx, dword [esi + 0xf8]
lea edi, [esi + 0xf8]
mov ecx, edi
call dword [edx + 0x10]
push 0
push 0x3f
push 1
push 0
mov ecx, edi
call fcn.00484fef
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x42fd3e
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xfc]
lea eax, [esp + 8]
push 1
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0xfc]
lea edx, [esp + 8]
push 1
push edx
push 8
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x164]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
push edx
push ecx
mov ecx, edi
call fcn.004851ad
test eax, eax
jne 0x42fdbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x164]
mov edi, eax
push edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push str.Connect_to_ATMV___s:_d__Failed:GetLastError____d_
push 6
call fcn.0042aae0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov dword [esi + 0x10c], 1
mov esi, dword [esi + 0x164]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push edx
push eax
push str.Connect_To_ATMV___s:_d__Success
push 6
call fcn.0042aae0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x4343d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a337
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov dword [esp + 0x20], 0
mov eax, dword [0x4ad97c]
mov dword [esp + 0x30], 1
mov dword [esp + 0xc], eax
push 8
push 1
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x40], 2
call fcn.00464a29
lea eax, [esp + 0x28]
push eax
call fcn.0042a850
add esp, 0x10
push 0xa
push 1
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 3
call fcn.00464a29
lea eax, [esp + 0x24]
push eax
call fcn.0042a850
add esp, 0x10
push 0xd
push 1
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 4
call fcn.00464a29
lea eax, [esp + 0x20]
push eax
call fcn.0042a850
add esp, 0x10
push 0x20
push 1
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 5
call fcn.00464a29
lea eax, [esp + 0x1c]
push eax
call fcn.0042a850
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov byte [esp + 0x40], 6
mov esi, dword [ecx - 8]
mov ebp, dword [eax - 8]
mov ecx, dword [esp + 0x20]
mov edi, dword [edx - 8]
push ebp
push edi
mov eax, dword [ecx - 8]
push esi
push eax
call fcn.004343a0
add esp, 0x20
cmp eax, esi
jne 0x4344d4
lea edx, [esp + 0x1c]
jmp 0x4344ee
cmp eax, edi
jne 0x4344df
lea eax, [esp + 0x18]
push eax
jmp 0x4344ef
cmp eax, ebp
jne 0x4344ea
lea ecx, [esp + 0x14]
push ecx
jmp 0x4344ef
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00464ded
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00464a29
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.00464cb4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.00464cb4
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.00464cb4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00464cb4
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00464cb4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 0
call fcn.00464cb4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x28
ret 8
Function at 0x441933
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x441953
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004430e3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x441976
test byte [esp + 8], 2
je 0x441976
call fcn.00443156
mov dword [eax], 0xd
call fcn.0044315f
mov dword [eax], 5
jmp 0x44194f
xor eax, eax
ret
Function at 0x4614c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00440220
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46158b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x46158b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46153e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x461549
or bh, 8
and edi, 0x8000000
je 0x461564
mov eax, dword [0x4b705c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x46158b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46198b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4619af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4619ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x46541b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x46543d
cmp dword [edi + 0x3c], 0
jne 0x46543d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0047c9af
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0046546a
pop edi
pop esi
pop ebx
ret 8

Function at 0x4654b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0047c9af
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4654e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004654fc
pop edi
pop esi
pop ebx
ret 8
Function at 0x4657ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x48ac60
call fcn.00441acc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0047c9af
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x46582d
call fcn.0047c9af
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46583b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x465849
or eax, 0xffffffff
jmp 0x465931
mov ecx, esi
call fcn.00465764
mov dword [ebp - 0x14], eax
call fcn.004676e0
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x465880
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x465880
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00467694
push dword [ebp - 0x14]
call fcn.004671c6
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004654fc
cmp eax, edi
je 0x4658f3
test byte [esi + 0x24], 0x10
je 0x4658c1
push 4
mov ecx, esi
pop ebx
call fcn.00466955
test ah, 1
je 0x4658b9
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00469a12
cmp dword [esi + 0x1c], edi
je 0x4658f3
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00466ae1
jmp 0x4658f3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x465907
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x465920
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x465920
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0046579e
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x467b91
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x467bc9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046515b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465133
jmp 0x467bd5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4697bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4697fd
call fcn.0047c9af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4697fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4697f4
xor eax, eax
jmp 0x469805
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046980b
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a7a3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x46a7d3
push edi
call ebx
push eax
call fcn.0046b5a8
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x46a7fd
test byte [ebp - 4], 1
je 0x46a7fd
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46a7fd
push edi
call ebx
push eax
call fcn.0046b5a8
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x46a8a3
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0046a6f0
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x46a82f
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0046a6f0
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x46a845
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0046a6f0
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a86f
push 0
call ebx
push eax
call fcn.0046b5a8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x46a88d
push eax
call ebx
push eax
call fcn.0046b5a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46a8a1
push eax
call ebx
push eax
call fcn.0046b5a8
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x46a8ca
test byte [ebp - 4], 1
jne 0x46a8ca
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46a8ca
push edi
call ebx
push eax
call fcn.0046b5a8
pop edi
pop ebx
leave
ret 8
Function at 0x47c096
Capabilities:
Create http request

Disassembly:
mov eax, 0x48b5f4
call fcn.00441acc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x47c0ce
call fcn.0047c9af
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x47c0f3
push eax
push dword [esi + 4]
call fcn.0047c469
jmp 0x47c0ff
push esi
push eax
mov ecx, 0x4b4dc0
call fcn.0047c110
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x47e274
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0047c9af
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47e2b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47e2b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x47e2b5
xor eax, eax
jmp 0x47e333
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004649f5
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x47e2ed
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x47e2d7
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0047e424
push ebx
mov edi, eax
call fcn.00464a1e
test edi, edi
pop ecx
je 0x47e32f
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0047e1ed
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0047e338
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x47ef7d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47efab
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47efc9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047eee3
jmp 0x47efc9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47efc9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047eee3
test edi, edi
mov eax, edi
jne 0x47efb3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x48521e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x485235
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x41ab10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a9a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049aee6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41ab92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049877c
mov eax, dword [eax]
push 0x4e61f0
push eax
call fcn.0048a984
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049b171
test bl, bl
je 0x41ab92
push 0x4e61f0
lea ecx, [esp + 0xc]
call fcn.0049b501
push 0x4e9d74
lea ecx, [esp + 0xc]
call fcn.0049b501
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41abce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049b171
jmp 0x41ac99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41ac52
lea edx, [esp + 0x7c]
push 0x4e9d70
push edx
call fcn.0048a984
add esp, 8
test eax, eax
je 0x41ac52
lea eax, [esp + 0x7c]
push 0x4e9d6c
push eax
call fcn.0048a984
add esp, 8
test eax, eax
je 0x41ac52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41abe2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049b171
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41b490
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b4f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc