joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x18], edi
call fcn.1000d9b0
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.1000f890
add esp, 4
test al, al
je 0x1000f526
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jb 0x1000f518
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.1000f910
add esp, 4
test al, al
je 0x1000f526
mov eax, dword [esp + 0x14]
cmp eax, 0x24687531
je 0x1000f53c
mov ecx, ebx
call fcn.1000d9b0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 8
lea edx, [ebx + 0xc]
mov ecx, edi
call fcn.1000f7e0
test al, al
je 0x1000f526
lea edx, [ebx + 0x10]
mov ecx, edi
call fcn.1000f7e0
test al, al
je 0x1000f526
push dword [ebx + 0xc]
mov ecx, ebx
call fcn.1000e820
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x1000f5ca
nop dword [eax + eax]
mov ecx, esi
call fcn.1000e2e0
xor ecx, ecx
lea eax, [esi + 4]
mov dword [esi + 6], ecx
mov edx, eax
mov word [esi + 0xa], cx
mov word [eax], cx
push ecx
mov ecx, edi
call fcn.1000f990
add esp, 4
test al, al
je 0x1000f526
push edi
push 1
lea eax, [esi + 6]
push 6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x1000f526
movzx eax, word [esi + 4]
push eax
call fcn.1000eb50
mov dword [esi], eax
add esi, 0xc
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x1000f570
mov esi, dword [ebx]
xor edi, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
cmp esi, eax
je 0x1000f600
mov eax, dword [esi]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x1c]
call fcn.1000de40
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
cmp ecx, dword [ebx]
jne 0x1000f61b
cmp eax, edx
jne 0x1000f61b
cmp esi, edx
jne 0x1000f61b
cmp esi, eax
je 0x1000f636
test edi, edi
je 0x1000f636
push edi
push dword [esp + 0x1c]
call fcn.1000bc60
test al, al
je 0x1000f526
add edi, 0x1c
mov dword [esp + 0x28], edi
jmp 0x1000f5ea
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, 0x24687531
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], ebx
push 4
mov ecx, ebx
mov dword [esp + 0x14], edi
call fcn.1000fa10
add esp, 4
test al, al
je 0x1000f7d2
mov esi, dword [edi + 0xc]
mov ecx, ebx
push 4
cmp esi, 0xffffffff
jb 0x1000f6a5
or edx, 0xffffffff
call fcn.1000fa10
add esp, 4
test al, al
je 0x1000f7d2
push 8
mov ecx, ebx
mov edx, esi
call fcn.1000fa10
add esp, 4
test al, al
je 0x1000f7d2
mov edx, dword [edi + 0x10]
mov ecx, ebx
call fcn.1000f840
test al, al
je 0x1000f7d2
mov esi, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0xc], esi
cmp esi, edi
je 0x1000f71c
mov dx, word [esi + 4]
push ecx
mov ecx, ebx
call fcn.1000faa0
add esp, 4
test al, al
je 0x1000f7d2
push ebx
push 1
lea eax, [esi + 6]
push 6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x1000f7d2
mov eax, dword [esp + 0x10]
add esi, 0xc
mov edi, dword [eax + 4]
cmp esi, edi
jne 0x1000f6d6
mov esi, dword [eax]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
cmp eax, edi
je 0x1000f755
mov eax, dword [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.1000de40
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
cmp eax, dword [edx]
jne 0x1000f770
cmp edi, ecx
jne 0x1000f770
cmp esi, ecx
jne 0x1000f770
cmp esi, edi
je 0x1000f7c7
test ebx, ebx
je 0x1000f7c7
push ebx
push dword [esp + 0x28]
call fcn.1000bac0
test al, al
je 0x1000f7d2
movzx eax, word [esi + 4]
add ebx, 0x1c
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi]
lea eax, [eax + ecx*4]
cmp ebx, eax
mov eax, dword [esp + 0xc]
jne 0x1000f755
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
add esi, 0xc
cmp esi, edi
je 0x1000f755
movzx eax, word [esi + 4]
mov ebx, dword [esi]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ebx + ecx*4]
cmp ebx, eax
je 0x1000f7a0
mov eax, dword [esp + 0xc]
jmp 0x1000f755
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000f890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [edi], 0
nop
push ebx
push 1
lea eax, [ebp - 5]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x1000f8f2
movzx eax, byte [ebp - 5]
mov ecx, 3
sub ecx, esi
inc esi
shl ecx, 3
shl eax, cl
or dword [edi], eax
cmp esi, 4
jb 0x1000f8b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x1000f910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [edi], 0
nop
push ebx
push 1
lea eax, [ebp - 5]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x1000f972
movzx eax, byte [ebp - 5]
mov ecx, 7
sub ecx, esi
inc esi
shl ecx, 3
shl eax, cl
or dword [edi], eax
cmp esi, 8
jb 0x1000f930
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dcb60
mov esp, ebp
pop ebp
ret

Function at 0x1000f990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov ebx, edx
xor ecx, ecx
mov dword [ebp - 0xc], eax
push esi
push edi
mov word [ebx], cx
xor edi, edi
lea esi, [ecx + 8]
push eax
push 1
lea eax, [ebp - 5]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x1000f9f8
movzx eax, byte [ebp - 5]
mov ecx, esi
shl ax, cl
add edi, 8
or word [ebx], ax
sub esi, 8
mov eax, dword [ebp - 0xc]
cmp edi, 0x10
jb 0x1000f9b4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dcb60
mov esp, ebp
pop ebp
ret

Function at 0x1000fa10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], edx
mov edx, ecx
mov dword [ebp - 0x10], edx
test edi, edi
je 0x1000fa76
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop word [eax + eax]
mov eax, edi
sub eax, esi
lea ecx, [eax - 1]
cmp ecx, 4
jb 0x1000fa50
xor al, al
jmp 0x1000fa58
mov eax, dword [ebp - 0xc]
shl ecx, 3
shr eax, cl
push edx
push 1
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000fa89
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, edi
jb 0x1000fa40
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x1000faa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
push edi
mov dword [ebp - 0xc], edx
mov edi, ecx
xor esi, esi
mov eax, 1
sub eax, esi
cmp eax, 2
jb 0x1000fad0
xor dl, dl
jmp 0x1000fae0
mov eax, 1
sub eax, esi
shl al, 3
mov cx, ax
shr dx, cl
push edi
push 1
lea eax, [ebp - 5]
mov byte [ebp - 5], dl
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000fb12
mov edx, dword [ebp - 0xc]
inc esi
cmp esi, 2
jb 0x1000fac0
pop edi
pop esi
mov al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x1000fcc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0978
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10104008]
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 esi, ecx
mov ebx, dword [ebp + 8]
mov ecx, 0x101080e9
mov edi, dword [ebp + 0xc]
call fcn.100de193
mov eax, dword [esi + 4]
test eax, eax
je 0x1000fe00
test ebx, ebx
jne 0x1000fe04
mov eax, dword [eax]
test eax, eax
je 0x1000fd24
push eax
call fcn.100dcb71
mov eax, dword [esi + 4]
add esp, 4
mov dword [eax], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [esi + 4]
mov dword [ebp - 0x30], eax
lea ecx, [edx + 4]
push ecx
push edx
lea ecx, [edx + 8]
call fcn.10008230
mov cl, al
mov byte [ebp - 0x29], cl
test cl, cl
je 0x1000fd55
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
jne 0x1000fdf4
call ebx
sub eax, dword [ebp - 0x30]
cmp eax, 0x1388
jbe 0x1000fdf4
push 3
mov ecx, 0x101063a0
call fcn.10035760
mov ebx, eax
test ebx, ebx
je 0x1000fde9
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x1b
push str.rebuild_quarantine_database
call fcn.10004bc0
push 0x71
push str.RC::RCQuarantineList::GetAllItems
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_virusscan_srcgdoperate_rcquarantinelist.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
push 3
call fcn.100357b0
cmp ebx, 1
jbe 0x1000fdda
lea eax, [ebp - 0x28]
mov ecx, 0x101063a0
push eax
call fcn.10035ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
mov ecx, dword [esi + 4]
add ecx, 8
call fcn.10006fa0
cmp byte [ebp - 0x29], 0
jne 0x1000fe2d
mov dword [edi], 0
xor eax, eax
jmp 0x1000fe33
mov ecx, dword [eax]
test ecx, ecx
je 0x1000fdfa
mov edx, dword [edi]
mov eax, dword [eax + 4]
cmp edx, eax
jbe 0x1000fe1c
mov dword [edi], eax
mov edx, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
imul eax, edx, 0x648
push eax
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
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.100dcb60
mov esp, ebp
pop ebp
ret 8
Function at 0x10012f10
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0f90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10104008]
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 ecx, 0x101080e9
call fcn.100de193
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
call fcn.1002ade0
mov dword [ebp - 4], 0
xor eax, eax
push 0x37
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
push str.SYSTEMCurrentControlSet_services2345DumpBlockSection
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.10004bc0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.1002af70
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10004b60
mov esi, dword [ebp - 0x14]
test bl, bl
jne 0x10012fc1
xor bl, bl
jmp 0x1001300e
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 4
push eax
push 3
push 0
push str.DFlag
push edi
mov dword [ebp - 0x18], 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
test edi, edi
je 0x1001300e
mov eax, dword [esi + 4]
test eax, eax
je 0x1001300e
push 0x100f0850
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001300e
push edi
call eax
mov dword [ebp - 4], 0xffffffff
push 8
push esi
call fcn.100dcba6
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x100132c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1031
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, 0x101080e9
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0
call fcn.100de193
lea ecx, [ebp - 0x18]
mov dword [ebx], 0
mov dword [ebp - 0x18], 0
call fcn.1002ade0
mov dword [ebp - 4], 0
xor eax, eax
push 0x37
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
push str.SYSTEMCurrentControlSet_services2345DumpBlockSection
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.10004bc0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 1
mov eax, dword [esi + 4]
test eax, eax
je 0x100133b0
push 0x100f082c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100133b0
mov edx, dword [esi]
lea ebx, [ebp - 0x28]
push ebx
or edx, 0x20019
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push edx
cmovae ecx, dword [ebp - 0x48]
push 0
push ecx
push 0x80000002
call eax
test eax, eax
jne 0x100133b0
cmp dword [ebp - 0x28], eax
je 0x100133b0
xor bl, bl
jmp 0x100133b2
mov bl, 1
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x48]
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
call fcn.10004b60
test bl, bl
je 0x100133d7
xor bl, bl
jmp 0x10013446
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 3
push eax
push 0
push str.DFlag
push dword [ebp - 0x28]
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10013418
mov ecx, dword [ebp - 0x30]
mov bl, 1
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
cmp dword [ebp - 0x28], 0
je 0x10013446
mov eax, dword [esi + 4]
test eax, eax
je 0x10013446
push 0x100f0850
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10013446
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10013446
push ecx
call eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
push 8
push esi
call fcn.100dcba6
add esp, 8
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 4
Function at 0x10016270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1502
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10104008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x101080e9
call fcn.100de193
push 0x10105ef0
push 0x40
call fcn.100dcf2b
mov edi, eax
add esp, 8
test edi, edi
jne 0x100162d7
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 0x20
push 0x100e6b24
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.10004bc0
jmp 0x10016456
push 0x40
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 8]
push ebx
push 1
push 0x40
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov esi, dword [ebp + 0xc]
add esp, 0x1c
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x20
cmp eax, 1
je 0x10016318
mov byte [ebp + 0xb], 0
push 0x100e6b24
jmp 0x1001631d
mov byte [ebp + 0xb], 1
push edi
xor eax, eax
mov word [esi], ax
call fcn.10004bc0
push edi
call fcn.100dcb71
add esp, 4
cmp byte [ebp + 0xb], 0
je 0x10016456
push 0x430
call fcn.100dcb76
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.100161f0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10016456
push ebx
push 1
push 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016448
cmp dword [edi], 0x62647635
jne 0x10016448
push ebx
push 1
lea eax, [edi + 4]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016448
push ebx
push eax
lea eax, [edi + 8]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016448
push ebx
push eax
lea eax, [edi + 0x210]
push 0x10
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016448
push ebx
push eax
lea eax, [edi + 0x220]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016448
push ebx
push eax
lea eax, [edi + 0x428]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016448
mov eax, dword [edi + 4]
cmp eax, 0x430
jbe 0x1001642f
push 1
add eax, 0xfffffbd0
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov dword [esi + 0x18], edi
mov al, 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 8
push 0x430
push edi
call fcn.100dcba6
add esp, 8
xor al, al
mov dword [esi + 0x18], 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 8
Function at 0x10016a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100fea90
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10104008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, 0x101080e9
call fcn.100de193
xor bl, bl
mov ecx, esi
call fcn.10016820
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10016b29
push 0x100ed6ec
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10016b1c
mov dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.10016620
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10016b12
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
je 0x10016b3d
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x10016b4d
push eax
lea ecx, [esi + 8]
call fcn.1000d580
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017060
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100fead8
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10104008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov ecx, 0x101080e9
call fcn.100de193
mov ecx, ebx
call fcn.10016820
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x100ed71c
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10017124
mov dword [ebp - 4], 0
push esi
mov ecx, ebx
call fcn.10016b70
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100170fb
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
je 0x10017110
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x18], edi
call fcn.1000d9b0
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.1000f890
add esp, 4
test al, al
je 0x100177c6
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jb 0x100177b8
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.1000f910
add esp, 4
test al, al
je 0x100177c6
mov eax, dword [esp + 0x14]
cmp eax, 0x24687531
je 0x100177dc
mov ecx, ebx
call fcn.1000d9b0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 8
lea edx, [ebx + 0xc]
mov ecx, edi
call fcn.1000f7e0
test al, al
je 0x100177c6
lea edx, [ebx + 0x10]
mov ecx, edi
call fcn.1000f7e0
test al, al
je 0x100177c6
push dword [ebx + 0xc]
mov ecx, ebx
call fcn.1000e820
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x1001786a
nop dword [eax + eax]
mov ecx, esi
call fcn.1000e2e0
xor ecx, ecx
lea eax, [esi + 4]
mov dword [esi + 6], ecx
mov edx, eax
mov word [esi + 0xa], cx
mov word [eax], cx
push ecx
mov ecx, edi
call fcn.1000f990
add esp, 4
test al, al
je 0x100177c6
push edi
push 1
lea eax, [esi + 6]
push 6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x100177c6
movzx eax, word [esi + 4]
push eax
call fcn.1000eb50
mov dword [esi], eax
add esi, 0xc
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x10017810
mov esi, dword [ebx]
xor edi, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
cmp esi, eax
je 0x100178a0
mov eax, dword [esi]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x1c]
call fcn.1000de40
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
cmp ecx, dword [ebx]
jne 0x100178bb
cmp eax, edx
jne 0x100178bb
cmp esi, edx
jne 0x100178bb
cmp esi, eax
je 0x100178d6
test edi, edi
je 0x100178d6
push edi
push dword [esp + 0x1c]
call fcn.10016270
test al, al
je 0x100177c6
add edi, 0x1c
mov dword [esp + 0x28], edi
jmp 0x1001788a
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret 8