joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa7e000
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 0xa7e131
push esi
call fcn.00a81145
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.00a70080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa7e131
push 0
push ebp
call fcn.00a703a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a70260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa7e08b
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.00a702f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa7e121
push 0xa96918
push edi
call fcn.00a7f3f0
push eax
push ebx
push esi
call fcn.00a7df60
push 0xa968f8
push edi
call fcn.00a7f3f0
push eax
push ebx
push esi
call fcn.00a7df60
push 0xa968d8
push edi
call fcn.00a7f3f0
push eax
push ebx
push esi
call fcn.00a7df60
push 0xa968c0
push edi
call fcn.00a7f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a7df60
push 0xa968a0
push edi
call fcn.00a7f3f0
push eax
push ebx
push esi
call fcn.00a7df60
push 0xa96888
push edi
call fcn.00a7f3f0
push eax
push ebx
push esi
call fcn.00a7df60
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 0xa7f1b0
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.00a7f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a7f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a7f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a7f140
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 0xa7fbfa
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 0xa7fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa9187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa7fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa7fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10004af4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10004b1e
mov eax, dword [ebp + 8]
push eax
mov dword [0x1029a7f8], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10005428
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x1000e400
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [esp + 0xc]
imul ebx, ecx, 0x1000193
mov ecx, edi
push ebx
push esi
push eax
call fcn.1000d8a0
mov esi, dword [eax + 4]
test esi, esi
je 0x1000e4c5
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x1000e47b
cmp eax, esi
jne 0x1000e473
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1000e483
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1000e483
cmp eax, esi
jne 0x1000e483
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [edi + 8]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov edi, dword [esi + 0xc]
test edi, edi
je 0x1000e4ac
mov ecx, edi
call fcn.1000dd10
push 0x24
push edi
call fcn.1021ebee
add esp, 8
push 0x10
push esi
call fcn.1021ebee
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x1000ecb0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.1000ef20
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 4], 1
nop dword [eax + eax]
movsd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 1
call fcn.1022ffc7
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
nop dword [eax + eax]
rdtsc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
test eax, eax
jle 0x1000ed27
mov edi, dword [ebp + 0x10]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push edi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
add esp, 8
sub esi, 1
jne 0x1000ed14
rdtsc
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.1021f0a0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
movsd qword [ebp - 0xc], xmm0
call fcn.1021f0a0
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
subsd xmm1, xmm0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000ed7c
push 1
sub esp, 8
movsd qword [esp], xmm1
push ebx
call dword [ebp - 8]
fstp qword [ebp - 0xc]
movsd xmm1, qword [ebp - 0xc]
add esp, 0x10
xorps xmm0, xmm0
comisd xmm0, xmm1
ja 0x1000ecd4
cmp dword [ebp - 0x10], 0
jne 0x1000ed9a
movsd xmm0, qword [ebp - 0x20]
comisd xmm0, xmm1
jbe 0x1000ed9f
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x10], 0
call fcn.1022ffc7
sub eax, dword [ebp - 0x18]
movd xmm0, eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x102585c0]
test eax, eax
je 0x1000ede1
push 1
sub esp, 8
movsd qword [esp], xmm0
push ebx
call dword [ebp - 8]
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 0x10
comisd xmm0, xmmword [0x102832d8]
ja 0x1000edfb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 8
jl 0x1000ed00
movsd xmm0, qword [ebp - 0x20]
comisd xmm0, xmmword [0x102585c8]
jae 0x1000ee20
mov eax, dword [ebp - 4]
xorps xmm0, xmm0
add eax, eax
mov dword [ebp - 4], eax
jne 0x1000ece0
jmp 0x1000ecd4
push 0
push dword [ebp + 0xc]
call fcn.1000ef20
movd xmm0, dword [ebp - 4]
add esp, 8
movsd xmm1, qword [ebp - 0x20]
cvtdq2pd xmm0, xmm0
pop edi
pop esi
pop ebx
divsd xmm1, xmm0
movsd qword [ebp - 0x30], xmm1
fld qword [ebp - 0x30]
mov esp, ebp
pop ebp
ret
Function at 0x100111c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
ret

Function at 0x100cc8b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10251b53
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10291440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], vtable.Db.0
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
test ecx, ecx
jne 0x100cc967
mov dword [esi + 0x14], 1
xor eax, eax
jmp 0x100cc96f
mov eax, dword [ecx]
call dword [eax + 0x2d8]
mov edi, dword [esi + 0x18]
and edi, 2
mov ecx, edi
not ecx
and ecx, dword [esi + 0x18]
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.100d0340
add esp, 0xc
test eax, eax
je 0x100cc9c5
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x100cc99f
call fcn.100d18e0
jmp 0x100cc9ac
mov al, byte [esi + 0x18]
not al
movzx eax, al
shr eax, 1
and eax, 1
push eax
push dword [esi + 0x10]
push str.Db::Db
push dword [esi + 8]
call fcn.100d3df0
add esp, 0x10
jmp 0x100cca4a
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [eax + 0x128], esi
test byte [esi + 0x14], 1
je 0x100cca0b
push 0x40
call fcn.1021ebbe
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100cc9ff
mov ecx, dword [ebp + 8]
push edi
push dword [ecx + 0x18]
mov ecx, eax
call fcn.100d1370
jmp 0x100cca01
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
push 8
call fcn.1021ebbe
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x100cca2e
mov ecx, eax
call fcn.100d58e0
mov ecx, eax
jmp 0x100cca30
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0x24]
mov dword [ecx + 4], eax
mov dword [esi + 0x10], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100d1370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10251bdd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x10291440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [ebp + 8]
shr eax, 1
not eax
mov dword [esi], vtable.DbEnv.0
and eax, 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp + 0xc], ecx
mov dword [0x10291074], eax
test ecx, ecx
jne 0x100d143a
and edx, 0xfffffffd
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.100da2e0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100d1437
test byte [esi + 0xc], 2
mov dword [esi + 8], ecx
jne 0x100d1447
lea eax, [ecx + 0x7912]
cmp eax, 0x14
ja case.0x100d1430.30992
movzx eax, byte [eax + 0x100d1584]
jmp dword [eax*4 + 0x100d1570]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [ecx + 0x78], esi
mov dword [esi + 8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push str.DbEnv::DbEnv
lea ecx, [ebp - 0x24]
call fcn.100f9480
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.100fa0d0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.100f9400
push 0x1028abe4
lea eax, [ebp - 0x50]
push eax
call fcn.10220776
push str.DbEnv::DbEnv
lea ecx, [ebp - 0x38]
call fcn.100f9780
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.100fa0d0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x7c]
call fcn.100f96b0
push 0x1028ac3c
lea eax, [ebp - 0x7c]
push eax
call fcn.10220776
push str.DbEnv::DbEnv
lea ecx, [ebp - 0x24]
call fcn.100f9b30
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.100fa0d0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.100f9ab0
push 0x1028ac78
lea eax, [ebp - 0x50]
push eax
call fcn.10220776
push str.DbEnv::DbEnv
lea ecx, [ebp - 0x24]
call fcn.100f9cf0
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call fcn.100fa0d0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.100f9c70
push 0x1028acb4
lea eax, [ebp - 0x50]
push eax
call fcn.10220776
push ecx
push str.DbEnv::DbEnv
lea ecx, [ebp - 0x50]
call fcn.100f9640
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 4
call fcn.100fa0d0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.100f95c0
push 0x1028acf0
lea eax, [ebp - 0x68]
push eax
call fcn.10220776
nop
pop ebx
adc al, 13
adc byte [edx - 0x36eff2ec], dl
adc al, 0xd
adc byte [eax], al
adc eax, 0x1537100d
or eax, 0x4010010
add al, 4
add al, 4
add al, 4
add al, 2
add al, 4
add al, 4
add al, 4
add al, 4
add al, 3
int3
Function at 0x100fb600
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
test ebx, ebx
jne 0x100fb6d8
inc dword [ecx + 0x34]
xor edi, edi
mov ebp, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x100fb724
nop
test ebx, ebx
je 0x100fb659
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x100fb659
mov eax, dword [eax + 0x18]
cmp dword [eax + 4], 0
je 0x100fb659
mov eax, dword [ebx]
test dword [eax + 0x114], 0x100
je 0x100fb713
mov ebx, dword [esp + 0x24]
xor edi, edi
sub ebp, edx
lea esi, [edi + 0x64]
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100fb6a7
call fcn.100f3810
mov edi, eax
push edi
call fcn.100f3830
add esp, 4
cmp eax, 0xb
je 0x100fb69e
cmp eax, 0x10
je 0x100fb69e
cmp eax, 4
je 0x100fb69e
cmp eax, 5
jne 0x100fb6a7
mov ecx, dword [esp + 0x20]
dec esi
test esi, esi
jg 0x100fb664
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
test edi, edi
jne 0x100fb728
add edx, dword [esp + 0x14]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
cmp edx, ebp
jae 0x100fb728
mov ecx, dword [esp + 0x20]
jmp 0x100fb630
mov eax, dword [ebx]
xor edi, edi
inc dword [ecx + 0x34]
test eax, eax
je 0x100fb61c
test byte [eax + 0x80], 4
mov ebp, dword [esp + 0x28]
je 0x100fb620
push ebp
push dword [ecx + 0x1c]
push str.fileops:_write__s:__lu_bytes
push ebx
call fcn.100d0b10
mov ecx, dword [esp + 0x30]
add esp, 0x10
jmp 0x100fb620
push ebx
call fcn.100d1120
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [eax], ebp
test edi, edi
je 0x100fb760
sub ebp, edx
push ebp
push ecx
push str.write:__lx___lu
push edi
push ebx
call fcn.100d0ec0
push edi
call fcn.100f3830
mov edi, eax
add esp, 0x18
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x100fb760
push 0
push 0xa
push eax
call ecx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100fb770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebp, ebp
jne 0x100fb78a
inc dword [ebx + 0x30]
xor edi, edi
jmp 0x100fb7b4
mov eax, dword [ebp]
xor edi, edi
inc dword [ebx + 0x30]
test eax, eax
je 0x100fb7b4
test byte [eax + 0x80], 4
je 0x100fb7b4
push dword [esp + 0x2c]
push dword [ebx + 0x1c]
push str.fileops:_read__s:__lu_bytes
push ebp
call fcn.100d0b10
add esp, 0x10
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x100fb878
nop
test ebp, ebp
je 0x100fb7fa
mov eax, dword [ebp + 0x8c]
test eax, eax
je 0x100fb7fa
mov eax, dword [eax + 0x18]
cmp dword [eax + 4], 0
je 0x100fb7fa
mov eax, dword [ebp]
test dword [eax + 0x114], 0x100
je 0x100fb8af
mov ebp, dword [esp + 0x10]
xor edi, edi
sub ebx, ecx
lea esi, [edi + 0x64]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100fb848
call fcn.100f3810
mov edi, eax
push edi
call fcn.100f3830
add esp, 4
cmp eax, 0xb
je 0x100fb843
cmp eax, 0x10
je 0x100fb843
cmp eax, 4
je 0x100fb843
cmp eax, 5
jne 0x100fb848
dec esi
test esi, esi
jg 0x100fb805
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x100fb878
test edi, edi
jne 0x100fb878
mov ecx, dword [esp + 0x14]
add edx, eax
add ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jb 0x100fb7d0
mov eax, dword [esp + 0x30]
mov ecx, edx
sub ecx, dword [esp + 0x28]
mov dword [eax], ecx
test edi, edi
je 0x100fb8a5
sub ebx, dword [esp + 0x14]
push ebx
push edx
push str.read:_0x_lx___lu
push edi
push ebp
call fcn.100d0ec0
push edi
call fcn.100f3830
add esp, 0x18
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call fcn.100d1120
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x100fb8c0
Capabilities:
Write file on windows

Disassembly:
call fcn.1011b5d0
test eax, eax
je 0x100fb8dd
push dword [esp + 8]
push dword [esp + 8]
call fcn.10167a60
add esp, 8
test eax, eax
jne 0x100fb8e2
jmp fcn.100fb600
ret
Function at 0x101076e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
add esi, edx
cmp edx, esi
jae 0x10107701
movzx ecx, byte [edx]
inc edx
imul eax, eax, 0x1000193
xor eax, ecx
cmp edx, esi
jb 0x101076f1
pop esi
ret
Function at 0x1014d9f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xf4
mov eax, dword [0x10291440]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
mov esi, dword [esp + 0x100]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10c]
push 0x40
push 0
push eax
call fcn.10220d70
push 0x40
lea eax, [esp + 0x88]
push 0x36
push eax
call fcn.10220d70
push 0x40
lea eax, [esp + 0xd4]
push 0x5c
push eax
call fcn.10220d70
mov eax, dword [esp + 0x124]
add esp, 0x24
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
xor eax, eax
movups xmmword [esp + 8], xmm0
nop
movups xmm1, xmmword [esp + eax + 8]
movups xmm0, xmmword [esp + eax + 0x78]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0x78], xmm0
movups xmm0, xmmword [esp + eax + 0xb8]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0xb8], xmm0
add eax, 0x10
cmp eax, 0x40
jl 0x1014da60
lea eax, [esp + 8]
push eax
call fcn.101a9880
push 0x40
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.101aaf90
push dword [esp + 0x118]
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.101aaf90
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.101a9770
lea eax, [esp + 0x2c]
push eax
call fcn.101a9880
push 0x40
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.101aaf90
push 0x14
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.101aaf90
add esp, 0x40
lea eax, [esp + 8]
push eax
push edi
call fcn.101a9770
mov ecx, dword [esp + 0x100]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.1021eb98
add esp, 0xf4
ret
Function at 0x101586b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
test ebp, ebp
jne 0x101586c0
xor esi, esi
jmp 0x101586c3
mov esi, dword [ebp]
mov edi, dword [esp + 0x18]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101586d0
sub ecx, edx
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea ebx, [ecx + 1]
lea eax, [ebx + ebx]
push eax
push ebp
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x101587bc
push ebx
push dword [esp + 0x18]
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1015872c
call fcn.100f3810
push eax
call fcn.100f3830
add esp, 4
test eax, eax
jne 0x101587bc
test esi, esi
je 0x10158748
test byte [esi + 0x80], 6
je 0x10158748
push edi
push str.fileops:_stat__s
push ebp
call fcn.100d0b10
add esp, 0xc
xor edi, edi
lea esi, [edi + 0x64]
nop dword [eax]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1015878a
call fcn.100f3810
mov edi, eax
push edi
call fcn.100f3830
add esp, 4
cmp eax, 0xb
je 0x10158785
cmp eax, 0x10
je 0x10158785
cmp eax, 4
je 0x10158785
cmp eax, 5
jne 0x1015878a
dec esi
test esi, esi
jg 0x10158750
test edi, edi
jne 0x1015879d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x101587a8
and ebx, 0x10
mov dword [eax], ebx
jmp 0x101587a8
push edi
call fcn.100f3830
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x101587ba
push eax
push ebp
call fcn.100dc7e0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1015b920
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1015b956
mov eax, dword [edi]
test eax, eax
je 0x1015b956
test byte [eax + 0x80], 6
je 0x1015b956
push ebp
push ebx
push str.fileops:_rename__s_to__s
push edi
call fcn.100d0b10
add esp, 0x10
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015b960
sub ecx, edx
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
lea esi, [ecx + 1]
lea eax, [esi + esi]
push eax
push edi
call fcn.100dc800
add esp, 0xc
test eax, eax
jne 0x1015bb3b
push esi
push dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1015b9bc
call fcn.100f3810
push eax
call fcn.100f3830
add esp, 4
test eax, eax
jne 0x1015bb3b
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1015b9c1
sub ecx, edx
mov dword [esp + 0x1c], 0
lea eax, [ecx + 1]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push ecx
add eax, eax
push eax
push edi
call fcn.100dc800
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1015bb27
push dword [esp + 0x14]
push dword [esp + 0x20]
push 0xffffffffffffffff
push ebp
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1015ba27
call fcn.100f3810
push eax
call fcn.100f3830
mov esi, eax
add esp, 4
test esi, esi
jne 0x1015bb27
test edi, edi
je 0x1015ba5d
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x1015ba5d
mov eax, dword [eax + 0x18]
cmp dword [eax + 4], 0
je 0x1015ba5d
mov eax, dword [edi]
test dword [eax + 0x114], 0x100
jne 0x1015ba5d
push edi
call fcn.100d1120
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1015ba76
call fcn.100f3810
mov esi, eax
push esi
call fcn.100f3830
add esp, 4
cmp eax, 0x11
jne 0x1015bac4
xor esi, esi
call fcn.1011b6d0
test eax, eax
je 0x1015baa1
push 1
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1015bab9
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1015bac4
call fcn.100f3810
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1015bade
push eax
push edi
call fcn.100dc7e0
add esp, 8
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1015baf8
push eax
push edi
call fcn.100dc7e0
add esp, 8
mov dword [esp + 0x10], 0
test esi, esi
je 0x1015bb39
cmp dword [esp + 0x28], 0
jne 0x1015bb14
push ebp
push ebx
push str.MoveFileEx__s__s
push esi
push edi
call fcn.100d0ec0
add esp, 0x14
push esi
call fcn.100f3830
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1015bb39
push eax
push edi
call fcn.100dc7e0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret