joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432d81
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4581b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00432d16
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00434f20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x432dd0
cmp dword [ebp - 0x1c], 5
jb 0x432de8
jmp 0x432de4
cmp dword [ebp - 0x10], 1
jne 0x432de8
cmp dword [ebp - 0x1c], 4
ja 0x432de4
jne 0x432de8
cmp dword [ebp - 0x18], 0
jbe 0x432de8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44b5f4
call fcn.0041f2a0
test eax, eax
jge 0x432e09
mov byte [0x45aa40], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004337a7
add ebp, 0x78
leave
ret

Function at 0x432fbb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x459f48], 0
push esi
jne 0x432f2e
call fcn.00432e59
test eax, eax
je 0x432f71
mov eax, dword [0x459f48]
cmp eax, 1
jne 0x432f4f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x432f71
pop esi
ret
push eax
call dword [0x459f50]
test eax, eax
jne 0x432fb9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x432f75
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x459f48]
call dword [0x459f50]
mov edi, eax
test edi, edi
je 0x432f9c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x432fb8
lea edi, [esi + 0xff0]
push esi
push dword [0x459f48]
call dword [0x459f4c]
add esi, 0x10
cmp esi, edi
jb 0x432fa2
mov eax, esi
pop edi
pop esi
ret
jmp 0x432f1b

Function at 0x4337a7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4581b0]
jne 0x4337b1
repz ret
jmp fcn.00437d83
Function at 0x43a71a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x458380]
je 0x43a735
inc edi
cmp edi, 0x17
jb 0x43a726
cmp edi, 0x17
jae 0x43a8b5
push ebp
push 3
call fcn.0043ff9c
cmp eax, 1
pop ecx
je 0x43a881
push 3
call fcn.0043ff9c
test eax, eax
pop ecx
jne 0x43a769
cmp dword [0x458030], 1
je 0x43a881
cmp ebx, 0xfc
je 0x43a8b4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45a488
push ebp
call fcn.004363d2
add esp, 0xc
test eax, eax
je 0x43a79f
push esi
push esi
push esi
push esi
push esi
call fcn.004337c0
add esp, 0x14
push 0x104
mov esi, 0x45a4a1
push esi
push 0
mov byte [0x45a5a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43a7e3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004363d2
add esp, 0xc
test eax, eax
je 0x43a7e3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004337c0
add esp, 0x14
push esi
call fcn.00435420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43a828
push esi
call fcn.00435420
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45a79c
push 0x44bca4
sub ecx, eax
push ecx
push eax
call fcn.0043b324
add esp, 0x14
test eax, eax
je 0x43a828
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004337c0
add esp, 0x14
jmp 0x43a82a
xor esi, esi
push 0x44bca0
push ebx
push ebp
call fcn.0043ff2b
add esp, 0xc
test eax, eax
je 0x43a84a
push esi
push esi
push esi
push esi
push esi
call fcn.004337c0
add esp, 0x14
push dword [edi*8 + 0x458384]
push ebx
push ebp
call fcn.0043ff2b
add esp, 0xc
test eax, eax
je 0x43a86c
push esi
push esi
push esi
push esi
push esi
call fcn.004337c0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043fd6e
add esp, 0xc
jmp 0x43a8b4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43a8b4
cmp ebp, 0xffffffff
je 0x43a8b4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x458384]
push dword [esi]
call fcn.00435420
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43fd6e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437f69
xor ebx, ebx
cmp dword [0x45aa14], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43fe44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ff24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43ff24
push eax
call fcn.00437efb
mov dword [esp], 0x44c61c
push edi
mov dword [0x45aa14], eax
call esi
push eax
call fcn.00437efb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45aa18], eax
call esi
push eax
call fcn.00437efb
mov dword [0x45aa1c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004386b4
test eax, eax
pop ecx
pop ecx
je 0x43fe12
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004337c0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43fe44
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00437efb
cmp eax, ebx
pop ecx
mov dword [0x45aa24], eax
je 0x43fe44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00437efb
pop ecx
mov dword [0x45aa20], eax
mov eax, dword [0x45aa20]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43fec9
cmp dword [0x45aa24], ecx
je 0x43fec9
push eax
call fcn.00437f72
push dword [0x45aa24]
mov esi, eax
call fcn.00437f72
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43fec9
cmp edi, ebx
je 0x43fec9
call esi
cmp eax, ebx
je 0x43fe96
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43fe96
test byte [ebp - 0x18], 1
jne 0x43fec9
lea eax, [ebp - 0x10]
push eax
call fcn.004386eb
test eax, eax
pop ecx
je 0x43feb1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004337c0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43fec0
or dword [ebp + 0x10], 0x200000
jmp 0x43ff04
or dword [ebp + 0x10], 0x40000
jmp 0x43ff04
mov eax, dword [0x45aa18]
cmp eax, dword [ebp - 8]
je 0x43ff04
push eax
call fcn.00437f72
cmp eax, ebx
pop ecx
je 0x43ff04
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43ff04
mov eax, dword [0x45aa1c]
cmp eax, dword [ebp - 8]
je 0x43ff04
push eax
call fcn.00437f72
cmp eax, ebx
pop ecx
je 0x43ff04
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45aa14]
call fcn.00437f72
cmp eax, ebx
pop ecx
je 0x43ff24
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ff26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401080
Capabilities:
Log keystrokes via application hook

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

Disassembly:
sub esp, 0x35c
mov eax, dword [0x6b8f0c]
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 0x4014a6
mov ecx, dword [str.mfl.dat]
mov edx, dword [0x59b6d4]
mov dword [eax], ecx
mov cl, byte [0x59b6d8]
mov dword [eax + 4], edx
lea edx, [esp + 0x25c]
push 0x59b678
push edx
mov byte [eax + 8], cl
call fcn.0057db40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401505
push eax
call fcn.0057d8f6
add esp, 4
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0057d76e
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 0x401524
mov ecx, dword [str.Resource.bin]
mov edx, dword [0x59b6c4]
mov dword [eax], ecx
mov ecx, dword [0x59b6c8]
mov dword [eax + 4], edx
mov edx, dword [0x59b6cc]
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.0057d77d
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.0057d77d
add esp, 0x2c
lea ecx, [esp + 0x20]
push ecx
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401564
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 0x4015e0
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.0057d77d
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.0057d77d
add esp, 0x2c
lea ecx, [esp + 0x20]
push ecx
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401610
push ebx
call fcn.0057d8f6
mov ecx, dword [esp + 0x36c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0057d76e
add esp, 0x35c
ret
Function at 0x4016a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
mov ecx, 0x6bd240
call fcn.0041ac20
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6ba514], 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 [0x6f581c]
xor edx, edx
mov eax, esi
div dword [0x6f4da8]
mov eax, dword [0x6f4dac]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x4016fd
cmp dword [edx], esi
je 0x401741
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4016f2
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 0x6ba518
push 0x6ba730
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6ba500], esi
test esi, esi
jne 0x40175d
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x4016fd
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 0x401712
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, 0x6bb368
call fcn.00402fc0
cmp dword [0x6cb7f8], 0
push 0
mov ecx, 0x6bb368
push 0
jne 0x4017ae
push 1
call fcn.00402e30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 2
call fcn.00402e30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x401f50
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.00401080
mov eax, dword [esp + 0x2c]
mov dword [0x6ba4f8], 0
mov ecx, str.gvkc9jw0ot0Ut
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401f91
test dl, dl
je 0x401f8d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401f91
add eax, 2
add ecx, 2
test dl, dl
jne 0x401f71
xor eax, eax
jmp 0x401f96
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fb7
push 0
push str.Error__
push 0x59b804
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
call fcn.004012f0
test eax, eax
je 0x401fae
push esi
call fcn.00401080
push str.._Log_Debug.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x59b7f0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._______________________________________________________
push 0x6da258
call fcn.00521ce0
push str._____________________Client_Start______________________
push 0x6da258
call fcn.00521ce0
push str._______________________________________________________
push 0x6da258
call fcn.00521ce0
add esp, 0x18
call fcn.00401260
mov ecx, 0x6db830
call fcn.00534c40
push 0x6f4c7a
push 0x6ba518
call fcn.0057dcef
push 0x6f4c7a
push 0x6ba730
call fcn.0057dcef
push esi
call fcn.00401ee0
add esp, 0x14
mov ecx, 0x6db830
call fcn.0052dc00
push str.._Resource_QuestScript_QuestString.bin
mov ecx, 0x6d5278
call fcn.004e0250
push str.._Resource_QuestScript_QuestScript.bin
mov ecx, 0x6d5278
call fcn.004e0dd0
push str.._Resource_QuestScript_NewbieGuide.bin
mov ecx, 0x6d5278
call fcn.004def30
push str.._Resource_QuestScript_QuestNpcList.bin
mov ecx, 0x6d5278
call fcn.004e03f0
mov ecx, 0x6c8ea0
call fcn.00428bd0
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.004016a0
add esp, 8
test eax, eax
jne 0x4020b4
call fcn.00401300
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 0x4020eb
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
jmp 0x4020c8
mov ecx, 0x6bb368
call fcn.004032c0
cmp eax, 0xffffffff
jne 0x4020c8
call fcn.00401300
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
add esp, 0x1c
ret 0x10
Function at 0x4153c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x130
mov eax, dword [0x6b8f0c]
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 0x415572
cmp byte [esi], bl
je 0x415572
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 0x415572
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 0x415444
mov dword [esp + 0xc], 0x64
push edi
xor edi, edi
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x10], ebx
jbe 0x415560
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.00415840
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 0x415539
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 0x4154df
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415539
push esi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4154fc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415539
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 0x415557
mov esi, dword [esp + 0x2c]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x415460
mov edx, dword [esp + 0x18]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
jmp 0x415574
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 0x415574
xor eax, eax
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
xor ecx, esp
call fcn.0057d76e
add esp, 0x130
ret 4
Function at 0x415590
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 0x4155d2
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.00415840
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.0057ea27
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, edi
jne 0x415605
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 0x415640
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.00415840
push esi
call fcn.0057e9ed
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 0x41567b
cmp eax, 8
ja 0x41567b
push eax
lea eax, [esi + 0x194]
push eax
push ebx
call fcn.0057e040
mov edi, dword [esi + 0x190]
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, ebp
call fcn.004153c0
test al, 4
jne 0x415681
mov esi, dword [esi]
test esi, esi
jne 0x415645
mov edx, dword [esp + 0x14]
push edx
call fcn.0057e9ed
add esp, 4
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 8
ret 4
Function at 0x4363c0
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x59bd48
push str.._image_InterfaceScript_AdvancedSetDlg.bin
mov edi, ecx
call fcn.00435e80
mov ecx, dword [edi + 0x18]
mov esi, eax
push esi
call fcn.00578640
mov ecx, esi
call fcn.004fe7b0
pop edi
mov dword [0x6bbd3c], esi
mov ecx, esi
pop esi
jmp fcn.004ff330

Function at 0x437320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x59bd48
push str.._image_InterfaceScript_21.bin
mov edi, ecx
call fcn.00435e80
fild dword [0x6f4be0]
mov esi, eax
mov eax, dword [0x6f4be0]
test eax, eax
jns 0x43734e
fadd dword [0x59bd60]
movzx ecx, word [esi + 0x1ec]
mov ebx, dword [esi]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fsubp st(1)
fsub qword [0x59c188]
fstp dword [esp + 0xc]
fld dword [esi + 0x1c8]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.0057e670
fld dword [esp + 0xc]
push eax
call fcn.0057e670
mov edx, dword [ebx + 0x24]
push eax
mov ecx, esi
call edx
mov ecx, dword [edi + 0x18]
push esi
call fcn.00578640
mov ecx, esi
mov dword [0x6bbac0], esi
call fcn.004bf5a0
call fcn.00503100
pop edi
pop esi
mov ecx, eax
pop ebx
add esp, 8
jmp fcn.00503140
Function at 0x465f90
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 0x465fb0
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, 0x6ca518
call fcn.0049b220
mov esi, eax
test esi, esi
je 0x465fcf
mov ax, word [ebx + 6]
mov word [esi + 0x28e], ax
jmp 0x465ffd
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x6ca518
call fcn.0049e220
mov esi, eax
test esi, esi
jne 0x465feb
pop esi
pop edi
pop ebx
ret 4
push esi
mov ecx, 0x6ca518
mov dword [esi + 0x24], 1
call fcn.004a7170
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.00465eb0
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.004235f0
pop esi
pop edi
pop ebx
ret 4

Function at 0x4808d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 1
jne 0x480913
mov eax, dword [0x6ca834]
add eax, 0x1d4c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x238], eax
mov ecx, dword [ebp - 4]
add ecx, 0x284
call fcn.0043cc40
push str.ANRaster.tga
mov ecx, dword [ebp - 4]
add ecx, 0x284
call fcn.0043cc70
jmp 0x48092c
mov ecx, dword [ebp - 4]
add ecx, 0x284
call fcn.0043cc40
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.0041ece0
mov esp, ebp
pop ebp
ret 4

Function at 0x480940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 1
jne 0x480988
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
add eax, dword [0x6ca834]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x238], eax
mov ecx, dword [ebp - 4]
add ecx, 0x284
call fcn.0043cc40
push str.ANRaster.tga
mov ecx, dword [ebp - 4]
add ecx, 0x284
call fcn.0043cc70
jmp 0x4809a1
mov ecx, dword [ebp - 4]
add ecx, 0x284
call fcn.0043cc40
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.0041ece0
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2a00
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x6b8f0c]
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 0x4a2a2f
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x4a2b0b
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x4a2a65
test eax, eax
je 0x4a2a62
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x4a2a56
push edi
push 0
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2b0a
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4a2afb
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x138]
push 0x59b67c
push eax
call fcn.0057dcef
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.0049e040
test eax, eax
je 0x4a2aec
mov ecx, 0x6db050
call fcn.00526dc0
push 0x230
mov ecx, 0x6cb8c8
call fcn.004c2360
push eax
push 1
push 0x179e
push 0x6c9010
call fcn.00439450
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4a2a91
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.0057d76e
add esp, 0x1ac
ret
Function at 0x4b4470
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x6b4a7d], 0
push esi
mov esi, ecx
je 0x4b4493
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov dword [0x6ca848], eax
mov byte [0x6b4a7d], 0
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov edx, eax
sub edx, ecx
mov dword [0x6ca848], eax
cmp eax, ecx
jae 0x4b44aa
dec edx
mov dword [0x6ca830], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x6ca830]
add dword [0x6ca834], eax
add dword [esi + 8], eax
cmp dword [esi + 8], 0x5265c00
jb 0x4b44d4
inc dword [esi + 4]
add dword [esi + 8], 0xfad9a400
pop esi
ret