joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b18b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101b900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov esi, dword [ebp + 8]
lea eax, [edi + 4]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [edi], vtable.RC::RCNamePipeClient.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 7
mov word [edi + 0x10], cx
mov byte [ebp - 4], 2
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov byte [ebp - 4], 3
mov byte [edi + 0x34], cl
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x64], ecx
mov byte [edi + 0x80], cl
mov dword [edi + 0x84], ecx
mov dword [edi + 0x88], ecx
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], ecx
mov dword [edi + 0x94], ecx
mov byte [ebp - 4], 4
xor edx, edx
mov dword [edi + 0x98], ecx
mov dword [edi + 0xac], ecx
mov dword [edi + 0xb0], 7
mov word [edi + 0x9c], dx
mov byte [ebp - 4], 5
mov dword [edi + 0xc4], edx
mov dword [edi + 0xc8], 7
mov word [edi + 0xb4], cx
mov byte [ebp - 4], 6
lea ecx, [edi + 0x10]
push 9
push str..pipe_
call fcn.10003610
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10053f49
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [edi + 0x10]
push eax
call fcn.1002c0c0
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [edi + 0x28], eax
lea eax, [edi + 0x68]
movups xmmword [edi + 0x38], xmm0
mov dword [edi + 0x48], 0
movups xmmword [edi + 0x50], xmm0
push eax
mov dword [edi + 0x60], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [ebp - 0x28]
mov dword [edi + 0x98], eax
call fcn.10079640
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.10076970
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 8
mov esi, eax
call fcn.10053e20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edx
cmovae ecx, dword [ebp - 0x28]
push eax
push esi
push ecx
lea eax, [edi + 0x9c]
push str._s__d__d
push eax
call fcn.10076cf0
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10054013
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10054009
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005404d
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10109e31
mov esp, ebp
pop ebp
ret 8
call fcn.10129d79
int3
Function at 0x100546f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101b900c]
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 ebx, ecx
cmp dword [ebx + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
je 0x100548a3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100548a3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100548a3
lea eax, [ebx + 0x68]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x50]
push eax
push 0
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x10054780
cmp edi, 0x3e5
jne 0x100547b3
lea eax, [ebx + 0x50]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x10054894
cmp edi, 0x3e5
je 0x10054894
push 2
mov ecx, 0x101be120
call fcn.100abd60
mov esi, eax
xor bl, bl
test esi, esi
je 0x10054896
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 eax, [ebp - 0x28]
push edi
push str.send_data_failed__err:__d
push eax
call fcn.100ac240
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push 0x96
push str.RC::RCNamePipeClient::SendData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100abda0
cmp esi, 1
jbe 0x10054834
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10054871
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10054867
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100548c3
push edx
push ecx
call fcn.1010a1d5
add esp, 8
push dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
xor bl, bl
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x100548a5
mov bl, 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x100548a5
xor al, al
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.10109e31
mov esp, ebp
pop ebp
ret 8
call fcn.10129d79
int3
Function at 0x100550b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101541b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101b900c]
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 edx, dword [ecx + 0xc]
test edx, edx
jne 0x100550e9
xor al, al
jmp 0x1005521b
lea eax, [ecx + 0x38]
mov dword [ecx + 0x84], 0
push eax
push 0
push 4
lea eax, [ecx + 0x88]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
setne bh
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x10055125
cmp edi, 0x3e5
sete bh
test bh, bh
jne 0x10055219
cmp dword [0x101be120], 0
je 0x10055219
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], bh
je 0x10055219
cmp dword [eax + 0x58], 2
jb 0x10055219
mov bl, byte [eax + 0x5c]
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 eax, [ebp - 0x28]
push edi
push str.request_read_size_failed___d
push eax
call fcn.100ac240
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push 0x149
push str.RC::RCNamePipeClient::RequestReadSize
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100abda0
test bl, bl
je 0x100551c8
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10055205
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100551fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055237
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, bh
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.10109e31
mov esp, ebp
pop ebp
ret
call fcn.10129d79
int3
Function at 0x10055240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101541b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101b900c]
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 ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1005527b
xor al, al
jmp 0x100553d5
mov edi, dword [esi + 0x88]
lea edx, [esi + 0x8c]
mov dword [esi + 0x84], 1
mov eax, dword [edx + 4]
mov ebx, dword [edx]
sub eax, ebx
cmp eax, edi
jae 0x100552b4
push edx
push edi
mov ecx, edx
call fcn.10055ba0
mov ebx, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x38]
push eax
push 0
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
setne bh
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x100552df
cmp edi, 0x3e5
sete bh
test bh, bh
jne 0x100553d3
cmp dword [0x101be120], 0
je 0x100553d3
push ecx
mov ecx, 0x101be120
call fcn.100ab390
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], bh
je 0x100553d3
cmp dword [eax + 0x58], 2
jb 0x100553d3
mov bl, byte [eax + 0x5c]
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 eax, [ebp - 0x28]
push edi
push str.request_data_failed___d
push eax
call fcn.100ac240
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push 0x161
push str.RC::RCNamePipeClient::RequestData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100abda0
test bl, bl
je 0x10055382
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push eax
call fcn.100ac0c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100553bf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100553b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100553f1
push edx
push ecx
call fcn.1010a1d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, bh
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.10109e31
mov esp, ebp
pop ebp
ret
call fcn.10129d79
int3
Function at 0x100586e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015bbe4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101b900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 7
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
add ecx, 4
call fcn.10061ee0
mov byte [ebp - 4], 6
lea esi, [edi + 0x60]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x10]
call fcn.10061ee0
mov byte [ebp - 4], 6
lea ecx, [esi + 4]
call fcn.10061e40
mov byte [ebp - 4], 5
lea ecx, [edi + 0x54]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.10061e40
mov byte [ebp - 4], 4
lea ecx, [edi + 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.10061c60
mov byte [ebp - 4], 3
lea ecx, [edi + 0x3c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.10061d00
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.10033d40
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.10061e40
mov byte [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0xc]
call fcn.10033d40
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10033d40
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10061f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100775a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x101b900c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x100775c8
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.10121f10
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1007760c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.10109e31
add esp, 0x418
ret
cmp eax, 0x208
jae 0x100775f4
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10077624
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.10003610
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.10109e31
add esp, 0x418
ret
Function at 0x1007ac70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x101b900c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.10109e42
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10121f10
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1007accc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.10109e31
add esp, 0x120
ret
Function at 0x1007e0e0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x101b900c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10121f10
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1007e222
cmp dword [esi + 4], 6
push edi
ja 0x1007e136
jne 0x1007e1be
cmp dword [esi + 8], 2
jb 0x1007e1be
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1007e1be
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1007e1be
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1007e1be
movups xmm0, xmmword [0x10190540]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10190550]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1007e1be
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1007e1be
cmp word [edi + 2], ax
jbe 0x1007e1be
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1007e209
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10121f10
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1007e209
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.10109e31
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.10109e31
add esp, 0x140
ret
Function at 0x100850a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101606e6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x101b900c]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x10085180
lea edx, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edx
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x1008519e
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010a25b
add esp, 4
mov edi, eax
mov esi, edi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1008516c
cmp eax, ebx
ja 0x1008516c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x818], ebx
mov dword [edx + eax*2], ecx
jmp 0x100851cc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10085180
push edi
call fcn.1010a256
add esp, 4
xor al, al
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.10109e31
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x100852af
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x100852af
mov word [ebp + eax - 0x810], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x10085294
mov ecx, dword [ebp - 0x818]
mov ebx, 2
cmp word [edx + ebx - 2], 0
jne 0x10085288
cmp eax, edi
je 0x10085288
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10003530
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.10033c60
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x824]
cmp edx, 8
jb 0x1008525c
mov ecx, dword [ebp - 0x838]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10085252
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100852b4
push edx
push ecx
call fcn.1010a1d5
add esp, 8
mov ecx, dword [ebp - 0x818]
xor eax, eax
mov edx, dword [ebp - 0x81c]
mov word [ebp - 0x838], ax
lea eax, [edi + 1]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 7
inc edi
add ebx, 2
cmp edi, ecx
jb 0x100851e3
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100852a8
push esi
call fcn.1010a256
add esp, 4
mov al, 1
jmp 0x10085182
call fcn.1010a6c8
call fcn.10129d79
int3
Function at 0x10085dc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101a8130
push 0x101223f0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x101b900c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10085e21
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.10085f10
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10085e64
test bl, bl
jne 0x10085eed
cmp edi, 0x1a
jne 0x10085eed
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10085e86
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call fcn.10121f10
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10085ec0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10003610
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10109e31
mov esp, ebp
pop ebp
ret

Function at 0x100886a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x100886d8
mov edx, dword [esp + 4]
test edx, edx
je 0x100886d8
cmp dword [eax], 0xffffffff
je 0x100886d8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100886d8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x100886e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1008871a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1008871a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1008871a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1008871a
cmp edi, dword [esi]
jne 0x1008871a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x10088760
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x101b900c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x100887c3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100887c3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1008879e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100887c3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10109e31
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10109e31
add esp, 8
ret 4

Function at 0x100888a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1008894e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100887e0
test al, al
je 0x1008894e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.100887e0
test al, al
je 0x1008894e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10088924
cmp dword [esp + 0x14], edi
jne 0x10088924
mov eax, dword [esi]
test eax, eax
jne 0x10088911
xor bl, bl
jmp 0x10088924
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1008890d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.100887e0
mov al, bl
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