joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6224a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
mov dword [esp + 0x18], esi
je 0x4a10b4
fld dword [esp + 0x68]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x41
jne 0x4a10b4
fld dword [esp + 0x6c]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x41
jne 0x4a10b4
fld dword [esp + 0x6c]
call fcn.0061318c
fld dword [esp + 0x68]
push eax
call fcn.0061318c
push eax
mov ecx, edi
call fcn.00539bd0
and eax, 0xff
mov dword [esp + 0x10], eax
jmp 0x4a10bc
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esi + 8]
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov dword [esp + 0x78], 0xbf800000
jle 0x4a124a
mov eax, dword [esi + 4]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi + 8]
movsx eax, word [ecx + 0x10]
cmp eax, dword [esp + 0x60]
je 0x4a10f0
cmp eax, dword [esp + 0x64]
jne 0x4a123c
mov al, byte [esp + 0x70]
test al, al
je 0x4a1107
mov dl, byte [esp + 0x74]
mov al, byte [esi + 0x48]
cmp al, dl
jne 0x4a123c
fld dword [esp + 0x68]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x40
je 0x4a112d
fld dword [esp + 0x6c]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x40
jne 0x4a1263
mov ebp, dword [esp + 0x10]
cmp ebp, 0xffffffff
jle 0x4a115c
fld dword [esi + 0x3c]
call fcn.0061318c
fld dword [esi + 0x38]
push eax
call fcn.0061318c
push eax
mov ecx, edi
call fcn.00539bd0
and eax, 0xff
cmp eax, ebp
jne 0x4a123c
test edi, edi
je 0x4a11f6
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
push eax
mov edx, dword [ecx + 0x8c]
mov ecx, dword [edx + 0x74]
call fcn.0048dbc0
mov ebp, eax
test ebp, ebp
je 0x4a11f6
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.004ad560
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0x3c]
push 0
fld dword [eax + 0x34]
fadd dword [ecx + 0x34]
mov eax, dword [esi + 0x38]
push 0
push 0
push 0
push ecx
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x6c], 0
fstp dword [esp]
push edx
mov edx, dword [edi + 0x38]
push eax
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
call fcn.0048a6b0
and eax, 0xff
je 0x4a11e5
cmp eax, 1
je 0x4a11e5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.004ad5d0
jmp 0x4a123c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.004ad5d0
fld dword [esp + 0x68]
fsub dword [esi + 0x38]
fld dword [esp + 0x6c]
fsub dword [esi + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x78]
fcomp dword [0x6345b8]
fnstsw ax
test ah, 0x40
jne 0x4a1230
fld dword [esp + 0x78]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a123a
fstp dword [esp + 0x78]
mov dword [esp + 0x14], esi
jmp 0x4a123c
fstp st(0)
mov esi, dword [esp + 0x18]
inc ebx
cmp ebx, dword [esi + 8]
jl 0x4a10d3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x1c
mov eax, esi
jmp 0x4a124e
Function at 0x4a2450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x4a24a4
push ebx
push edi
mov ecx, dword [eax + 0x18]
mov edi, dword [esi + 0x1c]
mov edx, ecx
xor ebx, ebx
and edx, 0xff
mov bl, ch
push eax
mov ecx, dword [edi + edx*4]
mov edx, dword [ecx + ebx*4]
xor edx, 0x80
lea ecx, [ecx + ebx*4]
mov dword [ecx], edx
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.004a2920
mov edx, dword [esi + 0x20]
mov eax, edi
dec edx
test edi, edi
mov dword [esi + 0x20], edx
jne 0x4a245f
mov dword [esi + 0x1f8], edi
pop edi
pop ebx
pop esi
ret
mov dword [esi + 0x1f8], 0
pop esi
ret
Function at 0x4b9f20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4b9fdb
movsx ecx, word [esi + 0xfc]
mov edx, dword [esi + 0x100]
inc ecx
push edi
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + 0x100]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
movsx eax, word [esi + 0xfc]
not ecx
dec ecx
pop edi
mov dword [esi + 0x104], ecx
mov byte [eax + edx - 1], 0
movsx ecx, word [esi + 0xfc]
mov eax, dword [esi + 0x104]
dec ecx
cmp eax, ecx
jle 0x4b9f9f
mov edx, dword [esi + 0x100]
mov eax, dword [esi + 0xf8]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [esi + 0xf8]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0xb0
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
sub ecx, eax
mov dword [esi + 0x150], ecx
pop esi
add esp, 8
ret
Function at 0x4c4ff0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push 4
test eax, eax
je 0x4c501e
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
ret 0xc

Function at 0x4c5050
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4c5081
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
ret 0x10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
ret 0x10

Function at 0x4c50b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
test eax, eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xff
lea esi, [ecx + 0x10]
je 0x4c50e7
mov ecx, dword [ecx + 4]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push esi
push edx
push 0
push eax
push ecx
jmp 0x4c50fd
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
not eax
and eax, esi
pop esi
add esp, 8
ret 8

Function at 0x4c5120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, 4
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c5154
lea eax, [esp]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
jmp 0x4c516e
mov ecx, dword [ecx + 8]
lea edx, [esp]
push edx
lea eax, [esp + 0x14]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c5182
mov eax, dword [esp + 0x10]
add esp, 8
ret 8
or eax, 0xffffffff
add esp, 8
ret 8
Function at 0x4c5190
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0x148
mov eax, dword [esp + 0x154]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
push edi
push eax
lea ecx, [esp + 0x5c]
push 0x66a7b8
push ecx
mov dword [esp + 0x20], 0
or ebp, 0xffffffff
call fcn.00613634
mov eax, dword [esp + 0x178]
add esp, 0x10
test eax, eax
jne 0x4c523e
push 0
push 0x80
push 4
push 0
push 1
lea edx, [esp + 0x68]
push Ordinal_2
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c5389
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
test ebx, ebx
je 0x4c5389
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4c5389
push ebx
call esi
jmp 0x4c525b
lea eax, [esp + 0x54]
push 0x8000
push eax
call fcn.00614875
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x4c5389
push 0x114
call fcn.006137fc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c5389
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x168]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov dword [ebx + 0xc], 0
jne 0x4c52b6
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x4c5313
push 1
push 0
push ebp
mov dword [ebx + 4], ebp
mov dword [ebx], 0
call fcn.00614b56
lea ecx, [esp + 0x20]
push 0x40
push ecx
push ebp
call fcn.0061467f
add esp, 0x18
cmp eax, 0x40
jne 0x4c5389
mov edx, dword [esp + 0x50]
push edx
call fcn.006137fc
push 0
push 0
push ebp
mov dword [ebx + 8], eax
call fcn.00614b56
mov eax, dword [esp + 0x60]
mov ecx, dword [ebx + 8]
push eax
push ecx
push ebp
call fcn.0061467f
mov ecx, dword [esp + 0x6c]
add esp, 0x1c
cmp eax, ecx
jne 0x4c5389
mov ecx, dword [0x75e98c]
test ecx, ecx
jne 0x4c5325
mov dword [0x75e98c], ebx
jmp 0x4c5338
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4c5335
mov ecx, eax
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4c532c
mov dword [ecx + 0xc], ebx
mov edi, dword [ebx + 8]
mov esi, dword [esp + 0x160]
lea eax, [edi + 0x2c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4c536d
test cl, cl
je 0x4c5369
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4c536d
add eax, 2
add esi, 2
test cl, cl
jne 0x4c5345
xor eax, eax
jmp 0x4c5372
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c5389
push 4
add edi, 0x28
push str.1.00
push edi
call fcn.00616050
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
Function at 0x4c5530
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
mov dword [esi], 0xffffffff
push edx
mov dword [edi], 0
call fcn.004c5450
add esp, 0x18
test eax, eax
jne 0x4c5573
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c5593
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], 0
mov dword [edi], edx
lea esi, [ecx + eax]
mov eax, esi
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov dword [esi], 1
push eax
call fcn.006137fc
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 4
mov dword [edi], ecx
test esi, esi
jne 0x4c55b5
pop edi
pop esi
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call fcn.00614b56
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push esi
push edx
call fcn.0061467f
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp eax, ecx
je 0x4c558e
pop edi
xor eax, eax
pop esi
ret

Function at 0x4c55f0
Capabilities:
Get common file path

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x10c
lea eax, [esp + 4]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push eax
mov eax, dword [esp + 0x11c]
push ecx
push edx
push eax
mov dword [ebx], 0
call fcn.004c5530
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4c5633
pop ebp
pop ebx
add esp, 0x10c
ret
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4c566e
push edi
mov edi, 0x671568
or ecx, 0xffffffff
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push esi
push 0
push str.temp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4c56c1
push 0x67155c
push esi
call fcn.00613621
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x4c56c1
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4c56c1
push eax
push 1
push ecx
push ebp
call fcn.00616479
mov edx, dword [ebx]
push 0
push 0
push edx
call fcn.006163ed
add esp, 0x1c
mov eax, dword [esp + 0xc]
pop esi
cmp eax, 1
jne 0x4c56d4
push ebp
call fcn.00613327
add esp, 4
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x10c
ret

Function at 0x4c59c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jl 0x4c59e9
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push esi
push ecx
push eax
call fcn.0061467f
mov eax, dword [0x75ecf8]
add esp, 0xc
sub eax, esi
mov dword [0x75ecf8], eax
pop esi
ret
Function at 0x4c5a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x67156c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
push edi
mov dword [ebp - 4], ecx
jne 0x4c5a95
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4c5c2a
cmp eax, dword [0x75eb9c]
jne 0x4c5c2a
mov esi, dword [ebp + 0x10]
push esi
push ecx
push eax
call fcn.0061467f
mov eax, dword [0x75ebb0]
mov ebx, dword [0x75ecf8]
mov ecx, dword [0x671570]
add eax, esi
add esp, 0xc
sub ebx, esi
cmp eax, ecx
mov dword [0x75ecf8], ebx
mov dword [0x75ebb0], eax
jle 0x4c5c2a
add ecx, esi
cmp eax, ecx
jg 0x4c5c2a
int3
mov esi, dword [ebp + 8]
test esi, esi
jl 0x4c5c2a
cmp esi, dword [0x75eb9c]
jne 0x4c5c2a
mov al, byte [0x75eba0]
test al, al
je 0x4c5b45
call fcn.006074c5
push 1
push eax
call fcn.006132aa
mov dword [0x75eba8], eax
mov eax, dword [0x75ecf8]
push 1
push eax
call fcn.006132aa
mov ecx, dword [0x75ecf8]
mov dword [0x75ecfc], eax
push ecx
push eax
push esi
call fcn.0061467f
mov edx, dword [0x75ecf8]
mov eax, dword [0x75eba8]
push 1
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], edx
mov edx, dword [0x75ebac]
push eax
push ecx
mov ecx, dword [0x75ecfc]
push 0
lea eax, [ebp + 8]
push edx
push eax
push 0
push ecx
mov dword [0x75e998], 0
mov dword [ebp + 0xc], 0x10000
call fcn.006074cb
mov edx, dword [ebp + 8]
mov eax, dword [0x75e998]
add esp, 0x3c
add eax, edx
mov dword [0x75e998], eax
mov byte [0x75eba0], 0
mov eax, dword [0x75eba4]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x75ebb4]
lea ecx, [eax + edx]
cmp ecx, 0x10000
jl 0x4c5bf9
mov ebx, 0x10000
mov edi, dword [ebp - 4]
sub ebx, eax
push 1
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x75ecf8]
mov ecx, dword [0x75eba8]
mov dword [ebp + 8], eax
mov eax, dword [0x75ebac]
push ecx
push edx
mov edx, dword [0x75e998]
push 0
lea ecx, [ebp + 8]
push eax
mov eax, dword [0x75ecfc]
push ecx
push edx
push eax
mov dword [ebp + 0xc], 0x10000
call fcn.006074cb
mov ecx, dword [ebp + 8]
mov eax, dword [0x75e998]
mov esi, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebp + 0x10]
add esi, ebx
mov dword [0x75e998], eax
sub ecx, ebx
mov dword [ebp - 4], esi
mov esi, dword [0x75ebac]
add esp, 0x20
xor eax, eax
cmp ecx, 0x10000
mov dword [0x75eba4], eax
mov dword [ebp + 0x10], ecx
mov dword [0x75ebb4], esi
jge 0x4c5b62
mov edx, ecx
test edx, edx
jle 0x4c5c2a
mov edi, dword [ebp - 4]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x75eba4]
mov eax, dword [0x75ebb4]
add ecx, edx
add eax, edx
mov dword [0x75eba4], ecx
mov dword [0x75ebb4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5ee0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x105]
test al, al
je 0x4c5ef8
push 0
call fcn.004c5ff0
mov al, 1
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 1
jae 0x4c5f0f
xor al, al
pop esi
ret
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x4c5f44
mov byte [esi + 0x105], 0
mov dword [esi + 0x10c], eax
xor al, al
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x10c], eax
jne 0x4c5f7a
mov eax, dword [esi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x105], 0
mov dword [esi + 0x108], 0xffffffff
xor al, al
pop esi
ret
mov ecx, dword [esi + 0x108]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + 0x105], 1
mov al, 1
pop esi
ret

