joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ea0
Capabilities:
Query environment variable

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x403ff6
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov ebp, edx
cmp byte [edx], al
je 0x403fc5
jmp 0x403ed0
mov dl, byte [ebp]
cmp dl, 0x25
jne 0x403fa0
mov cl, byte [ebp + 1]
inc ebp
mov edi, ebp
mov dword [esp + 0x14], edi
test cl, cl
je 0x403f01
lea ebx, [ebx]
cmp cl, 0x25
je 0x403efd
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ef0
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x28]
sub ebx, eax
sub edi, ebp
lea eax, [edi + 1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x403fb9
push edi
push ebp
push esi
call fcn.004359dd
mov ecx, dword [esp + 0x30]
push ebx
push ecx
push esi
mov eax, str.Environment
mov edx, 0x80000001
mov byte [esi + edi], 0
call fcn.00403d70
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x403f65
mov edx, dword [esp + 0x24]
push ebx
push edx
push esi
mov eax, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov edx, 0x80000002
call fcn.00403d70
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x403fb9
dec edi
add dword [esp + 0x10], edi
cmp dword [esp + 0x24], 0
je 0x403f80
add dword [esp + 0x24], edi
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x25
mov ecx, dword [esp + 0x24]
jne 0x403f90
lea ebp, [eax + 1]
mov eax, dword [esp + 0x10]
cmp byte [ebp], 0
jne 0x403ed0
jmp 0x403fcb
inc eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x403fb6
cmp eax, dword [esp + 0x28]
jg 0x403fb6
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x24], ecx
inc ebp
jmp 0x403f94
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp byte [ebp], 0
jne 0x403fe1
inc eax
test ecx, ecx
je 0x403ff2
cmp eax, dword [esp + 0x28]
jg 0x403ff2
pop edi
pop esi
pop ebp
mov byte [ecx], 0
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x404320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446238
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00420cec
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
push 0x8000
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00421162
test eax, eax
je 0x4043a1
lea ecx, [esp + 0xc]
call fcn.00420bd7
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4043a1
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004209e0
cmp eax, edi
je 0x4043a1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420df4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x4046a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x446268
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebp
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, ebp
mov edi, ebp
mov dword [esp + 0x14], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046e7
movzx ecx, byte [esp + 0x8c]
movzx edx, byte [esp + 0x88]
sub eax, esi
push ebp
lea eax, [eax + ebp + 1]
movzx esi, byte [esp + 0x78]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
push eax
mov eax, dword [esp + 0x88]
push esi
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, ebx
call fcn.00421dae
mov esi, eax
test esi, esi
je 0x40480a
lea ecx, [esp + 0x1c]
call fcn.004215d2
push 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.00421af2
test eax, eax
je 0x4047e6
push ebx
lea ecx, [esp + 0x20]
call fcn.00421e99
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
push 0x20
push ecx
call dword [sym.imp.GDI32.dll_GetTextFaceA]
test eax, eax
je 0x4047d8
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.00435440
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.00421e99
test esi, esi
jne 0x4047f1
mov ecx, ebx
call fcn.00421e06
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.00421b5b
test esi, esi
jne 0x4048bf
mov edi, dword [esp + 0x10]
cmp byte [edi], 0
jne 0x40481d
mov edi, ebp
mov dword [esp + 0x14], 1
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404822
sub eax, esi
lea ecx, [eax + edi + 1]
movzx eax, byte [esp + 0x90]
push edi
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
mov edx, dword [esp + 0x84]
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
push eax
movzx eax, byte [esp + 0x94]
push eax
mov eax, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x94]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, ebx
call fcn.00421dae
cmp dword [esp + 0x14], 0
mov esi, eax
je 0x404770
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00434d81
add esp, 0x4c
ret
Function at 0x405770
Capabilities:
Rebuild import table

