joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018a8
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
mov eax, dword [0x10060b0]
sub esp, 0x214
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001260
push 0x80000000
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
or eax, eax
jne 0x1001a38
cmp dword [ebp - 0x214], 1
jne 0x1001a38
push ebx
push edi
mov ebx, 0x1001268
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
or eax, eax
jne 0x1001a36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001278
push 0x80000000
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001a36
push 0x1001288
call edi
push eax
push 0x1001288
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
or eax, eax
jne 0x1001a36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001294
push 0x80000000
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
or eax, eax
jne 0x1001a36
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100185d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x10012b8
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
sub esp, 0xfffffff0
lea eax, [ebp - 0x108]
push eax
call edi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push esi
push esi
push dword [ebp - 0x210]
call ebx
or eax, eax
jne 0x1001a36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], esi
pop edi
pop ebx
cmp dword [ebp - 0x210], esi
pop esi
je 0x1001a4d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.01004a2f
leave
ret
Function at 0x10026e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov edi, edi
mov eax, dword [0x10060b0]
mov ebp, esp
sub esp, 0x114
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
je 0x10027b9
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push 0x1001418
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x10027a5
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x1001417
push dword [ebp - 0x10c]
mov dword [ebp - 0x114], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10027a5
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x110], 2
jne 0x1002788
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x114], eax
jmp 0x10027a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10027a5
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x10c], ebx
je 0x10027b9
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01004a2f
leave
ret 8
Function at 0x1003353
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.010049bc
jmp fcn.010032cf

Function at 0x1004348
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
je 0x1004409
cmp dword [ebp + 0x10], esi
je 0x1004409
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x100438d
mov dword [ebp - 4], 0x80040116
jmp 0x10043fd
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10043a6
mov dword [ebp - 4], 0x80040116
jmp 0x10043f5
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
jne 0x10043bf
mov dword [ebp - 4], 0x8007000e
jmp 0x10043f4
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10043dc
mov dword [ebp - 4], 0x80040116
jmp 0x10043f4
cmp ebx, dword [ebp - 8]
je 0x10043ea
mov dword [ebp - 4], 0x80004005
jmp 0x10043f4
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
mov eax, dword [ebp + 8]
pop ebx
cmp eax, esi
je 0x1004404
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x100440e
mov eax, 0x80070057
pop esi
leave
ret 0xc
Function at 0x40bb20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471a80
mov eax, dword fs:[0]
push eax
mov eax, 0x1003c
call fcn.0044d5c0
mov eax, dword [0x494054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10014], esi
lea eax, [ebp - 0x10014]
mov dword [ebp - 0x10014], esi
push eax
lea eax, [ebp - 0x10010]
mov dword [ebp - 0x10014], 0x7fff
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40bbe6
push str.GetComputerName
lea ecx, [ebp - 0x10030]
mov dword [ebp - 0x10030], eax
mov dword [ebp - 0x10020], eax
mov dword [ebp - 0x1001c], 7
call fcn.00406110
mov edx, dword [ebp - 0x1001c]
cmp edx, 8
jb 0x40bbe6
mov ecx, dword [ebp - 0x10030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bbdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bcfb
push edx
push ecx
call fcn.0044c564
add esp, 8
lea eax, [ebp - 0x10010]
mov dword [ebp - 0x10030], 0
push eax
lea ecx, [ebp - 0x10030]
mov dword [ebp - 0x10020], 0
mov dword [ebp - 0x1001c], 7
call fcn.00406110
mov edx, dword [ebp - 0x1001c]
cmp edx, 8
jb 0x40bc56
mov ecx, dword [ebp - 0x10030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bc4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bcfb
push edx
push ecx
call fcn.0044c564
add esp, 8
xor eax, eax
mov dword [ebp - 0x10048], 0
mov word [ebp - 0x10048], ax
lea ecx, [ebp - 0x10048]
lea eax, [ebp - 0x10010]
mov dword [ebp - 0x10038], 0
push eax
mov dword [ebp - 0x10034], 7
call fcn.00406110
lea edx, [ebp - 0x10048]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0040b3a0
mov edx, dword [ebp - 0x10034]
cmp edx, 8
jb 0x40bcdf
mov ecx, dword [ebp - 0x10048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bcd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bd00
push edx
push ecx
call fcn.0044c564
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret
call fcn.00450fe0
call fcn.00450fe0
int3
Function at 0x4147c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4148a6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x414895
jg 0x414800
test edx, edx
je 0x414895
nop dword [eax]
call fcn.00416460
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x414854
jg 0x414817
test esi, esi
je 0x414854
cmp ebx, eax
jg 0x414827
jl 0x414821
cmp edi, esi
jae 0x414827
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0044df90
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x414879
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x41488f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x414800
jl 0x41488f
test edi, edi
jne 0x414800
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4148c8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4148ca
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x414948
jg 0x4148dd
test esi, esi
je 0x414948
test eax, eax
jl 0x41492c
jg 0x4148e7
test ebx, ebx
je 0x41492c
cmp edi, eax
jg 0x4148f7
jl 0x4148f1
cmp esi, ebx
jae 0x4148f7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0044df90
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x414948
jg 0x41492f
test esi, esi
je 0x414948
jmp 0x41492f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x414948
push eax
push esi
push 1
push edx
call fcn.004571e4
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x414992
jl 0x414985
test ecx, ecx
jne 0x414992
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x414a52
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00416480
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4149fe
jg 0x4149bd
test esi, esi
je 0x4149fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4149d5
mov eax, dword [esp + 0x10]
jl 0x4149cf
cmp eax, esi
jae 0x4149d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0044df90
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x414a1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x414a3b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4149a4
jl 0x414a3b
test ecx, ecx
jne 0x4149a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x414a91
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x414a91
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0044df90
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x414b00
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x414ab7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x414ae9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004577f8
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x414b14
cmp edi, eax
ja 0x414ac5
test ecx, ecx
je 0x414b00
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004577f8
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x494054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x414eb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x414eec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x414eec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x414fd4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x414f14
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x414f47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004562bd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x414fa7
sub eax, 1
je 0x414fa7
sub eax, 2
jne 0x414fd4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004562bd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x414fc4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004571e4
add esp, 0x10
cmp edi, eax
jne 0x414fd4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x414ed7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret 4
Function at 0x415f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x494054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41600a
cmp byte [esi + 0x3d], 0
je 0x41600a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x415ff8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x415fc0
sub eax, 1
je 0x415fc4
sub eax, 2
jne 0x415ff8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x415fe1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004571e4
add esp, 0x10
cmp edi, eax
jne 0x415ff8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret

Function at 0x416350
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4724b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x494054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044c2e3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0044aeaa
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x496c90]
mov edx, dword [0x496c94]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 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
Function at 0x416850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472520
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x494054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044c2e3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0044aeaa
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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
Function at 0x418250
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x494054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
push 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
push edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc]
push 0
push eax
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov esi, eax
test esi, esi
jns 0x4182c4
push esi
push esi
push str.Error:_0x_08x___d__n
call fcn.004181c0
add esp, 0xc
jmp 0x4183f9
push 0
push 0x20
push str.ChainingModeCBC
push str.ChainingMode
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov esi, eax
test esi, esi
jns 0x4182f5
push esi
push esi
push str.Error:_0x_08x___d__n
call fcn.004181c0
add esp, 0xc
jmp 0x4183f9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x418326
mov esi, 0xc0000017
push esi
push esi
push str.Error:_0x_08x___d__n
call fcn.004181c0
add esp, 0xc
jmp 0x4183f9
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
push ebx
call fcn.0044df90
add esp, 0xc
lea eax, [ebp - 0x10]
push 1
push eax
push 0
push 0
push esi
push ebx
push 0
push dword [ebp + 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov esi, eax
test esi, esi
jns 0x41836d
push esi
push esi
push str.Error:_0x_08x___d__n
call fcn.004181c0
add esp, 0xc
jmp 0x4183ed
push dword [ebp - 0x10]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x418398
mov esi, 0xc0000017
push esi
push esi
push str.Error:_0x_08x___d__n
call fcn.004181c0
add esp, 0xc
jmp 0x4183ed
push 1
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push ebx
push 0
push dword [ebp + 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov esi, eax
test esi, esi
jns 0x4183dd
push esi
push esi
push str.Error:_0x_08x___d__n
call fcn.004181c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4183ed
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x418407
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c0d8
mov esp, ebp
pop ebp
ret