joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14280
Capabilities:
Map section object
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x21], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00014220
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x1438b
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00014220
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0x8000000
push 2
push 0
lea eax, [ebp - 0x20]
push eax
push 0xf0005
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x1437f
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 2
push 0
push 1
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x14373
cmp dword [ebp - 0x30], 0
je 0x14373
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14367
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], 0x4550
jne 0x14367
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov al, 1
jmp 0x1438e
mov ecx, dword [ebp - 0x30]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x21]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x14600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00014220
push 0
push 0
push 0x20
push 0
push 1
push 0x80
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x100002
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x1466d
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x14700
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [ebp - 4], 0
je 0x147dc
mov edx, dword [ebp - 4]
shl edx, 1
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x147dc
push 0
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jne 0x147d2
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
jmp 0x1477e
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jae 0x147d2
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x11c
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + ecx + 0x1a]
lea edx, [eax + ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 8
test eax, eax
jne 0x147d0
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0xc], eax
jmp 0x147d2
jmp 0x14775
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x14c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x14cb7
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14cb7
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x14cb7
mov eax, dword [ebp - 4]
add eax, 0x28
jmp 0x14cb9
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x14e90
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [ebp - 4], 0
jne 0x14f20
mov dword [ebp - 4], 0x10000
mov ecx, dword [ebp - 4]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x14ee8
jmp 0x14f1e
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x14f0f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x14f1e
cmp dword [ebp - 4], 0x400000
jb 0x14ec8
jmp 0x14f60
mov eax, dword [ebp - 4]
shl eax, 1
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x14f60
push 0
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x14f60
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x14faa
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x14fa0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x14f89
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x14f93
jmp 0x14fa0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x14f6c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x15650
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov byte [ebp - 0x235], 0
push 0x15640
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntoskrnl.exe_wcscat]
add esp, 8
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00014220
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x234]
push eax
push 1
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x15827
mov dword [ebp - 0x244], 0
push 0
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.00014220
mov eax, dword [ebp - 0x21c]
push eax
push 0x8000000
push 2
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0xf0005
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x15807
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
push 2
push 0
push 1
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x157fa
cmp dword [ebp - 0x24c], 0
je 0x157fa
push 5
push 0x18
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x157eb
cmp dword [ebp + 0x14], 0
je 0x157b6
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x260]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x157c7
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x260]
jbe 0x157d0
mov eax, dword [ebp - 0x260]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00013910
mov byte [ebp - 0x235], 1
mov ecx, dword [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x18], 0
je 0x1581a
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
jmp 0x15827
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x235]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000f193
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f1d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f1d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f1d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f1d2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f1d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10011e4f
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 0x10011eec
push ebx
push esi
call fcn.10011e18
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.10011dac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011e99
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011eeb
push edi
push eax
call fcn.10012e0a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011eb9
call fcn.100108f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011eea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011dac
add esp, 0x20
test eax, eax
jne 0x10011ed8
push edi
call fcn.100108f4
jmp 0x10011ee0
push ebx
call fcn.100108f4
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 0x10012159
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10012075
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001218d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10012193
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100121d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10012075
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001220e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012216
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10012075
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012250
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100178d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100178fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100178fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010c8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x4010d3
jmp 0x401108
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x4080b0
call fcn.00404068
mov ecx, 0x4080b0
call fcn.004028b0
push eax
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov ecx, 0x4080b0
call fcn.004028b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret

Function at 0x402a72
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406700
push 0x402bda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x408144], 0xffffffff
or dword [0x408148], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x408104]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x408100]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x408140], eax
call fcn.00402bc7
cmp dword [0x408080], 0
jne 0x402af5
push 0x402bc4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402bac
push 0x408018
push 0x408014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4080fc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4080f8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040147d
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458008]
jne 0x401010
repz ret
jmp fcn.00401bd3

Function at 0x40a0a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004036dd
and dword [ebp - 4], 0
cmp dword [0x45c9ac], 0
mov ebx, eax
jne 0x40a156
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a207
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a207
push eax
call fcn.0040366b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45c9ac], eax
call esi
push eax
call fcn.0040366b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45c9b0], eax
call esi
push eax
call fcn.0040366b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45c9b4], eax
call esi
push eax
call fcn.0040366b
pop ecx
mov dword [0x45c9bc], eax
test eax, eax
je 0x40a156
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040366b
pop ecx
mov dword [0x45c9b8], eax
mov eax, dword [0x45c9b8]
cmp eax, ebx
je 0x40a1ae
cmp dword [0x45c9bc], ebx
je 0x40a1ae
push eax
call fcn.004036e6
push dword [0x45c9bc]
mov esi, eax
call fcn.004036e6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a1ae
test edi, edi
je 0x40a1ae
call esi
test eax, eax
je 0x40a1a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a1a5
test byte [ebp - 0xc], 1
jne 0x40a1ae
or dword [ebp + 0x10], 0x200000
jmp 0x40a1e7
mov eax, dword [0x45c9b0]
cmp eax, ebx
je 0x40a1e7
push eax
call fcn.004036e6
pop ecx
test eax, eax
je 0x40a1e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a1e7
mov eax, dword [0x45c9b4]
cmp eax, ebx
je 0x40a1e7
push eax
call fcn.004036e6
pop ecx
test eax, eax
je 0x40a1e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45c9ac]
call fcn.004036e6
pop ecx
test eax, eax
je 0x40a207
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a209
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b9b3
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x4ef9d4], 0x930
jne 0x40b9cd
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x4ef9d4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x4ef6f0], eax
jne 0x40b9ed
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
leave
ret
Function at 0x40b9f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
cmp dword [ebp + 0xc], edx
jle 0x40ba34
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.0040b9ef
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x28
sub dword [ebp - 4], 0x1e
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x40ba03
cmp dword [ebp + 0xc], 0x2d
jne 0x40ba4b
or dword [0x4ef9e4], 0xffffffff
mov dword [0x4ef9e0], 0xa62e7790
leave
ret
Function at 0x409cc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5663f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004b3c25
add esp, 4
cmp eax, ebx
je 0x409da4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004b3c25
add esp, 4
cmp eax, ebx
je 0x409d80
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.004b3a06
push 0x5ad5c0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.004b3921
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.004b3a06
push 0x5ad5c0
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004b3921
int3
Function at 0x414f30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5662ab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a467e
push 4
mov dword [ebp - 4], 0
call fcn.004b3c25
mov edi, eax
add esp, 4
test edi, edi
je 0x414fb0
call fcn.004a4cc6
mov dword [edi], eax
call fcn.004a4a07
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004a44c1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x414fa6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004a44e9
jmp 0x414fb2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417292
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x4172ae
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x4172b4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 0xc]
call fcn.004b2ba5
pop ecx
pop ecx
test eax, eax
jne 0x4172e6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x4172d7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x4172dd
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00417269
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x417314
push str._Expt_info_processor_Exception_files_compress_failed.
push 4
call fcn.00417342
pop ecx
pop ecx
xor al, al
jmp 0x41733e
push dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
call fcn.00417285
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x41733c
push str._Expt_info_processor_Exception_files_encrypted_failed.
push 4
call fcn.00417342
pop ecx
pop ecx
xor al, al
jmp 0x41733e
mov al, 1
leave
ret 0xc