joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ea20
Capabilities:
Encode data using xor
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx]
mov dword [ebp - 8], ecx
push ebx
push esi
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
push edi
cmp edx, 8
jne 0x43ea44
cmp dword [ecx + 8], 2
je 0x43ea44
or ebx, 2
mov dword [ebp - 4], ebx
mov esi, dword [ecx + 4]
mov edi, dword [ebp + 8]
test esi, esi
je 0x43ea9e
cmp dword [esi], 0
je 0x43ea9e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56adf0]
cmp eax, dword [ecx + 4]
jg 0x43eb6c
movzx ecx, word [edi]
mov esi, edi
mov edx, edi
test cx, cx
je 0x43ea98
mov bl, byte [0x56adf4]
nop
add esi, 2
lea edx, [edx + 1]
xor cl, bl
mov byte [edx - 1], cl
movzx eax, word [esi]
mov cl, al
test ax, ax
jne 0x43ea80
mov ebx, dword [ebp - 4]
sub esi, edi
sar esi, 1
jmp 0x43eaa0
xor esi, esi
test bl, 1
je 0x43eaac
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, 2
je 0x43eacb
test esi, esi
je 0x43eac1
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.0043e290
jmp 0x43eacb
push ecx
mov ecx, dword [ebp - 8]
push edi
call fcn.0043e730
test bl, 4
je 0x43eb5a
mov esi, dword [0x56b11c]
mov edx, dword [esi]
cmp edx, 0xffffffff
jne 0x43eb2a
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [esi + 4]
add ecx, 0x2710
cmp eax, ecx
jbe 0x43eb5a
mov edx, dword [esi]
cmp edx, 0xffffffff
jne 0x43eb2a
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push str..GlobalProcmonDebugLogger
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, dword [esi]
mov dword [esi + 4], eax
cmp edx, 0xffffffff
je 0x43eb5a
mov ecx, edi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43eb30
push 0
sub ecx, esi
lea eax, [ebp - 8]
push eax
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edi
push 0x95358204
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test bl, 8
je 0x43eb65
push edi
call fcn.0043e8a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x56adf0
call fcn.004fc956
add esp, 4
cmp dword [0x56adf0], 0xffffffff
jne 0x43ea6c
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x56adf0
mov byte [0x56adf4], al
call fcn.004fc90c
add esp, 4
jmp 0x43ea6c
Function at 0x43ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529b10
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x566090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
lea esi, [edi + 4]
mov dword [edi], 0
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x1c], eax
mov edx, str.BDREINIT
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], 0x12c
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0x56aea0
call fcn.0043f410
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x43edc0
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x43ed94
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x43ed87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee18
mov eax, edx
push ecx
push eax
call fcn.004fc7e0
mov eax, dword [ebp - 0x30]
add esp, 8
xor ecx, ecx
mov word [esi], cx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x43edf6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43edec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee18
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.0050175f
int3
Function at 0x441560
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [edx + 4]
push edi
mov edi, ecx
test esi, esi
je 0x4415a3
cmp dword [esi], 0
je 0x4415a3
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56ae94]
cmp eax, dword [ecx + 4]
jg 0x4415a8
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x44159e
mov dl, byte [0x56ae98]
xor cl, dl
mov byte [eax], cl
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x441593
sub eax, edi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
push 0x56ae94
call fcn.004fc956
add esp, 4
cmp dword [0x56ae94], 0xffffffff
jne 0x441585
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x56ae94
mov byte [0x56ae98], al
call fcn.004fc90c
add esp, 4
jmp 0x441585
Function at 0x4504c0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
ret
Function at 0x457080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x566090]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, edx
push ebx
push esi
lea esi, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [eax], 0
mov eax, esi
push edi
mov edi, 0x104
sub ecx, eax
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x4570d4
movzx eax, word [ecx + esi]
test ax, ax
je 0x4570d4
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x4570b6
test edi, edi
lea eax, [esi - 2]
push 0x54777c
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0x1c]
call fcn.00451940
lea eax, [esp + 0x18]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x457171
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x457131
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00452040
add esp, 4
mov edi, eax
xor ebx, ebx
test edi, edi
jns 0x457114
push edi
push ecx
mov ecx, dword [ebp + 4]
lea edx, [ebx + 0x62]
call fcn.00451ff0
mov ecx, dword [esp + 0x22c]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x45718a
mov edx, 0x95
jmp 0x457239
test eax, eax
je 0x45719f
cmp eax, 0x102
je 0x45719f
mov edx, 0x96
jmp 0x457271
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov dword [esp + 0xc], ebx
test eax, eax
jne 0x4571e8
lea eax, [esp + 0xc]
push eax
push 1
push esi
call edi
test eax, eax
jne 0x4571c2
mov edx, 0x9e
jmp 0x457239
inc dword [esp + 0xc]
push 0
push 1
push esi
call edi
test eax, eax
jne 0x4571de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
je 0x457258
mov edx, 0xa3
jmp 0x457271
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 1
push esi
call edi
test eax, eax
jne 0x457201
mov edx, 0xad
jmp 0x457239
cmp dword [esp + 0x10], ebx
je 0x45720e
mov edx, 0xae
jmp 0x457271
push 0
push 1
push esi
call edi
test eax, eax
jne 0x45726c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12a
jne 0x45726c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x45724d
mov edx, 0xb4
push ecx
mov ecx, dword [ebp + 4]
call fcn.00452040
mov edi, eax
add esp, 4
test edi, edi
jns 0x45725c
jmp 0x457287
test eax, eax
je 0x457258
mov edx, 0xb5
jmp 0x457271
mov ebx, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4572b6
jmp 0x457114
mov edx, 0xb1
push 0x8000ffff
push ecx
mov ecx, dword [ebp + 4]
call fcn.00451ff0
add esp, 8
mov edi, 0x8000ffff
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00451ff0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x457144
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x942
call fcn.00452090
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x942
call fcn.00452090
int3
Function at 0x4682c0
Capabilities:
Check for time delay via queryperformancecounter
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c24f
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x566090]
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
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x15c], edi
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
mov dword [edi + 0x10], 0
xorps xmm0, xmm0
mov dword [edi + 0x14], 0
mov edx, 0x54825c
movq qword [edi + 0x18], xmm0
mov dword [ebp - 0x18], 0x203e2d20
mov byte [ebp - 0x14], 0
call fcn.00481d90
push eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x5244425b
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x24], 0x494e4945
mov dword [ebp - 0x20], 0x3a205d54
mov word [ebp - 0x1c], 0x203a
mov byte [ebp - 0x1a], 0
call fcn.00481f20
add esp, 4
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0xf8]
call fcn.00482120
add esp, 4
mov dword [ebp - 0x18], 0x202d3c20
mov edx, 0x54825c
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x60]
call fcn.00481d90
push eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x5244425b
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x24], 0x494e4945
mov dword [ebp - 0x20], 0x3a205d54
mov word [ebp - 0x1c], 0x203a
mov byte [ebp - 0x1a], 0
call fcn.00481f20
add esp, 4
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0x148]
call fcn.00482120
add esp, 4
call fcn.00441aa0
mov edx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ecx, dword [ebx]
cmp dword [ecx], 0
je 0x468456
lea eax, [ebp - 0x158]
movlpd qword [ebp - 0x158], xmm0
push eax
call edx
mov esi, dword [ebp - 0x158]
lea eax, [ebp - 0xf8]
push 0x546f10
push eax
push str._s_s
push 0x546f10
push 0
mov dword [ebp - 0x14c], esi
mov esi, dword [ebp - 0x154]
push ebx
mov dword [ebp - 0x18], esi
call fcn.0043d760
mov ecx, dword [ebx]
add esp, 0x18
mov edx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x468465
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 3
cmp dword [ecx], 0
je 0x4684d9
mov esi, dword [0x56b120]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x28], xmm0
call edx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x24]
sbb edx, dword [ebp - 0x18]
call fcn.00525570
mov edx, dword [esi + 4]
mov ecx, dword [esi]
movsd qword [ebp - 0x28], xmm0
call fcn.00525570
movsd xmm1, qword [ebp - 0x28]
lea eax, [ebp - 0x148]
divsd xmm1, xmm0
sub esp, 8
cvtpd2ps xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x546f10
push str._s_n____.6f___
push eax
push 0
push ebx
call fcn.0043d760
add esp, 0x1c
mov eax, edi
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.004fc7af
mov esp, ebp
pop ebp
ret
Function at 0x469309
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
ret
Function at 0x47ac19
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ret
Function at 0x49d0c2
Capabilities:
Contain obfuscated stackstrings
Create process memory minidump

