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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00433360
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x44db10
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42e535
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x44db04
push dword [ebp - 4]
mov dword [ebp - 0x48], 0x44dafc
mov dword [ebp - 0x44], 0x44daf0
mov dword [ebp - 0x40], 0x44dae0
mov dword [ebp - 0x3c], 0x44dad8
mov dword [ebp - 0x38], 0x44dacc
mov dword [ebp - 0x34], 0x44dabc
mov dword [ebp - 0x30], 0x44dab4
mov dword [ebp - 0x2c], 0x44daa8
mov dword [ebp - 0x28], 0x44da98
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x42e535
cmp dword [ebp - 0x14], 1
jne 0x42e535
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x42e4f8
cmp byte [ebp - 0x148], al
je 0x42e4f8
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x42e4ea
lea eax, [ebp - 0x96c]
push 0x44da94
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x44b57c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x44bd00
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x42e44e
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0042dbc7
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x42e548
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x42e548
push dword [ebp - 4]
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f4f6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x42f559
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x42f56b
mov eax, dword [esi + 0xdc]
jmp 0x42f5c3
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x42f5c1
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x42f599
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x42f574
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x42fd6b
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x43091b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430982
call esi
cmp eax, 0x3f0
jne 0x430975
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x43097e
push 1
jmp 0x4309a1
cmp eax, ebx
je 0x4309a0
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4309a0
call esi
cmp eax, 0x7a
je 0x4309b0
push ebx
push dword [ebp - 4]
call fcn.0043090c
pop ecx
pop ecx
jmp 0x430aa7
push dword [ebp - 8]
call fcn.00432c57
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4309f6
push ebx
push dword [ebp - 4]
call fcn.0043090c
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x4309ee
push esi
call fcn.00432291
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x430aa7
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x430a40
push ebx
push dword [ebp - 4]
call fcn.0043090c
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x430a3b
push esi
call fcn.00432291
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x430aa7
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x430a7f
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x430a6c
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x430a4f
jmp 0x430a7f
cmp byte [ebp + 0xc], bl
je 0x430a7b
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x430a7f
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0043090c
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x430aa4
push esi
call fcn.00432291
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430ac8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x430b1a
push eax
call fcn.00432c57
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x430b1a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44c2a4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x430b1e
xor al, al
jmp 0x430b7f
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x44d47c
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x430b7d
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00432c57
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x430b7d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x430b6b
mov al, 1
pop ebx
leave
ret 4

Function at 0x43b752
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x450920
cmp edx, dword [eax]
je 0x43b774
add eax, 8
inc ecx
cmp eax, 0x4509b0
jl 0x43b765
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x450920]
jne 0x43b8a2
mov eax, dword [0x4540f0]
cmp eax, 1
je 0x43b87c
test eax, eax
jne 0x43b7a5
cmp dword [0x44df24], 1
je 0x43b87c
cmp edx, 0xfc
je 0x43b8a2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b7dc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00432770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00432fa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43b81f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00432fa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4435d0
push edi
call fcn.00432ea0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00432770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00432780
lea eax, [ebp - 0xa0]
push 0x4435b0
push eax
call fcn.00432780
push dword [esi + 0x450924]
lea eax, [ebp - 0xa0]
push eax
call fcn.00432780
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043d4bf
add esp, 0x2c
pop edi
jmp 0x43b8a2
lea eax, [ebp + 8]
lea esi, [esi + 0x450924]
push 0
push eax
push dword [esi]
call fcn.00432fa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401110
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
lea ecx, [esp]
call fcn.00402a00
mov eax, dword [0x405954]
mov dword [esp + 0x418], 0
test eax, eax
je 0x40114d
cmp eax, 0xffffffff
jne 0x401184
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x405744
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x405954], eax
jne 0x401184
push 0x4050a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4012a0
push ebx
push ebp
push esi
push edi
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0x405088
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x14]
push 0
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [0x405954]
push eax
call esi
mov eax, dword [esp + 0x434]
mov edi, dword [esp + 0x430]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xffffffff
jne 0x40120d
push edi
call ebx
mov edx, dword [0x405954]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push edi
push edx
call esi
mov eax, dword [esp + 0x438]
test eax, eax
je 0x401282
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test eax, eax
je 0x401282
mov ax, word [0x405084]
mov ecx, 0xff
mov word [esp + 0x20], ax
xor eax, eax
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call ebp
push eax
lea ecx, [esp + 0x24]
push 0x405070
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call ebx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
mov eax, dword [0x405954]
lea edx, [esp + 0x2c]
push edx
push eax
call esi
mov eax, dword [0x405954]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4012a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x405954], 0
lea ecx, [esp]
mov dword [esp + 0x418], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
add esp, 0x41c
ret
Function at 0x4012d0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebx
push edi
push 0
push 0xffffffffffffffff
push 0x40512c
mov ebx, 1
call fcn.00401110
add esp, 0xc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40130f
push ebx
push 0xffffffffffffffff
push 0x405118
call fcn.00401110
add esp, 0xc
xor eax, eax
pop edi
pop ebx
ret
push ebp
push esi
push 0x40596c
push 0
push 0
push 0
push 0
push 0x40584c
push 1
push 2
push 0x10
push 0x10
push 0x405104
push 0x4050b4
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x401365
push 1
push 0xffffffffffffffff
push 0x4050f4
call fcn.00401110
add esp, 0xc
xor ebx, ebx
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
ret
push 0
push 0xffffffffffffffff
push 0x4050e4
call fcn.00401110
add esp, 0xc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401398
push 1
push 0xffffffffffffffff
push 0x4050d4
call fcn.00401110
add esp, 0xc
xor ebx, ebx
push 0
push 0xffffffffffffffff
push 0x4050c0
call fcn.00401110
add esp, 0xc
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
ret

Function at 0x4013c0
Capabilities:
Delete service

Disassembly:
sub esp, 0x1c
push ebx
push edi
push 0
push 0xffffffffffffffff
push 0x40517c
mov edi, 1
call fcn.00401110
add esp, 0xc
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x401408
push edi
push 0xffffffffffffffff
push 0x405118
call fcn.00401110
add esp, 0xc
xor eax, eax
pop edi
pop ebx
add esp, 0x1c
ret
push ebp
push esi
push 0x10000
push 0x4050b4
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x401447
push 1
push 0xffffffffffffffff
push 0x405168
call fcn.00401110
add esp, 0xc
xor edi, edi
push ebx
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x10]
push eax
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401473
push 1
push 0xffffffffffffffff
push 0x405158
call fcn.00401110
add esp, 0xc
xor edi, edi
push 0
push 0xffffffffffffffff
push 0x405144
call fcn.00401110
add esp, 0xc
push esi
call ebp
push ebx
call ebp
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x404910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b25f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
mov eax, dword [esi + 0x28]
add esp, 4
cmp eax, 0xffffffff
je 0x40495d
mov ecx, dword [esi + 0x20]
and ecx, 0xffffff
shl eax, 0x18
or ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x404964
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], edx
mov al, byte [esi + 0x1c]
mov byte [esp + 0x16], al
call fcn.004041d0
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov ecx, dword [eax - 8]
push ecx
push eax
call sub.CLRenderNewEngine.dll_public:_static_int___cdecl_CxImage::GetTextWidth_char_const___int__struct_HFONT____
push 0
mov edi, eax
call sub.CLRenderNewEngine.dll_public:_static_int___cdecl_CxImage::GetFontHeight_struct_HFONT____
add esp, 0x1c
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x44]
push edi
push edx
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.00404a40
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x30]
push 0
push 0
mov ecx, dword [eax - 8]
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
push eax
call sub.CLRenderNewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
add esp, 0x30
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004ab42e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x40e0b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2edb
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14
test eax, eax
push esi
jne 0x40e108
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MatchUpgradeAnim
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], 0xffffffff
call fcn.00406290
mov ecx, eax
call fcn.00401560
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 4
lea eax, [esp + 8]
push eax
call fcn.004011b0
mov ecx, eax
call fcn.00401810
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x20], 1
je 0x40e13e
mov ecx, eax
call fcn.00402420
mov esi, eax
jmp 0x40e140
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub eax, edx
mov dword [esp + 0x20], 0xffffffff
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub eax, 0xe6
sub ecx, 0xe1
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.data_MatchSystem_upgrade.mif
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x14], esp
push str.MatchUpgradeAnim
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.00402770
push 0x14
push 0
mov ecx, esi
call fcn.00402800
push 2
push 1
push 0
push esi
call fcn.004011b0
mov ecx, eax
call fcn.00401450
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4103a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b3018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push 0
push 0
push 0
push edi
lea ecx, [esi + 4]
call sub.CLRenderNewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
lea ecx, [esp + 0x30]
call fcn.0040e3f0
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
call fcn.0040e490
push 3
push 0x14
push 0x14
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.0040e920
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
sub eax, edi
mov ebx, dword [esp + 0x14]
cdq
sub eax, edx
sub ecx, ebx
sar eax, 1
add eax, edi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x2c], eax
mov eax, ecx
cdq
sub eax, edx
add esi, 0x34
sar eax, 1
add eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x30]
call fcn.0040e400
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x412bb0
Capabilities:
Create directory
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov esi, ecx
push eax
call fcn.004ac51f
add esp, 4
push str.Setting_
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004ab4d0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
add esp, 4
push ebx
push edx
push str._spet__u.bin
push 0x103
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x4cebe4
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x412c3e
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], 1
jmp 0x412c5a
push edi
push 8
add esi, 0x104
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004ab42e
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x412c80
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x4cec04
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x412cb5
push esi
push 8
add edi, 0x104
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
ret

Function at 0x419920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b34cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
lea ecx, [esp]
mov dword [esp + 4], 0
mov dword [esp + 8], 0x4d0314
mov dword [esp + 0xc], 0x4d0308
mov dword [esp + 0x10], 0x4d02fc
mov dword [esp + 0x14], 0x4d02f0
mov dword [esp + 0x18], 0x4d02e4
mov dword [esp + 0x1c], 0x4d02d4
mov dword [esp + 0x20], 0x4d02c4
mov dword [esp + 0x24], 0x4d02b4
mov dword [esp + 0x28], 0x4d02a0
mov dword [esp + 0x2c], 0x4d028c
mov dword [esp + 0x30], 0x4d0278
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 1
cmp eax, 1
jl 0x4199c5
cmp eax, 0xb
jg 0x4199c5
mov eax, dword [esp + eax*4 + 4]
lea ecx, [esp]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x40], 0
call fcn.004ab42e
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 8