joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x6b419c]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x129]
push edi
push ecx
lea edx, [esp + 0x14]
push str.._data_aiconfig__d.dat
push edx
call fcn.00561680
push 0x1c64
lea edi, [esi + 0xec]
push 0
push edi
call fcn.00561170
push 0x57f680
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00561639
mov eax, dword [esp + 0x2c]
add esp, 0x24
test eax, eax
je 0x404d32
push eax
push 1
push 0x1c64
push edi
call fcn.00561bf5
mov edx, dword [esp + 0x18]
push edx
call fcn.00561321
add esp, 0x14
call fcn.004040a0
mov eax, dword [eax + 0x228]
imul eax, eax, 0x64
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jns 0x404d00
fadd dword [0x57f6f0]
fstp dword [esi + 0xe0]
call fcn.004040a0
mov ecx, dword [eax + 0x22c]
imul ecx, ecx, 0x64
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
test ecx, ecx
jns 0x404d26
fadd dword [0x57f6f0]
pop edi
fstp dword [esi + 0xe8]
pop esi
add esp, 0x48
ret
mov ecx, esi
call fcn.00404490
pop edi
pop esi
add esp, 0x48
ret

Function at 0x404c78
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x6b419c]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x129]
push edi
push ecx
lea edx, [esp + 0x14]
push str.._data_aiconfig__d.dat
push edx
call fcn.00561680
push 0x1c64
lea edi, [esi + 0xec]
push 0
push edi
call fcn.00561170
push 0x57f680
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00561639
mov eax, dword [esp + 0x2c]
add esp, 0x24
test eax, eax
je 0x404d32
push eax
push 1
push 0x1c64
push edi
call fcn.00561bf5
mov edx, dword [esp + 0x18]
push edx
call fcn.00561321
add esp, 0x14
call fcn.004040a0
mov eax, dword [eax + 0x228]
imul eax, eax, 0x64
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jns 0x404d00
fadd dword [0x57f6f0]
fstp dword [esi + 0xe0]
call fcn.004040a0
mov ecx, dword [eax + 0x22c]
imul ecx, ecx, 0x64
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
test ecx, ecx
jns 0x404d26
fadd dword [0x57f6f0]
pop edi
fstp dword [esi + 0xe8]
pop esi
add esp, 0x48
ret
mov ecx, esi
call fcn.00404490
pop edi
pop esi
add esp, 0x48
ret
Function at 0x40a300
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0x40a280
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x6a5d14], eax
ret 4

