joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaad250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xac1808
push 0xab1288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xaad329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xaad329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ab01d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xaad329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xaad329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xaad32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00aad351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xaadd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xaadd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xaadd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xaadd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xaadd94
push eax
push esi
call fcn.00ab020b
add esp, 8
pop esi
ret 0x10

Function at 0xaadda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xaade22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xaade15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xac6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00aafdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xaaddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xaade30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xaadec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xaadeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xac6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00aafdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xaadeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xaade6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xaae000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xaae131
push esi
call fcn.00ab1145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00aa0080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xaae131
push 0
push ebp
call fcn.00aa03a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00aa0260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xaae08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00aa02f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xaae121
push 0xac6918
push edi
call fcn.00aaf3f0
push eax
push ebx
push esi
call fcn.00aadf60
push 0xac68f8
push edi
call fcn.00aaf3f0
push eax
push ebx
push esi
call fcn.00aadf60
push 0xac68d8
push edi
call fcn.00aaf3f0
push eax
push ebx
push esi
call fcn.00aadf60
push 0xac68c0
push edi
call fcn.00aaf3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00aadf60
push 0xac68a0
push edi
call fcn.00aaf3f0
push eax
push ebx
push esi
call fcn.00aadf60
push 0xac6888
push edi
call fcn.00aaf3f0
push eax
push ebx
push esi
call fcn.00aadf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xaaf1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00aaf140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00aaf140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00aaf140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00aaf140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xaafbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xaafc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xac187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xaafc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xaafc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xd1d7b06
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x70096681
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40b706
Capabilities:
Terminate process

Disassembly:
add bh, bh
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300b30]
pop es
inc esi
fsub qword [eax]
rol byte [eax], 0xf1
or eax, 0x410b94
mov esi, edi
adc al, 0xdc
rol byte [eax], 0x8b
or al, 0xa3
fiadd dword [eax + 0x41]
add byte [ecx - 0x61], cl
add al, byte [eax]
add byte [ebx - 0x2efdafc3], al
add byte [eax], al
jne 0x40b6bd
push 0x40b944
call dword [0x3f40c0e0]
pop ecx
xor eax, 0x295
push 0x7d40d04f
xchg ebx, eax
or al, dl
inc eax
add al, ch
xor eax, 0xa1000002
jns 0x40b6df
daa
cdq
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x28]
adc bh, bh
ror dword [ebx + ecx + 0x45d10041], 1
mov word [ebx], cs
inc ecx
add cl, dl
inc ebp
rol dword [ebp - 0x20], 1
push eax
loopne 0x40b737
arpl word [ebp - 0x2c], ax
jae 0x40b679
inc ebp
in al, 0x50
call dword [0x4b40c069]
push 0x40d004
mov eax, dword [section..data]
call sub.MSVCRT.dll__initterm
js 0x40b71b
in al, dx
rol byte [eax], 0x8b
mul al
mov dword [eax], ecx
mov dh, byte [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x36]
call 0x400fc4
jnp 0x40b6e3
invalid
xor byte [ebx], cl
cmp al, 0xdc
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [edx - 0x30], edx
push eax
push ecx
call 0x7640b926
pop ecx
jmp 0x40b73a
jbe 0x40b795
invalid
and al, 0x10
xor edx, edx
Function at 0x40b57d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410920
cmp edx, dword [eax]
je 0x40b59f
add eax, 8
inc ecx
cmp eax, 0x4109b0
jl 0x40b590
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410920]
jne 0x40b6cd
mov eax, dword [0xf0f8b4]
cmp eax, 1
je 0x40b6a7
test eax, eax
jne 0x40b5d0
cmp dword [0x410248], 1
je 0x40b6a7
cmp edx, 0xfc
je 0x40b6cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b607
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004088e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b64a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f48c
push edi
call fcn.00409000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004088e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004088f0
lea eax, [ebp - 0xa0]
push 0x40f46c
push eax
call fcn.004088f0
push dword [esi + 0x410924]
lea eax, [ebp - 0xa0]
push eax
call fcn.004088f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d753
add esp, 0x2c
pop edi
jmp 0x40b6cd
lea eax, [ebp + 8]
lea esi, [esi + 0x410924]
push 0
push eax
push dword [esi]
call fcn.00408ab0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10b0c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10b0c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10b0c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b0c06a
add dl, dl
jne 0x10b0c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b0c0dc
xor eax, eax
add dl, dl
jne 0x10b0c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b0c17d
add dl, dl
jne 0x10b0c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10b0c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10b0c075
mov eax, 1
add dl, dl
jne 0x10b0c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b0c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0c0e1
sub eax, ebx
mov ebx, 1
jne 0x10b0c128
mov ecx, 1
add dl, dl
jne 0x10b0c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b0c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10b0c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b0c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b0c136
cmp eax, 0x7d00
jae 0x10b0c16d
cmp eax, 0x500
jb 0x10b0c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0c075
cmp eax, 0x7f
ja 0x10b0c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b0c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10b0c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10b0c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x421850
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
mov dword [esp + 8], esi
mov dword [edx], esi
push edi
test ebx, ebx
je 0x4219af
cmp word [ebx], 0
je 0x4219af
push 4
push str.__
push ebx
call fcn.004a9c76
add esp, 0xc
lea ecx, [ebx + 8]
test eax, eax
mov edi, ebx
cmove edi, ecx
test edi, edi
je 0x4218e1
movzx eax, word [edi]
test ax, ax
je 0x4218e1
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x4d4e10
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x421924
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4218c0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4218b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 8]
mov edx, eax
test ecx, ecx
je 0x4218fb
and eax, ecx
cmp eax, ecx
jne 0x4219af
cmp edx, 0xffffffff
je 0x4219af
mov ecx, dword [esp + 0xc]
call fcn.00482ab0
cmp word [ecx], 0
jne 0x4219b8
mov dword [ecx], 0x58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4219af
cmp word [esp + 0x3c], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x421971
mov ax, word [esp + 0x3e]
test ax, ax
je 0x42195d
cmp ax, 0x2e
jne 0x421971
cmp word [esp + 0x40], 0
jne 0x421971
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x4219a8
cmp word [esp + 0x3c], 0x2e
je 0x421945
mov esi, dword [ebp + 8]
test esi, esi
je 0x421998
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
je 0x421998
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x4219a8
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
jne 0x421982
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
jmp 0x421904
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f30
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4428f7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x45a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x453060
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], 1
push esi
call fcn.004088a0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.004098e0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x45d72c]
mov dword [esi + 0x40], eax
mov eax, dword [0x45d730]
mov dword [esi + 0x44], eax
mov eax, edi
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442c08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45a070]
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 edi, ecx
cmp dword [edi + 0x38], 0
je 0x4084a2
cmp byte [edi + 0x3d], 0
je 0x4084a2
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4083a9
xor al, al
jmp 0x4084a4
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
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x28]
cmp ecx, 0x10
lea esi, [ebp - 0x28]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x408405
mov dword [ebp - 0x2c], esi
xor eax, eax
jmp 0x408426
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub eax, 0
je 0x408443
sub eax, 1
je 0x408447
sub eax, 2
je 0x408494
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00404de0
mov al, bl
jmp 0x4084a4
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x408476
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0042cac9
add esp, 0x10
cmp esi, eax
jne 0x408435
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [edi + 0x3d], 0
je 0x408494
test esi, esi
jne 0x4083e0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407ec0
jmp 0x4083d9
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00404de0
mov al, bl
jmp 0x4084a4
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.0040f3ad
mov esp, ebp
pop ebp
ret
Function at 0x4098e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4425d6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45a070]
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.0040f5ff
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040de88
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 0x40c410
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
or eax, 0xffffffff
xor esi, esi
mov ebx, ecx
test edi, edi
je 0x40c441
movzx edx, byte [esi + ebx]
mov ecx, eax
shr ecx, 0x18
inc esi
shl eax, 8
movzx edx, byte [edx + 0x452b00]
xor edx, ecx
xor eax, dword [edx*4 + 0x452c00]
cmp esi, edi
jb 0x40c420
pop edi
pop esi
pop ebx
ret
Function at 0x40c450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
sub eax, dword [esi]
movzx ecx, al
test al, al
je 0x40c546
mov eax, 0x100
sub eax, ecx
je 0x40c546
mov byte [ebp - 1], 0xff
nop dword [eax]
mov edi, dword [esi + 4]
dec eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 1]
cmp eax, edi
jae 0x40c4ef
mov ecx, dword [esi]
cmp ecx, eax
ja 0x40c4ef
mov ebx, dword [esi + 8]
mov edx, eax
sub edx, ecx
mov dword [ebp - 8], edx
cmp edi, ebx
jne 0x40c4df
mov eax, ebx
sub eax, edi
cmp eax, 1
jae 0x40c4df
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x40c58a
sub ebx, ecx
sub edi, ecx
mov eax, ebx
inc edi
shr eax, 1
xor edx, edx
mov ecx, eax
add eax, ebx
not ecx
cmp ecx, ebx
mov ecx, esi
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0040cf30
mov edx, dword [ebp - 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c538
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [ecx], al
jmp 0x40c538
mov ebx, dword [esi + 8]
cmp edi, ebx
jne 0x40c52e
mov eax, ebx
sub eax, edi
cmp eax, 1
jae 0x40c52e
mov ecx, dword [esi]
mov eax, ecx
sub eax, edi
dec eax
cmp eax, 1
jb 0x40c58a
sub ebx, ecx
sub edi, ecx
mov eax, ebx
inc edi
shr eax, 1
xor edx, edx
mov ecx, eax
add eax, ebx
not ecx
cmp ecx, ebx
mov ecx, esi
cmovae edx, eax
cmp edx, edi
cmovae edi, edx
push edi
call fcn.0040cf30
mov eax, dword [esi + 4]
test eax, eax
je 0x40c538
mov byte [eax], 0xff
inc dword [esi + 4]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40c480
mov edi, dword [esi + 4]
mov edx, 0xffffffff
mov ebx, dword [esi]
mov esi, 0
sub edi, ebx
je 0x40c581
nop dword [eax]
movzx eax, byte [esi + ebx]
inc esi
movzx ecx, byte [eax + 0x452b00]
mov eax, edx
shr eax, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x452c00]
cmp esi, edi
jb 0x40c560
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.0040e1ce
int3