joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449978
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x449a34
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x105
push 0
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403b58
lea eax, [ebp - 0x118]
mov edx, 0x449a4c
call fcn.00403c38
mov eax, dword [ebp - 0x118]
call fcn.00403df4
push eax
call sub.kernel32.dll_GetVolumeInformationA
push esi
lea eax, [ebp - 0x111]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0
lea edx, [ebp - 0x128]
mov ecx, 1
mov eax, 0x449a58
call fcn.004088c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449a3b
lea eax, [ebp - 0x118]
call fcn.004039b0
ret
Function at 0x1000e25e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000e26d
pop dword [ebp - 0x50]
mov eax, 0x29857f28
add eax, 0xe67b6345
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x7ac37262
sub dword [ebp - 0x60], 0x2c712d17
mov dword [ebp - 0x5c], 0x851eb84d
sub dword [ebp - 0x5c], 0x52eb6c08
mov dword [ebp - 0x58], 0xb90ac0d4
sub dword [ebp - 0x58], 0x6cbe7ca6
mov dword [ebp - 0x54], 0xb308505f
sub dword [ebp - 0x54], 0xb308505f
lea eax, [ebp - 0x60]
push eax
mov eax, 0xfebc6386
sub eax, 0xeeba733e
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xff3643
add dword [ebp - 0x60], 0x73733313
mov dword [ebp - 0x5c], 0x222fbf26
sub dword [ebp - 0x5c], 0xe0c35db1
mov dword [ebp - 0x58], 0x260a3228
sub dword [ebp - 0x58], 0xc29ac5bc
mov dword [ebp - 0x54], 0x9491c4f7
add dword [ebp - 0x54], 0x6b6e3b09
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x50b74e5
sub eax, 0xf5098499
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x39b84
push 0
call eax
mov ecx, 0x37bb
mov ebx, eax
mov edi, 0x62e5edc5
add edi, 0xad1cbe3b
add edi, dword [ebp - 0x50]
mov edx, 0xc3044da2
add edx, 0xa84dd02a
mov dword [ebp - 0x3c], 0x719a48cd
mov esi, dword [edi]
add dword [ebp - 4], 0xe71e0b03
add esi, edx
xor dword [ebp - 0x2c], 0x2df3e72a
mov dword [ebx], esi
sub dword [ebp - 0x20], 0x8d0141d6
add ebx, 4
add edi, 0x51405b8f
add edi, 0xaebfa475
loop 0x1000e389
add eax, 0xd1bf
xor ebx, ebx
add ebx, eax
add eax, 0xb81eccc3
sub eax, 0xb81eccbe
mov ecx, 0xfaf52b19
sub ecx, 0xeaf52b19
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x1001d7ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026200]
jne 0x1001d7b6
repz ret
jmp fcn.1001dc29
Function at 0x402450
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063a0]
test esi, esi
jle 0x402560
mov edi, dword [0x4063a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402484
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402505
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x402470
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x402587
mov eax, dword [0x4063a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4063a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402567
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4024fe
sub eax, 4
and eax, 0xfffffffb
jne 0x402510
add dword [0x4063a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4063a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4024fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x40248e
mov eax, dword [0x4063a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x4029c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x402a15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402a0e
test esi, esi
je 0x402a0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4029f0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4030e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x40ada2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40ade6
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40adb5
jmp 0x40ade6
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40add6
pop esi
pop ebp
ret

Function at 0x40bb3e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40bb73
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40bb9d
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40bb9d
test edi, edi
je 0x40bb6a
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40bb6a
test edi, edi
je 0x40bba5
mov eax, edi
jmp 0x40bb6c
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40bb6c
mov esi, 0xc7
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040e8a7
add esp, 0xc
int3
Function at 0x40e8db
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestScopeExit.exe_gMozillaPoisonSize], eax
call fcn.0040bb3e
pop ecx
mov ecx, dword [sym.TestScopeExit.exe_gMozillaPoisonSize]
mov dword [sym.TestScopeExit.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e913
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestScopeExit.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x4137b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x4137ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4137d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4137c0
mov eax, 1
add ebx, ebx
jne 0x4137e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4137d8
jne 0x4137f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4137d8
xor ecx, ecx
sub eax, 3
jb 0x413808
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41387a
mov ebp, eax
add ebx, ebx
jne 0x413813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413844
inc ecx
add ebx, ebx
jne 0x413830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413825
jne 0x413841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413825
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413855
jmp 0x4137c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413864
add edi, ecx
jmp 0x4137c6
pop esi
mov edi, esi
mov ecx, 0x281
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413882
cmp byte [edi], 5
jne 0x413882
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x413887
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x4138f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4138b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1583c]
or eax, eax
je 0x4138f0
mov dword [ebx], eax
add ebx, 4
jmp 0x4138d1
call dword [esi + 0x1584c]
mov ebp, dword [esi + 0x15840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41392a
sub esp, 0xffffff80
jmp 0x4021f0
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x894
mov eax, dword [0x40f024]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push esi
push edi
mov edi, 1
push str.kernel32.dll
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0xffff
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x401073
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetDllDirectoryA
push esi
call ebx
test eax, eax
je 0x401060
push 0x40db59
call eax
push str.SetSearchPathMode
push esi
call ebx
test eax, eax
je 0x401073
push 0x8001
call eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x1c], 2
mov dword [esp + 0x20], eax
jl 0x4011e0
test eax, eax
je 0x4011eb
mov ebx, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x4011e0
push 0x208
lea ecx, [esp + 0x2c]
push 0
push ecx
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], 0xffff
call fcn.00405a10
add esp, 0xc
push 0x208
lea edx, [esp + 0x234]
push 0
push edx
call fcn.00405a10
add esp, 0xc
lea eax, [esp + 0xf]
push eax
push ebx
lea edi, [esp + 0x18]
lea esi, [esp + 0x698]
mov byte [esp + 0x440], 0
call fcn.00401300
test al, al
je 0x40115f
cmp byte [esp + 0xf], 0
jne 0x401167
push ebx
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.00401a37
add esp, 0xc
test eax, eax
jne 0x401177
lea edx, [esp + 0x230]
push edx
call fcn.00401460
test al, al
je 0x401177
lea eax, [esp + 0x28]
push eax
mov edx, eax
lea ecx, [esp + 0x234]
call fcn.004013f0
test al, al
je 0x401177
mov ecx, edi
push ecx
mov ebx, esi
lea eax, [esp + 0x2c]
call fcn.00401280
mov ebx, dword [esp + 0x24]
jmp 0x401163
mov al, byte [esp + 0xf]
test al, al
je 0x401177
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
push 0x24c
lea eax, [esp + 0x448]
push 0
push eax
mov dword [esp + 0x44c], 0
call fcn.00405a10
add esp, 0xc
push ebx
push 0x40dadc
lea ecx, [esp + 0x474]
push 0x104
push ecx
call fcn.004018cf
add esp, 0x10
cmp eax, 0xffffffff
je 0x4011d8
lea edx, [esp + 0x440]
push edx
push 0x40dae4
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4011d8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4011eb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x89c]
and edi, 0xffff
shl eax, 0x10
or eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018c0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4013f0
Capabilities:
Connect network resource

Disassembly:
xor eax, eax
sub esp, 0x20
cmp ecx, eax
je 0x401452
cmp edx, eax
je 0x401452
push 1
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne 0x401452
mov ecx, dword [esp + 0x24]
mov byte [ecx + 0x410], 1
mov al, 1
add esp, 0x20
ret 4
xor al, al
add esp, 0x20
ret 4

Function at 0x401460
Capabilities:
Get disk information

Disassembly:
sub esp, 0x1c
mov eax, dword [0x40f024]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], 0
jne 0x401488
xor al, al
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004018c0
add esp, 0x1c
ret 4
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, 3
xor ebx, ebx
jmp 0x4014a0
push 0x10
lea edx, [esp + 0x18]
call fcn.00401780
test al, al
je 0x4014c6
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 1
je 0x4014c6
mov edx, 1
mov ecx, ebx
shl edx, cl
or esi, edx
add ebx, 1
cmp ebx, 0x19
jle 0x4014a0
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00401550
test al, al
je 0x401510
or esi, dword [esp + 0xc]
mov ecx, 0x19
lea esp, [esp]
mov edx, 1
shl edx, cl
test esi, edx
je 0x401526
sub ecx, 1
jns 0x401500
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004018c0
add esp, 0x1c
ret 4
mov edx, dword [esp + 0x2c]
push 0x208
mov ebx, ecx
call fcn.00401780
test al, al
je 0x401510
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004018c0
add esp, 0x1c
ret 4
Function at 0x401550
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bdd0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x40f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push eax
xor edi, edi
push edi
push edi
push 1
push 3
mov dword [ebp - 0x18], 0xffffffff
call sub.MPR.dll_WNetOpenEnumW
cmp eax, edi
je 0x4015ad
xor al, al
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
xor bl, bl
push 0x24
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x12], bl
mov dword [ebp - 0x24], 0xffff
mov dword [ebp - 0x20], 0x24
mov dword [ebp - 4], edi
call fcn.004019ed
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x401687
push 1
push 0x40ff90
lea ecx, [ebp - 0x34]
call fcn.00401939
push 0x40e1a8
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x34], vtable.std::bad_alloc.0
call fcn.00407247
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x401616
ret
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
mov eax, 1
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push eax
push ecx
call sub.MPR.dll_WNetEnumResourceW
cmp eax, 0xea
jne 0x40169a
test esi, esi
je 0x40164a
push esi
call fcn.00401aa3
add esp, 4
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x20]
push edx
call fcn.004019ed
mov esi, eax
add esp, 4
test esi, esi
jne 0x401687
push 1
push 0x40ff90
lea ecx, [ebp - 0x40]
call fcn.00401939
push 0x40e1a8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], vtable.std::bad_alloc.0
call fcn.00407247
mov dword [ebp - 4], 0xffffffff
jmp 0x40161c
test eax, eax
jne 0x401702
test esi, esi
je 0x401709
cmp dword [esi], 3
jne 0x40161c
mov ecx, dword [esi + 0x10]
push ecx
call fcn.00401800
mov edi, eax
cmp edi, 0xffff
je 0x40161c
mov edx, 1
mov ecx, edi
shl edx, cl
or dword [ebp - 0x1c], edx
test bl, bl
jne 0x40161c
cmp dword [ebp + 0x10], 0
je 0x40161c
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.00401c39
add esp, 8
test eax, eax
jne 0x40161c
mov bl, 1
mov dword [ebp - 0x24], edi
jmp 0x40161c
cmp eax, 0x103
je 0x40170d
xor bl, bl
jmp 0x401710
mov bl, byte [ebp - 0x11]
test esi, esi
je 0x401722
push esi
call fcn.00401aa3
add esp, 4
jmp 0x401722
mov edx, dword [ebp - 0x18]
push edx
call sub.MPR.dll_WNetCloseEnum
test bl, bl
je 0x40173f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
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 0x4018c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f024]
jne 0x4018ca
repz ret
jmp fcn.00401f19
Function at 0x403c3b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f7d8]
je 0x403c56
inc edi
cmp edi, 0x17
jb 0x403c47
cmp edi, 0x17
jae 0x403dd6
push ebp
push 3
call fcn.004089c5
cmp eax, 1
pop ecx
je 0x403da2
push 3
call fcn.004089c5
test eax, eax
pop ecx
jne 0x403c8a
cmp dword [0x40f020], 1
je 0x403da2
cmp ebx, 0xfc
je 0x403dd5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4103e8
push ebp
call fcn.004024a3
add esp, 0xc
test eax, eax
je 0x403cc0
push esi
push esi
push esi
push esi
push esi
call fcn.00402187
add esp, 0x14
push 0x104
mov esi, 0x410401
push esi
push 0
mov byte [0x410505], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403d04
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004024a3
add esp, 0xc
test eax, eax
je 0x403d04
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402187
add esp, 0x14
push esi
call fcn.00402620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403d49
push esi
call fcn.00402620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4106fc
push 0x40c874
sub ecx, eax
push ecx
push eax
call fcn.00407ba6
add esp, 0x14
test eax, eax
je 0x403d49
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402187
add esp, 0x14
jmp 0x403d4b
xor esi, esi
push 0x40c870
push ebx
push ebp
call fcn.00407ae2
add esp, 0xc
test eax, eax
je 0x403d6b
push esi
push esi
push esi
push esi
push esi
call fcn.00402187
add esp, 0x14
push dword [edi*8 + 0x40f7dc]
push ebx
push ebp
call fcn.00407ae2
add esp, 0xc
test eax, eax
je 0x403d8d
push esi
push esi
push esi
push esi
push esi
call fcn.00402187
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00408808
add esp, 0xc
jmp 0x403dd5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x403dd5
cmp ebp, 0xffffffff
je 0x403dd5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f7dc]
push dword [esi]
call fcn.00402620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x408808
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403345
xor ebx, ebx
cmp dword [0x4109f4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4088de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4089be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4089be
push eax
call fcn.004032d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4109f4], eax
call esi
push eax
call fcn.004032d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4109f8], eax
call esi
push eax
call fcn.004032d7
mov dword [0x4109fc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004039c8
test eax, eax
pop ecx
pop ecx
je 0x4088ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402187
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4088de
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004032d7
cmp eax, ebx
pop ecx
mov dword [0x410a04], eax
je 0x4088de
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004032d7
pop ecx
mov dword [0x410a00], eax
mov eax, dword [0x410a00]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x408963
cmp dword [0x410a04], ecx
je 0x408963
push eax
call fcn.0040334e
push dword [0x410a04]
mov esi, eax
call fcn.0040334e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x408963
cmp edi, ebx
je 0x408963
call esi
cmp eax, ebx
je 0x408930
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408930
test byte [ebp - 0x18], 1
jne 0x408963
lea eax, [ebp - 0x10]
push eax
call fcn.004039ff
test eax, eax
pop ecx
je 0x40894b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402187
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40895a
or dword [ebp + 0x10], 0x200000
jmp 0x40899e
or dword [ebp + 0x10], 0x40000
jmp 0x40899e
mov eax, dword [0x4109f8]
cmp eax, dword [ebp - 8]
je 0x40899e
push eax
call fcn.0040334e
cmp eax, ebx
pop ecx
je 0x40899e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40899e
mov eax, dword [0x4109fc]
cmp eax, dword [ebp - 8]
je 0x40899e
push eax
call fcn.0040334e
cmp eax, ebx
pop ecx
je 0x40899e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4109f4]
call fcn.0040334e
cmp eax, ebx
pop ecx
je 0x4089be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4089c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret