joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f025
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x472d88]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x44f083
push 0x45ee7c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004190b4
add esp, 0x10
cmp eax, 0xffffffff
je 0x44f097
cmp eax, esi
jae 0x44f097
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44f099
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x44f04e
jmp 0x44f09a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00416c7b
leave
ret
Function at 0x44f0ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x472d88]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44f15c
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x44f25e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x44f20c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44f25f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44f201
cmp dword [ebp - 0x24], 1
jne 0x44f201
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x45ee8c
push eax
call fcn.00419016
add esp, 0xc
cmp eax, 1
jne 0x44f201
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44f25f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44f25f
lea ecx, [ebp - 0x18]
push ecx
push 0x44f0a4
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x44f25f
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x44f285
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0044f025
cmp eax, ebx
pop ecx
pop ecx
jne 0x44f287
inc edi
cmp edi, esi
jl 0x44f26e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00416c7b
leave
ret 4
Function at 0x44f296
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4722e0
je 0x44f352
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44f33a
mov esi, dword [ebx + 4]
jmp 0x44f334
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44f324
cmp dword [ebp - 0xc], 4
jne 0x44f324
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x44f31c
or dword [eax + 0x9c], ecx
jmp 0x44f324
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x44f2e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44f2cb
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x44fb05
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4548a1
call fcn.00418840
sub esp, 0x11c
mov eax, dword [0x472d88]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x44fbfe
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x44fbd2
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401ab0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0044fb05
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011f0
test bl, bl
jne 0x44fbd2
or dword [ebp - 4], 0xffffffff
jmp 0x44fb43
cmp esi, 0x103
je 0x44fbe2
cmp esi, 0x3f2
jne 0x44fbf2
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00416c7b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44fef3
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x4548de
call fcn.00418840
mov eax, 0x1014
call fcn.004182d0
mov eax, dword [0x472d88]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x44ffee
push dword [ebp + 0xc]
call fcn.0044fe44
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x44ff3c
push dword [ebp + 0x14]
jmp 0x45001f
push esi
call fcn.00439071
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x44ffb9
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.00401580
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.00404d80
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x44ffdc
lea eax, [ebp + 0xc]
push eax
call fcn.00402d60
jmp 0x44ffe4
push dword [ebp + 0x14]
call fcn.00401ab0
lea ecx, [ebx - 0x10]
call fcn.004011f0
jmp 0x450027
cmp dword [ebp + 0x14], edi
jne 0x44fffa
mov dword [ebp + 0x14], 0x46014c
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401ab0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00416c7b
leave
ret 0x10

Function at 0x450641
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x450676
cmp edi, dword [esi + 0xc]
jge 0x450676
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450676
cmp edi, dword [eax + 8]
jge 0x450676
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x450678
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x45077c
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4507b0
jmp fcn.0043191d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x450821
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x45091a
cmp eax, dword [edi + 0xc]
jge 0x45091a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x450872
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x450903
cmp dword [ebp + 0xc], ebx
je 0x450903
jmp 0x45089c
push 0x10
call fcn.0045050d
cmp eax, ebx
je 0x450888
mov ecx, eax
call fcn.00450773
mov esi, eax
jmp 0x45088a
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4508b3
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4508c3
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4508d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043191d
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004187e0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x450915
cmp ecx, dword [esi + 8]
jge 0x450915
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x45091b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4509d9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x450a07
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450a25
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00450943
jmp 0x450a25
mov eax, dword [esi + 0x14]
test eax, eax
je 0x450a25
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00450943
test edi, edi
mov eax, edi
jne 0x450a0f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48e704]
test ecx, ecx
je 0x450ad8
jmp 0x4509d8
ret 8
Function at 0x401480
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x407d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x40a0f4]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, 0xf
mov dword [esp + 0x54], eax
xor esi, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.Control_PanelDesktopWindowMetrics
push 0x80000001
mov byte [esp + 0x74], 1
mov byte [esp + 0x23], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401640
push 0x400
call fcn.00401950
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x401640
push ebp
push edi
push str.Shell_Icon_Size
lea ecx, [esp + 0x28]
call fcn.00401360
mov eax, dword [esp + 0x38]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 0x400
jae 0x40153d
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x40163f
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, ebx
jne 0x40156b
mov eax, 0x20
push eax
push 0x40812c
push 0x400
push esi
call fcn.004023f9
push esi
call fcn.004023f4
mov edi, eax
lea eax, [edi - 1]
push eax
push 0x40812c
push 0x400
push esi
call fcn.004023f9
mov ecx, dword [esp + 0x5c]
add esp, 0x24
inc eax
cmp ecx, ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jae 0x4015b0
lea ecx, [esp + 0x24]
push eax
push esi
push 1
push ebx
push ecx
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40163f
mov ebp, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea edx, [esp + 0x1c]
push edx
push 0x1388
push 2
push ebx
push 0x2a
push 0x1a
push 0xffff
call ebp
push edi
push 0x40812c
push 0x400
push esi
call fcn.004023f9
mov ecx, dword [esp + 0x48]
add esp, 0x10
inc eax
cmp ecx, 0x10
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jae 0x40160d
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40163f
lea ecx, [esp + 0x1c]
push ecx
push 0x1388
push 2
push ebx
push 0x2a
push 0x1a
push 0xffff
call ebp
mov byte [esp + 0x13], 1
pop ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40164f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40165c
push esi
call fcn.00401ebd
add esp, 4
cmp dword [esp + 0x34], 0x10
pop edi
pop esi
pop ebx
jb 0x401673
mov edx, dword [esp + 0x14]
push edx
call fcn.00401ebd
add esp, 4
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48]
call fcn.00402481
add esp, 0x58
ret
Function at 0x402529
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40a800], esi
push edi
jne 0x402549
push dword [ebp + 8]
call dword [0x40803c]
push eax
call dword [0x408038]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40a7fc], esi
mov byte [0x40a7f8], al
jne 0x4025af
mov ecx, dword [0x40bd8c]
test ecx, ecx
je 0x402590
mov eax, dword [0x40bd88]
sub eax, 4
cmp eax, ecx
jmp 0x402589
mov eax, dword [eax]
test eax, eax
je 0x40257b
call eax
mov eax, dword [0x40bd88]
sub eax, 4
cmp eax, dword [0x40bd8c]
mov dword [0x40bd88], eax
jae 0x402573
mov eax, 0x40a024
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x4025af
mov eax, dword [edi]
test eax, eax
je 0x4025a8
call eax
add edi, 4
cmp edi, esi
jb 0x4025a0
mov eax, 0x40a030
mov esi, 0x40a038
cmp eax, esi
mov edi, eax
jae 0x4025ce
mov eax, dword [edi]
test eax, eax
je 0x4025c7
call eax
add edi, 4
cmp edi, esi
jb 0x4025bf
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4025e8
push dword [ebp + 8]
mov dword [0x40a800], 1
call fcn.0040248f
pop ebp
ret

