joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479140
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x1c], 8
lea esi, [edi + 8]
mov ebx, dword [edi + 0x18]
jb 0x47915c
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x479178
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x479167
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ecx + edx]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x4791b1
cmp eax, edi
jne 0x4791a9
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4791b9
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4791b9
cmp eax, edi
jne 0x4791b9
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebx + 8]
call fcn.00449120
push 0x24
push edi
call fcn.006d0b31
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4791f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
jb 0x47920a
mov esi, dword [esi]
xor edx, edx
push edi
mov edi, 0x811c9dc5
add ebx, ebx
je 0x479227
movzx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x479216
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
and ecx, edi
pop edi
lea esi, [ecx*8]
mov ecx, dword [edx + esi]
add edx, esi
cmp dword [edx + 4], eax
jne 0x479261
cmp ecx, eax
jne 0x479259
mov ecx, dword [ebx + 4]
mov dword [edx], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [esi + edx + 4], ecx
jmp 0x479269
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x479269
cmp ecx, eax
jne 0x479269
mov ecx, dword [eax]
mov dword [edx], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 4]
push eax
push esi
call fcn.004798b0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4793b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x706ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x7c0ab4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x4793f5
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x479414
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x479403
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and edi, edx
mov dword [ebp - 0x20], edi
mov ecx, dword [eax + edi*8]
mov dword [ebp - 0x18], ecx
cmp ecx, esi
je 0x47943b
mov esi, dword [eax + edi*8 + 4]
mov esi, dword [esi]
mov edx, dword [ebx + 0x10]
nop
cmp esi, ecx
je 0x4794b2
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x479453
mov eax, dword [esi + 8]
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x47945d
mov edi, dword [ebx]
mov ecx, dword [ebp - 0x18]
cmp edx, dword [esi + 0x18]
jne 0x479440
mov ecx, dword [ebx + 0x10]
mov edx, ecx
test ecx, ecx
je 0x479481
sub edi, eax
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x4794ad
add eax, 2
sub edx, 1
jne 0x479470
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
call fcn.004798b0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 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 0xc
mov ecx, dword [ebp - 0x18]
jmp 0x47943b
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp esi, eax
je 0x4794df
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x4794fd
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx*8 + 4], edi
jmp 0x479520
cmp eax, esi
jne 0x479505
mov dword [ecx], edi
jmp 0x479520
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x479520
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.00479830
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x479b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0xc], ebx
mov esi, edi
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x479b8e
mov esi, dword [edi]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x479bb1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x479ba0
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 4], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 8], eax
nop
cmp edx, ebx
jne 0x479bd8
mov eax, ebx
jmp 0x479bdc
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x479c3a
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x479bed
mov ecx, dword [eax]
cmp dword [esi + 0x1c], 8
lea edi, [esi + 8]
jb 0x479bf9
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x18]
cmp edx, dword [eax + 0x10]
jne 0x479c30
test edx, edx
je 0x479c18
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x479c30
add ecx, 2
sub edx, 1
jne 0x479c07
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
push edi
call fcn.00478e60
test al, al
mov ecx, ebx
cmove ecx, esi
mov eax, ecx
jmp 0x479c41
mov esi, dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x479bd0
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov eax, ebx
cmp eax, ebx
jne 0x479c97
mov esi, dword [ebx]
lea eax, [ebp - 8]
push ecx
push eax
push ecx
mov dword [ebp - 8], edi
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0047a240
mov ebx, dword [ebp - 0xc]
mov edx, eax
mov ecx, 0x71c71c6
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x479ca9
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 8]
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
push esi
call fcn.00479570
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.006cf4ca
int3
Function at 0x47a2c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x47a333
cmp ecx, eax
jne 0x47a32b
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x47a33b
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x47a33b
cmp ecx, eax
jne 0x47a33b
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push 0x10
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.006d0b31
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x47b0e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x706bee
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x7c0ab4]
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 eax, dword [ebp + 0xc]
mov ebx, 0x780fa8
mov esi, dword [edi + 0x884]
test eax, eax
mov dword [ebp - 0xc8], esi
cmovne ebx, eax
test esi, esi
je 0x47b134
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0047afc0
mov eax, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], 0x17
call fcn.0044aa50
test al, al
jne 0x47b21c
test byte [edi + 0x24], 0x80
je 0x47b21c
cmp word [ebx], 0
je 0x47b2ad
push ebx
lea ecx, [ebp - 0x40]
call fcn.00448fd0
push str..bak
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00455640
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x47b1cd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b1c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b2ee
push edx
push ecx
call fcn.006d0b31
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47b21c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b212
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b2f3
push edx
push ecx
call fcn.006d0b31
add esp, 8
cmp word [ebx], 0
je 0x47b2ad
push str.aN__ccsUTF_8
push ebx
call fcn.006e5201
add esp, 8
test eax, eax
je 0x47b2ad
mov ecx, ebx
mov byte [edi + 0x2c], 1
mov dword [edi + 0x28], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b244
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x30]
call fcn.00449180
push ebx
lea ecx, [ebp - 0xc4]
call fcn.00462d10
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b274
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.00454c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
cmp eax, ecx
je 0x47b2a3
push eax
call fcn.006d6340
add esp, 4
mov ecx, dword [edi + 0x28]
call fcn.0047a6e0
jmp 0x47b2be
push 1
call fcn.006e4958
add esp, 4
mov dword [edi + 0x28], eax
mov byte [edi + 0x2c], 0
mov ecx, edi
call fcn.0047b040
test esi, esi
je 0x47b2d0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.006d0856
mov esp, ebp
pop ebp
ret 0xc
call fcn.006d79b8
call fcn.006d79b8
int3
Function at 0x47e790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x706ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x7c0ab4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], vtable.KLDBG::CDbgTimeMeasurer3_char_.0
push eax
push 5
push str.KLSTD::CFileSemaphoreNoReadLock::Leave
mov ecx, str.KLSTD
mov dword [ebp - 0x2c], str.KLSTD
mov dword [ebp - 0x28], str.KLSTD::CFileSemaphoreNoReadLock::Leave
mov dword [ebp - 0x24], 5
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x4c], 3
call fcn.00484650
add esp, 0xc
mov byte [ebp - 0x20], al
mov dword [ebp - 4], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x47e844
cmp ecx, 0xffffffff
je 0x47e844
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x47e81d
mov ecx, dword [ecx]
cmp dword [edi + 0x24], 0
mov eax, str.Leave_shared
push ecx
mov esi, str.Leave_exclusive
mov edx, str.KLSTD
cmove eax, esi
mov ecx, 4
push eax
push 0x7cfd9c
call fcn.0046ffb0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00462050
mov byte [ebp - 4], 2
mov ebx, dword [eax]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x47e874
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x70d440]
mov ecx, ebx
call esi
mov byte [ebp - 4], 3
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x70d440]
mov ecx, ebx
call esi
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x47e8a8
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x70d440]
mov ecx, esi
call edi
mov edi, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [edi + 8], 0
mov dword [ebp - 0x18], esi
mov dword [edi + 0x24], 0xffffffff
mov byte [ebp - 4], 5
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x70d440]
mov ecx, ebx
call edi
mov byte [ebp - 4], 6
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x70d440]
mov ecx, ebx
call edi
test esi, esi
je 0x47e8fd
cmp esi, 0xffffffff
je 0x47e8fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47e8fb
int3
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x47e90b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x47e927
cmp esi, 0xffffffff
je 0x47e927
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47e927
int3
cmp byte [ebp - 0x20], 0
mov dword [ebp - 0x54], vtable.KLDBG::CDbgTimeMeasurer3_char_.0
je 0x47e94c
push ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
xor edx, edx
push dword [ebp - 0x28]
call fcn.004848c0
add esp, 0x10
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 0x47f680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x707020
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x7c0ab4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x47f6c0
test eax, eax
jne 0x47f823
cmp eax, 0xffffffff
jae 0x47f843
test eax, eax
jne 0x47f6e1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
push 0
lea esi, [ebp - 0x18]
mov dword [ebp - 4], 0
push esi
push eax
mov byte [ebp - 4], 1
push edx
push dword [ecx + 8]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47f733
push 1
push 0x3ad
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.00465440
add esp, 0x10
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00448f20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.pBuffer
push 0
push 0x39f
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push 0x4a3
push 0x782c5c
call fcn.00477ab0
push str.dwBuffer___UINT_MAX
push 0
push 0x3a3
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push 0x4ae
push str.KLSTD
call fcn.00477ab0
push str.KLSTD::FileImpl::Read
push 0x3b5
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push 0x780fa8
mov edx, esi
mov ecx, 5
call fcn.00477010
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x47f894
mov eax, dword [eax]
push ecx
push 0
push eax
mov edx, 2
mov ecx, esi
call fcn.0047ea50
mov eax, dword [esi]
add esp, 0xc
mov edi, dword [eax]
mov ecx, edi
call dword [0x70d440]
mov ecx, esi
call edi
push 0x7bae10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
call fcn.006d4ced
int3
Function at 0x47f8d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x707060
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x7c0ab4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x47f910
test eax, eax
jne 0x47fa73
cmp eax, 0xffffffff
jae 0x47fa93
test eax, eax
jne 0x47f931
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
push 0
lea esi, [ebp - 0x18]
mov dword [ebp - 4], 0
push esi
push eax
mov byte [ebp - 4], 1
push edx
push dword [ecx + 8]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47f983
push 1
push 0x3cf
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.00465440
add esp, 0x10
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00448f20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.pBuffer
push 0
push 0x3bf
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push 0x4a3
push 0x782c5c
call fcn.00477ab0
push str.dwBuffer___UINT_MAX
push 0
push 0x3c4
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push 0x4ae
push str.KLSTD
call fcn.00477ab0
push str.KLSTD::FileImpl::Write
push 0x3d7
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push 0x780fa8
mov edx, esi
mov ecx, 5
call fcn.00477010
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x47fae4
mov eax, dword [eax]
push ecx
push 0
push eax
mov edx, 2
mov ecx, esi
call fcn.0047ea50
mov eax, dword [esi]
add esp, 0xc
mov edi, dword [eax]
mov ecx, edi
call dword [0x70d440]
mov ecx, esi
call edi
push 0x7bae10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
call fcn.006d4ced
int3
Function at 0x47ff00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x707120
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x7c0ab4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 4], 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
jne 0x48005b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48005b
push 1
push 0x446
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push ecx
mov edx, eax
call fcn.00465440
add esp, 0x10
jmp 0x48005b
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00448f20
mov ecx, dword [ebp - 0x1c]
xor eax, eax
add esi, 0xc
mov dword [ebp - 0x14], ecx
or eax, edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
jb 0x480096
mov esi, dword [esi]
cmp eax, 8
jae 0x4800b4
movups xmm0, xmmword [esi]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
jmp 0x480145
mov edi, eax
mov eax, bind
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4800d5
or ecx, 0xffffffff
jmp 0x4800dd
cmp ecx, 0x1000
jb 0x480104
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.006d0b01
add esp, 4
test eax, eax
je 0x480211
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x480117
test ecx, ecx
je 0x480115
push ecx
call fcn.006d0b01
add esp, 4
mov ecx, eax
jmp 0x480117
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
lea eax, [eax*2 + 2]
push eax
push esi
push ecx
call fcn.006d2cf0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
cmp edi, 8
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov esi, dword [ebp - 0x28]
mov edx, str.KLSTD
push ecx
push esi
push eax
push str.KLSTD::FileImpl::GetSize
push ecx
call fcn.00483900
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x480195
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48018b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480211
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.006d79b8
int3
Function at 0x480f90
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x481036
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov ebx, eax
mov edx, str.KLSTD
push ebx
push str._anonymous_namespace::CRenameFileOrDirBase::Do
push ecx
call fcn.004839b0
mov al, byte [edi + 0xa]
test al, al
je 0x48102c
movzx eax, al
mov edx, str.KLSTD
push eax
push dword [edi]
push ebx
push str._anonymous_namespace::CRenameFileOrDirBase::Do
push ecx
call fcn.00483a40
call fcn.0044aa50
test al, al
je 0x48102c
push str.KLCS_CI_UNIT_TEST
call fcn.006e441a
add esp, 4
mov ecx, 0x78c138
test eax, eax
cmovne ecx, eax
push ecx
push 0x78c1fc
call fcn.006e5280
add esp, 8
test eax, eax
je 0x48102c
push 1
push 0x685
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stdioklio.cpp
push ecx
mov edx, ebx
call fcn.00465440
add esp, 0x10
test ebx, ebx
je 0x48103a
mov eax, ebx
pop edi
pop esi
pop ebx
ret
mov byte [edi + 0xa], 1
cmp byte [edi + 9], 0
je 0x481044
xor ecx, ecx
jmp 0x481055
mov al, byte [0x7ccb84]
xor edx, edx
test al, al
mov ecx, 8
cmovne ecx, edx
cmp byte [edi + 8], 0
je 0x48106a
shr esi, 4
not esi
and esi, 1
or esi, ecx
or esi, 2
jmp 0x48106f
mov esi, ecx
or esi, 3
push esi
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x481030
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, str.KLSTD
push esi
push dword [edi + 4]
push dword [edi]
push str._anonymous_namespace::CRenameFileOrDirBase::Do
push ecx
call fcn.00483ad0
pop edi
mov eax, esi
pop esi
pop ebx
ret