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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x40181e
xor eax, eax
jmp 0x401854
mov eax, dword [esi + 4]
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov edi, 0x10000
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401857
mov eax, dword [ebp - 4]
test eax, eax
je 0x40185f
add dword [esi + 0xc], eax
sub edi, eax
jne 0x40182d
xor eax, eax
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401853
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
sbb eax, eax
and eax, 0xffffffda
add eax, 0x26
jmp 0x401853

Function at 0x401948
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi + 8]
mov dword [esi + 8], eax
jmp 0x40197b
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40198b
mov eax, dword [ebp - 4]
test eax, eax
je 0x401993
add dword [esi + 8], eax
sub edi, eax
jne 0x40195b
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401987
push 0x27
pop eax
jmp 0x401987
Function at 0x401a49
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov esi, ecx
test esi, esi
mov edi, edx
mov dword [ebp - 0x10], edi
je 0x401c15
test edi, edi
je 0x401c15
mov eax, dword [esi + 0x54]
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
je 0x401a9c
push dword [ebp + 8]
push 0
push 0x1400
push eax
call ebx
lea eax, [edi + 0x10]
push eax
push 0
push 0x1401
push dword [esi + 0x54]
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401a9c
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ab7
and eax, 0xfffffffa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, 0x10000
lea ecx, [ebp - 0x30]
call fcn.004018ff
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
jne 0x401af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401c08
mov eax, dword [esi + 0x50]
mov ecx, dword [edi + 0x14]
test ecx, ecx
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], 0x4018c3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
ja 0x401b6a
test eax, eax
ja 0x401b6a
lea eax, [edi + 0x20]
push eax
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x30]
call fcn.0040191f
test eax, eax
mov dword [ebp - 4], eax
jne 0x401b41
push dword [edi + 0x28]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x401b5e
push dword [ebp - 4]
push 0
push 0x1403
push eax
call ebx
mov esi, dword [esi + 0x58]
test esi, esi
je 0x401b5e
call esi
mov eax, dword [ebp - 4]
pop ebx
jmp 0x401c18
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
sub edi, dword [ebp - 0x28]
xor ecx, ecx
cmp ecx, dword [ebp - 0x14]
jb 0x401b7f
ja 0x401b7d
cmp edi, eax
jbe 0x401b7f
mov edi, eax
sub eax, edi
sbb dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call fcn.00401f9e
add esp, 0x14
test eax, eax
jne 0x401bef
cmp dword [ebp - 0xc], edi
jne 0x401bf8
add dword [ebp - 0x28], edi
lea ecx, [ebp - 0x30]
call fcn.00401948
test eax, eax
mov dword [ebp - 4], eax
jne 0x401c08
mov eax, dword [esi + 0x54]
test eax, eax
je 0x401bd9
push edi
push 0
push 0x1402
push eax
call ebx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x401bd9
call eax
test eax, eax
je 0x401c01
cmp dword [ebp - 0x14], 0
ja 0x401b67
jb 0x401be7
cmp dword [ebp - 0x18], 0
ja 0x401b67
mov edi, dword [ebp - 0x10]
jmp 0x401b15
mov dword [ebp - 4], 0x1e
jmp 0x401c08
mov dword [ebp - 4], 0x26
jmp 0x401c08
mov dword [ebp - 4], 0x4c7
lea ecx, [ebp - 0x30]
call fcn.0040191f
jmp 0x401b41
push 0x57
pop eax
pop edi
pop esi
leave
ret 4
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x402ed4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f2d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d70
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d70
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f17
inc ebx
jmp 0x402f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f34
lea eax, [ebp - 8]
call fcn.00404cd4
ret

Function at 0x402f3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cd4
test esi, esi
jne 0x402f73
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dc4
jmp 0x402f94
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d70
mov dword [esp], eax
test esi, esi
je 0x402f94
cmp dword [ebx], 0
je 0x402f94
dec esi
jmp 0x402f7b
add esp, 0x10c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4e1008], 0x8088405
inc edx
mov dword [ebx + 0x4e1008], edx
mul edx
mov eax, edx
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4e1008], 0x8088405
inc edx
mov dword [ebx + 0x4e1008], edx
fld qword [ebx + 0x4e106c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403c4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ce4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403cc4
xor eax, eax
push ebp
push 0x403cbd
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 0x403d00
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 0x403cc4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4e1024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e1024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404aac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e404c], 0
je 0x404b0d
cmp word [0x4e4220], 0xd7b2
jne 0x404ad5
cmp dword [0x4e4228], 0
jbe 0x404ad5
mov eax, 0x4e421c
call dword [0x4e4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e107c
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 0x404b34
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e1034], 0
jne 0x404b29
push 0
push 0x4e1074
push 0x4e107c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c88
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.00402b10
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c50
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406f14
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 0x406f7a
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.00404f44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403810
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f81
lea eax, [ebp - 0x10]
call fcn.00404cd4
ret

Function at 0x40c668
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 0x40c6a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dc4
jmp 0x40c6aa
mov eax, ebx
mov edx, esi
call fcn.00404d28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6b4
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 0x40c6d5
mov al, byte [esp]
jmp 0x40c6d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cd6c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cbd4
mov eax, dword [0x4e3a68]
cmp byte [eax], 0
je 0x40cde8
mov eax, dword [0x4e36c0]
call fcn.004033f4
call fcn.00402c9c
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.00409e24
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 0x40ce30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce1e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e3644]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e4668]
call fcn.00406364
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 0x40d6e0
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 0x40d7b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d6c
lea eax, [ebp - 8]
call fcn.004051e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d7a0
mov eax, ebx
call fcn.00402b10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d799
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.00405194
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d783
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d7c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d783
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 0x40d7a0
mov eax, dword [ebp - 0x10]
call fcn.00402b40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7bd
lea eax, [ebp - 8]
call fcn.00404cd4
ret

Function at 0x40dd1c
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 0x40dd80
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.00404f44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409938
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd87
lea eax, [ebp - 0xc]
call fcn.00404cd4
ret
Function at 0x41f52c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x4e4898
cmp dword [esi], 0
jne 0x41f5d2
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4e4894]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4e1410
mov ecx, 2
call fcn.00402d30
mov edx, 0x41f504
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041f524
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041f524
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41f599
mov eax, dword [ebp - 8]
mov dword [0x4e4894], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420ad0
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 0x420ad6
ret

Function at 0x422f54
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 0x422fa5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422f8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422f7c
jmp 0x422fa5
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 0x422f8d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429250
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x408200]
call fcn.00405790
xor eax, eax
push ebp
push 0x429394
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e1740], 0
jne 0x4292a3
mov ecx, dword [0x4e34f4]
mov dl, 1
mov eax, dword [0x408880]
call fcn.0040cefc
call fcn.00404644
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004035dc
mov eax, ebx
call fcn.0040553c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4293a4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004069dc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040554c
test eax, eax
jle 0x42933b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x429334
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404f5c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404f44
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409650
test eax, eax
jne 0x429334
mov ebx, 0x15
jmp 0x429340
mov ebx, 0x10
jmp 0x429340
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e1740]
call fcn.004290c8
mov eax, dword [ebp - 8]
call fcn.004290c8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004069f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42939b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404cf8
lea eax, [ebp - 0x10]
mov edx, dword [0x408200]
call fcn.00405860
ret

Function at 0x42f0e0
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 0x42f02c
call sub.user32.dll_EnumWindows
ret

Function at 0x42f200
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 0x42f27d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042ec60
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42f225
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042e860
cmp dword [ebp - 4], 0
je 0x42f267
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00405194
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 0x42f284
lea eax, [ebp - 4]
call fcn.00404cd4
ret
Function at 0x432770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4327c0]
test si, 4
je 0x432784
or bl, 1
test si, 8
je 0x43278e
or bl, 4
test si, 1
je 0x432798
or bl, 8
test si, 2
je 0x4327a2
or bl, 0x10
test si, 0x10
je 0x4327ac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4327bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4327c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4327fc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4327dd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4327ec
or bl, 4
test esi, 0x20000000
je 0x4327f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x438ed8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x438eea
add esp, 0xfffffff0
call fcn.00404118
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e3bc
mov eax, dword [0x4e3654]
mov dword [eax + 4], ebx
mov dword [eax], 0x43927c
mov eax, dword [0x4e3668]
mov dword [eax + 4], ebx
mov dword [eax], 0x439288
mov eax, ebx
call fcn.00439294
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4165d4]
call fcn.00403db0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4165d4]
call fcn.00403db0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4165d4]
call fcn.00403db0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4165d4]
call fcn.00403db0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4165d4]
call fcn.00403db0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4356ac
push eax
push 0
push 0
mov eax, dword [0x4e38c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fedc]
call fcn.0042163c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fedc]
call fcn.0042163c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fedc]
call fcn.0042163c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00439708
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4395d0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4395d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4395d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x439027
call fcn.00404170
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret