joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039f0
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x5c], ecx
push 0
push str.data
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push str.data_aiconfig
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x6d6144]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x125]
mov dword [ebp - 0x58], edx
mov ax, word [ebp - 0x58]
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
push ecx
push str.._data_aiconfig__d.dat
lea edx, [ebp - 0x50]
push edx
call fcn.0058abce
add esp, 0xc
push 0x5a8684
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0058ab87
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x403a92
mov edx, dword [ebp - 4]
push edx
push 1
push 0x1c64
mov eax, dword [ebp - 0x5c]
add eax, 0xea
push eax
call fcn.0058aa3a
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.0058a86f
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0058a6b9
mov esp, ebp
pop ebp
ret

Function at 0x403aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x6c6060]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x5c], ecx
mov eax, dword [0x6d6144]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x125]
mov dword [ebp - 0x58], edx
mov ax, word [ebp - 0x58]
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
push ecx
push str.._data_aiconfig__d.dat
lea edx, [ebp - 0x50]
push edx
call fcn.0058abce
add esp, 0xc
push 0x1c64
push 0
mov eax, dword [ebp - 0x5c]
add eax, 0xea
push eax
call fcn.0058a530
add esp, 0xc
push 0x5a86b8
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0058ab87
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x403b8b
mov eax, dword [ebp - 4]
push eax
push 1
push 0x1c64
mov ecx, dword [ebp - 0x5c]
add ecx, 0xea
push ecx
call fcn.0058aeba
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0058a86f
add esp, 4
call fcn.00401500
mov eax, dword [eax + 0x226]
imul eax, eax, 0x64
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
fild qword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
fstp dword [ecx + 0xde]
call fcn.00401500
mov edx, dword [eax + 0x22a]
imul edx, edx, 0x64
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
fstp dword [eax + 0xe6]
jmp 0x403b93
mov ecx, dword [ebp - 0x5c]
call fcn.00403bb0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0058a6b9
mov esp, ebp
pop ebp
ret

Function at 0x410880
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0x410800
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x6c7cd4], eax
ret 4
Function at 0x410c70
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x35c
mov eax, dword [0x6c6060]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push ebp
push 0x104
lea eax, [esp + 0x260]
push eax
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x25c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410ca6
mov ecx, dword [str.mfl.dat]
mov edx, dword [0x5a8994]
mov dword [eax], ecx
mov cl, byte [0x5a8998]
mov dword [eax + 4], edx
lea edx, [esp + 0x25c]
push 0x5a8938
push edx
mov byte [eax + 8], cl
call fcn.0058ab70
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x410d05
push eax
call fcn.0058a86f
add esp, 4
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0058a6b9
add esp, 0x35c
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x160]
push eax
push 0x104
call edi
lea eax, [esp + 0x160]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410d24
mov ecx, dword [str.Resource.bin]
mov edx, dword [0x5a8984]
mov dword [eax], ecx
mov ecx, dword [0x5a8988]
mov dword [eax + 4], edx
mov edx, dword [0x5a898c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x4c]
push ecx
push ebp
push str._d__s_t
push ebx
call fcn.0058be11
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x28]
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push ecx
push edx
push eax
push str._4d__02d__02d__02d__02d_n
push ebx
call fcn.0058be11
add esp, 0x2c
lea ecx, [esp + 0x20]
push ecx
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410d64
lea edx, [esp + 0x160]
push edx
push 0x104
call edi
lea edi, [esp + 0x160]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410de0
mov ecx, 6
mov esi, str.ResourceSkillArea.bsad
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x4c]
push ecx
push ebp
push str._d__s_t
push ebx
call fcn.0058be11
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x28]
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push ecx
push edx
push eax
push str._4d__02d__02d__02d__02d_n
push ebx
call fcn.0058be11
add esp, 0x2c
lea ecx, [esp + 0x20]
push ecx
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410e10
push ebx
call fcn.0058a86f
mov ecx, dword [esp + 0x36c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0058a6b9
add esp, 0x35c
ret
Function at 0x410ea0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
mov ecx, 0x6c9a70
call fcn.0042a740
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6c77b4], ebp
call ebx
mov edi, eax
push 7
add edi, edi
call ebx
mov esi, eax
push 4
add esi, esi
call ebx
lea ecx, [esi + eax]
mov esi, dword [0x700628]
xor edx, edx
mov eax, esi
div dword [0x6ffbb4]
mov eax, dword [0x6ffbb8]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x410efd
cmp dword [edx], esi
je 0x410f41
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x410ef2
push 0
push ebp
push 0
push 0
add ecx, 0x300
push ecx
add edi, 0x400
push edi
push 0
push 0x80000000
push 0x2ca0000
push 0x6c77b8
push 0x6c79d0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6c77a0], esi
test esi, esi
jne 0x410f5d
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x410efd
mov eax, dword [edx + 8]
push 0
push ebp
push 0
add eax, ecx
mov ecx, dword [edx + 4]
push 0
push eax
add ecx, edi
push ecx
jmp 0x410f12
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
mov ecx, 0x6c7d00
call fcn.004126b0
cmp dword [0x6d7ee8], 0
push 0
mov ecx, 0x6c7d00
push 0
jne 0x410fae
push 1
call fcn.00412520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 2
call fcn.00412520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x411750
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.00410880
mov eax, dword [esp + 0x2c]
mov dword [0x6c7798], 0
mov ecx, str.gvkc9jw0ot0Ut
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411791
test dl, dl
je 0x41178d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411791
add eax, 2
add ecx, 2
test dl, dl
jne 0x411771
xor eax, eax
jmp 0x411796
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4117b7
push 0
push str.Error__
push 0x5a8ac4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
call fcn.00410af0
test eax, eax
je 0x4117ae
push esi
call fcn.00410880
push str.._Log_Debug.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x5a8ab0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._______________________________________________________
push 0x6e5630
call fcn.00528aa0
push str._____________________Client_Start______________________
push 0x6e5630
call fcn.00528aa0
push str._______________________________________________________
push 0x6e5630
call fcn.00528aa0
add esp, 0x18
call fcn.00410a60
mov ecx, 0x6e6c08
call fcn.0053bad0
push 0x6ffa88
push 0x6c77b8
call fcn.0058abce
push 0x6ffa88
push 0x6c79d0
call fcn.0058abce
push esi
call fcn.004116e0
add esp, 0x14
mov ecx, 0x6e6c08
call fcn.00534a90
push str.._Resource_QuestScript_QuestString.bin
mov ecx, 0x6e38a8
call fcn.004f2610
push str.._Resource_QuestScript_QuestScript.bin
mov ecx, 0x6e38a8
call fcn.004f3190
push str.._Resource_QuestScript_NewbieGuide.bin
mov ecx, 0x6e38a8
call fcn.004f12e0
push str.._Resource_QuestScript_QuestNpcList.bin
mov ecx, 0x6e38a8
call fcn.004f27b0
mov ecx, 0x6d56d0
call fcn.00438730
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.00410ea0
add esp, 8
test eax, eax
jne 0x4118b4
call fcn.00410b00
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x4118eb
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
jmp 0x4118c8
mov ecx, 0x6c7d00
call fcn.00412a30
cmp eax, 0xffffffff
jne 0x4118c8
call fcn.00410b00
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
add esp, 0x1c
ret 0x10
Function at 0x424ef0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x130
mov eax, dword [0x6c6060]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
mov esi, dword [esp + 0x13c]
xor ebx, ebx
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x4250a2
cmp byte [esi], bl
je 0x4250a2
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4250a2
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x424f74
mov dword [esp + 0xc], 0x64
push edi
xor edi, edi
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x10], ebx
jbe 0x425090
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esp, [esp]
xor eax, eax
push edi
push str._04u
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], al
lea eax, [esp + 0x38]
push 5
push eax
call fcn.00425370
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x425069
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x42500f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x425069
push esi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x42502c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x425069
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.Characteristics
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], 4
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x425087
mov esi, dword [esp + 0x2c]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x424f90
mov edx, dword [esp + 0x18]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
jmp 0x4250a4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
pop ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
jmp 0x4250a4
xor eax, eax
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
xor ecx, esp
call fcn.0058a6b9
add esp, 0x130
ret 4
Function at 0x4250c0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 8
push ebp
push edi
lea eax, [esp + 8]
xor edi, edi
push eax
push edi
mov ebp, ecx
mov dword [esp + 0x10], edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x425102
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push ecx
call fcn.00425370
add esp, 0x10
pop edi
xor eax, eax
pop ebp
add esp, 8
ret 4
mov edx, dword [esp + 8]
push esi
push edx
call fcn.0058cc97
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
jne 0x425135
mov eax, dword [esp + 0x18]
push str.GetMAC_Failed__Because_malloc_failed_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x425170
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push edx
call fcn.00425370
push esi
call fcn.0058cc5d
add esp, 0x14
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 8
ret 4
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x190]
cmp eax, 6
jb 0x4251ab
cmp eax, 8
ja 0x4251ab
push eax
lea eax, [esi + 0x194]
push eax
push ebx
call fcn.0058b1f0
mov edi, dword [esi + 0x190]
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, ebp
call fcn.00424ef0
test al, 4
jne 0x4251b1
mov esi, dword [esi]
test esi, esi
jne 0x425175
mov edx, dword [esp + 0x14]
push edx
call fcn.0058cc5d
add esp, 4
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 8
ret 4
Function at 0x445f90
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x5a8680
push str.._image_InterfaceScript_AdvancedSetDlg.bin
mov edi, ecx
call fcn.00445a50
mov ecx, dword [edi + 0x18]
mov esi, eax
push esi
call fcn.005853c0
mov ecx, esi
call fcn.005106d0
pop edi
mov dword [0x6c8564], esi
mov ecx, esi
pop esi
jmp fcn.00511250
Function at 0x476f50
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push edi
mov edi, ecx
test eax, eax
jne 0x476f70
push str.Item_DB_idx__0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop ebx
ret 4
push esi
push eax
mov ecx, 0x6d6d50
call fcn.004ad050
mov esi, eax
test esi, esi
je 0x476f8f
mov ax, word [ebx + 6]
mov word [esi + 0x288], ax
jmp 0x476fbd
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x6d6d50
call fcn.004b00c0
mov esi, eax
test esi, esi
jne 0x476fab
pop esi
pop edi
pop ebx
ret 4
push esi
mov ecx, 0x6d6d50
mov dword [esi + 0x20], 1
call fcn.004b90c0
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.00476e70
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.004331a0
pop esi
pop edi
pop ebx
ret 4

Function at 0x491990
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 1
jne 0x4919d3
mov eax, dword [0x6d706c]
add eax, 0x1d4c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x232], eax
mov ecx, dword [ebp - 4]
add ecx, 0x27e
call fcn.0044c970
push str.ANRaster.tga
mov ecx, dword [ebp - 4]
add ecx, 0x27e
call fcn.0044c9a0
jmp 0x4919ec
mov ecx, dword [ebp - 4]
add ecx, 0x27e
call fcn.0044c970
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.0042e8d0
mov esp, ebp
pop ebp
ret 4

Function at 0x491a00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 1
jne 0x491a48
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
add eax, dword [0x6d706c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x232], eax
mov ecx, dword [ebp - 4]
add ecx, 0x27e
call fcn.0044c970
push str.ANRaster.tga
mov ecx, dword [ebp - 4]
add ecx, 0x27e
call fcn.0044c9a0
jmp 0x491a61
mov ecx, dword [ebp - 4]
add ecx, 0x27e
call fcn.0044c970
push str.ANRaster.tga
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.0042e8d0
mov esp, ebp
pop ebp
ret 8
Function at 0x4b4920
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x6c6060]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push esi
mov esi, ecx
call ebx
cmp dword [esi + 0xf4], 0
jne 0x4b494f
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x4b4a2b
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x4b4985
test eax, eax
je 0x4b4982
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x4b4976
push edi
push 0
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4b4a2a
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4b4a1b
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x138]
push 0x5a893c
push eax
call fcn.0058abce
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.004afee0
test eax, eax
je 0x4b4a0c
mov ecx, 0x6e6428
call fcn.0052dc30
push 0x230
mov ecx, 0x6d7fb8
call fcn.004d44e0
push eax
push 1
push 0x179e
push 0x6d5840
call fcn.00449170
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4b49b1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [esi + 0xf4], eax
pop edi
mov ecx, dword [esp + 0x1b0]
pop esi
pop ebx
xor ecx, esp
call fcn.0058a6b9
add esp, 0x1ac
ret
Function at 0x4c6370
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x6c1ba5], 0
push esi
mov esi, ecx
je 0x4c6393
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov dword [0x6d7080], eax
mov byte [0x6c1ba5], 0
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
mov dword [0x6d7080], eax
cmp eax, ecx
jae 0x4c63aa
dec edx
mov dword [0x6d7068], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x6d7068]
add dword [0x6d706c], eax
add dword [esi + 8], eax
cmp dword [esi + 8], 0x5265c00
jb 0x4c63d4
inc dword [esi + 4]
add dword [esi + 8], 0xfad9a400
pop esi
ret
Function at 0x4ce7f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ce81f
pop edi
xor eax, eax
pop esi
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x47c
lea edx, [edi + 0x480]
push edx
push esi
call ebx
test eax, eax
jne 0x4ce84f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
push 0
lea eax, [esp + 0x14]
push eax
push 0xa8
add edi, 0x9a4
push edi
push esi
call ebx
push esi
test eax, eax
je 0x4ce841
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4d2940
Capabilities:
Read file on windows

Disassembly:
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
jne 0x4d2973
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x4d29b8
cmp dword [esp + 0x10], 0x61208
jne 0x4d29b8
push 0
lea edx, [esp + 0x10]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x4d29c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esp + 0xc], 0xac
push esi
ja 0x4d29b9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x4d29f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d2a56
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0x61208
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4fb130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6c6060]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fb208
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x4fb190
cmp dword [esp + 0x10], 0x6060801
je 0x4fb1ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0058a6b9
add esp, 0x18
ret 4
push 0
lea edx, [esp + 0x10]
push edx
push 0xa
lea eax, [esp + 0x20]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4fb191
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1a], 0
je 0x4fb207
mov ecx, dword [0x6d6144]
test ecx, ecx
je 0x4fb207
mov edx, dword [esp + 0x16]
push edx
call fcn.0049d0f0
mov eax, dword [esp + 0x14]
mov ecx, dword [0x6d6144]
push eax
call fcn.0049c420
fld dword [esp + 0x1a]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x702d10
call fcn.0055f5f0
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.0058a6b9
add esp, 0x18
ret 4

Function at 0x4fb220
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x6c6060]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x6d6144]
push esi
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x4fb2ba
call fcn.0049d0e0
fld dword [0x702d50]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x1e], eax
mov eax, dword [0x6d6144]
mov cx, word [eax + 0x67a]
fstp dword [esp + 0x22]
push 0
push 0x40000000
push esi
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fb2ba
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x6060801
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xa
lea edx, [esp + 0x1c]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.0058a6b9
add esp, 0x18
ret 4