Disassembly:
push 0xffffffffffffffff
push 0x4462e9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004232eb
xor edi, edi
mov dword [esi], vtable.CFrameBox.0
mov eax, vtable.CFont.0
mov dword [esp + 0x18], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x54], eax
or eax, 0xffffffff
push str.winmm.dll
mov byte [esp + 0x1c], 3
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], eax
mov dword [esi + 0x74], edi
mov dword [esi + 0x7c], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0xb0], eax
cmp eax, edi
je 0x405847
push str.PlaySoundA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x405849
xor eax, eax
mov dword [esi + 0xb4], eax
cmp eax, edi
je 0x405879
push 0x40
push edi
push edi
call eax
test eax, eax
mov eax, esi
jne 0x40587b
mov dword [esi + 0xb4], edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x405e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x110
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
mov esi, edx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405eb3
mov dword [eax], 0
lea ebx, [esi + 6]
push ebx
lea ebp, [esi + 4]
push ebp
lea eax, [esi + 2]
push eax
push esi
push ecx
call fcn.004071b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x405f41
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x405f3f
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405f34
push ebx
push ebp
lea eax, [esi + 2]
push eax
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004071b0
mov esi, dword [esp + 0x28]
add esp, 0x14
mov edi, eax
test esi, esi
je 0x405f34
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f30
test al, 0x10
jne 0x405f30
mov eax, 1
jmp 0x405f32
xor eax, eax
mov dword [esi], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434d81
add esp, 0x110
ret
Function at 0x406280
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446378
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x3c]
mov esi, edx
xor edi, edi
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edi
push ebx
push ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063c8
mov eax, dword [esp + 0x20]
mov ecx, 1
cmp eax, ecx
je 0x4062eb
cmp eax, 2
jne 0x4063c8
cmp dword [esp + 0x18], ecx
jae 0x4062f5
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
cmp eax, edi
je 0x406304
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], edi
mov edx, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.00403650
test al, al
je 0x4063c8
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov byte [eax], 0
mov eax, dword [esi]
push eax
push edi
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063c8
cmp dword [esp + 0x20], 2
jne 0x4063af
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 1
lea edx, [esp + 0x1b]
push edx
push eax
mov dword [esp + 0x40], edi
call ebx
mov edi, eax
push edi
lea ecx, [esp + 0x28]
call fcn.00403650
mov ebp, dword [esp + 0x24]
test al, al
je 0x40638a
mov eax, dword [esi]
push edi
push ebp
push eax
call ebx
cmp eax, edi
ja 0x40638a
push ebp
mov ecx, esi
call fcn.00415e60
mov esi, 1
jmp 0x40638e
mov esi, dword [esp + 0x1c]
test ebp, ebp
je 0x406399
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4071b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
lea eax, [esp + 0x18]
push eax
xor ebp, ebp
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x407228
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x407227
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407220
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x449788
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407220
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x407238
mov ecx, ebp
shr ecx, 0x10
mov word [eax], cx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x407243
mov word [eax], bp
mov eax, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
test eax, eax
je 0x407257
mov edx, dword [esp]
shr edx, 0x10
mov word [eax], dx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x407266
mov cx, word [esp]
mov word [eax], cx
mov eax, dword [esp + 4]
add esp, 0x14
ret

Function at 0x407440
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 0x407459
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407494
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407490
lea ebx, [ebx]
cmp esi, eax
jae 0x407494
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407480
cmp esi, eax
jb 0x40749a
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 0x40b470
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4467b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
push 3
lea ecx, [esp + 0x28]
call fcn.00409ff0
mov eax, dword [esp + 0x78]
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b609
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b5ea
lea ecx, [esi + 2]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40b5dc
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b5b6
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
mov dword [esp + 0x1c], 0
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 1
mov dword [esp + 0x24], 0x4e4
call fcn.00415fd0
test eax, eax
je 0x40b58a
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
push eax
mov ecx, esi
call fcn.00409c40
test al, al
je 0x40b58a
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esi]
mov edx, dword [edx]
push eax
push ecx
mov ecx, esi
call edx
mov ebp, eax
test ebp, ebp
jge 0x40b58f
cmp dword [esi + 0x38], 0
je 0x40b582
mov esi, dword [esi + 0x20]
mov dword [esp + 0x14], esi
jmp 0x40b58f
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x40b58f
mov ebp, 0x8007000e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40b5cc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40b5ca
and eax, 0xffff
or eax, 0x80070000
mov ebp, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b61f
push ebx
mov ebp, 0x8007000e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40b5fe
and eax, 0xffff
or eax, 0x80070000
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40b61d
and eax, 0xffff
or eax, 0x80070000
mov ebp, eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x40b630
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x24], vtable.Cloanto::CIniDataBuffer_char_.0
mov dword [esp + 0x48], vtable.Cloanto::CBuffer_char_.0
test eax, eax
je 0x40b657
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], vtable.Cloanto::CIniData_char_.0
call fcn.00409f70
mov eax, ebp
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x40bd40
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x10
lea eax, [esp + 0x10]
push eax
push 0x59
push esi
call edi
test eax, eax
je 0x40bdb6
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bd76
sub eax, edx
cmp eax, 2
je 0x40bd98
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00434d81
add esp, 0x14
ret
lea eax, [esp + 0xc]
mov edx, ebx
mov ecx, eax
mov byte [esp + 0xe], 0
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bda7
jmp 0x40bf02
cmp esi, 0x400
jne 0x40bdc6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
jmp 0x40bdc8
mov eax, esi
cmp eax, 0x414
je 0x40bef1
cmp eax, 0x814
je 0x40bedc
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0x4a
ja case.0x40bdf6.5
movzx edx, byte [eax + 0x40bf38]
jmp dword [edx*4 + 0x40bf1c]
xor eax, eax
nop
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af44], cl
inc eax
test cl, cl
jne 0x40be00
jmp 0x40bf02
xor eax, eax
jmp 0x40be20
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af40], cl
inc eax
test cl, cl
jne 0x40be20
jmp 0x40bf02
xor eax, eax
jmp 0x40be40
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af3c], cl
inc eax
test cl, cl
jne 0x40be40
jmp 0x40bf02
xor eax, eax
jmp 0x40be60
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af38], cl
inc eax
test cl, cl
jne 0x40be60
jmp 0x40bf02
xor eax, eax
jmp 0x40be80
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af34], cl
inc eax
test cl, cl
jne 0x40be80
jmp 0x40bf02
xor eax, eax
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af30], cl
inc eax
test cl, cl
jne 0x40be93
jmp 0x40bf02
push 0x10
lea eax, [esp + 0x10]
push eax
push 3
push 0x400
call edi
test eax, eax
je 0x40bd84
lea eax, [esp + 0xc]
mov edx, ebx
mov ecx, eax
mov byte [esp + 0xe], 0
sub edx, ecx
jmp 0x40bed0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bed0
jmp 0x40bf02
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af2c], cl
inc eax
test cl, cl
jne 0x40bee0
jmp 0x40bf02
xor eax, eax
mov cl, byte [esp + eax + 0xc]
mov byte [eax + 0x44af30], cl
inc eax
test cl, cl
jne 0x40bef3
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00434d81
add esp, 0x14
ret
Function at 0x40c4b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40c4da
mov ecx, dword [esi + 0x54]
push ecx
push 0
push 0
push 0x202
call eax
test eax, eax
je 0x40c4da
mov eax, 1
pop esi
add esp, 0x3c
ret
mov eax, dword [esi + 0x68]
push edi
test eax, eax
je 0x40c544
cmp byte [eax + 0xc], 0
lea edi, [eax + 0xc]
je 0x40c544
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40c508
mov edx, dword [esi + 0x44]
push edx
push edi
call eax
test eax, eax
jl 0x40c544
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00435880
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40c4fd
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x40c580
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xe4
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
push ebx
push ebp
mov ebp, dword [esp + 0xf0]
push esi
push edi
mov esi, ecx
push ebp
mov ebx, edx
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xc8
lea ecx, [esp + 0x2c]
mov edi, eax
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x40c5ea
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.00435b1e
add esp, 8
test eax, eax
jne 0x40c5ea
mov eax, edi
jmp 0x40c6bf
push 0xffffffffffffffff
push 0xfffffffffffffff4
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x18]
push ecx
push esi
call ebx
lea edx, [esp + 0x20]
push edx
push esi
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [esp + 0x24]
push ebp
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
push edx
mov edx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x118]
push ecx
mov ecx, dword [esp + 0x30]
push eax
push 0x44af59
push ecx
push edx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
je 0x40c6b3
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x100]
cmp eax, ecx
je 0x40c67c
push ecx
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0
push 0x31
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
call esi
push 0
push eax
push 0x30
push ebx
call esi
push 0x21b
push 0
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40c6bd
push ebp
push 0xfffffffffffffff4
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, ebx
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434d81
add esp, 0xe4
ret