joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a3fe
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004020a3
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c7036
leave
ret

Function at 0x40a452
Capabilities:
Check if file exists
Get common file path
Query environment variable

Disassembly:
push 0x218
mov eax, 0x50780a
call fcn.004c8468
mov edi, ecx
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x224]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push str.SoftwareZuma
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a4f9
mov eax, dword [ebp - 0x224]
push 0x20a
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004df090
add esp, 0xc
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.DownPath
call fcn.00406568
test eax, eax
jne 0x40a4f3
lea eax, [ebp - 0x21c]
lea ecx, [edi + 0x1c]
push eax
call fcn.004020d1
mov esi, dword [ebp - 0x220]
cmp dword [edi + 0x2c], ebx
je 0x40a514
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x40a509
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a586
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push str._USERPROFILE_Downloads
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a56a
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x21c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
lea ecx, [edi + 0x1c]
push eax
call fcn.004020d1
test esi, esi
je 0x40a591
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004c8412
ret
Function at 0x40a6bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push edi
jb 0x40a6e2
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x40a746
and dword [ebp - 8], 0
lea ecx, [ebp - 0x20]
mov edx, esi
call fcn.0040167e
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 8]
push 0
push ecx
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0040216d
push 0xfffffffffffffffe
xor edi, edi
test esi, esi
pop eax
push ebx
cmove edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret 8
Function at 0x40b525
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x494
mov eax, 0x507a1d
call fcn.004c8468
mov esi, dword [ecx + 0x8ec]
mov eax, dword [ecx + 0x8f0]
cmp esi, eax
je 0x40b6fc
mov ecx, dword [ebp + 0xc]
cmp dword [esi], ecx
je 0x40b55e
add esi, 0x90
cmp esi, eax
jne 0x40b54b
jmp 0x40b6fc
lea eax, [esi + 0x18]
xor edi, edi
push eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x45c], edi
call fcn.0040470d
lea eax, [ebp - 0x488]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x458]
call fcn.004048a2
pop ecx
lea ecx, [ebp - 0x488]
call fcn.004020a3
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 4
call fcn.004020a3
lea eax, [ebp - 0x440]
push edi
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
push 8
pop ebx
mov byte [ebp - 4], 5
lea eax, [esi + 0x48]
cmp dword [esi + 0x5c], ebx
jb 0x40b5eb
mov eax, dword [esi + 0x48]
push dword [esi + 0x58]
lea ecx, [ebp - 0x440]
push eax
call fcn.00402447
cmp dword [ebp - 0x42c], ebx
lea eax, [ebp - 0x440]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x440]
push eax
call esi
test eax, eax
je 0x40b66f
push 0x412
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004df090
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], ebx
cmovae eax, dword [ebp - 0x440]
push eax
push str._select____s_
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push 0x208
push eax
call fcn.0040145e
add esp, 0x14
lea eax, [ebp - 0x428]
push 0xa
push edi
push eax
push str.explorer
jmp 0x40b6a1
cmp dword [ebp - 0x444], ebx
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
call esi
test eax, eax
je 0x40b6af
cmp dword [ebp - 0x444], ebx
lea eax, [ebp - 0x458]
push 0xa
cmovae eax, dword [ebp - 0x458]
push eax
push edi
push edi
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40b6e6
lea eax, [ebp - 0x4a0]
push edi
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
cmp dword [eax + 0x14], ebx
jb 0x40b6ca
mov eax, dword [eax]
push 0xa
push eax
push edi
push edi
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x4a0]
call fcn.004020a3
lea ecx, [ebp - 0x440]
call fcn.004020a3
lea ecx, [ebp - 0x458]
call fcn.004020a3
call fcn.004c8412
ret 8
Function at 0x40b704
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.0040a009
mov ecx, eax
call fcn.0040a3b5
cmp eax, 5
jne 0x40b72f
push 2
pop eax
jmp 0x40b7b3
xor edi, edi
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 2
cmovae eax, dword [ebp - 0x30]
push eax
push 3
pop esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push esi
push eax
mov word [ebp - 8], di
call fcn.004e63c3
add esp, 0x10
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40b7a7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004c8130
mulsd xmm0, qword [0x537d70]
call fcn.004c8010
cmp dword [ebp - 0x14], edx
ja 0x40b7a7
jb 0x40b7a9
cmp dword [ebp - 0x18], eax
jb 0x40b7a9
mov esi, edi
lea ecx, [ebp - 0x30]
call fcn.004020a3
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c7036
leave
ret 8
Function at 0x40d8f3
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x507f15
call fcn.004c8468
mov edi, ecx
lea eax, [edi + 0x9a0]
cmp dword [eax + 0x14], 0x10
jb 0x40d90f
mov eax, dword [eax]
push 1
xor ebx, ebx
push ebx
push ebx
push eax
push 0x52b114
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 4
call fcn.004c7247
mov esi, eax
pop ecx
mov dword [ebp - 0x30], esi
mov dword [esi], edi
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x24]
xor eax, eax
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040371f
mov dword [ebp - 0x24], 0x52d7a4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.004037e5
cmp dword [ebp - 0x14], ebx
je 0x40d974
push 4
push dword [ebp - 0x14]
call fcn.004c7511
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00403797
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00403873
cmp dword [ebp - 0x28], 0
jne 0x40d999
call fcn.004c8412
ret 4
call fcn.004e59f8
int3

Function at 0x40f535
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
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x40f558
or esi, 1
push 2
call edi
test ax, ax
jns 0x40f564
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x40f570
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x40f57c
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4109f3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x410], ebx
jle 0x410a40
mov eax, dword [esi + 0x40c]
lea edx, [ebp - 5]
mov byte [ebp - 5], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp - 5], 0
jne 0x410a9e
inc ebx
cmp ebx, dword [esi + 0x410]
jl 0x410a15
sub edi, 0x100
je 0x410b15
sub edi, 4
je 0x410aa2
dec edi
sub edi, 1
jne 0x410b02
push dword [ebp + 0xc]
and dword [ebp - 0xc], edi
call fcn.004e6745
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp - 0xc]
push reloc.WS2_32.dll_select
mov word [ebp - 0xc], ax
push edx
mov eax, dword [ecx]
push 0x41565f
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x410b02
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x410b04
cmp dword [esi + 0x108], 0
je 0x410b02
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 [esi + 0x11c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x120]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x16], xmm0
mov dword [ebp - 0x1c], eax
call fcn.0040f535
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x410b02
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x410b6e
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x410b6e
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x410b6e
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004deb5e
pop ecx
pop ecx
test eax, eax
je 0x410b6e
mov eax, dword [esi + 0x108]
cmp byte [eax + 0x6a1], 0
jne 0x410b02
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x410bb6
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x410bb6
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x410bb6
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004deb5e
pop ecx
pop ecx
test eax, eax
jne 0x410b02
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.00413f52
jmp 0x410a9e
Function at 0x413aec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x54847c]
xor eax, esp
mov dword [esp + 0x24], 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 0x413b26
cmp esi, dword [edi + 0x108]
je 0x413b26
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x413c1e
test eax, eax
je 0x413b94
xorps xmm0, xmm0
mov dword [esp + 0xc], 0x17
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x108]
call fcn.00414170
and dword [edi + 0x108], 0
test esi, esi
je 0x413c1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x413c1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x413c1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x413c1e
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x108]
call fcn.00414170
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.004c7036
mov esp, ebp
pop ebp
ret 4
Function at 0x41a9a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41a9b1
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41aa6d
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
sub edi, 1
jne 0x41a9c6
pop edi
test esi, esi
je 0x41aa89
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
inc edx
sub esi, 1
jne 0x41aa71
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x41aa90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x52cd50]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x52cd50]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x41b218
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 8], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x41b25c
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b257
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41b286
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004df1f0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
mov ecx, dword [ebp - 4]
xor edx, edx
div ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret
Function at 0x41c080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x41c140
cmp dword [esi + 4], 0xffffffff
jne 0x41c140
lea edi, [esi + 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
cmp ax, bx
jne 0x41c0b4
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x41c0eb
cmp eax, 0x2f
je 0x41c0eb
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x41c0d8
mov eax, dword [0x52b850]
mov dword [edi], eax
cmp dword [ebp + 0x10], 1
jne 0x41c10a
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41c10a
mov eax, 0x2000000
jmp 0x41c145
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.0041b080
pop ecx
pop ecx
test eax, eax
jne 0x41c127
mov eax, dword [ebp - 4]
jmp 0x41c145
mov ecx, eax
call fcn.0041b538
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x41c145
mov eax, 0x1000000
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41c7d8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54847c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x41c80c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c80c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41c8ef
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x41c82a
cmp dx, 0x5c
jne 0x41c82c
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x41c81e
cmp edi, ebx
je 0x41c876
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004df1f0
add esp, 0xc
cmp edi, 0x208
jae 0x41c8fe
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.0041c7d8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x41c89a
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x41c88b
mov esi, ebx
xor ecx, ecx
mov ax, word [ebx]
add ebx, 2
cmp ax, cx
jne 0x41c89e
lea edi, [ebp - 0x20c]
sub ebx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x41c8b4
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]
cmp eax, 0xffffffff
jne 0x41c8ef
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c7036
leave
ret
call fcn.004c716d
int3
Function at 0x4236d7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x108]
mov edi, dword [ebp + 8]
test al, al
jne 0x423713
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x423713
mov ecx, dword [esi + 0x560]
push edi
test ecx, ecx
je 0x4237e9
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x4237f0
mov ecx, dword [esi + 0x560]
test ecx, ecx
je 0x423779
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x423779
cmp dword [edi], 0xf
jne 0x423779
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4237f0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
lea esi, [esi + 0x550]
mov edi, dword [esi]
and ax, cx
mov ecx, esi
je 0x423772
call dword [edi + 0x10]
neg al
mov ecx, esi
sbb al, al
inc al
movzx eax, al
push eax
call dword [edi + 0x18]
jmp 0x4237f0
push 1
call dword [edi + 0x14]
jmp 0x4237f0
cmp dword [edi], 0xd
je 0x423730
cmp dword [edi], 0xe
jne 0x4237a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4237f0
mov ecx, dword [esi + 0x44]
xor eax, eax
push eax
push eax
push eax
push str.itemclick
push esi
call fcn.00414170
jmp 0x4237f0
cmp dword [edi], 9
je 0x4237f0
cmp dword [edi], 0xb
jne 0x4237ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4237f0
or dword [esi + 0x55c], 8
mov ecx, esi
call fcn.00423007
jmp 0x4237f0
cmp dword [edi], 0xa
jne 0x4237e8
mov eax, dword [esi + 0x55c]
test al, 8
je 0x4237f0
and eax, 0xfffffff7
mov dword [esi + 0x55c], eax
jmp 0x4237c5
push edi
mov ecx, esi
call fcn.00423288
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x424452
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x108]
mov edi, dword [ebp + 8]
test al, al
jne 0x424492
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x424492
mov ecx, dword [esi + 0x6d0]
push edi
test ecx, ecx
jne 0x424600
mov ecx, esi
call fcn.0041d56c
jmp 0x42460e
cmp dword [edi], 0x13
jne 0x4244bc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x42460e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, esi
call fcn.00423007
jmp 0x42460e
cmp dword [edi], 3
push 0xd
pop ebx
jne 0x4244d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4244d8
cmp word [edi + 0x14], bx
je 0x4244a9
cmp dword [edi], ebx
jne 0x42452b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x42460e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
lea esi, [esi + 0x6c0]
mov edi, dword [esi]
and ax, cx
mov ecx, esi
je 0x424521
call dword [edi + 0x10]
neg al
mov ecx, esi
sbb al, al
inc al
movzx eax, al
push eax
call dword [edi + 0x18]
jmp 0x42460e
push 1
call dword [edi + 0x14]
jmp 0x42460e
mov ecx, dword [esi + 0x6d0]
test ecx, ecx
je 0x424548
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x424548
cmp dword [edi], 0xf
je 0x4244dc
cmp dword [edi], 0xe
jne 0x424577
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x42460e
xor eax, eax
push eax
push eax
push eax
push str.itemclick
mov ecx, dword [esi + 0x44]
push esi
call fcn.00414170
jmp 0x42460e
cmp dword [edi], 9
je 0x42460e
cmp dword [edi], 0xb
jne 0x42459f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x42460e
or dword [esi + 0x6cc], 8
jmp 0x4244b0
cmp dword [edi], 0xa
jne 0x4245bc
mov eax, dword [esi + 0x6cc]
test al, 8
je 0x42460e
and eax, 0xfffffff7
mov dword [esi + 0x6cc], eax
jmp 0x4244b0
cmp dword [edi], 0x1b
jne 0x4245d0
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.timer
jmp 0x424569
cmp dword [edi], 0x14
jne 0x4245f5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x4245f5
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.menu
jmp 0x424569
mov ecx, dword [esi + 0x6d0]
push edi
test ecx, ecx
je 0x424607
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x42460e
mov ecx, esi
call fcn.00428023
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424acd
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.004201d9