joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push 0xf023f
push 0
push eax
push 0x80000002
mov dword [ebp - 0x10c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push esi
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x104]
mov edx, 0x585acc
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00575b90
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf023f
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a166
sub eax, esi
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419920
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x130], esi
test esi, esi
je 0x419b32
cmp byte [esi], 0
je 0x419b32
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419b32
push ebx
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 0x11c]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x64
cmovne ecx, edx
mov dword [ebp - 0x12c], 0
xor edi, edi
mov dword [ebp - 0x11c], ecx
test ecx, ecx
je 0x419b11
push edi
push str._04u
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 5
push eax
mov byte [ebp - 8], 0
call fcn.0041bfc0
add esp, 0x10
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419ad7
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x120], 0x104
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x419a6b
push dword [ebp - 0x114]
call ebx
jmp 0x419ad7
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x419a87
push dword [ebp - 0x114]
call ebx
jmp 0x419ad7
lea eax, [ebp - 0x120]
mov dword [ebp - 0x128], 0
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x120], 4
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x114]
mov esi, eax
call ebx
test esi, esi
je 0x419b05
mov esi, dword [ebp - 0x130]
inc edi
cmp edi, dword [ebp - 0x11c]
jb 0x4199d6
push dword [ebp - 0x118]
call ebx
mov eax, dword [ebp - 0x12c]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x12c], eax
push dword [ebp - 0x118]
call ebx
mov eax, dword [ebp - 0x12c]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575b90
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00575b90
mov esp, ebp
pop ebp
ret 4
Function at 0x419d90
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
push 0
mov dword [ebp - 4], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x419dd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push dword [ebp + 8]
call fcn.0041bfc0
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 4
push edi
push dword [ebp - 4]
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x419dfe
push str.GetMAC_Failed__Because_malloc_failed_
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
push esi
lea eax, [ebp - 4]
mov esi, edi
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x419e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push dword [ebp + 8]
call fcn.0041bfc0
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 8]
push ebx
xor ebx, ebx
nop
mov eax, dword [esi + 0x190]
cmp eax, 6
jb 0x419e7b
cmp eax, 8
ja 0x419e7b
push eax
lea eax, [esi + 0x194]
push eax
push dword [ebp + 8]
call sub.MSVCR120.dll_memcpy
mov ebx, dword [esi + 0x190]
lea eax, [esi + 8]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00419920
shr eax, 2
test al, 1
jne 0x419e81
mov esi, dword [esi]
test esi, esi
jne 0x419e40
mov edi, dword [ebp - 0xc]
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4209f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5b15cc]
push esi
mov esi, ecx
mov ecx, 0x5b15c4
push 0
mov eax, dword [eax + 8]
push 0
mov dword [eax + 0xc], 1
cmp dword [esi + 0x10], 0
je 0x420a2b
push 3
mov dword [0x6b21b0], 1
call fcn.0040b050
mov dword [esi + 0x10], 0
jmp 0x420a32
push 2
call fcn.0040b050
cmp dword [0x69e8a4], 0
pop esi
jne 0x420a50
mov dword [0x69e8a4], 1
mov ecx, 0x69e808
jmp fcn.004cec90
ret

