joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8d78
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x40274f
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x4026ec
xor ecx, ecx
jmp 0x4026fa
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4026f1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00405630
push 0x526954
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403bb0
push edi
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00403bb0
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00403480
lea ecx, [ebp - 0x58]
call fcn.00404f10
lea ecx, [ebp - 0x70]
call fcn.00404f10
lea ecx, [ebp - 0x40]
call fcn.00404f10
jmp 0x402773
cmp byte [edi], 0
jne 0x402758
xor ecx, ecx
jmp 0x402769
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402760
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00405630
push dword [ebp + 0x14]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x4027c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8da8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
cmp byte [ebx], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x402815
xor ecx, ecx
jmp 0x402829
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402820
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00405630
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edi
cmp byte [ecx + eax - 1], 0x5c
je 0x4028b3
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
ja 0x402867
push str.string_too_long
call fcn.0044c85a
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
jbe 0x402879
push str.string_too_long
call fcn.0044c85a
cmp edx, esi
jae 0x4028bf
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00405280
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x4028b3
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax + ecx], 0x5c
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
mov edx, dword [ebp - 0x2c]
cmp byte [edx], 0
jne 0x4028d4
xor ecx, ecx
jmp 0x4028e9
test esi, esi
jne 0x402894
cmp edx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax], 0
jmp 0x4028b3
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404db0
push 0x38
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0049d060
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x68], 0x440
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8d08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a49
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x402a13
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x402a20
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004045a0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x402a6e
xor ecx, ecx
jmp 0x402a7c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a73
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00405630
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret

Function at 0x402ab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402afd
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x402ae2
mov eax, dword [eax]
push ecx
push eax
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x402b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402b95
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x402bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402be5
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x402c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8e12
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x105
push 0
push eax
call fcn.0049d060
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
push 0x526960
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00405630
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
jne 0x402cc3
push 3
push 0x526964
lea ecx, [ebp - 0x130]
call fcn.00404db0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00405080
push 1
push 0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x1ac], 0x20
call fcn.00403610
cmp eax, 0xffffffff
je 0x402deb
push 1
push 0x526950
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
call fcn.00405630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
push 1
push 0x526950
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
call fcn.00405630
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00403c00
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.00403c30
add esp, 0x18
lea ecx, [ebp - 0x148]
push eax
call fcn.00403480
lea ecx, [ebp - 0x1a8]
call fcn.00404f10
lea ecx, [ebp - 0x190]
call fcn.00404f10
lea ecx, [ebp - 0x160]
call fcn.00404f10
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 1
call fcn.00404f10
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x190]
push 0x526968
push eax
call fcn.00403d20
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.00404cb0
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 1
call fcn.00404f10
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x118]
push str.regsvr32.exe
push eax
call fcn.004027c0
add esp, 0xc
lea ecx, [ebp - 0x148]
call fcn.00404f10
lea ecx, [ebp - 0x130]
call fcn.00404f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x402e90
Capabilities:
Check if file exists
Create service
Delete service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402ed9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402f06
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x402f48
cmp dword [ebp + 0x1c], 0
je 0x402f83
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0xf01ff
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x402f86
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x24], eax
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x405a20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8f48
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x138], eax
call fcn.00401e90
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
call fcn.00405080
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x13c], 0x10
mov edx, 0x100
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
mov dword [ebp - 0x130], eax
xor eax, eax
nop word [eax + eax]
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x405ad0
xor dl, dl
mov word [ebp - 0x2c], 0
xor ebx, ebx
lea esi, [ebp - 0x12c]
mov edi, 0x100
mov eax, dword [ebp - 0x130]
lea esi, [esi + 1]
mov cl, byte [esi - 1]
movzx edx, dl
mov al, byte [edx + eax]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x12c]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x134]
mov byte [ebp + ebx - 0x12c], cl
sub edi, 1
jne 0x405af0
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x405b8e
movzx edx, byte [ebp - 0x2c]
movzx ebx, byte [ebp - 0x2b]
nop dword [eax]
inc dl
inc esi
movzx edx, dl
mov cl, byte [ebp + edx - 0x12c]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x12c]
mov byte [ebp + edx - 0x12c], al
mov byte [ebp + ebx - 0x12c], cl
movzx eax, cl
add al, byte [ebp + edx - 0x12c]
mov ecx, dword [ebp - 0x138]
movzx eax, al
movzx eax, byte [ebp + eax - 0x12c]
xor byte [edi + ecx], al
movsx edi, si
cmp edi, dword [ebp + 0xc]
jl 0x405b40
lea ecx, [ebp - 0x150]
call fcn.00404f10
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 8
Function at 0x405c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8fa5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x537474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x405cd5
mov dword [esi], 0x526a68
mov dword [esi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.00408610
lea eax, [ebp - 0x1c]
mov dword [edi + 0x3c], 0
lea ebx, [esi + 0x10]
mov ecx, edi
push eax
mov dword [edi + 0x38], ebx
call fcn.004086c0
push eax
mov dword [ebp - 4], 2
call fcn.00408cb0
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x405d53
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x405d53
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x405d7c
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00409430
mov dword [ebp - 4], 4
mov eax, dword [esi]
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.00408190
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x3d], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x53d1b4]
mov dword [ebx + 0x40], eax
mov eax, dword [0x53d1b8]
mov dword [ebx + 0x44], eax
mov eax, esi
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8d08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40788b
cmp byte [ebx + 0x3d], 0
je 0x40788b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4077a9
xor al, al
jmp 0x40788d
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407823
sub eax, 1
je 0x407827
sub eax, 2
je 0x40787d
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00404f10
mov al, bl
jmp 0x40788d
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x40785f
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004a5bb2
add esp, 0x10
cmp esi, eax
jne 0x407815
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x40787d
test esi, esi
jne 0x4077e0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004045a0
jmp 0x4077d9
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00404f10
mov al, bl
jmp 0x40788d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9336
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x537474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00497f1d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044cd70
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f95b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x537474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
push 0x1c
call fcn.00497f1d
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x48], 0xf
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 4], esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x18], eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp byte [esi], 0
jne 0x409ee0
xor ecx, ecx
jmp 0x409eee
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ee5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00405630
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.0040c850
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404f10
cmp byte [ebp - 0x60], 0
jne 0x409fb1
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [esi], 0
jne 0x409f49
xor ecx, ecx
jmp 0x409f59
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409f50
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00405630
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x2e
push str.more_than_one_flags_defined_with_the_same_name
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405630
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00409d00
lea ecx, [ebp - 0x28]
call fcn.00404f10
lea ecx, [ebp - 0x40]
call fcn.00404f10
push 0
call fcn.004b48a1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497ebf
mov esp, ebp
pop ebp
ret 0x1c