joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42214e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x4e35ac
call fcn.004908c5
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x828]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.0040c180
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x838]
push eax
xor ecx, ecx
push 0x20119
push ecx
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call esi
test eax, eax
je 0x4221ec
and dword [edi + 0x10], 0
and dword [edi + 0x14], 0
mov byte [ebp - 0x82c], 0
push dword [ebp - 0x82c]
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.004163b3
jmp 0x422300
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x422223
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov byte [ebp - 0x82c], al
jmp 0x4221d3
lea eax, [ebp - 0x830]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x42226b
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [ebp - 0x82c], bl
jmp 0x4221d3
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004bac70
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.004ca0fb
pop ecx
mov ecx, edi
test eax, eax
jne 0x4222f4
mov byte [ebp - 0x83c], bl
push dword [ebp - 0x83c]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
jmp 0x4221db
lea eax, [ebp - 0x810]
push eax
call fcn.0040c180
lea ecx, [ebp - 0x828]
call fcn.00407230
mov eax, edi
call fcn.00490880
ret
Function at 0x422313
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x830
mov eax, 0x4e35df
call fcn.004908c5
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x828]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.0040c180
xor ecx, ecx
lea eax, [ebp - 0x838]
push eax
push 0xf013f
push ecx
push str.SoftWare
push reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4223a8
xor eax, eax
mov ecx, edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov byte [ebp - 0x82c], al
push dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
push eax
call fcn.004163b3
jmp 0x4224a8
xor ecx, ecx
lea eax, [ebp - 0x834]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push esi
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x4223dc
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422381
xor ecx, ecx
lea eax, [ebp - 0x830]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x422417
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
jmp 0x422381
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004bac70
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.004ca0fb
pop ecx
mov ecx, edi
test eax, eax
jne 0x42249c
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [ebp - 0x82c], bl
jmp 0x422391
lea eax, [ebp - 0x810]
push eax
call fcn.0040c180
lea ecx, [ebp - 0x828]
call fcn.00407230
mov eax, edi
call fcn.00490880
ret
Function at 0x4224bb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422578
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x422519
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422577
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x42253f
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x422575
push dword [ebp + 0x14]
call fcn.004ca0fb
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x42292b
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004bac70
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop esi
jg 0x42298e
cmp dword [ebp - 0x118], 2
jg 0x42298e
xor eax, eax
inc eax
jmp 0x422990
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490604
leave
ret
Function at 0x42d7f0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x42d815
or esi, 1
push 2
call edi
test ax, ax
jns 0x42d821
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x42d82d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x42d839
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4312d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [edi + 0x4a8]
call fcn.00417390
mov ebx, dword [ebp + 8]
test eax, eax
jle 0x43133b
nop dword [eax]
push esi
lea ecx, [edi + 0x4a8]
mov byte [ebp - 5], 0
call fcn.004295a0
lea ecx, [ebp - 5]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push ebx
call dword [edx]
cmp byte [ebp - 5], 0
jne 0x4314ec
lea ecx, [edi + 0x4a8]
inc esi
call fcn.00417390
cmp esi, eax
jl 0x431300
sub ebx, 0x100
je 0x431428
sub ebx, 4
je 0x4313b3
sub ebx, 2
jne 0x431413
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
call fcn.004c9fb9
mov ecx, dword [edi + 0x104]
lea edx, [ebp - 0xc]
add esp, 4
mov word [ebp - 0xc], ax
mov eax, dword [ecx]
push reloc.WS2_32.dll_select
push edx
push 0x433470
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x431413
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x128]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490604
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x108], 0
je 0x431413
xor eax, eax
mov dword [ebp - 0x2c], 6
mov word [ebp - 0xe], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x18], ax
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x120]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x16], xmm0
mov dword [ebp - 0x1c], eax
call fcn.0042d7f0
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490604
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x431413
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x431486
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x431486
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10c]
call eax
test al, al
je 0x431486
mov ecx, dword [edi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004baf79
add esp, 8
test eax, eax
je 0x431486
mov ecx, dword [edi + 0x108]
call fcn.0045d580
test al, al
jne 0x431413
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x4314d3
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x4314d3
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10c]
call eax
test al, al
je 0x4314d3
mov ecx, dword [edi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004baf79
add esp, 8
test eax, eax
jne 0x431413
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, edi
setns al
movzx eax, al
push eax
call fcn.00432bd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490604
mov esp, ebp
pop ebp
ret 0x10
Function at 0x432750
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0xa8]
cmp eax, ecx
je 0x432786
cmp esi, dword [edi + 0x108]
je 0x432786
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x432879
test eax, eax
je 0x4327f1
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0x17
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0x108]
mov ecx, edi
call fcn.00432130
mov dword [edi + 0x108], 0
test esi, esi
je 0x432879
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x432879
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x432879
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x10c]
call eax
test al, al
je 0x432879
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0x108]
mov ecx, edi
call fcn.00432130
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00490604
mov esp, ebp
pop ebp
ret 4

Function at 0x433f20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x433f65
cmp byte [ebp + 8], 0
je 0x433f59
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4364b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4364e4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4364e4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4365dc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x436503
cmp dx, 0x5c
jne 0x436505
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4364f7
cmp edi, ebx
je 0x436553
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004ba170
add esp, 0xc
cmp edi, 0x208
jae 0x4365ec
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.004364b0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x436580
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x436570
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x436582
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4365a0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4365dc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00490604
mov esp, ebp
pop ebp
ret
call fcn.00490749
int3
Function at 0x436f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x4370fc
cmp dword [ebx + 4], 0xffffffff
jne 0x4370fc
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436f87
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x436fc3
cmp eax, 0x2f
je 0x436fc3
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x436fb0
mov eax, dword [0x4eb0a8]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x436fee
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x437009
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x437006
cmp edi, 3
je 0x437006
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x43704f
cmp edi, 2
jne 0x43706b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x437049
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x437055
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.0049033a
add esp, 4
mov esi, eax
cmp edi, 1
je 0x4370a6
cmp edi, 2
je 0x4370a6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x4370d7
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x4370d7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0043a0b0
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x437780
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4ee450]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ee450]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x439c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x439c9b
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439c83
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490604
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 8]
call fcn.004ba170
add dword [edi + 0x1c], esi
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
xor ecx, ebp
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
call fcn.00490604
mov esp, ebp
pop ebp
ret

Function at 0x439ce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x439cee
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x439dad
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
sub edi, 1
jne 0x439d06
pop edi
test esi, esi
je 0x439dcb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4ee450]
sub esi, 1
jne 0x439db1
not eax
pop esi
pop ebp
ret
Function at 0x44b980
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0044baf0
Function at 0x45fad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x69c], 0
je 0x45fb3d
cmp dword [ebp + 8], 0x100
jne 0x45fb2d
cmp word [ebp + 0xc], 0xd
jne 0x45fb2d
cmp byte [esi + 0x6a2], 0
je 0x45fb0e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x45fb2d
cmp byte [esi + 0x6a3], 0
jne 0x45fb2d
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x45fb26
push 0
push 0
push 0
push str.return
push esi
call fcn.00432130
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x69c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x462640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4780
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x51a230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x10
test edx, edx
je 0x4626fb
cmp word [eax], 0x3c
je 0x4626fb
mov ecx, dword [0x51cc40]
test cl, 1
jne 0x4626e2
or ecx, 1
mov dword [0x51cc40], ecx
push 0x1f8
mov dword [ebp - 4], 0
call fcn.0049033a
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4626ce
push 0x1f8
push 0
push edi
call fcn.004bac70
add esp, 0xc
mov ecx, edi
call fcn.0043e590
mov ecx, eax
jmp 0x4626d0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [0x51cc3c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x4626e8
mov ecx, dword [0x51cc3c]
push eax
call fcn.0043e8c0
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [ebp + 8], eax
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x462756
cmp word [eax], 0x3c
mov ecx, esi
jne 0x462730
push eax
call fcn.004602f0
test al, al
jne 0x4627e5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0
push eax
call fcn.00460400
test al, al
jne 0x4627e5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [esi + 0x148]
test edi, edi
jne 0x46276a
call fcn.0042d480
mov edi, eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46271a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4627a7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
push 0
push ebx
push edi
mov dword [esi + 0x140], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.00460820
test al, al
je 0x46271a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x144], eax
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004614d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14