Function at 0x404a6d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a0f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a228]
je 0x404aa2
inc eax
cmp eax, 0x13
jb 0x404a93
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a228]
jne 0x404bc8
mov eax, dword [0x40a80c]
cmp eax, 1
je 0x404ba0
cmp eax, edx
jne 0x404ad2
cmp dword [0x40a0fc], 1
je 0x404ba0
cmp ecx, 0xfc
je 0x404bc8
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [0x408078]
test eax, eax
jne 0x404b08
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405ff0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004028d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404b3c
mov eax, edi
push eax
call fcn.004028d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40843c
push edi
call fcn.00406fb0
add esp, 0x10
push edi
call fcn.004028d0
push dword [esi + 0x40a22c]
mov ebx, eax
call fcn.004028d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405400
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405ff0
push edi
push ebx
call fcn.00406000
push 0x408438
push ebx
call fcn.00406000
push dword [esi + 0x40a22c]
push ebx
call fcn.00406000
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00406eb5
add esp, 0x2c
jmp 0x404bc8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a22c]
push dword [esi]
call fcn.004028d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [0x408080]
push eax
call dword [0x40807c]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402481
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406aa3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ba28]
mov eax, dword [0x40a0f4]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x406c69
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ba40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x406c69
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x406b0d
xor eax, eax
jmp 0x406c7d
test al, 0x20
je 0x406b1e
push 2
push edi
push edi
push ecx
call fcn.00407991
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406bf3
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x406c3a
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x406b80
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406b71
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406b53
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [0x40807c]
test eax, eax
je 0x406bc0
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x406bcc
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x406b47
jmp 0x406bce
call dword [0x408094]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x406c64
cmp dword [ebp + 0x3a4], edi
je 0x406c3a
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x406c2c
mov dword [0x40a7b8], eax
jmp 0x406c70
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [0x40807c]
test eax, eax
je 0x406c1e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x406bce
call dword [0x408094]
mov dword [ebp + 0x3a4], eax
jmp 0x406bce
push dword [ebp + 0x3a4]
call fcn.0040787c
pop ecx
jmp 0x406c7a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406c52
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x406b06
mov dword [0x40a7b4], 0x1c
mov dword [0x40a7b8], edi
jmp 0x406c7a
sub eax, dword [ebp - 0x7c]
jmp 0x406c7d
and dword [0x40a7b8], 0
mov dword [0x40a7b4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00402481
add ebp, 0x39c
leave
ret
Function at 0x406eb5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a97c], ebx
push esi
push edi
jne 0x406f35
push str.user32.dll
call dword [0x4080e0]
mov edi, eax
cmp edi, ebx
je 0x406f70
mov esi, dword [0x408030]
push 0x408f74
push edi
call esi
test eax, eax
mov dword [0x40a97c], eax
je 0x406f70
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a980], eax
call esi
cmp dword [0x40a7c0], 2
mov dword [0x40a984], eax
jne 0x406f35
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a98c], eax
je 0x406f35
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a988], eax
mov eax, dword [0x40a988]
test eax, eax
je 0x406f7a
call eax
test eax, eax
je 0x406f61
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a98c]
test eax, eax
je 0x406f61
test byte [ebp - 8], 1
jne 0x406f7a
cmp dword [0x40a7cc], 4
jb 0x406f74
or byte [ebp + 0x12], 0x20
jmp 0x406f99
xor eax, eax
jmp 0x406fa9
or byte [ebp + 0x12], 4
jmp 0x406f99
mov eax, dword [0x40a980]
test eax, eax
je 0x406f99
call eax
mov ebx, eax
test ebx, ebx
je 0x406f99
mov eax, dword [0x40a984]
test eax, eax
je 0x406f99
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a97c]
pop edi
pop esi
pop ebx
leave
ret