joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4665bc]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x4665b8
mov dword [esp + 0x30], 0x4665b0
lea esi, [esp + eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 0
test eax, eax
je 0x452e29
add eax, 4
jmp 0x452e2b
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.00452150
lea ecx, [esp + 0x24]
call fcn.00447f40
push 0
lea ecx, [esp + 0x34]
call fcn.00447f80
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
test ebx, ebx
je 0x452e5e
lea ecx, [ebx - 1]
jmp 0x452e60
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov eax, 0x466588
test edx, edx
je 0x452e6f
mov eax, edx
cmp word [eax + ecx*2], 0x5c
je 0x452ee1
test ebx, ebx
je 0x452e7f
lea ecx, [ebx - 1]
jmp 0x452e81
xor ecx, ecx
test edx, edx
mov eax, 0x466588
je 0x452e8c
mov eax, edx
cmp word [eax + ecx*2], 0x2f
je 0x452ee1
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x452ea6
mov eax, 0x466588
cmp word [eax], 0x5c
je 0x452ecf
mov eax, dword [edi + 4]
test eax, eax
jne 0x452eb8
mov eax, 0x466588
cmp word [eax], 0x2f
je 0x452ecf
test ebx, ebx
je 0x452ecf
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.0040222a
mov ecx, dword [0x46659c]
neg esi
sbb esi, esi
push ecx
and esi, edi
push 0
push esi
jmp 0x452f24
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x452ef4
mov ecx, 0x466588
cmp word [ecx], 0x5c
je 0x452f10
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x452f06
mov ecx, 0x466588
cmp word [ecx], 0x2f
je 0x452f10
xor edx, edx
jmp 0x452f15
mov edx, 1
mov ecx, dword [0x46659c]
neg eax
sbb eax, eax
push ecx
and eax, esi
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004055fe
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, edi
mov dword [edi], 0x4665b8
mov dword [edi + 0x20], 0x4665b0
call fcn.00401ac2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x10]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0043b3dc
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.00401caf
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x458d10
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x465bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x458d7e
lea ecx, [esp + 0x14]
call fcn.00428a84
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x458db1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00458ef0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00419930
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00428a84
xor al, al
jmp 0x458ec4
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x458ddf
cmp eax, ebx
je 0x458dd9
cmp edi, ebx
je 0x458dd9
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x458e16
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x458e0e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x458e0e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x458e0e
cmp edi, ebx
je 0x458e0e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x458e61
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x458e43
cmp eax, ebx
je 0x458e3d
cmp ebp, ebx
je 0x458e3d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x458e6e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x458e5a
cmp edi, ebx
je 0x458e5a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x458e6a
cmp edi, ebx
je 0x458e6a
push eax
call edi
xor al, al
jmp 0x458ec4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.00458aa0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x458e9f
cmp ebp, ebx
je 0x458e9f
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x458eb2
cmp edi, ebx
je 0x458eb2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x458ec2
cmp edi, ebx
je 0x458ec2
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x459450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 2
mov dword [esi + 0x20], eax
and eax, 0xffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x459491
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4594a3
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.004594d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x45c060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield17.0Professional
push SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45c0ea
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c0df
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x45c0d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x45c0ea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x45cba6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.0045cd3a
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x45cd01
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0045cd78
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x45ccf7
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x45ccee
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x45ccc4
jg 0x45cc68
cmp ebx, edi
jbe 0x45ccc4
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x45cc91
call fcn.0043dee0
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0045cd10
jmp 0x45cca9
call fcn.0043dee0
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0045cd25
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x45cc68
jg 0x45ccc4
cmp esi, ebx
jb 0x45cc68
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45cce2
mov eax, dword [esi + 4]
cmp eax, edi
je 0x45cce2
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.0043b3dc
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x45cd3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.0043c1d4
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x45cd72
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x45cd57
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x402ea4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403368
Capabilities:
Query or enumerate registry value

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

Function at 0x4040e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x551048], 0
je 0x404145
cmp word [0x55121c], 0xd7b2
jne 0x40410d
cmp dword [0x551224], 0
jbe 0x40410d
mov eax, 0x551218
call dword [0x551234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x453070
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 0x40416c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x453034], 0
jne 0x404161
push 0
push 0x453068
push 0x453070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f08
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 0x405f6e
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.004044d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f2c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f58
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f75
lea eax, [ebp - 0x10]
call fcn.00404268
ret

Function at 0x40b038
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 0x40b071
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404358
jmp 0x40b07a
mov eax, ebx
mov edx, esi
call fcn.004042bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b73c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5a4
mov eax, dword [0x5502fc]
cmp byte [eax], 0
je 0x40b7b8
mov eax, dword [0x550128]
call fcn.00402d10
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.00408828
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 0x40b800
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5500dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x551664]
call fcn.00405374
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 0x40c05c
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 0x40c132
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404300
lea eax, [ebp - 8]
call fcn.00404778
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404728
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c11c
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c115
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.00404728
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c144
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0ff
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 0x40c11c
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c139
lea eax, [ebp - 8]
call fcn.00404268
ret

Function at 0x40c60c
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 0x40c670
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.004044d8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004083a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c677
lea eax, [ebp - 0xc]
call fcn.00404268
ret
Function at 0x41a8ec
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, 0x55188c
cmp dword [esi], 0
jne 0x41a992
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 [0x551888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4533ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a8c4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a8e4
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.0041a8e4
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 0x41a959
mov eax, dword [ebp - 8]
mov dword [0x551888], 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 0x41bb68
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 0x41bb6e
ret

Function at 0x41dfe0
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 0x41e031
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e018
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e008
jmp 0x41e031
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 0x41e019
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427118
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 0x427064
call sub.user32.dll_EnumWindows
ret

Function at 0x427238
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 0x4272b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00426c98
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 0x42725d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00426898
cmp dword [ebp - 4], 0
je 0x42729f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404728
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 0x4272bc
lea eax, [ebp - 4]
call fcn.00404268
ret

Function at 0x429f60
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 [0x551af0], 0
je 0x42a0af
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5502a0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42a0af
mov eax, dword [0x551af4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x551af0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42a07e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x551af0]
call fcn.00413dd8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42a076
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42a076
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42a076
mov eax, dword [ebp - 0x14]
call fcn.00432af8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42a076
push ebp
call fcn.00429f1c
pop ecx
test al, al
jne 0x42a076
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42a032
mov eax, dword [ebp - 0x14]
call fcn.00431628
dec eax
jle 0x42a076
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.004036fc
cmp byte [ebp - 1], 0
je 0x42a076
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42a076
mov edx, dword [ebp - 0x14]
mov eax, dword [0x551af4]
call fcn.004296e8
inc edi
dec ebx
jne 0x429fc5
mov eax, dword [0x551af4]
cmp dword [eax + 8], 0
jle 0x42a096
mov eax, dword [0x551af4]
call fcn.00429778
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a0af
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00429d84
pop ecx
test al, al
jne 0x42a0af
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