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

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566ef7
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x43e60c], eax
sub eax, eax
je 0x406ffc
call 0xa97b5886
invalid
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x419882
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004196f3

Function at 0x419c7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a870
mov eax, dword [0x435018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004184a8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419cbe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419e1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43e2e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ac73
mov ecx, dword [esi*4 + 0x43e2e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x419e13
cmp eax, dword [edi + ecx + 0x24]
jne 0x419e13
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419e13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ac73
add esp, 0x14
test edx, edx
jl 0x419e13
jg 0x419d89
test eax, eax
jb 0x419e13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x419e13
jl 0x419da3
cmp dword [ebp - 0x1008], eax
ja 0x419e13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419dc1
test ebx, ebx
je 0x419dfa
cmp ecx, edi
jae 0x419dfa
mov al, byte [ecx]
cmp al, 0xd
jne 0x419ddb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419de7
cmp byte [ecx + 1], 0xa
jne 0x419de7
inc ecx
jmp 0x419de7
movzx eax, al
movsx eax, byte [eax + 0x4352b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419dc1
cmp edx, ebx
jne 0x419dc1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419e18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409aa8
leave
ret
Function at 0x41a111
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43e2e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a151
cmp byte [ebx], 0xa
jne 0x41a151
or byte [eax + edi + 0x28], 4
jmp 0x41a156
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a254
mov al, byte [edx]
cmp al, 0x1a
je 0x41a236
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41a185
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41a1aa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41a1b4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41a167
jmp 0x41a254
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a231
cmp dword [ebp - 0xc], 0
je 0x41a231
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43e2e0]
test byte [eax + edi + 0x28], 0x48
je 0x41a20b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a1f6
mov byte [esi], dl
jmp 0x41a207
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43e2e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a254
cmp byte [ebp - 1], 0xa
jne 0x41a21a
cmp esi, ebx
jne 0x41a21a
mov byte [esi], 0xa
jmp 0x41a253
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ac91
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a254
mov byte [esi], 0xd
jmp 0x41a253
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43e2e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a250
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a254
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a25d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43e2e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41a2a0
cmp word [esi], dx
jne 0x41a2a0
or byte [edi + eax + 0x28], 4
jmp 0x41a2a5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41a3f8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41a3d8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41a2e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a31d
cmp eax, edx
jae 0x41a329
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41a2bf
jmp 0x41a3f8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a3d4
cmp dword [ebp - 0x14], 0
je 0x41a3d4
mov eax, dword [ebx*4 + 0x43e2e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41a3ac
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41a375
mov word [esi], cx
jmp 0x41a3a8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43e2e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43e2e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43e2e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41a3f8
pop ebx
cmp word [ebp - 4], bx
jne 0x41a3bd
cmp esi, dword [ebp + 0xc]
jne 0x41a3bd
mov word [esi], bx
jmp 0x41a3f5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ac91
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41a3f8
push 0xd
jmp 0x41a3f1
mov ecx, dword [ebx*4 + 0x43e2e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a3ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a3f8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000c4dc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10013e50
call fcn.1001283b
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov ebx, 0x20019
cmp dword [ebp + 0x18], edi
je 0x1000c557
cmp dword [0x100180c8], 0xffffffff
jne 0x1000c549
push 0x1000143c
mov dword [0x100180c8], edi
call dword [0x100010c0]
cmp eax, edi
je 0x1000c549
push 0x10001458
push eax
call dword [fcn.100010c4]
mov esi, eax
cmp esi, edi
je 0x1000c549
lea eax, [ebp + 0x18]
push eax
mov dword [ebp + 0x18], edi
call dword [fcn.100010e8]
push eax
call esi
cmp dword [ebp + 0x18], edi
je 0x1000c549
mov dword [0x100180c8], 1
cmp dword [0x100180c8], 1
jne 0x1000c557
mov ebx, 0x20119
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1000c5bc
push 4
pop esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1000c5bc
cmp dword [ebp - 0x14], esi
jne 0x1000c5bc
cmp dword [ebp - 0x18], esi
jne 0x1000c5bc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x1000c5b7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1000c5d0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x1000c5ce
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.10012913
ret 0x14

Function at 0x1001037f
Capabilities:
Hash data using djb2

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x100103a3
push eax
call dword [sym.imp.MSVCR100_CLR0400.dll_towupper]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
pop ecx
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x10010390
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push 0
mov eax, dword [str.RZR1911CRACK]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40104b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40103a
push 9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x40118c
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [str.STORM.DLL]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x4010b2
mov edx, dword [str.Starcraft:_Brood_War]
push edx
push str.You_must_run_this_crack_patch_from_the_directory_where_n_s_has_been_installed.
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x4050dc
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40118c
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x65
mov eax, dword [ebp + 8]
push eax
call fcn.00401192
add esp, 8
test eax, eax
jne 0x4010d8
xor eax, eax
jmp 0x40118c
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401246
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010f8
xor eax, eax
jmp 0x40118c
lea eax, [ebp - 0x204]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040137e
add esp, 8
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 1
jne 0x401140
push 0x40
push 0x4050f4
push str.The_patch_has_been_successfully_applied__nNote:_You_should_only_have_run_this_patch_if_BROOD.EXE_does_not_work_for_you__nsince_this_patch_will_effectively_disable_multiplayer_play.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0xe141
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401186
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401153
mov eax, dword [ebp - 0x220]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40137e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [str.STORM.DLL]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x108], eax
push 0
push 0
push 0x1283c
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x104]
push edx
push 1
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x100]
and edx, 0xff
cmp edx, 0x74
je 0x40140b
push 0x10
push str.RAZOR_1911_Crack_Patch
push str.This_patch_has_already_been_applied_to_this_nversion_of_Starcraft:_Brood_War.
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401450
push 0
push 0
push 0x1283c
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x104]
push edx
push 1
push 0x405228
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402099
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4052e0
cmp edx, dword [eax]
je 0x4020bb
add eax, 8
inc ecx
cmp eax, 0x405370
jl 0x4020ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4052e0]
jne 0x4021e9
mov eax, dword [0x405698]
cmp eax, 1
je 0x4021c3
test eax, eax
jne 0x4020ec
cmp dword [0x405230], 1
je 0x4021c3
cmp edx, 0xfc
je 0x4021e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402123
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004027b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402166
lea eax, [ebp - 0x1a4]
push eax
call fcn.004027b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043d8
push edi
call fcn.00403440
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402650
lea eax, [ebp - 0xa0]
push 0x4043b8
push eax
call fcn.00402650
push dword [esi + 0x4052e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402650
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004033ae
add esp, 0x2c
pop edi
jmp 0x4021e9
lea eax, [ebp + 8]
lea esi, [esi + 0x4052e4]
push 0
push eax
push dword [esi]
call fcn.004027b0
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 0x40165a
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4042c6], ebp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404844], eax
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4042be], eax
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
jmp 0x40169b
xor eax, eax
mov dword [0x4047c8], 0x402e16
mov dword [0x4047cc], eax
mov dword [0x4047d0], eax
mov eax, str.typer
mov dword [0x4047e0], 0xe
mov dword [0x4047e8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4042be]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4047b6
push str.typer
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
push 5
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x4047f0]
jmp 0x401762
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x401754
mov eax, dword [0x4047f8]
jmp 0x40177d
call 0x402991
ret

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

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

Function at 0x407c80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x407ca1
mov eax, 0xff
call fcn.00403280
xor byte [esi], al
inc esi
dec ebx
jne 0x407c91
pop esi
pop ebx
ret
Function at 0x412402
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41242e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4124cb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4124f5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412470
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4124fa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4124f5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx