joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
push dword [edi]
push ebx
push 1
push dword [ebp + 8]
call fcn.004667b3
add esp, 0x10
test eax, eax
je 0x40d422
add esi, eax
cmp esi, ebx
je 0x40d422
push dword [edi]
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push 1
push eax
call fcn.004667b3
add esp, 0x10
test eax, eax
jne 0x40d401
push dword [edi]
call fcn.004661db
add esp, 4
test eax, eax
je 0x40d472
push dword [edi]
call fcn.004661db
add esp, 4
test eax, eax
je 0x40d45e
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x40d449
mov esi, dword [esi]
push eax
call fcn.00467b4a
push eax
push esi
push str.fread_filename__s__failed:__s._n
call fcn.0040d680
add esp, 0x10
push dword [edi]
call fcn.00465fcf
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40e5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b58aa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0042a417
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40e670
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00449d12
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4d3798
push eax
call fcn.00449054
push edi
push esi
call fcn.0042abf9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret 4
Function at 0x413430
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x413520
xorps xmm0, xmm0
mov dword [ebp - 8], 1
movups xmmword [ebp - 0x28], xmm0
mov eax, 2
mov word [ebp - 0x28], ax
mov ax, word [esi + 0x14]
mov word [ebp - 0x26], ax
mov eax, dword [esi + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x1004
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 1
push 6
push edi
call esi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0xc
push 6
push edi
call esi
push 0x10
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x413519
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x413519
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.00428705
mov esp, ebp
pop ebp
ret

Function at 0x413a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push esi
push 0x4136d0
push 0
push 0
call fcn.00465d2c
add esp, 0x18
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x413a7a
or eax, 0xffffffff
pop ebp
ret
mov ecx, dword [0x4dfa78]
test ecx, ecx
je 0x413a8c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor eax, eax
pop ebp
ret
Function at 0x4145c0
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11
push 2
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41470b
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0x2003
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x41470b
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10]
push 4
push eax
push 4
push 0xffff
push esi
mov dword [ebp - 0x10], 1
call edi
cmp eax, 0xffffffff
je 0x41470b
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1f4
push eax
push 0x1005
push 0xffff
push esi
call edi
cmp eax, 0xffffffff
je 0x41470b
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00449530
add esp, 0xc
mov dword [ebp - 0x98], 2
lea eax, [ebp - 0x98]
push 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41470b
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00449530
add esp, 0xc
mov dword [ebp - 0x18], 0x80
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41470b
mov eax, dword [ebp - 8]
lea edi, [ebx + 8]
mov dword [ebx], esi
mov ecx, 0x20
lea esi, [ebp - 0x98]
mov dword [ebx + 4], eax
rep movsd dword es:[edi], dword [esi]
push str.create_succeed
mov ecx, ebx
call fcn.004147b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x41471f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x414880
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi], 0xffffffff
jne 0x4148a9
call fcn.004145c0
test al, al
je 0x41490d
push 0x10
push edi
push 0
push dword [ebp + 0xc]
push ebx
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
xorps xmm0, xmm0
movzx eax, word [esi + 0xa]
movups xmmword [ebp - 0x14], xmm0
push eax
jne 0x414922
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x14]
push 0x4bc6e4
push eax
call fcn.00405ff0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x41490d
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41490d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x14]
push 0x4bc6e4
push eax
call fcn.00405ff0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415260
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x194]
push 0x190
push 0
push eax
mov dword [esi], 0
call fcn.00449530
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi], eax
test eax, eax
je 0x4152b9
push eax
call fcn.00467b4a
push eax
call fcn.0046af7f
add esp, 8
mov ecx, dword [ebp - 0x194]
cmp cl, 2
jne 0x4152cc
shr ecx, 8
cmp cl, 2
je 0x4152d2
mov dword [esi], 0xa
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x415bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0x44
push 0
push eax
call fcn.00449530
xor eax, eax
mov dword [ebp - 0x48], 0x44
add esp, 0xc
mov dword [ebp - 0x1c], 1
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
movups xmmword [ebp - 0x58], xmm0
jb 0x415c07
mov esi, dword [esi]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x415c57
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x58]
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00428705
mov esp, ebp
pop ebp
ret

Function at 0x415f30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x9c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x98
push 0
push eax
mov dword [ebp - 0xa0], 0x9c
call fcn.00449530
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x415f91
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
mov dword [edi], ecx
mov dword [ebx], eax
cmp ecx, 5
jne 0x415fd2
test eax, eax
jne 0x415fba
push 0xf
push str.OS:Windows_2000
mov ecx, esi
call fcn.00407f90
jmp 0x41601b
cmp eax, 1
jne 0x415fc6
push str.OS:Windows_XP
jmp 0x416014
cmp eax, 2
jne 0x41601b
push str.OS:Windows_XP_64_Bit_Edition
jmp 0x416014
cmp ecx, 6
jne 0x416006
test eax, eax
jne 0x415fe2
push str.OS:Windows_Vista
jmp 0x416014
cmp eax, 1
jne 0x415fee
push str.OS:Windows_7
jmp 0x416014
cmp eax, 2
jne 0x415ffa
push str.OS:Windows_8
jmp 0x416014
cmp eax, 3
jne 0x41601b
push str.OS:Windows_8.1
jmp 0x416014
cmp ecx, 0xa
jne 0x41601b
test eax, eax
jne 0x41601b
push str.OS:Windows_10_and_Windows_11
mov ecx, esi
call fcn.00415690
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x416040
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4dc04c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x416075
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428705
mov esp, ebp
pop ebp
ret
push ebx
push 0x124
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0x128
push 0
push eax
call fcn.00449530
add esp, 0xc
lea eax, [ebp - 0x12c]
or ebx, 0xffffffff
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4160ce
push edi
mov edi, dword [ebp + 8]
nop
cmp dword [ebp - 0x124], edi
je 0x4160cb
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4160b0
jmp 0x4160cd
xor ebx, ebx
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00428705
mov esp, ebp
pop ebp
ret
Function at 0x41b650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x180], 0x80fe
mov dword [esi + 0x184], 0
je 0x41b6de
movzx ecx, byte [esi + 0x1fa]
movzx eax, byte [esi + 0x1fb]
xor ecx, 2
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1fc]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0xff
push ecx
call fcn.0041b120
mov dword [esi + 0x188], eax
movzx ecx, byte [esi + 0x1fd]
movzx eax, byte [esi + 0x1fe]
or ecx, 0xfffffe00
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1ff]
shl ecx, 8
or ecx, eax
push ecx
call fcn.0041b120
add esp, 8
mov dword [esi + 0x18c], eax
jmp 0x41b74c
push ebx
mov dword [esi + 0x188], 0
mov dl, 3
mov dword [esi + 0x18c], 0
xor bl, bl
nop word [eax + eax]
mov bh, byte [esi + 0x200]
cmp bl, bh
jae 0x41b74b
lea eax, [edx - 1]
cmp bl, 4
movzx ecx, al
movzx eax, dl
cmovne ecx, eax
mov al, cl
movzx ecx, bl
mov byte [ebp + 0xf], al
inc bl
movzx eax, al
add eax, 0x60
lea edx, [esi + eax*4]
movzx eax, bh
sub eax, ecx
and ecx, 3
shl ecx, 3
movzx eax, byte [eax + esi + 0x1f9]
shl eax, cl
or dword [edx], eax
mov dl, byte [ebp + 0xf]
cmp bl, 8
jb 0x41b700
pop ebx
mov eax, dword [esi + 0x180]
and eax, 0xc0ff
cmp eax, 0x80fe
je 0x41b762
xor eax, eax
jmp 0x41b76d
mov al, byte [esi + 0x206]
inc al
movzx eax, al
push 8
push 0
push esi
mov byte [esi + 0x190], al
call fcn.0041bab0
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x427240
Capabilities:
Allocate thread local storage

Disassembly:
push 0
call fcn.0046b67c
push eax
call fcn.0046b4ca
add esp, 8
call fcn.00427250
call fcn.004270e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4e1a7c], eax
ret
jmp 0x427170

Function at 0x47eabb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e6c0

Function at 0x483128
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482902

Function at 0x483133
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482b3d

Function at 0x483725
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004834ac

Function at 0x493ca6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x529a2eb6
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data_1
mov ebx, 0x42e1d0
nop
mov ecx, 0x5a954b97
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4021d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
jle 0x4021fa
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4021fe
push 1
pop eax
jmp 0x4022bd
test ebx, ebx
jl 0x40226d
push 0x10
push 0x405860
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, eax
cmp edi, 0xd
jne 0x4022bb
cmp dword [0x405867], 0x616c4357
jne 0x4022bb
push esi
call fcn.004022c4
test eax, eax
pop ecx
je 0x4022bb
push 0xc
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 8
jne 0x402251
cmp dword [ebp - 0xa], 0x8b8cf58d
je 0x40229f
cmp eax, 9
jne 0x40225f
cmp dword [ebp - 0xa], 0x68637261
je 0x40229f
cmp dword [ebp - 0xa], 0x67839383
je 0x40229f
test bl, 2
je 0x40229a
mov eax, dword [0x405b88]
cmp eax, 0x43
jge 0x40229a
inc eax
test bl, 4
mov dword [0x405b88], eax
mov dword [eax*4 + 0x405240], esi
je 0x40229a
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40229a
inc dword [0x405b84]
or edi, 0xffffffff
jmp 0x4022bb
test ebx, ebx
jne 0x4022bb
cmp dword [0x405b48], esi
je 0x4022bb
push 1
push esi
mov dword [0x405b48], esi
call fcn.004020a2
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402336
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x11
call esi
xor ebx, ebx
mov bx, ax
push 0x10
shr ebx, 0xf
call esi
movzx eax, ax
shr eax, 0xe
add ebx, eax
mov eax, dword [0x405b7c]
xor edi, edi
cmp dword [0x405b54], ebx
jne 0x402374
cmp eax, edi
jg 0x4024fe
cmp ebx, edi
mov dword [0x405b54], ebx
mov ecx, ebx
je 0x4023be
cmp eax, 0x8024
jne 0x4023be
push 1
and ebx, 2
pop eax
sub eax, ebx
add dword [0x405ad0], eax
mov al, byte [0x405ad0]
cmp al, 8
jae 0x4023a7
mov byte [0x405ad0], 8
jmp 0x4023b2
cmp al, 0x24
jbe 0x4023b2
mov byte [0x405ad0], 0x24
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4024fe
cmp ebx, 1
jg 0x4023e1
mov eax, dword [0x405b84]
je 0x4023cf
mov eax, dword [0x405b88]
mov ecx, dword [0x405b70]
sub eax, ecx
neg eax
sbb eax, eax
inc eax
lea ecx, [ebx + ecx*4]
jmp 0x402403
cmp ebx, 2
jne 0x4023f3
xor eax, eax
cmp dword [0x405b88], edi
sete al
jmp 0x402403
mov eax, dword [0x405b88]
sub eax, dword [0x405b84]
neg eax
sbb eax, eax
inc eax
mov esi, dword [sym.imp.USER32.dll_ModifyMenuA]
imul ecx, ecx, 0x11
add ecx, 0x405114
push ecx
mov ecx, 0x800f
push ecx
push eax
push ecx
push dword [0x405b2c]
call esi
cmp ebx, edi
je 0x40243e
cmp dword [0x405b70], edi
je 0x40243e
test bl, 1
push 8
mov eax, 0x4050f9
pop ecx
je 0x40245d
jmp 0x402458
xor ecx, ecx
cmp dword [0x405ae8], edi
mov eax, 0x4050e8
jle 0x40245d
cmp dword [0x405aec], edi
push 8
pop ecx
jle 0x40245d
mov ecx, 0x208
push eax
mov eax, 0x802a
push eax
push ecx
push eax
push dword [0x405b38]
call esi
push dword [0x405b88]
lea eax, [ebp - 0x18]
push 0x4050c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor ecx, ecx
and ebx, 1
cmp dword [0x405ae4], edi
lea eax, [ebp - 0x18]
setge cl
push eax
mov eax, 0x8029
push eax
xor ecx, ebx
shl ecx, 3
push ecx
push eax
push dword [0x405b2c]
call esi
mov eax, ebx
cmp eax, edi
jne 0x4024c0
mov eax, dword [0x405b40]
shr eax, 3
and eax, 2
jmp 0x4024cb
test byte [0x405b40], 8
je 0x4024cb
xor eax, eax
push 0x18
lea ecx, [ebp - 0x18]
push ecx
add eax, 5
push eax
push dword [0x405b28]
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [0x405b40]
lea eax, [ebp - 0x18]
push eax
mov eax, 0x800c
push eax
and ecx, 0xf
push ecx
push eax
push dword [0x405b2c]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032e9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
and eax, 0x18000000
cmp eax, 0x10000000
jne 0x403403
push 0x17
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, 6
jl 0x403403
lea eax, [ebp - 0x18]
push str.BUTTO
push eax
call fcn.00403a2e
test eax, eax
pop ecx
pop ecx
je 0x403351
mov eax, esi
and eax, 0xf
cmp al, 1
jne 0x403369
mov eax, dword [ebp + 0xc]
and dword [eax + 4], 0
mov dword [eax], ebx
jmp 0x4033ff
lea eax, [ebp - 0x18]
push 0x4051ee
push eax
call fcn.00403a2e
test eax, eax
pop ecx
pop ecx
je 0x403403
mov eax, esi
and eax, 0xf
cmp eax, 2
jl 0x403378
cmp eax, 9
jle 0x4033ea
lea eax, [ebp - 0x18]
push 0x4051f8
push eax
call fcn.00403a2e
test eax, eax
pop ecx
pop ecx
jne 0x4033ea
lea eax, [ebp - 0x18]
push 0x4051fc
push eax
call fcn.00403a2e
test eax, eax
pop ecx
pop ecx
jne 0x4033ea
lea eax, [ebp - 0x18]
push 0x405200
push eax
call fcn.00403a2e
test eax, eax
pop ecx
pop ecx
jne 0x4033ea
push 5
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x403403
xor esi, esi
mov edi, 0x4051c0
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00403a2e
test eax, eax
pop ecx
pop ecx
jne 0x4033ed
add edi, 4
inc esi
cmp edi, str.BUTTO
jl 0x4033cc
jmp 0x4033ed
push 0xb
pop esi
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax + 4]
jge 0x403403
cmp esi, 9
mov dword [eax], ebx
mov dword [eax + 4], esi
jge 0x403403
xor eax, eax
jmp 0x403406
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4e5c04ae
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3716533b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x408ecc
mov ecx, 0x72cb776e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x3d8a37a1
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4098da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040959a