joyce8/EMBER2024-capa huggingface dataset:
Function at 0x581b4c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x581b54
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x581d46
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x581d5c
mov eax, esi
call fcn.0057f9d8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004050fc
lea ecx, [ebp - 0x10]
mov edx, 0x581d70
mov eax, esi
call fcn.0057f9d8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004050fc
lea ecx, [ebp - 0x14]
mov edx, 0x581d88
mov eax, esi
call fcn.0057f9d8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004050fc
lea ecx, [ebp - 0x18]
mov edx, 0x581da4
mov eax, esi
call fcn.0057f9d8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004050fc
lea ecx, [ebp - 0x1c]
mov edx, 0x581dc0
mov eax, esi
call fcn.0057f9d8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004050fc
lea ecx, [ebp - 0x24]
mov edx, 0x581dd8
mov eax, esi
call fcn.0057f9d8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040aed0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040b34c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x581df0
mov eax, esi
call fcn.0057f9d8
mov eax, dword [ebp - 0x28]
call fcn.005794b0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x581e00
mov eax, esi
call fcn.0057f9d8
mov eax, dword [ebp - 0x2c]
call fcn.005794b0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x581e18
mov eax, esi
call fcn.0057f9d8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040b34c
inc eax
je 0x581ce9
lea ecx, [ebp - 0x34]
mov edx, 0x581e18
mov eax, esi
call fcn.0057f9d8
mov eax, dword [ebp - 0x34]
call fcn.0040b310
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040cb08
fstp qword [ebp - 0x3c]
wait
call fcn.0040ce78
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x581d04
lea ecx, [ebp - 0x40]
mov edx, 0x581e18
mov eax, esi
call fcn.0057f9d8
mov eax, dword [ebp - 0x40]
call fcn.005794b0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x581e28
mov eax, esi
call fcn.0057f9d8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004050fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581d4d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004050cc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004050cc
ret
Function at 0x588ad8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x588b32
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00588ac8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0057811c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00577d1c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588b39
lea eax, [ebp - 4]
call fcn.004050a8
ret

Function at 0x590bc4
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405558
xor eax, eax
push ebp
push 0x590dbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402dc8
mov esi, eax
push esi
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x590ddc
call fcn.0040b88c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00405368
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.004055c8
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.004052a0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
pop ecx
call fcn.004053b4
mov eax, dword [edi]
call fcn.00405368
cmp eax, 2
jle 0x590c69
lea eax, [ebp - 0x10]
mov edx, dword [edi]
call fcn.00405140
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x590ddc
call fcn.0040b88c
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004055c8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00405140
push 0x80
mov eax, dword [ebp - 0x10]
call fcn.00405568
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
push ebp
push 0x590cd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41da8c]
call fcn.00422ca0
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590d16
xor eax, eax
push ebp
push 0x590d6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.005897ec
mov eax, dword [ebx + 8]
call fcn.0058afc0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
call fcn.004041a8
cmp byte [ebp - 5], 0
je 0x590d5b
push 1
mov eax, dword [ebp - 0x10]
call fcn.00405568
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.004050fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590d8f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x590dc6
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004050cc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004050cc
lea eax, [ebp - 4]
call fcn.004050a8
ret
Function at 0x595010
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x59503e
mov eax, ebx
call fcn.00595ac4
cmp dword [ebx + 0x40], 0
je 0x595037
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5950af
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5950a1
cmp dword [ebx + 8], 0
je 0x595060
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x595072
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5950a1
cmp dword [ebx + 8], 0
je 0x595053
cmp eax, 3
je 0x595085
dec eax
jne 0x595053
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x595053
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x595053
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5950cd
cmp dword [ebx + 0x14], 0xcc
je 0x5950cd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005950d8
pop ebx
ret

Function at 0x5a5f00
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.0040886c
ret
Function at 0x5a6028
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405558
xor eax, eax
push ebp
push 0x5a6176
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.005a5f00
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405568
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x5a6155
xor eax, eax
push ebp
push 0x5a614e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5a6137
xor eax, eax
push ebp
push 0x5a6130
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5a6119
xor eax, eax
push ebp
push 0x5a6112
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.005a5f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6119
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6137
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6155
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.005a5fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a617d
lea eax, [ebp - 4]
call fcn.004050a8
ret
Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043cc
test esi, esi
jne 0x402e23
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.004044bc
jmp 0x402e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c88
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4034c4
Capabilities:
Query or enumerate registry value

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