Function at 0x426630
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [ecx + 0x10], 0
jne fcn.0043d6d0
ret
Function at 0x42f0a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577fe9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
mov dword [esi], vtable.cMultiLineText.0
call fcn.0042b130
push fcn.0042b140
push fcn.0042b130
push 5
push 0x20
lea eax, [esi + 0x5c]
mov dword [ebp - 4], 0
push eax
call fcn.00576314
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 1
call fcn.0042b130
lea ecx, [esi + 0x11c]
mov byte [ebp - 4], 2
call fcn.0042b130
lea ecx, [esi + 0x144]
mov byte [ebp - 4], 3
call fcn.0042b130
lea ecx, [esi + 0x1a8]
mov byte [ebp - 4], 4
call fcn.0042b130
push fcn.0042b140
push fcn.0042b130
push 0x32
push 0x20
lea eax, [esi + 0x1c8]
mov byte [ebp - 4], 5
push eax
call fcn.00576314
xor eax, eax
mov dword [esi + 0x30], 0xffffff
push eax
push eax
push eax
push eax
mov word [esi + 0xc], ax
mov dword [esi + 0x4c], eax
mov dword [esi + 8], eax
lea eax, [esi + 0x38]
push eax
mov dword [esi + 0x34], 0xffffff
mov dword [esi + 0x48], 0
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
mov dword [esi + 0x50], 0xff
mov word [esi + 0x58], ax
mov dword [esi + 0x1a0], eax
mov dword [esi + 0x80c], eax
mov eax, esi
mov dword [esi + 0x54], 0x64
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43ce70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579343
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042ff30
lea ecx, [esi + 0x58]
mov dword [ebp - 4], 0
mov dword [esi], vtable.cWindow.0
call fcn.0042f0a0
lea ecx, [esi + 0x868]
mov byte [ebp - 4], 1
call fcn.0042b130
xor eax, eax
mov dword [esi + 0x930], 0
mov word [esi + 0x1c], ax
mov eax, 1
mov word [esi + 0xc], ax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x8fc], eax
mov dword [esi + 0x888], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], eax
mov dword [esi + 4], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x8f4], eax
mov dword [esi + 0x8f8], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x910], eax
mov dword [esi + 0x914], eax
mov dword [esi + 0x918], eax
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x88c], 0xffffff
mov dword [esi + 0x890], 0xff
mov dword [esi + 0x894], 0x64
mov dword [esi + 0x18], fcn.00527720
mov dword [esi + 0x900], 0x3f800000
mov dword [esi + 0x904], 0x3f800000
mov dword [esi + 0x34], 1
mov dword [0x6c1ec8], eax
mov dword [0x6c1ecc], eax
mov dword [esi + 0x8bc], eax
mov dword [esi + 0x8c0], eax
mov dword [esi + 0x8c4], eax
mov dword [esi + 0x8c8], eax
movdqu xmm0, xmmword [esi + 0x8bc]
mov dword [esi + 0x8b8], eax
movdqu xmmword [esi + 0x8cc], xmm0
xorps xmm0, xmm0
movdqu xmmword [esi + 0x91c], xmm0
mov dword [esi + 0x908], eax
mov dword [esi + 0x90c], eax
mov eax, esi
mov byte [esi + 0x92c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43d0c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
mov dword [esi + 0x930], 0
je 0x43d212
cmp dword [esi + 0x2c], 0
jne 0x43d212
cmp dword [0x69cde8], 0
push edi
mov edi, dword [ebp + 8]
jne 0x43d16b
push dword [edi + 0x260]
push dword [edi + 0x25c]
call fcn.0043d650
test eax, eax
je 0x43d16b
cmp dword [0x69cdbc], 0
je 0x43d117
cmp dword [0x69cdf8], esi
je 0x43d14e
mov dword [esi + 0x930], 0x100000
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x40], eax
sub eax, dword [esi + 0x44]
cmp eax, 0x78
jbe 0x43d14e
mov dword [0x6c1ecc], 1
mov eax, dword [edi + 0x25c]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x260]
mov dword [esi + 0x54], eax
cmp dword [0x69cdbc], 0
jne 0x43d19a
test byte [esi + 0xc], 0x80
je 0x43d19a
push 0
mov ecx, 0x69cb10
call fcn.00422110
jmp 0x43d19a
cmp dword [0x6c1ec8], 0
mov dword [0x6c1ecc], 0
je 0x43d18e
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
jmp 0x43d19a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
cmp dword [0x69cdec], 0
jne 0x43d206
push dword [edi + 0x270]
mov ecx, esi
push dword [edi + 0x26c]
call fcn.0043d650
test eax, eax
je 0x43d206
cmp dword [edi + 0x220], 0
je 0x43d1cd
or dword [esi + 0x930], 0x400
cmp dword [edi + 0x224], 0
je 0x43d1e0
or dword [esi + 0x930], 0x200
cmp dword [edi + 0x238], 0
je 0x43d1f3
or dword [esi + 0x930], 0x10000
cmp dword [edi + 0x23c], 0
je 0x43d206
or dword [esi + 0x930], 0x20000
mov eax, dword [esi + 0x930]
pop edi
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x43d6d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x43d73e
mov ecx, dword [esi + 0x888]
test ecx, ecx
je 0x43d729
mov edx, dword [esi + 0x894]
mov eax, 0x51eb851f
imul edx, dword [esi + 0x890]
mul edx
lea eax, [esi + 0x898]
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x88c]
push edx
push eax
push ecx
mov dword [esp], 0
lea eax, [esi + 0x900]
push 0
push eax
call fcn.0042b180
mov ecx, esi
pop esi
jmp fcn.0043d950
mov eax, dword [0x6c1ec4]
xor ecx, ecx
cmp dword [0x6c9514], ecx
cmovne eax, ecx
mov dword [0x6c1ec4], eax
pop esi
ret
Function at 0x43d950
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x60], 0
jne 0x43d983
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x6c1ed8]
cmp eax, 0x78
jbe 0x43da73
call esi
mov dword [0x6c1ed8], eax
mov dword [0x6c1ec8], 0
pop esi
ret
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x44]
cmp eax, 0x78
jbe 0x43da73
mov dword [0x6c1ec8], 1
lea edx, [esi + 0x58]
mov dword [0x69cdd8], edx
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
add ecx, 0x1c
add eax, 0x22
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x38], eax
cmp dword [esi + 0x910], 0
je 0x43da0b
push 0x1d
mov ecx, 0x6d0980
call fcn.00513010
test eax, eax
je 0x43da0b
mov eax, dword [esi + 0x910]
cmp dword [eax + 8], 0
je 0x43da0b
mov dword [0x69cddc], eax
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x910]
add edx, 0x1c
mov eax, dword [esi + 0x50]
sub eax, 0x102
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [esi + 0x910]
mov dword [eax + 0x1a0], 1
cmp dword [esi + 0x914], 0
je 0x43da73
push 0x1d
mov ecx, 0x6d0980
call fcn.00513010
test eax, eax
je 0x43da73
mov eax, dword [esi + 0x914]
cmp dword [eax + 8], 0
je 0x43da73
mov dword [0x69cde0], eax
mov edx, dword [esi + 0x914]
mov cx, word [edx + 0x48]
add cx, 3
mov ax, cx
shl ax, 4
sub ax, cx
mov ecx, dword [esi + 0x54]
movzx eax, ax
sub ecx, eax
mov eax, dword [esi + 0x50]
sub eax, 0x102
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x38], eax
mov eax, dword [esi + 0x914]
mov dword [eax + 0x1a0], 1
pop esi
ret

