joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406850
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436f9b
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebp
push esi
mov esi, ecx
push str.____CaptureGame____n
push esi
call fcn.0041deb0
add esp, 8
mov ecx, esi
call fcn.00407890
test eax, eax
jne 0x4068af
push str._Fail_:_Found_game_board_n
push esi
call fcn.0041deb0
add esp, 8
xor eax, eax
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
mov ebp, dword [eax + 0x1c]
test ebp, ebp
jne 0x4068dd
push str.did_not_find_game_n
push esi
call fcn.0041deb0
add esp, 8
xor eax, eax
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
push edi
push ebp
push str.0x_0X_n
push esi
call fcn.0041deb0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
lea edi, [esi + 0x67c]
push ecx
mov ecx, edi
mov byte [esp + eax + 0x24], 0
call fcn.0042914b
push str.tempfile10001.tmp
mov ecx, edi
call fcn.00429250
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push str.top__d__botton__d__left__d__right__d__n
push esi
call fcn.0041deb0
mov eax, dword [esi + 0x64]
add esp, 0x18
test eax, eax
jne 0x4069ab
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0x299
jne 0x406993
mov eax, dword [esp + 0x1c]
sub eax, 0x41
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
sub eax, 0x32
mov dword [esp + 0x18], eax
jmp 0x4069d4
cmp eax, 0x316
jle 0x4069a4
add ecx, 0x316
mov dword [esp + 0x1c], ecx
sub dword [esp + 0x18], 0x32
jmp 0x4069d4
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x6c]
add ecx, edx
add eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esi + 0x60]
add ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xc]
call fcn.00407970
mov edx, dword [esi + 0x64]
lea eax, [esp + 0x10]
neg edx
sbb edx, edx
push eax
and edx, 0x28
push ebp
add edx, 0xa
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], 0
mov dword [esp + 0x18], edx
call fcn.00407980
test eax, eax
pop edi
mov dword [esp + 0x124], 0xffffffff
lea ecx, [esp + 8]
jne 0x406a3b
call fcn.0041deb0
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
call fcn.0041deb0
mov ecx, dword [esp + 0x11c]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x406a60
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x436fbb
push eax
mov eax, 0x80134
mov dword fs:[0], esp
call fcn.00410de0
mov eax, dword [0x445a28]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [ebx + 0x688]
mov dword [esp + 0x80154], 0
call fcn.00435952
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406ac6
lea ecx, [ebx + 0x70]
push ecx
lea ecx, [esp + 0x14]
call fcn.004290fb
mov eax, dword [ebx + 0x67c]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0042df09
test eax, eax
jne 0x406af7
lea ecx, [esp + 0x10]
mov dword [esp + 0x8014c], 0xffffffff
call fcn.00428fc2
or eax, 0xffffffff
jmp 0x406c4b
mov eax, dword [esp + 0x30]
mov ebp, eax
push eax
mov dword [esp + 0x18], ebp
call fcn.00429881
mov esi, eax
mov eax, dword [ebx + 0x67c]
push 0x445660
push eax
mov dword [esp + 0x24], esi
call fcn.004115a3
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x406b43
lea ecx, [esp + 0x10]
mov dword [esp + 0x8014c], 0xffffffff
call fcn.00428fc2
or eax, 0xffffffff
jmp 0x406c4b
push edi
push ebp
push 1
push esi
call fcn.0041145b
push edi
call fcn.004113de
add esp, 0x14
lea ebp, [ebx + 0x6ac]
mov ecx, ebp
push 0
push 0x3f
push 1
push 0
call fcn.00435906
mov ecx, dword [ebx + 0x6b0]
lea eax, [esp + 0x1c]
push 4
push eax
push 0x1001
push 0xffff
push ecx
mov dword [esp + 0x30], 0xfde8
call sub.WSOCK32.dll_setsockopt
mov edx, dword [esp + 0x10]
push 0x50
push edx
mov ecx, ebp
call fcn.00435b2a
test eax, eax
je 0x406c15
mov ecx, 0x20002
xor eax, eax
lea edi, [esp + 0x13c]
mov edx, dword [ebp]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13c], al
mov eax, ecx
lea edi, [esp + 0x144]
shr ecx, 2
mov dword [esp + 0x140], 8
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, ebp
mov dword [esp + 0x144], eax
push eax
lea eax, [esp + 0x144]
push eax
call dword [edx + 0x18]
call sub.WSOCK32.dll_WSAGetLastError
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x18]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
push esi
call fcn.004298aa
mov ebx, dword [ebx + 0x67c]
add esp, 4
push ebx
call fcn.00428b2d
lea ecx, [esp + 0x10]
mov dword [esp + 0x8014c], 0xffffffff
call fcn.00428fc2
mov eax, 1
mov ecx, dword [esp + 0x80144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80140
ret
Function at 0x406ca0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x436fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push str.c:windows_
lea ecx, [esp + 8]
call fcn.00429030
mov dword [esp + 0x10], 0
call fcn.00432c88
mov eax, dword [eax + 4]
lea ecx, [esp + 4]
add eax, 0xd4
push eax
call fcn.004290fb
mov eax, dword [esp + 4]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esi + 0x1c]
push 0
push 0x1f4
push 0x451
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00428fc2
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4086f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
xor al, al
mov byte [esp + 5], 0x10
mov byte [esp + 4], al
mov byte [esp + 3], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 6], 0x18
and eax, 0xffff
mov byte [esp + 7], 0x20
mov ecx, eax
mov byte [esp + 8], 0x28
and ecx, 0x1f
mov byte [esp + 9], 0x30
mov byte [esp + 0xa], 0x38
mov byte [esp + 0xb], 0x40
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x58
mov byte [esp + 0xf], 0x60
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], 0x80
mov byte [esp + 0x14], 0x88
mov byte [esp + 0x15], 0x90
mov byte [esp + 0x16], 0x98
mov byte [esp + 0x17], 0xa0
mov byte [esp + 0x18], 0xa8
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0xb8
mov byte [esp + 0x1b], 0xc0
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xe0
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf0
mov byte [esp + 0x22], 0xf8
mov byte [esp + 0x23], 0xff
mov dl, byte [esp + ecx + 4]
mov ecx, eax
shr ecx, 5
shr eax, 0xa
and ecx, 0x1f
and eax, 0x1f
mov byte [esp], dl
mov al, byte [esp + eax + 4]
mov dl, byte [esp + ecx + 4]
mov byte [esp + 2], al
mov eax, dword [esp + 0x28]
mov byte [esp + 1], dl
mov ecx, dword [esp]
mov dword [eax], ecx
add esp, 0x24
ret 8
Function at 0x426430
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.00410de0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4264fb
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 0x4264fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4264ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4264b9
or bh, 8
and edi, 0x8000000
je 0x4264d4
mov eax, dword [0x44e65c]
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 0x4264fb
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 0x4268d0
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 0x4268fb
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 0x42691f
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 0x42693a
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 0x42a7b8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42a7f0
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.0042931b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004292f3
jmp 0x42a7fc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42bdb9
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 0x42bdfb
call fcn.00432c88
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42bdfb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42bdf2
xor eax, eax
jmp 0x42be03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042be09
pop edi
pop esi
pop ebx
ret 4

Function at 0x430cf1
Capabilities:
Create http request

Disassembly:
mov eax, 0x4376a4
call fcn.004117e8
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 0x430d29
call fcn.00432c88
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 0x430d4e
push eax
push dword [esi + 4]
call fcn.00431daa
jmp 0x430d5a
push esi
push eax
mov ecx, 0x44cb20
call fcn.00430d6b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x431064
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x437717
call fcn.004117e8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004293be
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x445a28]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0042914b
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0042914b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x431100
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43773f
call fcn.004117e8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004293be
mov eax, dword [0x445a28]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x44cb20
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00430d6b
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0042914b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0040967a
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004290fb
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00428fc2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x433415
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 0x433443
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433461
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043337b
jmp 0x433461
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433461
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043337b
test edi, edi
mov eax, edi
jne 0x43344b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4359b8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
mov esi, ecx
push eax
call fcn.00411820
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_getsockname
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x435a17
push dword [ebp - 0x12]
call sub.WSOCK32.dll_ntohs
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x10]
movzx eax, ax
mov dword [ecx], eax
call sub.WSOCK32.dll_inet_ntoa
mov ecx, dword [ebp + 8]
push eax
call fcn.0042914b
mov eax, esi
pop esi
leave
ret 8

Function at 0x435b9b
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 0x435c19
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 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42973f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x42974e
pop dword [ebp - 8]
mov eax, 0x42974e
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x4f3f7
push 0
mov eax, 0x8852a1ef
add eax, 0x77f3c5e9
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4673208e
add ecx, 0xb98d2de6
mov edx, eax
mov edi, 0xae7df9d0
sub edi, 0xae3519d0
add edi, dword [ebp - 8]
mov esi, 0x10d2a86e
add dword [ebp - 4], edi
mov ebx, dword [edi]
xor dword [ebp - 4], 0x885f88d8
xor ebx, esi
xor dword [ebp - 4], 0xb222ae7b
mov dword [edx], ebx
xor dword [ebp - 4], ebx
add edx, 4
add edi, 0x98cd17
add edi, 0xff6732ed
loop 0x4297a2
add eax, 0xc56b2329
add eax, 0x3a96097a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40b220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468d3b
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.0045d886
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b2a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b79d
mov eax, dword [eax]
push 0x47f1d0
push eax
call fcn.0044e5d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045db11
test bl, bl
je 0x40b2a2
push 0x47f1d0
lea ecx, [esp + 0xc]
call fcn.0045dea1
push 0x482d34
lea ecx, [esp + 0xc]
call fcn.0045dea1
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 0x40b2de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045db11
jmp 0x40b3a9
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 0x40b362
lea edx, [esp + 0x7c]
push 0x482d30
push edx
call fcn.0044e5d4
add esp, 8
test eax, eax
je 0x40b362
lea eax, [esp + 0x7c]
push 0x482d2c
push eax
call fcn.0044e5d4
add esp, 8
test eax, eax
je 0x40b362
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 0x40b2f2
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.0045db11
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 0x40bba0
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 0x40bc02
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
Function at 0x40bc10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x468dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4893a8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40bd48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bc76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045db11
xor eax, eax
jmp 0x40bdbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045dc4e
push esi
lea ecx, [esp + 0xc]
call fcn.0045dedd
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bd9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bba0
test eax, eax
jne 0x40bd9d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040bba0
test eax, eax
jne 0x40bd9d
lea eax, [esp + 0x14]
push 0x482d48
push eax
call fcn.0044f610
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bd7c
lea ecx, [esp + 0x14]
push 0x482d44
push ecx
call fcn.0044f590
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bd7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bd7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045dbfe
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bc8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045db11
xor eax, eax
jmp 0x40bdbf
mov byte [esi], 0
push 0x482d40
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045db11
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4