joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bdcd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416188]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00407bae
mov dword [ebp - 0x14], eax
cmp dword [0x417f18], edi
jne 0x40bebe
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40be4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bf9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40bf9e
push 0x410680
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bf9e
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x417f18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x417f1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x417f20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f28], eax
test eax, eax
je 0x40bebb
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f24], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bee3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bed6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40bef8
push 4
pop eax
jmp 0x40bfa0
cmp dword [ebp - 0x14], edi
je 0x40bef8
push dword [0x417f18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bedd
mov eax, dword [0x417f24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40bf56
cmp dword [0x417f28], esi
je 0x40bf56
push eax
call ebx
push dword [0x417f28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bf56
test eax, eax
je 0x40bf56
call ecx
test eax, eax
je 0x40bf4b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bf4b
test byte [ebp - 8], 1
jne 0x40bf56
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40bf86
mov eax, dword [0x417f1c]
cmp eax, esi
je 0x40bf83
push eax
call ebx
test eax, eax
je 0x40bf83
call eax
mov edi, eax
test edi, edi
je 0x40bf83
mov eax, dword [0x417f20]
cmp eax, esi
je 0x40bf83
push eax
call ebx
test eax, eax
je 0x40bf83
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x417f18]
call ebx
test eax, eax
je 0x40bf9e
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40bfa0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c34
leave
ret
Function at 0x10007b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d978
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10011018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x10007b56
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x10007b58
xor esi, esi
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.10007f60
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x100075e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
test eax, eax
setne bl
mov dword [edi + 4], eax
test ecx, ecx
je 0x10007ba0
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
call fcn.100017e0
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100080e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
invalid
scasd eax, dword es:[edi]
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10007df1
neg byte [edi]
sti
jns 0x100080c1
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x10008190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.10007e01
push eax
push esi
push dword [ebp + 8]
call fcn.10007db6
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10007e01
push eax
push esi
push dword [ebp + 8]
call fcn.10007db6
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10007e01
push eax
push esi
push dword [ebp + 8]
call fcn.10007db6
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10007df1
adc byte [ebx + esi*8 + 0x7c9d889c], al
invalid
Function at 0x10009fa0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
call [edi + 0x5e]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10009fb5
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.10007df1
leave
imul ecx, eax, 0x28
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.10007df1
cdq
jo 0x10009f87
das
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x10009fde
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x10009fde
call fcn.10007df1
jp 0x10009f83
out 0x8a, al
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.10007df1
lcall 0x875, 0xff26584e

Function at 0x1000aa20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1000aa35
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x1000aa40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000aa40
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1000aac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x1000aad9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000aae5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1000aae0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000be50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000dc36
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x10011018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000befc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000befc
call fcn.1000a350
mov esi, eax
jmp 0x1000bfec
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000bf1f
call fcn.1000a350
jmp 0x1000bfdf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x1000bf3d
call fcn.1000a350
jmp 0x1000bfdf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000bf5e
mov esi, 0x8007000e
jmp 0x1000bfe1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000a300
jmp 0x1000bf88
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x1000bf9f
mov esi, 0x8007000e
jmp 0x1000bfe1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000bfbf
call fcn.1000a350
jmp 0x1000bfdf
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.1000bcf0
mov esi, eax
test edi, edi
je 0x1000bfec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000c010
lea ecx, [ebp - 0x418]
call fcn.1000a2b0
jmp 0x1000c010
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000c43c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x81c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x82c]
push edi
push str.FILES
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [esp + 0x838]
push ebp
push 0x40abc0
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
mov edi, eax
call fcn.004015cb
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40124a
push ebp
push str.Cant_create___s__file.
jmp 0x40126d
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
je 0x401295
push ebp
push str.Cant_write___s__file.
lea eax, [esp + 0x1c]
push eax
call fcn.004015cb
add esp, 0xc
push 0x10
push str.Updater_Error
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add dword [0x40b3d8], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret
Function at 0x4016b6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4083e8
call fcn.0040311c
mov edi, 0x94
mov eax, edi
call fcn.00401630
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40b3ec], ecx
mov eax, dword [esi + 4]
mov dword [0x40b3f8], eax
mov edx, dword [esi + 8]
mov dword [0x40b3fc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40b3f0], esi
cmp ecx, 2
je 0x401716
or esi, 0x8000
mov dword [0x40b3f0], esi
shl eax, 8
add eax, edx
mov dword [0x40b3f4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401751
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401751
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401769
cmp eax, 0x20b
je 0x401756
mov dword [ebp - 0x1c], esi
jmp 0x40177d
cmp dword [ecx + 0x84], 0xe
jbe 0x401751
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401777
cmp dword [ecx + 0x74], 0xe
jbe 0x401751
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004030c8
pop ecx
test eax, eax
jne 0x401791
push 0x1c
call fcn.00401692
pop ecx
call fcn.00402fbf
test eax, eax
jne 0x4017a2
push 0x10
call fcn.00401692
pop ecx
call fcn.00402d59
mov dword [ebp - 4], esi
call fcn.00402b5b
test eax, eax
jge 0x4017bb
push 0x1b
call fcn.0040166d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cc34], eax
call fcn.00402a39
mov dword [0x40b3dc], eax
call fcn.00402997
test eax, eax
jge 0x4017e1
push 8
call fcn.0040166d
pop ecx
call fcn.00402764
test eax, eax
jge 0x4017f2
push 9
call fcn.0040166d
pop ecx
push 1
call fcn.00402286
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401808
push eax
call fcn.0040166d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402707
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401829
movzx eax, word [ebp - 0x40]
jmp 0x40182c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004012a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40184a
push edi
call fcn.004023b3
call fcn.004023d5
jmp 0x40187c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403157
ret
Function at 0x4022f0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x408488
call fcn.0040311c
push 8
call fcn.00403c48
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40b42c], esi
jne 0x402324
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40b428], esi
mov al, byte [ebp + 0x10]
mov byte [0x40b424], al
cmp dword [ebp + 0xc], edi
jne 0x40236e
cmp dword [0x40cc28], edi
je 0x40235e
mov eax, dword [0x40cc24]
sub eax, 4
mov dword [0x40cc24], eax
cmp eax, dword [0x40cc28]
jb 0x40235e
mov eax, dword [eax]
cmp eax, edi
je 0x40233f
call eax
jmp 0x40233f
push 0x40a028
mov eax, 0x40a020
call fcn.0040226e
pop ecx
push 0x40a030
mov eax, 0x40a02c
call fcn.0040226e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40239f
cmp dword [ebp + 0x10], edi
jne 0x4023ad
mov dword [0x40b42c], esi
push dword [ebp + 8]
call fcn.0040222c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4023ac
push 8
call fcn.00403b93
pop ecx
ret
call fcn.00403157
ret

Function at 0x4023f3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a440]
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 + 0x40a050]
je 0x402428
inc eax
cmp eax, 0x13
jb 0x402419
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a050]
jne 0x40254e
mov eax, dword [0x40b3e4]
cmp eax, 1
je 0x402526
cmp eax, edx
jne 0x402458
cmp dword [0x40a044], 1
je 0x402526
cmp ecx, 0xfc
je 0x40254e
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 0x40248e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403e70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403850
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4024c2
mov eax, edi
push eax
call fcn.00403850
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408880
push edi
call fcn.00403f70
add esp, 0x10
push edi
call fcn.00403850
push dword [esi + 0x40a054]
mov ebx, eax
call fcn.00403850
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401630
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403e70
push edi
push ebx
call fcn.00403e80
push 0x408860
push ebx
call fcn.00403e80
push dword [esi + 0x40a054]
push ebx
call fcn.00403e80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403d6b
add esp, 0x2c
jmp 0x40254e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a054]
push dword [esi]
call fcn.00403850
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.00403a4c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403390
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x40a440]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4033c1
xor eax, eax
jmp 0x40354a
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x40cb20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4033fd
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00405c62
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4034d8
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x403516
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x403461
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403452
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x403432
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034a1
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4034aa
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x403423
jmp 0x4034ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x403545
cmp dword [ebp - 0x6c], edi
je 0x403516
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x40350b
call fcn.00405a5b
mov dword [eax], 9
call fcn.00405a64
mov dword [eax], esi
jmp 0x403540
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403500
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4034ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4034ac
push dword [ebp - 0x6c]
call fcn.00405a6d
pop ecx
jmp 0x403540
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40352e
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x40352e
xor eax, eax
jmp 0x403548
call fcn.00405a5b
mov dword [eax], 0x1c
call fcn.00405a64
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x403548
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00403a4c
add ebp, 0x3a0
leave
ret
Function at 0x403d6b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b6a8], ebx
push esi
push edi
jne 0x403deb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403e26
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408ee4
push edi
call esi
test eax, eax
mov dword [0x40b6a8], eax
je 0x403e26
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b6ac], eax
call esi
cmp dword [0x40b3ec], 2
mov dword [0x40b6b0], eax
jne 0x403deb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b6b8], eax
je 0x403deb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b6b4], eax
mov eax, dword [0x40b6b4]
test eax, eax
je 0x403e30
call eax
test eax, eax
je 0x403e17
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b6b8]
test eax, eax
je 0x403e17
test byte [ebp - 8], 1
jne 0x403e30
cmp dword [0x40b3f8], 4
jb 0x403e2a
or byte [ebp + 0x12], 0x20
jmp 0x403e4f
xor eax, eax
jmp 0x403e5f
or byte [ebp + 0x12], 4
jmp 0x403e4f
mov eax, dword [0x40b6ac]
test eax, eax
je 0x403e4f
call eax
mov ebx, eax
test ebx, ebx
je 0x403e4f
mov eax, dword [0x40b6b0]
test eax, eax
je 0x403e4f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b6a8]
pop edi
pop esi
pop ebx
leave
ret