Function at 0x40a6a0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x358
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 0x40a6c8
mov ecx, dword [str.mfl.dat]
mov edx, dword [0x57fc80]
mov dword [eax], ecx
mov cl, byte [0x57fc84]
mov dword [eax + 4], edx
lea edx, [esp + 0x25c]
push 0x57fc88
push edx
mov byte [eax + 8], cl
call fcn.00561622
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40a719
push eax
call fcn.00561321
add esp, 4
pop ebp
xor eax, eax
pop ebx
add esp, 0x358
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 0x40a738
mov ecx, dword [str.Resource.bin]
mov edx, dword [0x57fc90]
mov dword [eax], ecx
mov ecx, dword [0x57fc94]
mov dword [eax + 4], edx
mov edx, dword [0x57fc98]
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
jmp 0x40a780
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 0x57fc9c
push ebx
call fcn.005625a1
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 0x57fca4
push ebx
call fcn.005625a1
add esp, 0x2c
lea ecx, [esp + 0x20]
push ecx
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a780
lea edx, [esp + 0x160]
push edx
push 0x104
call edi
lea edi, [esp + 0x160]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a7f5
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 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.005625a1
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.005625a1
add esp, 0x2c
lea ecx, [esp + 0x20]
push ecx
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a821
push ebx
call fcn.00561321
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x358
ret
Function at 0x40a8a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
mov ecx, 0x6a7ac0
call fcn.00423420
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6a5d08], 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 [0x6dedf4]
xor edx, edx
mov eax, esi
div dword [0x6de380]
mov eax, dword [0x6de384]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x40a8fd
cmp dword [edx], esi
je 0x40a941
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x40a8f2
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 0x6a5b08
push 0x6a5908
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6a5d0c], esi
test esi, esi
jne 0x40a95d
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x40a8fd
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 0x40a912
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, 0x6a5d40
call fcn.0040bfb0
cmp dword [0x6b60c8], 0
push 0
mov ecx, 0x6a5d40
push 0
jne 0x40a9ae
push 1
call fcn.0040be20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 2
call fcn.0040be20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40b140
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.0040a300
mov eax, dword [esp + 0x2c]
mov dword [0x6a57c0], 0
mov ecx, str.gvkc9jw0ot0Ut
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b181
test dl, dl
je 0x40b17d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b181
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b161
xor eax, eax
jmp 0x40b186
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b1a7
push 0
push 0x57fa54
push 0x57fa5c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
call fcn.0040a550
test eax, eax
je 0x40b19e
push esi
call fcn.0040a300
push str.._Log_Debug.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x57faa4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x57faa8
push 0x6c3830
call fcn.0050c590
push str._____________________Client_Start______________________
push 0x6c3830
call fcn.0050c590
push str._______________________________________________________
push 0x6c3830
call fcn.0050c590
add esp, 0x18
call fcn.0040a4e0
mov ecx, 0x6c4e08
call fcn.00515f90
push 0x6de252
push 0x6a5b08
call fcn.00561680
push 0x6de252
push 0x6a5908
call fcn.00561680
push esi
call fcn.0040b0d0
add esp, 0x14
mov ecx, 0x6c4e08
call fcn.005183c0
push str.._Resource_QuestScript_QuestString.bin
mov ecx, 0x6c1a88
call fcn.004e1170
push str.._Resource_QuestScript_QuestScript.bin
mov ecx, 0x6c1a88
call fcn.004e1cd0
push str.._Resource_QuestScript_NewbieGuide.bin
mov ecx, 0x6c1a88
call fcn.004dfe90
push str.._Resource_QuestScript_QuestNpcList.bin
mov ecx, 0x6c1a88
call fcn.004e1310
mov ecx, 0x6b3720
call fcn.004311c0
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.0040a8a0
add esp, 8
test eax, eax
jne 0x40b2a4
call fcn.0040a560
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 0x40b2db
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
jmp 0x40b2b8
mov ecx, 0x6a5d40
call fcn.0040c310
cmp eax, 0xffffffff
jne 0x40b2b8
call fcn.0040a560
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
add esp, 0x1c
ret 0x10
Function at 0x41e300
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x128
push ebx
push esi
mov esi, dword [esp + 0x134]
xor ebx, ebx
cmp esi, ebx
je 0x41e4b7
cmp byte [esi], bl
je 0x41e4b7
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e4b7
mov edx, dword [esp + 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x41e372
mov dword [esp + 0x10], 0x64
push edi
xor edi, edi
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x14], ebx
jbe 0x41e49c
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ebx, [ebx]
xor eax, eax
push edi
push str._04u
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], al
lea eax, [esp + 0x28]
push 5
push eax
call fcn.0041e750
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e46c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x41e40f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e46c
push esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41e42c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e46c
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push str.Characteristics
push edx
mov dword [esp + 0x44], 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 0x41e493
mov esi, dword [esp + 0x13c]
inc edi
cmp edi, dword [esp + 0x18]
jb 0x41e390
mov edx, dword [esp + 0x14]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
add esp, 0x128
ret 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
add esp, 0x128
ret 4
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret 4
Function at 0x41e4d0
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 0x41e512
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
push 0x581a54
push 0x12
push ecx
call fcn.0041e750
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.005630a7
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
jne 0x41e545
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 0x41e580
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.0041e750
push esi
call fcn.0056306d
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 0x41e5bb
cmp eax, 8
ja 0x41e5bb
push eax
lea eax, [esi + 0x194]
push eax
push ebx
call fcn.00562a30
mov edi, dword [esi + 0x190]
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, ebp
call fcn.0041e300
test al, 4
jne 0x41e5c1
mov esi, dword [esi]
test esi, esi
jne 0x41e585
mov edx, dword [esp + 0x14]
push edx
call fcn.0056306d
add esp, 4
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 8
ret 4

Function at 0x421dd5
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x6a5d48]
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
mov dword [ecx + 0xc], 1
cmp dword [esi + 0x10], 0
push 0
mov ecx, 0x6a5d40
push 0
je 0x421e0b
push 3
mov dword [0x6a5f70], 1
call fcn.0040be20
mov dword [esi + 0x10], 0
jmp 0x421e12
push 2
call fcn.0040be20
cmp dword [0x6b60c8], 0
pop esi
jne 0x421e30
mov dword [0x6b60c8], 1
mov ecx, 0x6b6030
jmp fcn.004c2fd0
ret
Function at 0x43ee10
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x585ecc
push str.._image_InterfaceScript_AdvancedSetDlg.bin
mov edi, ecx
call fcn.0043e8d0
mov ecx, dword [edi + 0x18]
mov esi, eax
push esi
call fcn.0055c050
mov ecx, esi
call fcn.004fc880
pop edi
mov dword [0x6a65b4], esi
mov ecx, esi
pop esi
jmp 0x4fd040
sub esp, 0x2c8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
push esi
push edi
push 0xff
lea eax, [esp + 0x1dc]
push eax
push 0
mov ebp, ecx
call ebx
lea ecx, [esp + 0x1d8]
push 0x5c
push ecx
call fcn.00563b90
lea edi, [esp + 0x1e0]
add esp, 8
mov byte [eax + 1], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4fd081
mov ecx, 6
mov esi, 0x591f70
rep movsd dword es:[edi], dword [esi]
push 0xff
lea edx, [esp + 0xdc]
push edx
push 0
movsw word es:[edi], word [esi]
call ebx
lea eax, [esp + 0xd8]
push 0x5c
push eax
call fcn.00563b90
lea edi, [esp + 0xe0]
add esp, 8
mov byte [eax + 1], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4fd0c6
mov ecx, 7
mov esi, 0x591f8c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x1dc]
push 0x591fac
push edx
movsb byte es:[edi], byte [esi]
call fcn.004fc6f0
push 0xc8
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00561170
push 0x591fb4
lea ecx, [esp + 0x2c]
push ecx
push 0x591fd4
push 0x591fdc
call fcn.00502d70
lea edx, [esp + 0x38]
push edx
call fcn.00561c28
push 0xc8
mov dword [ebp + 0x24c], eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00561170
push 0x591fe8
lea ecx, [esp + 0x4c]
push ecx
push 0x592008
push 0x59200c
call fcn.00502d70
lea edx, [esp + 0x58]
add esp, 0x48
push edx
call fcn.00561c28
push 0xc8
mov dword [ebp + 0x250], eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00561170
push 0x592018
lea ecx, [esp + 0x24]
push ecx
push 0x592038
push 0x59203c
call fcn.00502d70
lea edx, [esp + 0x30]
push edx
call fcn.00561c28
push 0xc8
mov dword [ebp + 0x254], eax
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00561170
push 0x592048
lea ecx, [esp + 0x44]
push ecx
push 0x592068
push 0x59206c
call fcn.00502d70
lea edx, [esp + 0x50]
add esp, 0x40
push edx
call fcn.00561c28
mov dword [ebp + 0x258], eax
add esp, 4
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c8
ret
Function at 0x446b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfc
push ebx
mov eax, 0x74
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 0x62
mov edi, ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 5
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 7
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 9
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], 0xb
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x58], 0xd
mov dword [esp + 0x5c], 0xe
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x6c], 0x12
mov dword [esp + 0x70], 0x13
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], 0x15
mov dword [esp + 0x7c], 0x16
mov dword [esp + 0x80], 0x17
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x88], 0x19
mov dword [esp + 0x8c], 0x1a
mov dword [esp + 0x90], 0x1b
mov dword [esp + 0x94], 0x1c
mov dword [esp + 0x98], 0x1d
mov dword [esp + 0x9c], 0x4d
mov dword [esp + 0xa0], 0x4e
mov dword [esp + 0xa4], 0x4f
call fcn.0042c010
lea ecx, [esp + 0xa8]
call fcn.0042c010
lea ecx, [esp + 0xe8]
call fcn.0042c010
movzx eax, word [esp + 0x10c]
lea esi, [eax + eax*2]
add esi, esi
push 0
lea eax, [esp + 0xac]
add esi, esi
mov ecx, dword [esp + esi + 0x10]
push eax
push ecx
mov ecx, 0x6b3720
call fcn.00430ce0
mov eax, dword [esp + esi + 0x10]
push 0
lea edx, [esp + 0xec]
push edx
push eax
mov ecx, 0x6b3720
call fcn.00430ce0
mov edx, dword [esp + esi + 0x14]
push 0
lea ecx, [esp + 0xcc]
push ecx
push edx
mov ecx, 0x6b3720
call fcn.00430ce0
push 0x3d8
call fcn.005617f1
add esp, 4
test eax, eax
je 0x446ced
mov ecx, eax
call fcn.004434d0
mov esi, eax
jmp 0x446cef
xor esi, esi
mov ebx, dword [esi]
lea ecx, [edi + 0x284]
call fcn.0055c830
push eax
push 0
lea eax, [esp + 0xf0]
push eax
movzx eax, word [edi + 0x23e]
lea ecx, [esp + 0xb4]
push ecx
movzx ecx, word [edi + 0x23c]
lea edx, [esp + 0xd8]
push edx
mov edx, dword [ebx + 0x40]
push eax
push ecx
push 0
push 0
mov ecx, esi
call edx
lea ecx, [esp + 0xe8]
mov dword [esi + 0x24], 1
call fcn.0042c020
lea ecx, [esp + 0xa8]
call fcn.0042c020
lea ecx, [esp + 0xc8]
call fcn.0042c020
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xfc
ret 4
Function at 0x46cbc0
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 0x46cbe0
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, 0x6b4da8
call fcn.0049d090
mov esi, eax
test esi, esi
je 0x46cbff
mov ax, word [ebx + 6]
mov word [esi + 0x28e], ax
jmp 0x46cc2d
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x6b4da8
call fcn.004a02e0
mov esi, eax
test esi, esi
jne 0x46cc1b
pop esi
pop edi
pop ebx
ret 4
push esi
mov ecx, 0x6b4da8
mov dword [esi + 0x24], 1
call fcn.004a92b0
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.0046cae0
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.0042bc80
pop esi
pop edi
pop ebx
ret 4

Function at 0x482385
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
lea ecx, [esi + 0x284]
cmp ebx, 1
jne 0x4823c7
mov eax, dword [0x6b50c4]
add eax, 0x1d4c0
push edi
mov dword [esi + 0x238], eax
call fcn.00445580
push 0x58b050
lea ecx, [esi + 0x284]
call fcn.004455b0
pop edi
push ebx
mov ecx, esi
call fcn.004274c0
pop esi
pop ebx
ret 4
call fcn.00445580
push 0x58b060
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, esi
call fcn.004274c0
pop esi
pop ebx
ret 4
Function at 0x4a4a30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x1a8
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push esi
mov esi, ecx
call ebx
cmp dword [esi + 0xf4], 0
jne 0x4a4a51
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x4a4b3a
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x4a4a87
test eax, eax
je 0x4a4a84
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x4a4a78
push edi
push 0
push 2
mov dword [esp + 0x94], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4a4b39
lea ecx, [esp + 0x8c]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4a4b2a
lea esp, [esp]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x10]
push 0x58df98
push eax
call fcn.00561680
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004a0110
test eax, eax
je 0x4a4b18
mov ecx, 0x6c4628
call fcn.00511570
push 0x230
mov ecx, 0x6b6198
call fcn.004c4980
push eax
push 1
push 0x179e
push 0x6b3890
call fcn.00441fd0
add esp, 0x10
lea edx, [esp + 0x8c]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4a4ac0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [esi + 0xf4], eax
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4b6a00
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x69fba5], 0
push esi
mov esi, ecx
je 0x4b6a23
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov dword [0x6b50d8], eax
mov byte [0x69fba5], 0
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
mov dword [0x6b50d8], eax
cmp eax, ecx
jae 0x4b6a3a
dec edx
mov dword [0x6b50c0], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x6b50c0]
add dword [0x6b50c4], eax
add dword [esi + 8], eax
cmp dword [esi + 8], 0x5265c00
jb 0x4b6a64
inc dword [esi + 4]
add dword [esi + 8], 0xfad9a400
pop esi
ret
Function at 0x4bec80
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 0x4becaf
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 0x520
lea edx, [edi + 0x524]
push edx
push esi
call ebx
test eax, eax
jne 0x4becdf
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 0xc0
add edi, 0xb04
push edi
push esi
call ebx
push esi
test eax, eax
je 0x4becd1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
ret 4