joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ac0
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 0x405b26
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.004041b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b10
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b2d
lea eax, [ebp - 0x10]
call fcn.00403f40
ret

Function at 0x40a040
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 0x40a079
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404030
jmp 0x40a082
mov eax, ebx
mov edx, esi
call fcn.00403f94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a744
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a5ac
mov eax, dword [0x41bc34]
cmp byte [eax], 0
je 0x40a7c0
mov eax, dword [0x41bb54]
call fcn.00402bd0
call fcn.00402a98
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.00407858
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 0x40a808
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a7f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41bb28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c660]
call fcn.00404f68
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 0x40b508
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 0x40b56c
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.004041b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407394
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b573
lea eax, [ebp - 0xc]
call fcn.00403f40
ret
Function at 0x402f30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push esi
push edi
call fcn.004033c0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARENord_TecSnow_Flakes
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [0x43b0cc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
lea eax, [esp + 0x14]
push 0x43b158
push eax
call esi
mov edx, dword [esp + 0x14]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 0xa
push ecx
push 1
push 0
push str.FLOCKEN
push edx
call edi
mov eax, dword [0x43b0d0]
lea ecx, [esp + 0x10]
push eax
push 0x43b158
push ecx
call esi
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
push 0xa
push edx
push 1
push 0
push str.GROESSE
push eax
call edi
mov ecx, dword [0x43b0d4]
lea edx, [esp + 0x10]
push ecx
push 0x43b158
push edx
call esi
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x10]
push 0xa
push eax
push 1
push 0
push 0x43b144
push ecx
call edi
mov edx, dword [0x43b0e0]
lea eax, [esp + 0x10]
and edx, 0xff
push edx
push 0x43b158
push eax
call esi
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xa
push ecx
push 1
push 0
push 0x43b140
push edx
call edi
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [0x43b0e1]
and eax, 0xff
push eax
push 0x43b158
push ecx
call esi
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
push 0xa
push edx
push 1
push 0
push 0x43b13c
push eax
call edi
mov ecx, dword [0x43b0e0]
lea edx, [esp + 0x10]
shr ecx, 0x10
and ecx, 0xff
push ecx
push 0x43b158
push edx
call esi
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x10]
push 0xa
push eax
push 1
push 0
push 0x43b138
push ecx
call edi
mov edx, dword [0x43b0d8]
lea eax, [esp + 0x10]
push edx
push 0x43b158
push eax
call esi
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xa
push ecx
push 1
push 0
push str.FENSTERBREITE
push edx
call edi
mov eax, dword [0x43b0dc]
lea ecx, [esp + 0x10]
push eax
push 0x43b158
push ecx
call esi
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
push 0xa
push edx
push 1
push 0
push str.FENSTERHOEHE
push eax
call edi
mov ecx, dword [0x43b0e8]
lea edx, [esp + 0x10]
push ecx
push 0x43b158
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x10]
push 0xa
push eax
push 1
mov ecx, dword [esp + 0x14]
push 0
push str.WACHSTUM
push ecx
call edi
mov edx, dword [0x43b0e4]
lea eax, [esp + 0x10]
push edx
push 0x43b158
push eax
call esi
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xa
push ecx
push 1
push 0
push str.KRISTALLE
push edx
call edi
mov eax, dword [0x43b0ec]
lea ecx, [esp + 0x10]
push eax
push 0x43b158
push ecx
call esi
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
push 0xa
push edx
push 1
push 0
push str.NEUSTART
push eax
call edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40408d
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x43d368], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jne 0x4040e5
cmp dword [0x43d36c], esi
jne 0x4040e5
cmp ebx, 0x10
je 0x4041f6
cmp ebx, 0x8000
je 0x4041d3
cmp dword [0x43d370], esi
jne 0x4040e5
cmp ebx, 0x1c
ja 0x404123
je 0x40411e
cmp ebx, 0x18
jne 0x4040e5
cmp dword [ebp + 0x10], esi
je 0x4040e5
push esi
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, dword [0x43d380]
jne 0x404107
cmp ebx, esi
je 0x404107
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x43d378], esi
setne al
jmp 0x404117
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x10], esi
jmp 0x404166
cmp ebx, 0x48
ja 0x404141
je 0x40413b
cmp ebx, 0x20
jne 0x4040e5
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x404117
cmp dword [ebp + 0x10], 3
jmp 0x404166
mov eax, ebx
sub eax, 0x100
je 0x4041c5
sub eax, 4
je 0x4041c5
sub eax, 0xfc
je 0x40416d
dec eax
je 0x4041c5
sub eax, 3
je 0x4041c5
sub eax, 3
je 0x4041c5
sub eax, 0x11
je 0x4041c5
jmp 0x4040e5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x43f788]
je 0x404188
cmp ecx, esi
jge 0x404188
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x43f78c]
je 0x404199
cmp eax, esi
jge 0x404199
neg eax
add ecx, eax
cmp ecx, dword [0x43b20c]
jbe 0x4040e5
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x43f788], eax
mov eax, dword [ebp - 4]
mov dword [0x43f78c], eax
jmp 0x4040e5
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x4040e5
cmp dword [0x43d390], esi
je 0x4040e5
mov eax, dword [0x43d378]
cmp eax, esi
je 0x404136
push dword [ebp + 8]
call eax
jmp 0x404117
cmp dword [0x43d390], esi
je 0x4040e5
push dword [ebp + 8]
call fcn.00404672
test eax, eax
jne 0x4040e5
push 0x43f788
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x404117
Function at 0x404672
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push esi
cmp dword [0x43d370], ebp
push edi
jne 0x40474e
cmp dword [0x43d36c], ebp
jne 0x40474e
cmp dword [0x43d378], ebp
je 0x40473d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x43d394], ebp
mov esi, eax
je 0x4046c3
push esi
push dword [0x43d398]
call fcn.0040475a
cmp eax, dword [0x43d394]
jb 0x40473d
mov eax, dword [0x43b210]
cmp eax, 0xffffffff
je 0x4046db
push esi
push eax
call fcn.0040475a
cmp eax, 0xc8
jb 0x404747
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [0x43d370], 1
call edi
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
push ebp
push ebp
push 0x8000
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [0x43d36c], eax
mov dword [0x43d370], ebp
jne 0x404730
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x43b210], eax
jmp 0x404747
mov dword [0x43d36c], 1
mov eax, dword [0x43d36c]
jmp 0x404750
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x404765
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x404798
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x404790
cmp al, 0x22
jne 0x404781
cmp byte [esi], 0x22
jne 0x4047a6
inc esi
jmp 0x4047a6
cmp al, 0x20
jbe 0x4047a6
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
ja 0x40479c
mov al, byte [esi]
test al, al
je 0x4047b7
cmp al, 0x20
ja 0x4047b7
push esi
call edi
mov esi, eax
jmp 0x4047a6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x4047d1
movzx eax, word [ebp - 0x14]
jmp 0x4047d4
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00403ea0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43c510
cmp edx, dword [eax]
je 0x410e46
add eax, 8
inc ecx
cmp eax, 0x43c5a0
jl 0x410e37
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43c510]
jne 0x410f74
mov eax, dword [0x43f3f8]
cmp eax, 1
je 0x410f4e
test eax, eax
jne 0x410e77
cmp dword [0x43c0c8], 1
je 0x410f4e
cmp edx, 0xfc
je 0x410f74
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410eae
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412690
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410ef1
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433168
push edi
call fcn.004142c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412690
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004126a0
lea eax, [ebp - 0xa0]
push 0x433148
push eax
call fcn.004126a0
push dword [esi + 0x43c514]
lea eax, [ebp - 0xa0]
push eax
call fcn.004126a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041422b
add esp, 0x2c
pop edi
jmp 0x410f74
lea eax, [ebp + 8]
lea esi, [esi + 0x43c514]
push 0
push eax
push dword [esi]
call fcn.00410570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e520
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4196db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4196db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41968e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419699
or bh, 8
and edi, 0x8000000
je 0x4196b4
mov eax, dword [0x440b9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4196db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x419adb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x419aff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x419b1a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41d57d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41d5bf
call fcn.0042a07f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d5bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d5b6
xor eax, eax
jmp 0x41d5c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d5cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42cfb0
call fcn.0040ce10
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042a07f
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41e988
call fcn.0042a07f
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e996
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41e9a4
or eax, 0xffffffff
jmp 0x41ea8c
mov ecx, esi
call fcn.0041e8bf
mov dword [ebp - 0x14], eax
call fcn.0041b908
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41e9db
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41e9db
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041b8bc
push dword [ebp - 0x14]
call fcn.0041b40a
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041e64c
cmp eax, edi
je 0x41ea4e
test byte [esi + 0x24], 0x10
je 0x41ea1c
push 4
mov ecx, esi
pop ebx
call fcn.0041dcd8
test ah, 1
je 0x41ea14
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041d6cf
cmp dword [esi + 0x1c], edi
je 0x41ea4e
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041ddef
jmp 0x41ea4e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41ea62
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41ea7b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41ea7b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041e8f9
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x401396
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4

Function at 0x406737
Capabilities:
Encode data using xor

Disassembly:
jbe 0x406774
cmp byte [edx - 0x4c15125f], 0xa2
mov ch, 0xa5
xor ecx, dword [ebx + 0x51]
mov dh, 0x6b
sub al, byte [ebp + 0x612eb639]
test dword [ecx], edi
mov dh, 0x2e
popal
test dword [ecx], edi
mov dh, 0x2e
popal
enter 0x3fcc, 0xffffffffffffffa8
or dh, byte [ebx + edi*4]
push edx
xchg ebx, eax
adc esp, dword [ebx]
in al, dx
pop ecx
clc
jno 0x406726
jb 0x406726
dec ebx
test al, 0x76
mov ch, al
mov esi, 0x60754fdf
push esi
jno 0x406717
mov ss, esi
mov eax, dword [0x7ec661f3]
push edi
xchg esp, eax
invalid
Function at 0x4029f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403fec
test esi, esi
jne 0x402a2a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040dc
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403114
Capabilities:
Query or enumerate registry value

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

Function at 0x403e70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x465048], 0
je 0x403ed1
cmp word [0x46521c], 0xd7b2
jne 0x403e99
cmp dword [0x465224], 0
jbe 0x403e99
mov eax, 0x465218
call dword [0x465234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x463070
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 0x403ef8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463034], 0
jne 0x403eed
push 0
push 0x463068
push 0x463070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret