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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b26b
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.10003600
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10054009
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [edi + 0x10]
push eax
call fcn.1002c070
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.100796f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.10076a20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 8
mov esi, eax
call fcn.10053ee0
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.10076da0
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100540d3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100540c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005410d
push edx
push ecx
call fcn.1010a295
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.10109ef1
mov esp, ebp
pop ebp
ret 8
call fcn.10129e39
int3
Function at 0x100547b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155ea8
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 0x10054963
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10054963
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10054963
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 0x10054840
cmp edi, 0x3e5
jne 0x10054873
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 0x10054954
cmp edi, 0x3e5
je 0x10054954
push 2
mov ecx, 0x101be120
call fcn.100abe20
mov esi, eax
xor bl, bl
test esi, esi
je 0x10054956
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.100ac300
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.100abe60
cmp esi, 1
jbe 0x100548f4
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push eax
call fcn.100ac180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10054931
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10054927
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10054983
push edx
push ecx
call fcn.1010a295
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 0x10054965
mov bl, 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x10054965
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.10109ef1
mov esp, ebp
pop ebp
ret 8
call fcn.10129e39
int3
Function at 0x10055160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154288
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 0x10055199
xor al, al
jmp 0x100552cb
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 0x100551d5
cmp edi, 0x3e5
sete bh
test bh, bh
jne 0x100552c9
cmp dword [0x101be120], 0
je 0x100552c9
push ecx
mov ecx, 0x101be120
call fcn.100ab450
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], bh
je 0x100552c9
cmp dword [eax + 0x58], 2
jb 0x100552c9
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.100ac300
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.100abe60
test bl, bl
je 0x10055278
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push eax
call fcn.100ac180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100552b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100552ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100552e7
push edx
push ecx
call fcn.1010a295
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.10109ef1
mov esp, ebp
pop ebp
ret
call fcn.10129e39
int3
Function at 0x100552f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154288
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 0x1005532b
xor al, al
jmp 0x10055485
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 0x10055364
push edx
push edi
mov ecx, edx
call fcn.10055c50
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 0x1005538f
cmp edi, 0x3e5
sete bh
test bh, bh
jne 0x10055483
cmp dword [0x101be120], 0
je 0x10055483
push ecx
mov ecx, 0x101be120
call fcn.100ab450
mov eax, dword [0x101be120]
cmp byte [eax + 0x54], bh
je 0x10055483
cmp dword [eax + 0x58], 2
jb 0x10055483
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.100ac300
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.100abe60
test bl, bl
je 0x10055432
lea eax, [ebp - 0x28]
mov ecx, 0x101be120
push eax
call fcn.100ac180
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1005546f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10055465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100554a1
push edx
push ecx
call fcn.1010a295
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.10109ef1
mov esp, ebp
pop ebp
ret
call fcn.10129e39
int3
Function at 0x10058790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015bcc4
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.10061f90
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.10061f90
mov byte [ebp - 4], 6
lea ecx, [esi + 4]
call fcn.10061ef0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x54]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.10061ef0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.10061d10
mov byte [ebp - 4], 3
lea ecx, [edi + 0x3c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.10061db0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.10033ce0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.10061ef0
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.10033ce0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10033ce0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10062030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10077650
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 0x10077678
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.10121fd0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100776bc
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.10109ef1
add esp, 0x418
ret
cmp eax, 0x208
jae 0x100776a4
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 0x100776d4
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.10003600
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.10109ef1
add esp, 0x418
ret
Function at 0x1007ad20
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.10109f02
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10121fd0
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 0x1007ad7c
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.10109ef1
add esp, 0x120
ret
Function at 0x1007e1b0
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.10121fd0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1007e2f2
cmp dword [esi + 4], 6
push edi
ja 0x1007e206
jne 0x1007e28e
cmp dword [esi + 8], 2
jb 0x1007e28e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1007e28e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1007e28e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1007e28e
movups xmm0, xmmword [0x10190558]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10190568]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1007e28e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1007e28e
cmp word [edi + 2], ax
jbe 0x1007e28e
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 0x1007e2d9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10121fd0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1007e2d9
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.10109ef1
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.10109ef1
add esp, 0x140
ret
Function at 0x10085170
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101607c6
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 0x10085250
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 0x1008526e
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010a31b
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 0x1008523c
cmp eax, ebx
ja 0x1008523c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x818], ebx
mov dword [edx + eax*2], ecx
jmp 0x1008529c
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10085250
push edi
call fcn.1010a316
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.10109ef1
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1008537f
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x1008537f
mov word [ebp + eax - 0x810], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x10085364
mov ecx, dword [ebp - 0x818]
mov ebx, 2
cmp word [edx + ebx - 2], 0
jne 0x10085358
cmp eax, edi
je 0x10085358
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10003520
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.10033c00
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x824]
cmp edx, 8
jb 0x1008532c
mov ecx, dword [ebp - 0x838]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10085322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10085384
push edx
push ecx
call fcn.1010a295
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 0x100852b3
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10085378
push esi
call fcn.1010a316
add esp, 4
mov al, 1
jmp 0x10085252
call fcn.1010a788
call fcn.10129e39
int3
Function at 0x10085e90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101a8150
push 0x101224b0
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 0x10085ef1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.10085fe0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10085f34
test bl, bl
jne 0x10085fbd
cmp edi, 0x1a
jne 0x10085fbd
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10085f56
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call fcn.10121fd0
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 0x10085f90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10003600
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.10109ef1
mov esp, ebp
pop ebp
ret

Function at 0x10088760
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10088798
mov edx, dword [esp + 4]
test edx, edx
je 0x10088798
cmp dword [eax], 0xffffffff
je 0x10088798
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 0x10088798
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x100887a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100887da
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100887da
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100887da
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 0x100887da
cmp edi, dword [esi]
jne 0x100887da
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x10088820
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 0x10088883
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10088883
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1008885e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10088883
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.10109ef1
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10109ef1
add esp, 8
ret 4

Function at 0x10088960
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 0x10088a0e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100888a0
test al, al
je 0x10088a0e
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.100888a0
test al, al
je 0x10088a0e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100889e4
cmp dword [esp + 0x14], edi
jne 0x100889e4
mov eax, dword [esi]
test eax, eax
jne 0x100889d1
xor bl, bl
jmp 0x100889e4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100889cd
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.100888a0
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