Function at 0x4c6070
Capabilities:
Read file on windows

Disassembly:
mov al, byte [ecx + 0x105]
push esi
test al, al
je 0x4c60bc
mov ecx, dword [ecx + 0x108]
cmp ecx, 0xffffffff
je 0x4c60bc
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x4c60bc
mov eax, dword [esp + 8]
test eax, eax
je 0x4c60bc
lea edx, [esp + 0xc]
push 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c60bc
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4c60bc
cmp eax, esi
jne 0x4c60bc
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8

Function at 0x4c60d0
Capabilities:
Read file on windows

Disassembly:
mov al, byte [ecx + 0x105]
sub esp, 8
test al, al
je 0x4c6115
mov eax, dword [ecx + 0x108]
cmp eax, 0xffffffff
je 0x4c6115
lea ecx, [esp]
push 0
push ecx
lea edx, [esp + 0xc]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c6115
cmp dword [esp], 1
jne 0x4c6115
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x4c6120
Capabilities:
Write file on windows

Disassembly:
mov al, byte [ecx + 0x105]
push esi
test al, al
je 0x4c616d
mov eax, dword [ecx + 0x108]
cmp eax, 0xffffffff
je 0x4c616d
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x4c616d
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4c616d
lea edx, [esp + 0xc]
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c616d
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4c616d
cmp eax, esi
jne 0x4c616d
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8
Function at 0x4d65a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x16c
push ebp
mov ebp, ecx
mov ecx, dword [0x6833d0]
cmp dword [ecx + 0x1e0], 7
jne 0x4d65d0
mov eax, dword [esp + 0x174]
mov eax, dword [ebp + eax*4 + 0x13a4]
pop ebp
add esp, 0x16c
ret 8
mov edx, dword [ecx]
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push 0x32
push eax
push 0xfaf
call dword [edx + 0x28]
mov ecx, dword [0x6833d0]
lea eax, [esp + 0x44]
push 0x32
push eax
mov edx, dword [ecx]
push 0xfae
call dword [edx + 0x28]
lea ecx, [esp + 0x78]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4d6633
mov edi, 0x671568
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x184]
mov ebx, dword [esp + 0x180]
cmp eax, 1
jne 0x4d6767
mov eax, dword [ebp + ebx*4 + 0x1534]
test eax, eax
jle 0x4d66bf
mov eax, dword [ebp + ebx*4 + 0x1474]
test eax, eax
je 0x4d66bf
lea ecx, [esp + 0x78]
push ebx
lea esi, [ebp + 0x1244]
push ecx
push str._stemp_AiRules_d.tmp
push esi
call fcn.00613634
push 0x180
push 0x8301
push esi
call fcn.00614875
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x4d66bf
mov edx, dword [ebp + ebx*4 + 0x1534]
mov eax, dword [ebp + ebx*4 + 0x1474]
push edx
push eax
push edi
call fcn.00614bf0
push edi
call fcn.006145cc
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x16c
ret 8
mov edi, dword [ebp + ebx*4 + 0x1324]
lea esi, [esp + 0x44]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d66f0
test cl, cl
je 0x4d66ec
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d66f0
add eax, 2
add esi, 2
test cl, cl
jne 0x4d66cc
xor eax, eax
jmp 0x4d66f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4d6767
lea esi, [esp + 0x10]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4d6723
test cl, cl
je 0x4d671f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4d6723
add eax, 2
add esi, 2
test cl, cl
jne 0x4d66ff
xor eax, eax
jmp 0x4d6728
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4d6767
mov ecx, dword [0x6833d0]
mov eax, dword [ebp + ebx*4 + 0x13a4]
push eax
lea esi, [ebp + 0x1244]
mov edx, dword [ecx + 0x28]
add edx, 0x156c
push edx
push str._s_s.per
push esi
call fcn.00613634
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x16c
ret 8
mov eax, dword [ebp + ebx*4 + 0x13a4]
lea esi, [ebp + 0x1244]
push eax
push 0x66a2b4
push esi
call fcn.00613634
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x16c
ret 8
Function at 0x4ddf60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x623163
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push str.Credits_Screen
mov dword [esp + 0x14], esi
call fcn.004c0920
xor ebx, ebx
mov edi, 1
mov dword [esi], 0x63f624
mov dword [esi + 0x7e8], ebx
mov dword [esi + 0x7ec], edi
mov dword [esi + 0x7f0], ebx
mov dword [esi + 0x7f4], ebx
mov dword [esi + 0x7f8], ebx
mov dword [esi + 0x7fc], edi
mov dword [esi + 0xc04], edi
mov dword [esi + 0xc08], ebx
mov dword [esi + 0xc0c], 0xffffffff
mov eax, dword [0x6833d0]
push edi
push 0xc3a8
push str.xcredits
mov eax, dword [eax + 0x70]
mov ecx, esi
push eax
mov dword [esp + 0x30], ebx
call fcn.004c0950
test eax, eax
jne 0x4de00f
mov dword [esi + 0xdc], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebp
push 0x258
push 0x320
mov ecx, esi
call fcn.004a9b20
push 0x8000
push str.datalist.crx
xor ebp, ebp
call fcn.00614875
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4de084
push 2
push ebx
push edi
call fcn.00614b56
push edi
call fcn.00614b45
mov dword [esp + 0x20], eax
inc eax
push 0x400
push eax
call fcn.006132aa
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x4de07b
push ebx
push ebx
push edi
call fcn.00614b56
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push edi
call fcn.0061467f
add esp, 0x18
push edi
call fcn.006145cc
add esp, 4
mov ecx, dword [0x6833d0]
push 0x1f
call fcn.004207d0
mov ecx, dword [0x683318]
push str.Processor_Speed
push 0
mov edi, eax
mov ebx, 0x2f
mov dword [esp + 0x18], 2
call fcn.004c5120
cmp eax, 0xffffffff
je 0x4de0e1
cmp eax, 0xd2
jge 0x4de0cd
mov ebx, 0x8d
mov dword [esp + 0x10], 6
jmp 0x4de0e1
cmp eax, 0x136
jge 0x4de0e1
mov ebx, 0x5e
mov dword [esp + 0x10], 4
push 0x1cc
call fcn.0061317d
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
mov byte [esp + 0x24], 1
je 0x4de141
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push ebp
push edx
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x18]
cdq
sub eax, edx
push ebx
sar eax, 1
push 0x12c
sub eax, 0x96
push 0x190
push eax
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
mov edx, dword [esi + 0x20]
sar eax, 1
sub eax, 0xc8
push eax
push edx
push esi
call fcn.004de6c0
jmp 0x4de143
xor eax, eax
test ebp, ebp
mov byte [esp + 0x24], 0
mov dword [esi + 0x7e8], eax
je 0x4de15b
push ebp
call fcn.00613327
add esp, 4
mov eax, dword [0x6833d0]
pop ebp
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x4de181
push 1
push 0
push 0
push str.streamxcredits.mp3
call fcn.0052ec10
mov dword [esi + 0xc0c], eax
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret