joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404720
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x605008], 0x8088405
inc edx
mov dword [ebx + 0x605008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x41420c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4142b5
test eax, edx
je 0x4142b8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x414235
push edx
mov edx, eax
mov eax, esp
call fcn.0040792c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41424b
push eax
lea eax, [esp + 8]
call fcn.0040792c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41425a
movzx eax, word [eax]
sub eax, ecx
jmp 0x414281
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41429b
add ecx, 4
js 0x414272
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x414298
push eax
mov eax, ecx
mov edx, 2
call fcn.00406a50
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41427f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x414281
xor eax, eax
ret
test eax, eax
je 0x4142c8
test edx, edx
jne 0x41421c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d943
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406dcc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040c898
mov edi, eax
cmp edi, 0x104
jbe 0x41d966
mov eax, edi
add eax, eax
call fcn.004042e0
mov esi, eax
jmp 0x41d968
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040c898
push edi
push esi
call fcn.0040cd90
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41d9a1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41d98b
mov eax, esp
cmp esi, eax
je 0x41d9ae
mov eax, esi
call fcn.004042fc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41d9e8
cmp bl, 0
je 0x41d9e4
cmp bl, 0x41
jl 0x41d9df
cmp bl, 0x5a
jg 0x41d9df
or bl, 0x20
xor al, bl
inc esi
jmp 0x41d9c3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41d928

Function at 0x45c060
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x45c066
ret
Function at 0x4679dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x467b99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x467b75
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x467b75
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4679a8]
call fcn.004093e8
add esp, 4
lea eax, [ebp - 4]
call fcn.0040a894
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x60d620]
push eax
call fcn.0044d7a8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00409220
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00404c9c
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x45a9a0]
call fcn.00464368
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x467b53
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00465fe4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.00464c88
call fcn.0045f050
push eax
call fcn.0040cca8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00464ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467b75
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467ba0
lea eax, [ebp - 8]
mov edx, dword [0x4679a8]
call fcn.00409508
lea eax, [ebp - 4]
call fcn.0040a894
ret
Function at 0x4c9498
Capabilities:
Resolve function by parsing pe exports

Disassembly:
hlt
sbb byte [ebx - 0x25], ch
je 0x4c9428
push ebx
cmp byte [eax + 0x4ca638], bh
call fcn.0041d024
mov edi, eax
test edi, edi
je 0x4c94e1
lea eax, [ebp - 0x1c]
push eax
lea edx, [edi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebx + 0x38]
call 0xc10d07b3
mov eax, dword [ebp - 0x1c]
call fcn.00415354
mov dword [ebx + 0x40], eax
lea eax, [ebx + 0x38]
push eax
mov ecx, edi
dec ecx
xor edx, edx
mov eax, dword [ebx + 0x38]
call 0xc10d07cf
jmp 0x4c94e8
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x58], esi
lea eax, [ebp - 8]
push eax
call fcn.0040cf48
jmp 0x4c9516
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004ca6d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8b4ca624
lea eax, [ebp - 0x1c]
mov edx, 0x50d00003
invalid
invalid
invalid

Function at 0x4ed170
Capabilities:
Access peb ldr_data

Disassembly:
fdiv dword [ebx]
rcl byte [ebp + 0x68], 0x8b
loop 0x4ed1c6
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004ee140
mov eax, dword [ebp - 4]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee292
lea eax, [ebp - 4]
invalid
Function at 0x50e918
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x4c]
sub ecx, eax
mov edx, dword [ebp - 0x58]
add edx, 2
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x74db029c]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 0x24]
sub dword [ebp - 0x4c], eax
jmp 0x50fb7a

Function at 0x572598
Capabilities:
Packed with generic packer

Disassembly:
sub byte [edi + 0x27], dl
add byte [ecx + esi], dh
mov dword fs:[ecx], esp
cmp dl, byte [eax + 0x29]
je 0x5725d0
cmp byte [eax + 0x14], 0
je 0x5725cd
add byte [ebp - 4], dl
mov eax, dword [0x60d650]
call 0x8d57c7b9
add al, 0x4d
cld
mov dl, 1
mov eax, dword [0x2755a900]
call fcn.0055a9cc
call 0x8dc67be9
mov byte [eax + 0x29], dl
xor ecx, dword [ebp + 0x65]
outsb dx, byte [esi]
jne 0x5725d6
add byte [eax], al
adc byte [edi + 0x28], bl
push edi
add byte [eax], al
add byte [eax], al
adc byte [ebp + 0x72], ah
inc ebx
outsd dx, dword [esi]
insb byte es:[edi], dx
outsd dx, dword [esi]
jb 0x5725ec
add byte [eax], al
invalid

Function at 0x572674
Capabilities:
Packed with generic packer

Disassembly:
popal
add byte [eax - 2], bh
add byte [eax], al
inc eax
or al, 0x61
add byte [ecx - 2], bh
add byte [eax], al
inc eax
or al, 0x61
add byte [edx - 2], bh
add byte [eax], al
inc eax
or al, 0x61
add byte [ebx - 2], bh
add byte [eax], al
inc eax
or al, 0x61
popal
add byte [esi + edi*8], bh
add byte [eax + 0xc], al
popal
add byte [ebp - 2], bh
add byte [eax], al
inc eax
or al, 0x61
add byte [esi - 2], bh
add byte [eax], al
inc eax
or al, 0x61
add byte [edi - 2], bh
add byte [eax], al
inc eax
or al, 0x61
popal
Function at 0x401010
Capabilities:
Encode data using xor
Get common file path
Get file attributes
Get file size
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
mov ecx, dword [eax]
push ebx
push esi
push edi
push 0xf424a
push 0
mov dword [0x40ac64], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40c7f8
mov ebx, eax
push 0x800
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0x2000000
push 3
push 0
push 3
push 0x80000000
push 0x40c7f8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea edx, [ebp - 4]
push edx
push eax
xor esi, esi
mov dword [ebp - 4], 0x258
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp esi, 0x4e20
jbe 0x40108e
cmp dword [ebp - 4], 0
je 0x4010bc
push str.klolzMkcx
call edi
xor eax, eax
jmp 0x4010a0
movzx ecx, word [eax + str.Ndosa_ckxu_cnx_fdyuero_anad__djsaid_cn_n_sdfkldsa__udsioqnc]
mov word [eax + 0x40c7f8], cx
add eax, 2
test cx, cx
jne 0x4010a0
inc esi
cmp esi, 0xffffffff
jne 0x401080
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x413470
sub eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x109a0
lea esp, [esp]
call esi
call edi
call esi
call edi
call esi
call edi
call esi
call edi
call esi
call edi
call esi
call edi
call esi
call edi
mov eax, dword [0x40ac64]
mov ecx, dword [ebp - 0xc]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x40ac64], eax
shr eax, 0x10
xor al, byte [ecx + ebx]
inc ebx
sub dword [ebp - 8], 1
mov byte [ebx - 1], al
jne 0x4010e0
call dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4031e3
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.004020d2
and dword [ebp - 4], 0
cmp dword [0x40df00], 0
mov ebx, eax
jne 0x403294
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403345
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403345
push eax
call fcn.00402060
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40df00], eax
call esi
push eax
call fcn.00402060
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40df04], eax
call esi
push eax
call fcn.00402060
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40df08], eax
call esi
push eax
call fcn.00402060
pop ecx
mov dword [0x40df10], eax
test eax, eax
je 0x403294
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402060
pop ecx
mov dword [0x40df0c], eax
mov eax, dword [0x40df0c]
cmp eax, ebx
je 0x4032ec
cmp dword [0x40df10], ebx
je 0x4032ec
push eax
call fcn.004020db
push dword [0x40df10]
mov esi, eax
call fcn.004020db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4032ec
test edi, edi
je 0x4032ec
call esi
test eax, eax
je 0x4032e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4032e3
test byte [ebp - 0xc], 1
jne 0x4032ec
or dword [ebp + 0x10], 0x200000
jmp 0x403325
mov eax, dword [0x40df04]
cmp eax, ebx
je 0x403325
push eax
call fcn.004020db
pop ecx
test eax, eax
je 0x403325
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403325
mov eax, dword [0x40df08]
cmp eax, ebx
je 0x403325
push eax
call fcn.004020db
pop ecx
test eax, eax
je 0x403325
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40df00]
call fcn.004020db
pop ecx
test eax, eax
je 0x403345
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403347
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405078
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a9f8]
jne 0x405082
repz ret
jmp fcn.004067a5
Function at 0x403304
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x457020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40339c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40337c
xor eax, eax
push ebp
push 0x403375
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 0x4033b8
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 0x40337c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x457020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x457020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404080
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x4040e1
cmp word [0x45921c], 0xd7b2
jne 0x4040a9
cmp dword [0x459224], 0
jbe 0x4040a9
mov eax, 0x459218
call dword [0x459234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404108
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x457030], 0
jne 0x4040fd
push 0
push 0x457064
push 0x45706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e8e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404474
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e78
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e95
lea eax, [ebp - 0x10]
call fcn.00404204
ret

Function at 0x40b00c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b045
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042f4
jmp 0x40b04e
mov eax, ebx
mov edx, esi
call fcn.00404258
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b058
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b079
mov al, byte [esp]
jmp 0x40b07b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b710
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b578
mov eax, dword [0x458144]
cmp byte [eax], 0
je 0x40b78c
mov eax, dword [0x457f68]
call fcn.00402d34
call fcn.00402bb4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004087fc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b7d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x457f10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459664]
call fcn.00405294
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c030
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c106
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040429c
lea eax, [ebp - 8]
call fcn.00404714
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0f0
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c0e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c118
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0d3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0f0
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c10d
lea eax, [ebp - 8]
call fcn.00404204
ret

Function at 0x40c5e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c644
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404474
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408378
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c64b
lea eax, [ebp - 0xc]
call fcn.00404204
ret

Function at 0x41a7ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x459884
cmp dword [edi], 0
jne 0x41a868
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x459880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4573ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a7c4
lea eax, [esi + 5]
call fcn.0041a7e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a7e4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a83d
mov dword [0x459880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41ba9c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41baa2
ret
Function at 0x41e008
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e059
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e040
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e030
jmp 0x41e059
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e041
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ffb4
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42ff00
call sub.user32.dll_EnumWindows
ret

Function at 0x4300d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x430151
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042fb34
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4300f9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042f734
cmp dword [ebp - 4], 0
je 0x43013b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046c4
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430158
lea eax, [ebp - 4]
call fcn.00404204
ret

Function at 0x43330c
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 - 9]
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
cmp dword [0x459b54], 0
je 0x43345b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4580e4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43345b
mov eax, dword [0x459b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x459b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43342a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x459b54]
call fcn.00413dbc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x433422
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x433422
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x433422
mov eax, dword [ebp - 0x14]
call fcn.0043bfd8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x433422
push ebp
call fcn.004332c8
pop ecx
test al, al
jne 0x433422
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4333de
mov eax, dword [ebp - 0x14]
call fcn.0043ab08
dec eax
jle 0x433422
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403698
cmp byte [ebp - 1], 0
je 0x433422
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x433422
mov edx, dword [ebp - 0x14]
mov eax, dword [0x459b58]
call fcn.00432a94
inc edi
dec ebx
jne 0x433371
mov eax, dword [0x459b58]
cmp dword [eax + 8], 0
jle 0x433442
mov eax, dword [0x459b58]
call fcn.00432b24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43345b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00433130
pop ecx
test al, al
jne 0x43345b
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