Disassembly:
ret
Function at 0x4ab750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x566090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x4ab785
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4ab7c3
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x4ab7c3
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4ab88f
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x4ab7ed
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ab7fa
push dword [esi + 0x4c]
push edi
jmp 0x4ab838
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4ab862
sub eax, 1
je 0x4ab862
sub eax, 2
jne 0x4ab88f
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0050e043
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x4ab894
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x4ab87f
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.00505dc6
add esp, 0x10
cmp ebx, eax
jne 0x4ab88f
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x4ab7ad
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004fc7af
mov esp, ebp
pop ebp
ret 4
Function at 0x4ab960
Capabilities:
Access peb ldr_data
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5315c4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x566090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
mov dword [esi], 0x545c4c
mov dword [esi + 0x78], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x70], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.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.0043ca50
mov eax, dword [edi + 0x30]
lea ebx, [esi + 0x10]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.00442c10
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ecx, ax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4aba68
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4aba68
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov eax, dword [ebp - 0x20]
mov word [edi + 0x40], ax
jne 0x4aba85
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.0043d080
mov dword [ebp - 4], 3
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.004ac1d0
lea eax, [esi + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3e], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x20]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x56b34c]
mov dword [eax], 0
mov eax, dword [0x56b348]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x50], eax
mov eax, edx
mov dword [edx + 0x5c], 0
mov dword [edx + 0x54], ecx
mov dword [edx + 0x48], 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 0x4abf60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x566090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4ac024
cmp byte [esi + 0x3e], 0
je 0x4ac024
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4ac012
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4abfda
sub eax, 1
je 0x4abfde
sub eax, 2
jne 0x4ac012
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4abffb
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00505dc6
add esp, 0x10
cmp edi, eax
jne 0x4ac012
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004fc7af
mov esp, ebp
pop ebp
ret

Function at 0x4ac1d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ecc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x566090]
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_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004fc7f3
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004e6569
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 0x4b7fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, 0x400000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], ecx
lea eax, [ebp - 4]
push eax
cmovbe ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
setne dl
test ecx, ecx
je 0x4b801e
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test dl, dl
je 0x4b802a
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b803f
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
jle 0x4b8049
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b80f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b813d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b813d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b812c
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
jle 0x4b8151
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x4b8160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
mov ecx, 0x400000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], ecx
push eax
cmovbe ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
test eax, eax
mov eax, dword [ebp - 4]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x4b81a7
mov dword [ecx], eax
test dl, dl
je 0x4b81b3
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b81c8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10
jle 0x4b81d2
movzx eax, ax
or eax, 0x80070000
mov esp, ebp
pop ebp
ret 0x10