Function at 0x443fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
pop ebp
jmp fcn.004318a0

Function at 0x459420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ec56
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.CReinforceManager.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x14
mov byte [ebp - 4], 1
call fcn.005326b0
push 0x14
lea ecx, [edi + 0x28]
call fcn.005326b0
mov dword [edi + 0x4c], 0
mov eax, edi
mov dword [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ec56
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.CMunpaMarkManager.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [edi + 0x4c], 0
call fcn.005326b0
push 0x40
lea ecx, [edi + 0x28]
call fcn.005326b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x488de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
push edi
mov edi, ecx
lea ecx, [edi + 0x9c0]
jne 0x488e28
mov eax, dword [0x6c940c]
add eax, 0x1d4c0
push esi
mov dword [edi + 0x974], eax
call fcn.00447af0
push str.ANRaster.tga
lea ecx, [edi + 0x9c0]
call fcn.00447a20
pop esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004266c0
pop edi
pop ebp
ret 4
call fcn.00447af0
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 8]
mov ecx, edi
call fcn.004266c0
pop edi
pop ebp
ret 4

Function at 0x488e50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
push edi
mov edi, ecx
lea ecx, [edi + 0x9c0]
jne 0x488e9b
imul eax, dword [ebp + 0xc], 0x3e8
push esi
add eax, dword [0x6c940c]
mov dword [edi + 0x974], eax
call fcn.00447af0
push str.ANRaster.tga
lea ecx, [edi + 0x9c0]
call fcn.00447a20
pop esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004266c0
pop edi
pop ebp
ret 8
call fcn.00447af0
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 8]
mov ecx, edi
call fcn.004266c0
pop edi
pop ebp
ret 8
Function at 0x4a29a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c43a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a7420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004a2940
xorps xmm0, xmm0
mov dword [edi], vtable.CItem.0
lea esi, [edi + 0xa10]
mov dword [ebp - 4], 0
movdqu xmmword [edi + 0x9e4], xmm0
mov ecx, esi
movdqu xmmword [edi + 0x9f5], xmm0
call fcn.0042b130
lea ecx, [edi + 0xa30]
mov byte [ebp - 4], 1
call fcn.0042b130
lea ecx, [edi + 0xa50]
mov byte [ebp - 4], 2
call fcn.0042b130
push fcn.0042b140
push fcn.0042b130
push 0x16
push 0x20
add edi, 0xa78
mov byte [ebp - 4], 3
push edi
call fcn.00576314
mov ecx, dword [ebp - 0x10]
mov eax, 0x83
mov byte [ebp - 4], 4
mov word [ecx + 0xc], ax
mov eax, dword [ebp + 8]
mov dword [ecx + 0xd3c], 0
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx + 0x9c4], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [ecx + 0x9d4], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movdqu xmmword [ecx + 0x9e4], xmm0
movdqu xmm0, xmmword [eax + 0x30]
movdqu xmmword [ecx + 0x9f4], xmm0
mov ax, word [eax + 0x40]
mov word [ecx + 0xa04], ax
xor eax, eax
push eax
push esi
mov dword [ecx + 0xa08], 0
mov word [ecx + 0xa06], ax
mov dword [ecx + 0xa0c], eax
mov ecx, 0x6c1cf8
push 0x7f
call fcn.00435580
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [eax + 0xa70], 0xfafa00
mov dword [eax + 0xa74], 0xffffff
mov dword [eax + 0xd38], 0
lea ecx, [ecx]
push 8
push edi
lea eax, [esi + 0x6c]
mov ecx, 0x6c1cf8
push eax
call fcn.00435580
inc esi
add edi, 0x20
cmp esi, 0x16
jl 0x4a2ae0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9360
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x6a7420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [ebx + 0xc8], 0
jne 0x4a938b
mov dword [ebx + 0xc8], eax
sub eax, dword [ebx + 0xc8]
cmp eax, 0x1388
jbe 0x4a94bf
mov ecx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0xb8], eax
test ecx, ecx
jle 0x4a93c7
mov eax, dword [ebx + 0xb8]
test eax, eax
je 0x4a93c4
mov eax, dword [eax]
mov dword [ebx + 0xb8], eax
dec ecx
jne 0x4a93b2
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x20c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4a93e0
mov eax, dword [str.Resource.bin]
mov dword [ecx], eax
mov eax, dword [0x58f9d8]
mov dword [ecx + 4], eax
mov eax, dword [0x58f9dc]
mov dword [ecx + 8], eax
mov eax, dword [0x58f9e0]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
mov dword [ebp - 0x350], eax
push edi
lea eax, [ebp - 0x354]
mov ecx, ebx
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.004a92f0
test eax, eax
je 0x4a9496
mov ax, word [0x58f9ec]
movq xmm0, qword [str.Resource_]
mov word [ebp - 0x100], ax
mov al, byte [0x58f9ee]
mov byte [ebp - 0xfe], al
lea eax, [ebp - 0x320]
movq qword [ebp - 0x108], xmm0
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a9470
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4a9480
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a9425
call dword [sym.imp.WINMM.dll_timeGetTime]
pop edi
mov dword [ebx + 0xc8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00575b90
mov esp, ebp
pop ebp
ret
Function at 0x4cd1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cd22d
push 0
lea eax, [ebp + 8]
push eax
push 0x6c0
lea eax, [edi + 0x6c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cd235
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0x1c0
lea eax, [edi + 0xf44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x4cd227
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x4cebb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cec03
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4cec0b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x71208
jne 0x4cebfc
push 0
lea eax, [ebp - 4]
push eax
push 0xb0
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cebfc
cmp dword [ebp - 4], 0xb0
push esi
ja 0x4cebfd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ceef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x84]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, dword [esi + 0x80]
je 0x4cef12
mov dword [ecx + 0xb4], 1
push 0
push 0x80
push 2
push 0
lea ebx, [ecx + 4]
mov ecx, 0x2c
push 0
push 0x40000000
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push str.._ini_GameOption.opt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4cef74
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x71208
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 0xb0
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4