Function at 0x404248
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x4042a9
cmp word [0x45821c], 0xd7b2
jne 0x404271
cmp dword [0x458224], 0
jbe 0x404271
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x456070
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 0x4042d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456034], 0
jne 0x4042c5
push 0
push 0x456068
push 0x456070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406020
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 0x406086
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.0040463c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403088
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406070
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40608d
lea eax, [ebp - 0x10]
call fcn.004043cc
ret

Function at 0x40b1dc
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 0x40b215
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044bc
jmp 0x40b21e
mov eax, ebx
mov edx, esi
call fcn.00404420
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b8e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b748
mov eax, dword [0x4575c4]
cmp byte [eax], 0
je 0x40b95c
mov eax, dword [0x4573f0]
call fcn.00402ed8
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.004088e0
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 0x40b9a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b992
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4573a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x458664]
call fcn.0040548c
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 0x40c200
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 0x40c2d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404464
lea eax, [ebp - 8]
call fcn.004048dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2c0
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2b9
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.0040488c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c2e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2a3
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 0x40c2c0
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2dd
lea eax, [ebp - 8]
call fcn.004043cc
ret

Function at 0x40c7b0
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 0x40c814
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.0040463c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040845c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c81b
lea eax, [ebp - 0xc]
call fcn.004043cc
ret
Function at 0x41aaf8
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, 0x458884
cmp dword [esi], 0
jne 0x41ab9e
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 [0x458880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4563f0
mov ecx, 2
call fcn.00402c48
mov edx, 0x41aad0
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041aaf0
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.0041aaf0
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 0x41ab65
mov eax, dword [ebp - 8]
mov dword [0x458880], 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 0x41bd74
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 0x41bd7a
ret

Function at 0x41e228
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 0x41e279
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e260
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e250
jmp 0x41e279
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 0x41e261
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b46c
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 0x42b3b8
call sub.user32.dll_EnumWindows
ret

Function at 0x42b58c
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 0x42b609
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042afec
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 0x42b5b1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042abec
cmp dword [ebp - 4], 0
je 0x42b5f3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040488c
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 0x42b610
lea eax, [ebp - 4]
call fcn.004043cc
ret

Function at 0x42e5dc
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 [0x458ae8], 0
je 0x42e72b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x457564]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42e72b
mov eax, dword [0x458aec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x458ae8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42e6fa
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x458ae8]
call fcn.00413fe4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42e6f2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42e6f2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42e6f2
mov eax, dword [ebp - 0x14]
call fcn.0043729c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42e6f2
push ebp
call fcn.0042e598
pop ecx
test al, al
jne 0x42e6f2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42e6ae
mov eax, dword [ebp - 0x14]
call fcn.00435dcc
dec eax
jle 0x42e6f2
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.00403860
cmp byte [ebp - 1], 0
je 0x42e6f2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42e6f2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x458aec]
call fcn.0042dd64
inc edi
dec ebx
jne 0x42e641
mov eax, dword [0x458aec]
cmp dword [eax + 8], 0
jle 0x42e712
mov eax, dword [0x458aec]
call fcn.0042ddf4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42e72b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042e400
pop ecx
test al, al
jne 0x42e72b
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
Function at 0x431d20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x431d6c
mov eax, esi
call fcn.00447634
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431d6c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x431d6c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x431eab
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x431dac
cmp eax, 0x108
ja 0x431dac
mov eax, esi
call fcn.00447634
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431ea2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x431eab
jmp 0x431ea2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x431e8b
cmp eax, 0x20a
ja 0x431e8b
test byte [esi + 0x50], 0x80
jne 0x431dde
sub eax, 0x203
je 0x431ddb
sub eax, 3
je 0x431ddb
sub eax, 3
jne 0x431dde
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x431df2
dec eax
je 0x431e07
dec eax
je 0x431e24
dec eax
je 0x431e07
jmp 0x431e2b
mov ecx, ebx
mov eax, dword [0x457564]
mov eax, dword [eax]
mov edx, esi
call fcn.00450efc
jmp 0x431ea2
cmp byte [esi + 0x5d], 1
jne 0x431e1d
mov eax, esi
mov si, 0xffed
call fcn.00403860
jmp 0x431eab
or word [esi + 0x54], 1
jmp 0x431ea2
and word [esi + 0x54], 0xfffe
jmp 0x431ea2
mov eax, dword [0x458aa4]
cmp byte [eax + 0x20], 0
je 0x431ea2
mov eax, dword [0x458aa4]
cmp dword [eax + 0x1c], 0
je 0x431ea2
mov eax, dword [ebx]
mov edx, dword [0x458aa4]
cmp eax, dword [edx + 0x1c]
jne 0x431ea2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00447578
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403860
jmp 0x431eab
cmp eax, 0xb00b
jne 0x431ea2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00430640
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret