joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416bf0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x423018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x416c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416c3e
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push edi
push 0x20000000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x416cb9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x416ce7
cmp eax, 0x424
jne 0x416d34
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x416d5a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x416d0a
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
cmp eax, 0x426
jne 0x416d34
push str.Error:_JHI_service_has_not_been_started._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop edi
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
call esi
push eax
push str.Stop_Service_failed:___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push str.JHI_Service_terminated_successfully_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00419346
mov esp, ebp
pop ebp
ret
Function at 0x418010
Capabilities:
Query environment variable

Disassembly:
push ecx
mov al, byte [0x63104a]
mov cl, byte [0x63104d]
mov edx, dword [0x631030]
and cl, al
mov eax, dword [0x631034]
mov byte [0x63104d], cl
mov ecx, eax
push esi
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x631043]
mov dword [0x631030], edx
mov edx, dword [0x631038]
push 0x100
or edx, 7
push 0x634cb6
imul edx, ecx
and eax, edx
push str.PATH
mov dword [0x631034], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dl, byte [0x631049]
mov al, byte [0x631048]
xor al, dl
push str.kernel32
mov byte [0x631048], al
mov al, byte [0x631043]
or al, 8
shr al, 3
and eax, 0xff
mov dword [esp + 8], eax
fild dword [esp + 8]
fdivr qword [0x6349a0]
fadd qword [0x631050]
fstp qword [0x634990]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add eax, esi
pop esi
pop ecx
ret

Function at 0x62a51d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313a0
cmp edx, dword [eax]
je 0x62a53f
add eax, 8
inc ecx
cmp eax, 0x631430
jl 0x62a530
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313a0]
jne 0x62a66d
mov eax, dword [0x636d30]
cmp eax, 1
je 0x62a647
test eax, eax
jne 0x62a570
cmp dword [0x6312cc], 1
je 0x62a647
cmp edx, 0xfc
je 0x62a66d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a5a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062af00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062b390
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a5ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062b390
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f6e4
push edi
call fcn.0062d260
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062af00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062af10
lea eax, [ebp - 0xa0]
push 0x62f6c4
push eax
call fcn.0062af10
push dword [esi + 0x6313a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062af10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062d1d4
add esp, 0x2c
pop edi
jmp 0x62a66d
lea eax, [ebp + 8]
lea esi, [esi + 0x6313a4]
push 0
push eax
push dword [esi]
call fcn.0062b390
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 0x6678ef
Capabilities:
Encode data using xor

Disassembly:
mov edi, esp
add edi, 4
jmp 0x667597
add edi, 4
xchg dword [esp], edi
pop esp
push edx
mov dword [esp], 0x7fbdf7e7
dec dword [esp]
add dword [esp], 0x5b59045b
shr dword [esp], 4
sub dword [esp], 0xbdba8bc4
add dword [esp], 0x52ff14e9
sub dword [esp], 0x7f12520b
neg dword [esp]
xor dword [esp], 0xa160acd1
mov dword [esp], edi
jmp 0x667a90
push dword [esp]
pop ebx
add esp, 4
and ebp, 0x3fbfb315
or ebp, 0x67a9eecd
push eax
mov eax, 0x7dffae1e
xor eax, 0x3ffef800
not eax
or eax, 0x7f77bd1c
sub eax, 0xc1b3b0f8
sub ebp, eax
mov eax, dword [esp]
push ebx
mov ebx, esp
add ebx, 4
add ebx, 4
xchg dword [esp], ebx
pop esp
push edi
sub esp, 4
jmp 0x667ef7
inc edx
shl edx, 1
add edx, 0xf390ba48
jmp 0x667f00
mov ebp, edx
pop edx
mov edi, ebp
mov ebp, dword [esp]
jmp fcn.00667e08
mov ebx, 0x7b96caa2
add esi, ebx
mov ebx, dword [esp]
add esp, 4
push dword [esp]
pop ecx
push 0xc2ece7a
mov dword [esp], ebx
push esp
pop ebx
add ebx, 4
add ebx, 4
xchg dword [esp], ebx
mov esp, dword [esp]
sub esp, 4
jmp 0x667b59
push dword [esp]
mov esi, dword [esp]
push edi
mov edi, esp
jmp 0x667930
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 4
xchg dword [esp], ebp
pop esp
jmp 0x667a40
add edi, 4
push ebp
mov ebp, 4
add edi, ebp
pop ebp
xor edi, dword [esp]
jmp 0x667ddc
add eax, 0x3bd70586
add eax, 0x88e6893a
mov ecx, eax
pop eax
sub ecx, 1
sub ecx, 0xffffffff
jmp 0x667c66
mov dword [esp], eax
mov dword [esp], edi
sub esp, 4
mov dword [esp], edx
push edx
mov dword [esp], eax
mov eax, 0x6fff3d2a
mov edx, eax
jmp 0x667bd9
mov edi, esp
push eax
mov eax, 0x7efd99a1
add eax, 0x6fffd9ae
xor eax, 0x6f0beeef
sub eax, 0x81f69d9c
add edi, eax
pop eax
push ecx
mov ecx, 4
sub edi, 0x25efcf44
jmp 0x667abb
add edi, ecx
push ebx
mov ebx, 0x25efcf44
add edi, ebx
pop ebx
mov ecx, dword [esp]
add esp, 4
xchg dword [esp], edi
pop esp
sub esp, 4
mov dword [esp], ecx
push eax
mov eax, 0x7bc63332
add eax, 0x3e9becff
jmp 0x6679bf
mov dword [esp], ebp
push ebx
push ebp
mov dword [esp], 0x7de2add5
pop ebx
xchg ebx, ecx
jmp 0x667df7
mov dword [esp], edx
mov edx, 0x36399ff9
jmp 0x6677a3
pop eax
sub esp, 4
mov dword [esp], eax
mov eax, 0x7ebee5a7
mov edi, 0xeebe22d5
sub edi, eax
pop eax
jmp 0x667f22
shr ecx, 4
add ecx, 1
push esi
mov esi, 0xffffffff
add ecx, esi
mov esi, dword [esp]
add esp, 4
add ecx, 0x4561f168
push ecx
jmp 0x667cf4
mov ecx, 0x7bf71a5a
sub ecx, 0xfdf5e66
sub ecx, 0xf080f152
sub esi, ecx
mov ecx, dword [esp]
add esp, 4
sub esi, ecx
push ebx
jmp 0x6677b0
xor dword [esp], edi
xor edi, dword [esp]
mov esp, dword [esp]
push edi
jmp 0x66752e
not ecx
xchg ebx, ecx
push edx
mov edx, 0x7ef72512
not edx
jmp 0x6676e5
mov dword [esp], ebp
push esi
jmp 0x667bcc
xor ebx, edx
pop edx
mov ebp, ebx
jmp 0x66762d
xor edi, edx
mov edx, dword [esp]
add esp, 4
add edx, edi
mov edi, dword [esp]
add esp, 4
xor edx, dword [esp]
jmp 0x667f3d
xor dword [esp], edx
xor edx, dword [esp]
mov esp, dword [esp]
sti
xor ebx, ebx
push dword [ebx + ecx]
push dword [esp]
jmp 0x667827
Function at 0x403179
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402997
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405a30
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4031da
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402aed
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x40323b
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403228
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x40322b
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00402953
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x41169a
Capabilities:
Enumerate pe sections

Disassembly:
js 0x4116d8
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0041149d
add eax, 0xf08440b
mov bh, 0x47
push es
lea eax, [eax + eax*4]
add al, 0x80
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0041149d
mov byte [0x6652a5ac], al
mov eax, dword [edi + 6]
cmp ax, bx
cmp eax, ebx
jbe 0x4116f7
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x4116f1
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x4116e2
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
pop eax
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0041149d
jo 0x4117a4
add byte [ebp - 0x17af57bb], cl
pop edi
std
invalid
les eax, [ebp - 0x3a]
inc ebp
lds edi, [edx - 0x3a]
inc ebp
invalid
Function at 0x4118a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5a], 0x41
call fcn.004114ad
push eax
push esi
push dword [ebp + 8]
call fcn.00411462
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004114ad
push eax
push esi
push dword [ebp + 8]
call fcn.00411462
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0041149d
imul ebp, dword [ecx - 0x2c], 0x22
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0041149d
hlt
Function at 0x411bb1
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x411b74
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x411b92
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x411bf0
mov edx, edi
xlatb
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x411bd7
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x411be0
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x411bea
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x411bcc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x411b56
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x411c3d
dec eax
je 0x411c34
sub eax, 3
je 0x411c2b
mov dword [ebp - 4], 0x40
jmp 0x411c5a
mov dword [ebp - 4], 4
jmp 0x411c40
mov dword [ebp - 4], 0x20
jmp 0x411c40
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x411c8c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x411c0c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0041149d
adc bh, 0x2b
sub edi, edi
jne 0x411c97
push 1
push esi
call edi
mov eax, esi
jmp 0x411c98
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403479
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x4d
lea eax, [ebp - 0x57]
push ebx
push eax
mov byte [ebp - 0x58], bl
call fcn.004b7880
add esp, 0xc
cmp esi, ebx
jne 0x4034ab
or eax, 0xffffffff
jmp 0x40355f
lea eax, [ebp - 0x58]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.004810e5
push esi
call fcn.004b6fad
push esi
mov dword [ebp - 0x5c], ebx
call fcn.004b7009
add esp, 0xc
cmp eax, 0xffffffff
je 0x4034f2
push 1
push eax
lea eax, [ebp - 0x5c]
lea ebx, [ebp - 0x58]
call fcn.00422f67
test eax, eax
pop ecx
pop ecx
jne 0x403558
push esi
call fcn.004b7009
cmp eax, 0xffffffff
pop ecx
jne 0x4034d0
xor ebx, ebx
push 2
push ebx
push esi
call fcn.004b6d9f
add esp, 0xc
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004b68f0
pop ecx
push eax
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.004b6868
mov edi, eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b68f0
add esp, 0x14
cmp edi, eax
je 0x403536
push str.:7:TagSelfExtractingExe___FAILED:_fwrite___failed_to_write_the_tag_
call fcn.00418e96
or eax, 0xffffffff
jmp 0x40355e
push esi
call fcn.004b6fad
push 2
push 0xffffffffffffffff
push esi
call fcn.004b6d9f
push esi
call fcn.004b7009
push 2
push ebx
push esi
call fcn.004b6d9f
add esp, 0x20
push esi
call fcn.004b6b13
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
Function at 0x404614
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004c8990
push ebx
push esi
xor ebx, ebx
push 0xffc
lea eax, [ebp - 0x1004]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1008], ebx
call fcn.004b7880
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
jne 0x404651
xor eax, eax
jmp 0x4046da
shr esi, 2
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 4], esi
jbe 0x404663
mov dword [ebp - 4], eax
shr dword [ebp - 4], 2
push edi
mov edi, 0x400
cmp dword [ebp - 4], edi
jbe 0x404684
push 4
push dword [ebp - 4]
call fcn.004b66ca
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x40468d
mov dword [ebp - 4], edi
lea esi, [ebp - 0x1008]
xor edi, edi
push dword [ebp + 8]
push dword [ebp - 4]
push 4
push esi
call fcn.004b7b96
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jbe 0x4046b9
xor ebx, ebx
test eax, eax
jbe 0x4046b5
add edi, dword [esi + ebx*4]
inc ebx
cmp ebx, eax
jb 0x4046ad
add edi, eax
jmp 0x40468f
test edi, edi
jne 0x4046c2
test ebx, ebx
je 0x4046c2
inc edi
test esi, esi
je 0x4046d7
lea eax, [ebp - 0x1008]
cmp esi, eax
je 0x4046d7
push esi
call fcn.004b651e
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b5a0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push ebx
push edi
call fcn.0040b93e
call fcn.0040b752
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [0x54b880], 1
call fcn.0040e906
call fcn.0043572a
test eax, eax
jne 0x40b5dd
push str.:5:InitConsole___encountered_a_problem:_EnableNumLock___FAILED_
call fcn.0041936e
pop ecx
call fcn.0040b8f5
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
xor ebx, ebx
test eax, eax
je 0x40b643
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
test eax, eax
mov edi, str._GetLastError_
jne 0x40b610
push edi
push str.:4:InitConsole___encountered_a_problem:_SetConsoleTitle___FAILED:__s
call fcn.0041936e
pop ecx
pop ecx
push 0x243
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b8f5
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x40b637
push edi
push str.:2:InitConsole___encountered_a_problem:_SetWindowPos___FAILED:__s
call fcn.0041936e
pop ecx
pop ecx
call fcn.0040b8f5
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call fcn.0040b8e3
push eax
call fcn.0041534b
cmp dword [ebp + 8], ebx
pop ecx
je 0x40b682
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, eax
call fcn.0041628a
cmp edi, ebx
je 0x40b67d
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffaffff
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.0041628a
call fcn.0041636e
call fcn.00416494
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push str.DoNotScrmbErLg.txt
push ebx
call fcn.00460e8a
pop ecx
pop ecx
mov edi, eax
call fcn.0041c5ff
test eax, eax
je 0x40b6b4
push ebx
call fcn.00418852
pop ecx
mov eax, dword [esp + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b752
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.004b7880
add esp, 0xc
call fcn.0040b6be
xor edi, edi
inc edi
call fcn.0040d5d2
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
mov esi, str._GetLastError_
jne 0x40b7b3
push esi
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
xor edi, edi
call fcn.00418e96
pop ecx
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x40b7d9
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
xor edi, edi
call fcn.00418e96
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
jne 0x40b7f9
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
xor edi, edi
call fcn.00418e96
pop ecx
pop ecx
push 1
push 0x40b911
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40b819
push esi
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
xor edi, edi
call fcn.00418e96
pop ecx
pop ecx
mov ebx, 0x35c
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x40b838
push ebx
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
xor edi, edi
call fcn.00418e96
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
cmp eax, ebx
mov dword [0x54b860], eax
jne 0x40b858
push esi
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
xor edi, edi
call fcn.00418e96
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x40b897
lea edx, [esp + 0x10]
call fcn.0047f68c
mov eax, edx
push eax
mov esi, 0x4d69b8
call fcn.0047ed1c
test eax, eax
pop ecx
jne 0x40b897
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.00460e8a
pop ecx
pop ecx
mov ebx, eax
call fcn.0047bbe7
call fcn.004a6bcb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004b7d00
pop ecx
call fcn.004b7d0d
call fcn.004b7d0d
call fcn.004b7d0d
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret
Function at 0x40b975
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.0040bb1c
cmp esi, ebx
pop ecx
mov dword [0x54b790], ebx
jne 0x40b9b4
xor eax, eax
jmp 0x40bb05
push edi
push 0x400
mov eax, 0x54b390
push ebx
push eax
mov dword [0x54b798], eax
xor edi, edi
mov dword [ebp - 0x7c], ebx
call fcn.004b7880
mov eax, dword [0x54b790]
mov edx, dword [0x54b38c]
add esp, 0xc
cmp byte [esi], bl
je 0x40ba7d
mov dword [ebp - 0x80], esi
cmp eax, 0x32
jge 0x40ba69
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x40ba69
mov ecx, dword [ebp - 0x80]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x40ba3c
xor ebx, ebx
cmp dword [ebp - 0x7c], ebx
jne 0x40ba3c
cmp edi, ebx
jle 0x40ba38
inc eax
cmp eax, 1
lea edx, [esi + 6]
mov dword [0x54b790], eax
mov dword [0x54b38c], edx
jne 0x40ba2b
add edx, 4
mov dword [0x54b38c], edx
lea ecx, [edx + 0x54b390]
mov dword [eax*4 + 0x54b798], ecx
xor edi, edi
jmp 0x40ba5f
cmp cl, 0x22
jne 0x40ba54
cmp dword [ebp - 0x7c], ebx
jne 0x40ba4f
mov dword [ebp - 0x7c], 1
jmp 0x40ba5f
mov dword [ebp - 0x7c], ebx
jmp 0x40ba5f
mov esi, dword [eax*4 + 0x54b798]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
cmp byte [ecx], bl
jne 0x40b9e9
cmp edi, ebx
jle 0x40ba7d
inc eax
lea edx, [edx + edi + 1]
mov dword [0x54b790], eax
mov dword [0x54b38c], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x40ba95
lea edi, [eax*4 + 0x54b798]
sub ecx, eax
lea eax, [edx + 0x54b390]
rep stosd dword es:[edi], eax
mov esi, dword [0x54b798]
call fcn.0047f443
mov edx, eax
call fcn.0047ebaf
test eax, eax
je 0x40baff
push 0x103
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004b7880
push dword [0x54b798]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x78]
call fcn.0047ebe1
mov eax, esi
push str..exe
lea esi, [ebp - 0x78]
call fcn.0047ecb1
add esp, 0x14
mov edi, esi
call fcn.0041c5ff
test eax, eax
je 0x40baff
mov eax, esi
push eax
push dword [0x54b798]
call fcn.004b6c20
pop ecx
pop ecx
mov eax, dword [0x54b790]
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
add ebp, 0x90
leave
ret