joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012d37
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012d76
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012d76
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012d76
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012d76
cmp dword [ecx + 0x74], 0xe
jbe 0x10012d76
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10017fdb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b8f8
push 0x1002b8f0
push str.FlsAlloc
push 0x1f
call fcn.10017ea3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001800f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028160]
call esi
jmp 0x10018015
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10018059
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b908
push 0x1002b900
push str.FlsGetValue
push 0x21
call fcn.10017ea3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10018090
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10018098
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b910
push 0x1002b908
push str.FlsSetValue
push 0x22
call fcn.10017ea3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100180d2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10028160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001e49d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e53a
push ebx
push esi
call fcn.1001e466
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d287
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e4e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e539
push edi
push eax
call fcn.1001a624
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e507
call fcn.10017bc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e538
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d287
add esp, 0x20
test eax, eax
jne 0x1001e526
push edi
call fcn.10017bc4
jmp 0x1001e52e
push ebx
call fcn.10017bc4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10021ad7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10018c74
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021b46
cmp esi, dword [ebp - 4]
je 0x10021b41
cmp dword [ebp + 0xc], 0
je 0x10021b41
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021b1e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10021629
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021b48
xor eax, eax
inc eax
jmp 0x10021b48
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021bad
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10018c74
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10018c74
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10021c24
cmp word [ecx], dx
je 0x10021c24
mov eax, dword [0x1002e684]
push edi
dec eax
push eax
push 0x1002e570
call fcn.10021b4c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10021c97
cmp word [eax], dx
je 0x10021c97
mov eax, dword [edi]
test eax, eax
je 0x10021c48
cmp word [eax], dx
je 0x10021c48
lea eax, [ebp - 0x10]
push eax
call fcn.1002152f
jmp 0x10021c51
lea eax, [ebp - 0x10]
push eax
call fcn.100215ca
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10021cc1
mov eax, dword [0x1002e56c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002e260
call fcn.10021b4c
add esp, 0xc
test al, al
je 0x10021cc1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10021c8c
cmp word [eax], di
je 0x10021c8c
lea eax, [ebp - 0x10]
push eax
call fcn.1002152f
pop ecx
jmp 0x10021cc3
lea eax, [ebp - 0x10]
push eax
call fcn.100215ca
jmp 0x10021c89
mov eax, dword [edi]
test eax, eax
je 0x10021cae
cmp word [eax], dx
je 0x10021cae
lea eax, [ebp - 0x10]
push eax
call fcn.100214e4
pop ecx
jmp 0x10021cc1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10021d8c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100219d1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10021d8c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10021d8c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10021d8c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10021d19
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100181d8
test ebx, ebx
je 0x10021d87
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100181d8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021d8c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021d8c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10024887
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10021d8e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ded0
leave
ret
Function at 0x10026520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002654d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002654d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100029d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10069180]
jne 0x100029e0
repz ret
jmp fcn.10003d2b

Function at 0x10009291
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10005a2c
xor ebx, ebx
cmp dword [0x1006a9f0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10009366
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100092d1
xor eax, eax
jmp 0x1000942a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100092ca
push eax
call fcn.100059c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1006a9f0], eax
call esi
push eax
call fcn.100059c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1006a9f4], eax
call esi
push eax
call fcn.100059c9
mov dword [0x1006a9f8], eax
lea eax, [ebp - 8]
push eax
call fcn.10004ea8
test eax, eax
pop ecx
pop ecx
je 0x10009334
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000746f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10009366
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100059c9
cmp eax, ebx
pop ecx
mov dword [0x1006aa00], eax
je 0x10009366
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100059c9
pop ecx
mov dword [0x1006a9fc], eax
mov eax, dword [0x1006a9fc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100093df
cmp dword [0x1006aa00], esi
je 0x100093df
push eax
call fcn.10005a35
pop ecx
call eax
cmp eax, ebx
je 0x100093ac
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1006aa00]
call fcn.10005a35
pop ecx
call eax
test eax, eax
je 0x100093ac
test byte [ebp - 0x18], 1
jne 0x100093df
lea eax, [ebp - 0xc]
push eax
call fcn.10004edf
test eax, eax
pop ecx
je 0x100093c7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000746f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100093d6
or dword [ebp + 0x10], 0x200000
jmp 0x10009410
or dword [ebp + 0x10], 0x40000
jmp 0x10009410
mov eax, dword [0x1006a9f4]
cmp eax, esi
je 0x10009410
push eax
call fcn.10005a35
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10009410
mov eax, dword [0x1006a9f8]
cmp eax, esi
je 0x10009410
push dword [ebp - 4]
push eax
call fcn.10005a35
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1006a9f0]
call fcn.10005a35
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003fcf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, dword [0x10078a60]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], 0x26
mov dword [ebp - 0x10], 0x40
mov dword [ebp - 8], 0x504a
movzx ecx, word [0x10069e5c]
sub ecx, 0x59fbf
mov byte [0x10069e58], cl
mov edx, dword [ebp + 8]
add edx, 0xf2f5
movzx eax, word [0x10069e5c]
sub edx, eax
mov dword [ebp - 0xc], edx
movzx ecx, byte [0x10069e58]
cmp dword [0x10069f00], ecx
ja 0x1003fd94
mov edx, dword [ebp - 0xc]
mov dword [0x10069f08], edx
movzx eax, byte [0x10069e58]
mov ecx, dword [ebp - 0xc]
lea edx, [eax + ecx - 0xe]
mov eax, dword [0x10069e54]
sub eax, edx
mov dword [0x10069e54], eax
movzx ecx, byte [0x10069e58]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 8]
mov dword [0x10069e54], eax
movzx ecx, byte [0x10069e58]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 8]
mov dword [0x10069e54], eax
mov ecx, dword [0x10069ee4]
imul ecx, ecx, 0x1078a
imul ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x1007958c], edx
movzx eax, word [0x10069e5c]
imul eax, eax, 0x1e
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [0x10069e54]
cmp edx, dword [ebp - 0xc]
jb 0x1003fe09
movzx eax, byte [0x10069e58]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1e
sub eax, ecx
mov dword [0x10069e54], eax
movzx edx, byte [0x10069e58]
imul edx, dword [0x10069f18]
mov dword [0x10069f18], edx
movzx eax, byte [0x10069e58]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1e
sub eax, ecx
mov dword [0x10069e54], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [0x10069ee4]
lea ecx, [eax + edx - 0xe]
movzx edx, word [0x10069e5c]
sub edx, ecx
mov word [0x10069e5c], dx
mov eax, dword [0x10069ee4]
add eax, 0xf2f5
movzx ecx, byte [0x10069e58]
sub eax, ecx
mov dword [0x10069ee4], eax
mov edx, dword [0x10069ed0]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x10069ed4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 5
jne 0x1003fe5a
cmp dword [ebp - 0x18], 0
je 0x1003fe5c
jmp 0x1003fe76
movzx ecx, byte [0x10069e58]
mov edx, dword [0x10069e54]
sub edx, ecx
add edx, dword [ebp - 0xc]
mov byte [0x10069e58], dl
jmp 0x1003fe8b
movzx eax, byte [0x10069e58]
add eax, 0xf2f5
sub eax, dword [0x10069e54]
mov dword [ebp - 0xc], eax
movzx ecx, word [0x10069e5c]
movzx edx, byte [0x10069e58]
sub ecx, edx
add ecx, dword [0x10069ee4]
mov byte [0x10069e58], cl
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x1007958c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx ecx, word [0x10069e5c]
sub ecx, 0x5b
sub ecx, dword [0x10069ee4]
mov byte [0x10069e58], cl
mov edx, dword [ebp - 0xc]
sub edx, 0x5b
Function at 0x4027b5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4027f4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4027f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027f4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4027f4
cmp dword [ecx + 0x74], 0xe
jbe 0x4027f4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40c0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c10d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401423
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push 0x408620
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push edi
mov ebx, eax
push 0xfffffffffffffff8
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401470
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40150e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x401506
cmp dword [ebp - 4], 4
jb 0x401506
cmp dword [ebp - 8], 0x53445250
jne 0x401506
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
test eax, eax
je 0x401506
cmp dword [ebp - 4], 4
jb 0x401506
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401506
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x401506
cmp dword [ebp - 4], 4
jb 0x401506
cmp dword [ebp - 8], 0x53445250
jne 0x401506
push 0x408304
push ebx
call fcn.00401000
push 0x408300
push ebx
call fcn.00401000
push 0x408308
push ebx
call fcn.00401000
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40262c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408370], esi
push edi
jne 0x40264c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40836c], esi
mov byte [0x408368], al
jne 0x4026b2
mov ecx, dword [0x408a88]
test ecx, ecx
je 0x402693
mov eax, dword [0x408a84]
sub eax, 4
cmp eax, ecx
jmp 0x40268c
mov eax, dword [eax]
test eax, eax
je 0x40267e
call eax
mov eax, dword [0x408a84]
sub eax, 4
cmp eax, dword [0x408a88]
mov dword [0x408a84], eax
jae 0x402676
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x4026b2
mov eax, dword [edi]
test eax, eax
je 0x4026ab
call eax
add edi, 4
cmp edi, esi
jb 0x4026a3
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4026d1
mov eax, dword [edi]
test eax, eax
je 0x4026ca
call eax
add edi, 4
cmp edi, esi
jb 0x4026c2
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4026eb
push dword [ebp + 8]
mov dword [0x408370], 1
call fcn.00402592
pop ebp
ret
Function at 0x40272d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4081d0]
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 + 0x4080a0]
je 0x402762
inc eax
cmp eax, 0x13
jb 0x402753
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4080a0]
jne 0x402888
mov eax, dword [0x408318]
cmp eax, 1
je 0x402860
cmp eax, edx
jne 0x402792
cmp dword [0x408094], 1
je 0x402860
cmp ecx, 0xfc
je 0x402888
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4027c8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004016f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00401660
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4027fc
mov eax, edi
push eax
call fcn.00401660
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065f0
push edi
call fcn.00403770
add esp, 0x10
push edi
call fcn.00401660
push dword [esi + 0x4080a4]
mov ebx, eax
call fcn.00401660
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403230
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004016f0
push edi
push ebx
call fcn.00401700
push 0x4065d0
push ebx
call fcn.00401700
push dword [esi + 0x4080a4]
push ebx
call fcn.00401700
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403669
add esp, 0x2c
jmp 0x402888
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4080a4]
push dword [esi]
call fcn.00401660
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004038c5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403669
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40848c], ebx
push esi
push edi
jne 0x4036e9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403724
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406684
push edi
call esi
test eax, eax
mov dword [0x40848c], eax
je 0x403724
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408490], eax
call esi
cmp dword [0x408330], 2
mov dword [0x408494], eax
jne 0x4036e9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40849c], eax
je 0x4036e9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408498], eax
mov eax, dword [0x408498]
test eax, eax
je 0x40372e
call eax
test eax, eax
je 0x403715
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40849c]
test eax, eax
je 0x403715
test byte [ebp - 8], 1
jne 0x40372e
cmp dword [0x40833c], 4
jb 0x403728
or byte [ebp + 0x12], 0x20
jmp 0x40374d
xor eax, eax
jmp 0x40375d
or byte [ebp + 0x12], 4
jmp 0x40374d
mov eax, dword [0x408490]
test eax, eax
je 0x40374d
call eax
mov ebx, eax
test ebx, ebx
je 0x40374d
mov eax, dword [0x408494]
test eax, eax
je 0x40374d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40848c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40412e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40415c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x404163
cmp ebx, dword [eax + 4]
jae 0x404163
xor eax, eax
jmp 0x404353
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404174
xor eax, eax
inc eax
jmp 0x404352
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40418a
cmp ecx, edx
jae 0x4042cf
cmp dword [eax + 4], 0
je 0x404193
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40417b
cmp dword [ebp + 8], 0
je 0x4041b5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4042cf
cmp eax, esi
jae 0x4042cf
mov eax, dword [0x4084a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4041da
cmp dword [esi*4 + 0x4084b0], edi
je 0x4042d3
inc esi
cmp esi, eax
jl 0x4041c8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40434f
cmp dword [ebp - 8], 0x1000000
jne 0x40434f
test byte [ebp - 0xc], 0xcc
je 0x404258
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40434f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40434f
cmp word [eax + 0x18], 0x10b
jne 0x40434f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40434f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404258
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404258
test byte [ecx + 0x27], 0x80
jne 0x4042cf
push 1
push 0x4084f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40416c
mov ecx, dword [0x4084a8]
test ecx, ecx
mov edx, ecx
jle 0x40428c
lea eax, [ecx*4 + 0x4084ac]
cmp dword [eax], edi
je 0x40428c
dec edx
sub eax, 4
test edx, edx
jg 0x404280
test edx, edx
jne 0x4042bd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404299
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4042b1
lea eax, [edx*4 + 0x4084b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40429f
cmp ecx, 0x10
jge 0x4042bd
inc ecx
mov dword [0x4084a8], ecx
push 0
push 0x4084f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40416c
xor eax, eax
jmp 0x404352
test esi, esi
jle 0x40416c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4084f0
call ebx
test eax, eax
jne 0x40416c
cmp dword [esi*4 + 0x4084b0], edi
je 0x404329
mov eax, dword [0x4084a8]
lea esi, [eax - 1]
test esi, esi
jl 0x404317
cmp dword [esi*4 + 0x4084b0], edi
je 0x404313
dec esi
jns 0x404307
test esi, esi
jge 0x404327
cmp eax, 0x10
jge 0x404322
inc eax
mov dword [0x4084a8], eax
lea esi, [eax - 1]
jmp 0x404329
je 0x404341
xor ecx, ecx
test esi, esi
jl 0x404341
lea eax, [ecx*4 + 0x4084b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40432f
push 0
push 0x4084f0
call ebx
jmp 0x40416c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e8c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403230
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404f27
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x408330]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404f27
cmp eax, 1
je 0x404f48
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404f27
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404ef4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404f23
xor eax, eax
inc eax
jmp 0x404f67
cmp edi, eax
jae 0x404f2b
xor eax, eax
jmp 0x404f67
cmp eax, esi
jae 0x404f32
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408330]
jmp 0x404f4b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret