joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4384d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 2
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
mov eax, esi
je 0x4384fa
mov dword [esi], 0
pop esi
add esp, 0x190
ret
mov cx, word [esp + 4]
mov word [0x48018a], cx
mov dword [esi], 0xffffffff
pop esi
add esp, 0x190
ret

Function at 0x438650
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 1
mov eax, dword [esi + 4]
test eax, eax
jl 0x438669
call fcn.004386c0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [esi + 4], eax
jge 0x438682
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 8]
push 4
push ecx
push 8
push 0xffff
push eax
call edi
test eax, eax
je 0x4386a3
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push 4
push edx
push 1
push 6
push eax
call edi
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
pop ecx
ret

Function at 0x4387b0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x4387c8
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x438817
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4387be
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x438811
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
add esp, 0x10
ret 8
Function at 0x438870
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x45698b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [esp + 4], 1
jge 0x4388aa
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0
push 0
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
test edi, edi
jge 0x4388cd
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push 0x2394
call fcn.00449d10
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4388fd
mov ecx, eax
call fcn.00438530
mov esi, eax
test esi, esi
je 0x4388ff
mov dword [esi + 4], edi
jmp 0x43890f
xor esi, esi
push 2
push edi
call dword [sym.imp.WSOCK32.dll_shutdown]
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x4389b3
mov eax, str._unavailable_
add esp, 0x14
ret

Function at 0x4389c0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4389eb
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4389e9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4389e9
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4389f0
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [0x48018a]
push esi
cmp al, 2
push edi
mov esi, ecx
jae 0x438a04
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x438a35
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
ret 4
Function at 0x438a60
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, dword [ebx + 0x2390]
push edi
lea ecx, [eax + edx]
cmp ecx, 0x2000
jle 0x438b13
mov ecx, 0x2000
mov esi, ebp
sub ecx, eax
lea edi, [eax + ebx + 0x68]
mov edx, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 0x68]
and ecx, 3
push 0x2000
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push ecx
call esi
mov eax, dword [ebx + 0x2390]
mov edx, dword [esp + 0x18]
sub ebp, eax
mov dword [ebx + 0x2390], 0
lea eax, [eax + edx - 0x2000]
add ebp, 0x2000
cmp eax, 0x2000
mov dword [esp + 0x14], eax
jbe 0x438b0f
mov eax, dword [ebx + 4]
push 0
push 0x2000
push ebp
push eax
call esi
test eax, eax
je 0x438b54
mov eax, dword [esp + 0x14]
add ebp, 0x2000
sub eax, 0x2000
cmp eax, 0x2000
mov dword [esp + 0x14], eax
ja 0x438ae3
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x2390]
mov ecx, edx
mov esi, ebp
push 0
lea edi, [ebx + eax + 0x68]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x2390]
lea ecx, [ebx + 0x68]
add esi, edx
mov edx, dword [ebx + 4]
mov eax, esi
mov dword [ebx + 0x2390], esi
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jne 0x438b5d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [ebx + 0x2390], 0
pop ebp
pop ebx
ret 8

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

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, dword [ebx + 0x2390]
push edi
lea ecx, [eax + edx]
cmp ecx, 0x2000
jle 0x438c33
mov ecx, 0x2000
mov esi, ebp
sub ecx, eax
lea edi, [eax + ebx + 0x68]
mov edx, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 0x68]
and ecx, 3
push 0x2000
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push ecx
call esi
mov eax, dword [ebx + 0x2390]
mov edx, dword [esp + 0x18]
sub ebp, eax
mov dword [ebx + 0x2390], 0
lea eax, [eax + edx - 0x2000]
add ebp, 0x2000
cmp eax, 0x2000
mov dword [esp + 0x14], eax
jbe 0x438c2f
mov eax, dword [ebx + 4]
push 0
push 0x2000
push ebp
push eax
call esi
test eax, eax
je 0x438c68
mov eax, dword [esp + 0x14]
add ebp, 0x2000
sub eax, 0x2000
cmp eax, 0x2000
mov dword [esp + 0x14], eax
ja 0x438c03
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x2390]
mov ecx, edx
mov esi, ebp
lea edi, [ebx + eax + 0x68]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x2390]
pop edi
add eax, edx
pop esi
mov dword [ebx + 0x2390], eax
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x43a6c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov ecx, 0x4815cc
jmp 0x43a6f0
Function at 0x43ac40
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x456af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x43ac90
mov al, byte [esp + 0xb]
lea ecx, [esp + 0xb]
push 0x45e6a8
push ecx
mov byte [esp + 0x13], al
call fcn.00449e79
mov eax, dword [0x4815dc]
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x43a8d0
push eax
push 0
call fcn.0044c0aa
mov ecx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
jne 0x43acd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x45e58c
push edx
mov dword [esp + 0x18], eax
call fcn.00449e79
mov eax, dword [esi + 0x20]
push eax
call fcn.0043b0f0
mov ecx, dword [esi + 0x44]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x43ad08
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x45e58c
push edx
mov dword [esp + 0x18], eax
call fcn.00449e79
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x43ad30
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x45e58c
push ecx
mov dword [esp + 0x18], eax
call fcn.00449e79
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4514b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x46eb70
cmp edx, dword [eax]
je 0x4514da
add eax, 8
inc ecx
cmp eax, 0x46ec00
jl 0x4514cb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x46eb70]
jne 0x451608
mov eax, dword [0x481658]
cmp eax, 1
je 0x4515e2
test eax, eax
jne 0x45150b
cmp dword [0x46c4f8], 1
je 0x4515e2
cmp edx, 0xfc
je 0x451608
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x451542
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004527f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0044fb90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x451585
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044fb90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45c8bc
push edi
call fcn.0044abe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004527f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00452800
lea eax, [ebp - 0xa0]
push 0x45c89c
push eax
call fcn.00452800
push dword [esi + 0x46eb74]
lea eax, [ebp - 0xa0]
push eax
call fcn.00452800
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045364d
add esp, 0x2c
pop edi
jmp 0x451608
lea eax, [ebp + 8]
lea esi, [esi + 0x46eb74]
push 0
push eax
push dword [esi]
call fcn.0044fb90
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 0x2a44a8c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x2a44a96
pushal
call 0x2a44a9c
pop ebp
sub ebp, 0x10
sub ebp, 0x2644a8c
jmp 0x2a44ab2
mov eax, 0x2644a8c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5db
mov edx, 0x48a4923c
xor byte [eax], dl
inc eax
dec ecx
jne 0x2a44ac9
jmp 0x2a44adc
mov bh, 0xf1
mov bh, 0xb5
add byte [esp + edi], bh
cmp al, 0xbd
std
les edi, [esp + edi]
cmp al, 0x3f
int1
test byte [eax], bh
cmp al, 0x3c
cmp al, 0x86
adc al, 0x3c
cmp al, 0x3c
retf

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 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 0x4596c3
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00459742
jae 0x4596cf
xor ecx, ecx
call fcn.00459742
jae 0x4596f9
xor eax, eax
call fcn.00459742
jae 0x45970a
mov al, 0x10
call fcn.00459742
adc al, al
jae 0x4596eb
jne 0x459737
stosb byte es:[edi], al
jmp 0x4596d0
call fcn.0045974e
dec ecx
loop 0x459716
mov eax, ebp
call fcn.0045974c
jmp 0x459738
lodsb al, byte [esi]
shr eax, 1
je 0x45975e
adc ecx, 2
mov ebp, eax
jmp 0x459738
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0045974c
cmp eax, 0x7d00
jae 0x459736
cmp eax, 0x500
jae 0x459737
cmp eax, 0x7f
ja 0x459738
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4596d0
pop ebp
ret 8
Function at 0x40100c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80e008]
jne 0x401016
repz ret
jmp fcn.004018a0

Function at 0x40924e
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.004053be
and dword [ebp - 4], 0
cmp dword [0x810774], 0
mov ebx, eax
jne 0x4092ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093b0
push eax
call fcn.0040534c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x810774], eax
call esi
push eax
call fcn.0040534c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x810778], eax
call esi
push eax
call fcn.0040534c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81077c], eax
call esi
push eax
call fcn.0040534c
pop ecx
mov dword [0x810784], eax
test eax, eax
je 0x4092ff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040534c
pop ecx
mov dword [0x810780], eax
mov eax, dword [0x810780]
cmp eax, ebx
je 0x409357
cmp dword [0x810784], ebx
je 0x409357
push eax
call fcn.004053c7
push dword [0x810784]
mov esi, eax
call fcn.004053c7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409357
test edi, edi
je 0x409357
call esi
test eax, eax
je 0x40934e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40934e
test byte [ebp - 0xc], 1
jne 0x409357
or dword [ebp + 0x10], 0x200000
jmp 0x409390
mov eax, dword [0x810778]
cmp eax, ebx
je 0x409390
push eax
call fcn.004053c7
pop ecx
test eax, eax
je 0x409390
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409390
mov eax, dword [0x81077c]
cmp eax, ebx
je 0x409390
push eax
call fcn.004053c7
pop ecx
test eax, eax
je 0x409390
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x810774]
call fcn.004053c7
pop ecx
test eax, eax
je 0x4093b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093b2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b770
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x2af88b4], 0x930
jne 0x40b78d
push str.dubewajucasolumejacejagipimibebi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x2af88b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2af85d0], eax
jne 0x40b7b3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x402834
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402871
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402891
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00404014
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402a50
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a7f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ecc
jmp 0x402a9d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402978
mov edi, eax
test ebx, ebx
je 0x402a9d
cmp dword [esi], 0
je 0x402a9d
dec ebx
jmp 0x402a86
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d1c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4df040], 0x8088405
inc edx
mov dword [0x4df040], edx
mul edx
mov eax, edx
ret

Function at 0x402d34
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4df040], 0x8088405
inc edx
mov dword [0x4df040], edx
fld qword [0x4dc02c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
ret

Function at 0x402f34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fac
xor eax, eax
push ebp
push 0x402fa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fe8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d98
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4df045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d60
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x428514
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x428568
mov eax, dword [0x4dde0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x428540
push ebx
push 0x428570
call fcn.004430cc
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x428564
mov ecx, dword [0x4ddad0]
mov dl, 1
mov eax, dword [0x407d24]
call fcn.0040a904
call fcn.00403814
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x428590
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x428602
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4285d6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403f9c
jmp 0x4285dd
mov eax, ebx
call fcn.00403de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428609
cmp dword [ebp - 8], 0
je 0x4285f9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.004284e8
ret

Function at 0x428610
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor edx, edx
push ebp
push 0x4286b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x428685
mov edx, ebx
mov eax, dword [0x415bfc]
call fcn.0041a608
test al, al
je 0x428675
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041a518
call fcn.004038b4
jmp 0x4286b9
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x428640
mov ecx, dword [0x4ddb6c]
mov dl, 1
mov eax, dword [0x407d24]
call fcn.0040a904
call fcn.00403814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4286b9
mov eax, dword [ebp - 4]
call fcn.004284e8
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4286c0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor eax, eax
push ebp
push 0x428718
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42871f
mov eax, dword [ebp - 4]
call fcn.004284e8
ret
Function at 0x42b668
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4df784], 0
sete dl
or al, dl
jne 0x42b7a8
mov eax, dword [0x4df788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4df784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42b777
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4df784]
call fcn.0040f280
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42b76f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42b76f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42b76f
mov eax, dword [ebp - 0x14]
call fcn.00433a50
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42b76f
push ebp
call fcn.0042b624
pop ecx
test al, al
jne 0x42b76f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42b72b
mov eax, dword [ebp - 0x14]
call fcn.00432330
dec eax
jle 0x42b76f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403298
cmp byte [ebp - 1], 0
je 0x42b76f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42b76f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4df788]
call fcn.0042ae70
inc edi
dec esi
jne 0x42b6be
mov eax, dword [0x4df788]
cmp dword [eax + 8], 0
jle 0x42b78f
mov eax, dword [0x4df788]
call fcn.0042af00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b7a8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042b48c
pop ecx
test al, al
jne 0x42b7a8
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret