joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c2f0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb2ee
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403020
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00403020
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004231f0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.00402de0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.00402de0
lea ecx, [ebp - 0x27c]
call fcn.004216a0
test al, al
je 0x48c4f4
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.004c4288
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp - 0x280]
call fcn.00430bc0
test al, al
jne 0x48c4f8
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x48c4f4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48c4df
test eax, eax
je 0x48c4df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004c4650
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x48c541
push esi
lea ecx, [ebp - 0x280]
call fcn.00430d70
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x48c541
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48c52c
test eax, eax
je 0x48c52c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004c4650
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.00402de0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4269
mov esp, ebp
pop ebp
ret 4
Function at 0x492c90
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc1c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.00402de0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.00402de0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.00402de0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00402de0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00402de0
push 0x88
push ebx
call fcn.004c4650
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x493160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc91
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x14
call fcn.004c4288
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 8
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push 8
push 0x48
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x1000000
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [ebp - 0x14], 0
setne al
mov byte [esi + 0x10], al
mov dword [ebp - 4], 0xffffffff
push 0x34
mov dword [edi], esi
call fcn.004c4288
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
push 0x34
push 0
push esi
call fcn.004c67e0
add esp, 0x10
mov dword [esi], vtable.RC::RCWindowHookerProc.0
mov byte [ebp - 4], 2
mov dword [esi], vtable.RC::RCWndShadow::TWndHook.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi + 4], esi
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4269
mov esp, ebp
pop ebp
ret
Function at 0x4afb90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4afb9b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004afbb0
Function at 0x4b4280
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe69b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4b42b9
call fcn.004b4420
cmp byte [0x53d148], 0
jne 0x4b42cc
mov eax, SysReAllocString
jmp 0x4b43fc
mov eax, dword [esi]
test eax, eax
jne 0x4b434c
push 8
call fcn.004c4288
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004c4288
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.004c67e0
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b433b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4b43eb
call fcn.00424980
test al, al
jne 0x4b4386
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.00424ec0
test al, al
je 0x4b43eb
mov ecx, dword [esi]
add ecx, 4
call fcn.004244c0
call fcn.00424980
test al, al
je 0x4b43eb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00403020
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.00431490
mov ecx, eax
call fcn.00431550
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00402de0
test edi, edi
je 0x4b43eb
push 0x519e54
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b43eb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4b43eb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4b43fa
mov dword [eax], SysStringLen
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4269
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4eb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe82f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.004b5590
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00402de0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00402de0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402de0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402de0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402de0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402de0
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4b5b60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fea1f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00402de0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00402de0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402de0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402de0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402de0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b6e40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4febbf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00402fe0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00402fe0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00402fe0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00402fe0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00402fe0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b7f70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x14], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x14], edi
mov esi, edi
cmp edi, ebp
jge 0x4b7fe1
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea edx, [ecx - 0x18]
call fcn.00412f90
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
call fcn.00403a60
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00403de0
mov edi, esi
cmp esi, ebp
jl 0x4b7fa0
mov eax, dword [esp + 0x10]
cmp esi, ebp
jne 0x4b800b
test al, 1
jne 0x4b800b
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ebx + eax*8]
push eax
call fcn.00403a60
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00403de0
mov edi, dword [esp + 0x18]
push dword [esp + 0x1c]
call fcn.00403a60
add esp, 4
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edi
jge 0x4b8060
lea esi, [edi - 1]
mov edx, ecx
sar esi, 1
lea eax, [esi + esi*2]
lea ebp, [ebx + eax*8]
mov ecx, ebp
call fcn.00412f90
test al, al
je 0x4b805c
push ebp
call fcn.00403a60
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00403de0
mov edi, esi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], esi
jl 0x4b8023
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403a60
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00403de0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4bcbd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe82f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00401f40
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.00403090
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00403090
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00403090
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00403090
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00403090
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00403090
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4be650
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffc58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4be699
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4be7eb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4be7b6
test eax, eax
je 0x4be7b6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4be7b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4be73b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4be72f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4be73b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4be749
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403090
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4be7b6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4be6f4
jmp 0x4be7b9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4be7e2
test edx, edx
je 0x4be7de
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4be6b0
mov al, 1
jmp 0x4be7ed
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4be7eb
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c4269
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4dc632
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dc2f2
Function at 0x401a60
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x45d3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x140]
xor esi, esi
mov dword [esp + 0x138], esi
mov dword [esp + 0x24], ebp
mov edi, ecx
mov dword [esp + 0x20], esi
call fcn.00410db9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x401acf
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x138], esi
mov dword [esp + 0x20], 1
cmp edi, esi
jne 0x401b04
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x401b10
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x1c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x401ba4
push ebx
push 2
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x14]
mov edi, eax
push edi
push ebx
push edx
lea eax, [esp + 0x34]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x465af8
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x1c]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x12]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
push edx
movzx eax, cx
push eax
push str._d._d._d._d
push ebp
call fcn.00402870
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0042d298
add esp, 0x128
ret 4

Function at 0x402970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402989
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4029c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4029c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029b0
cmp esi, eax
jb 0x4029ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405d40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45e126
mov eax, dword fs:[0]
push eax
sub esp, 0x740
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x73c], eax
push ebx
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x750]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x649]
push ebx
push eax
mov byte [esp + 0x650], bl
call fcn.004314b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x648]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x644]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x644]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
push str.GameInfoSelfConfig.ini
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x764], ebx
call fcn.00402300
add esp, 0xc
mov byte [esp + 0x758], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call section..text
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push str.Bits
push str.view
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
cmp edi, ebx
jbe 0x405e70
push 0x9c
call fcn.004103bf
mov esi, eax
add esp, 4
push 1
mov edx, 0x9c
push esi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x28], 0x5c0000
mov word [esi + 0x24], dx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
call fcn.004103f9
add esp, 4
mov dword [esp + 0x758], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x750]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x73c]
xor ecx, esp
call fcn.0042d298
add esp, 0x74c
ret

Function at 0x4060b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004135f4

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

Disassembly:
push 0xffffffffffffffff
push 0x45cd63
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00449a65
add esp, 4
mov byte [esp + 0x14], 0
cmp dword [esi + 0x30], 0x10
jb 0x406716
mov eax, dword [esi + 0x1c]
push eax
call fcn.004103f9
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x408a20
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x45ddc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea edi, [ebx + 0x720]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408b1c
push ecx
lea esi, [ebx + 0x824]
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.00402eb0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
mov dword [esp + 0x2c], 0
call fcn.00402eb0
or ebp, 0xffffffff
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.0040a1e0
cmp al, 1
jne 0x408b1c
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408ab3
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
push edi
lea ecx, [esp + 0x18]
push str.CopyFile__:_s_to__s__r_n
push ecx
mov dword [esp + 0x30], 1
call fcn.00402870
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x408b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret