joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c309d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x1c], 6
jb 0x40940b
cmp dword [ebp - 0x20], 2
jb 0x40940b
push 0
push str.Operating_system_Windows_8_or_above_detected
call sub.bv_util.dll_void___cdecl_LogError_char_const___unsigned_int_
add esp, 8
xor al, al
jmp 0x4094b2
mov dword [ebp - 4], 0
call fcn.00403454
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x11], al
jmp 0x40949f
mov dword [ebp - 4], 0xffffffff
jmp 0x4094af
mov al, byte [ebp - 0x11]
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 0x40ac90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c33a4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CPermissionsFile.0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 9
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
add eax, 0x34
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3465
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CXMLDOMClass.0
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00403b48
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004022bb
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402603
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
add ecx, 0x28
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 6
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp + 8]
add edx, 0x3c
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x46f110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd462
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CPage.0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 4], edx
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.mfc110.dll_Ordinal_968
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46f260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd4bc
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x158], 1
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x160]
call fcn.0040294b
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x15c]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0xffffffff
jne 0x46f32e
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x154]
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 1
push 0xf011
lea ecx, [ebp - 0x154]
call dword [sym.imp.mfc110.dll_Ordinal_8270]
lea ecx, [ebp - 0x154]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
call dword [sym.imp.MSVCR110.dll__mkdir]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x164], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5ffc
mov esp, ebp
pop ebp
ret
Function at 0x47b6e0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceab4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 6
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.mfc110.dll_Ordinal_969
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47b7c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceb2c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0xffffffff
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov byte [ebp - 4], 1
push 0x4ee0d0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 2
push 0x4ee0d1
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 3
push 0x4ee0d2
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 4
push 0x4ee0d3
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 5
push 0x4ee0d4
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 7
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.mfc110.dll_Ordinal_969
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x483c70
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfb06
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x515bb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xe]
call fcn.00402f59
mov dword [ebp - 4], 0
push 0xa
lea ecx, [ebp - 0x3c]
call sub.mfc110.dll_Ordinal_818
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x84], 0
je 0x483ce4
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0xd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x84]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x84]
mov edx, dword [eax + 0x1c]
call edx
lea ecx, [ebp - 0x3c]
call fcn.004026e9
test eax, eax
jne 0x483e34
mov ecx, dword [ebp - 0x14]
call fcn.0040266c
test eax, eax
je 0x483e34
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x20]
call fcn.004034a4
mov byte [ebp - 4], 2
push 1
lea ecx, [ebp - 0x20]
call fcn.00490d40
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00401127
movzx ecx, ax
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00403233
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x18], 0
je 0x483d7d
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00401127
movzx edx, ax
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x483de2
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00401de3
movzx edx, ax
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00403233
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x18], 0
je 0x483de2
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00401de3
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x483e22
mov dword [ebp - 0x18], 0
push 1
lea edx, [ebp - 0x20]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401910
mov ecx, eax
call fcn.00403233
cmp dword [ebp - 0x18], 0
je 0x483e22
mov edx, dword [ebp - 0x18]
push edx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00403378
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call sub.mfc110.dll_Ordinal_1344
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe]
call fcn.00402aef
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x487360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfeb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x4873a0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4873ac
mov al, 1
jmp 0x487551
mov dword [ebp - 0x54], 8
call fcn.00402a90
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00402a90
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00402586
add esp, 8
movzx eax, al
test eax, eax
je 0x4873ef
xor al, al
jmp 0x487551
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004019ce
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.004029aa
mov ecx, eax
call fcn.00403341
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00401956
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029aa
mov ecx, eax
call fcn.00403341
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x48746b
cmp dword [ebp - 0x38], 1
je 0x487472
cmp dword [ebp - 0x38], 3
je 0x48750d
jmp 0x487525
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004029aa
mov ecx, eax
call fcn.00403341
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x4874d6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.004029aa
mov ecx, eax
call fcn.00403341
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x4874d6
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403db4
mov al, byte [ebp - 0x2f]
jmp 0x487551
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4874f9
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403db4
mov al, byte [ebp - 0x30]
jmp 0x487551
cmp dword [ebp - 0x34], 0
jne 0x48750b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00401b7c
jmp 0x48753d
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403db4
mov al, byte [ebp - 0x2e]
jmp 0x487551
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403db4
mov al, byte [ebp - 0x2d]
jmp 0x487551
jmp 0x487402
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5ffc
mov esp, ebp
pop ebp
ret
Function at 0x48c988
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48ca48
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48ca37
cmp dword [ebp - 0x110], 2
mov byte [ebp - 5], bl
lea eax, [ebp - 0x108]
jne 0x48ca28
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x48ca37
push eax
push edi
push esi
call fcn.0048cad4
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x48ca4a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b5ffc
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Execute command
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Hello_World__n
call fcn.00401190
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Calculator_Application
push 0x4013b0
push 0x4013b0
call fcn.00401190
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4013b0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Please_enter_the_operation_to_perform._Format:_ab__a_b__ab__a_b
call fcn.00401190
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push str.asdsadsadsad
push str.sadsadsad
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 4
push 0x4013b0
push 3
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.hello_world
call fcn.00401190
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401be4
Capabilities:
Parse pe header

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