joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f9a0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
push edi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x14]
shr eax, 1
mov ecx, 0x40000000
cmp eax, 0x40000000
ja 0x1000f9cb
mov ecx, eax
mov edx, dword [esi + 0xa8]
push 0
lea eax, [esi + 0xa8]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [esp + 0x2c]
lea edi, [esi + 8]
mov eax, edi
call fcn.1000d100
test eax, eax
jl 0x1000fa5d
cmp eax, 1
je 0x1000fa5d
mov eax, dword [edi]
test eax, eax
je 0x1000fa1e
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
mov edx, ecx
or edx, eax
jne 0x1000fa10
mov eax, 0x80004005
jmp 0x1000fa46
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], eax
jmp 0x1000fa44
mov edi, dword [edi + 4]
test edi, edi
je 0x1000fa58
mov eax, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
mov ecx, eax
or ecx, edi
jne 0x1000fa38
mov eax, 0x80004005
jmp 0x1000fa46
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edi
xor eax, eax
test eax, eax
jl 0x1000fa58
cmp eax, 1
je 0x1000fa58
xor eax, eax
pop edi
add esp, 0x24
ret 4
mov eax, 0xe0036006
pop edi
add esp, 0x24
ret 4
Function at 0x10011610
Capabilities:
Get disk size

Disassembly:
sub esp, 0x218
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.10059a00
lea edi, [esi + 0x84]
push 0x5c
push edi
call fcn.100587d3
add esp, 0x14
test eax, eax
jne 0x1001165b
mov eax, 0x80004005
jmp 0x100116b8
sub eax, esi
sub eax, 0x84
sar eax, 1
inc eax
push eax
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10011691
call fcn.10002c20
jmp 0x100116b8
mov esi, dword [esi + 0x4c]
mov edx, dword [esp + 0xc]
add esi, dword [esp + 0x224]
xor eax, eax
cmp edx, eax
jb 0x100116b3
ja 0x100116af
mov eax, dword [esp + 8]
cmp eax, esi
jbe 0x100116b3
xor eax, eax
jmp 0x100116b8
mov eax, 0x80070070
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.1005710f
add esp, 0x218
ret 4
Function at 0x10013f70
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
test edi, edi
je 0x100140e5
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x10013f8c
mov eax, 0x80070057
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10013fb0
test eax, eax
je 0x10013f82
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ebx
push edx
push eax
mov edx, edi
call fcn.1000fa70
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
jne 0x10013fc2
mov eax, 0x80004005
pop ebx
pop ecx
ret 0xc
test eax, eax
je 0x10013fe6
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10013fe6
call fcn.10002c20
pop ebx
pop ecx
ret 0xc
mov edx, dword [esi + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edx
mov dword [esp + 0x18], 0
call ebx
test eax, eax
jne 0x100140d7
cmp dword [esp + 0x14], eax
jne 0x10013fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1001403c
cmp eax, 0x3e6
je 0x1001403c
test eax, eax
jle 0x100140e7
and eax, 0xffff
or eax, 0x80070000
pop ebx
pop ecx
ret 0xc
cmp dword [esi + 0x3dc], edi
jae 0x10014093
mov eax, dword [esi + 0x3d8]
test eax, eax
je 0x1001406b
push eax
call fcn.1005758d
add esp, 4
mov dword [esi + 0x3d8], 0
mov dword [esi + 0x3dc], 0
push 0x100d61b4
push edi
call fcn.10057582
add esp, 8
mov dword [esi + 0x3d8], eax
test eax, eax
jne 0x1001408d
mov eax, 0x8007000e
pop ebx
pop ecx
ret 0xc
mov dword [esi + 0x3dc], edi
mov eax, dword [esi + 0x3d8]
push edi
push 0
push eax
call fcn.10059a00
mov edx, dword [esi + 0x3d8]
mov eax, dword [esi + 0xc]
add esp, 0xc
push 0
lea ecx, [esp + 8]
push ecx
push edi
push edx
push eax
call ebx
test eax, eax
je 0x10013fdc
mov ecx, dword [esi + 0x3d8]
mov edx, dword [esp + 0xc]
push edi
push ecx
push edx
call fcn.10059a80
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100140e5
mov ecx, dword [esp + 4]
mov dword [eax], ecx
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x10015320
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a05c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x20]
xor ecx, ecx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10015381
call fcn.10002c20
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
push 0xa290
call fcn.1005853a
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], 0
test esi, esi
jne 0x100153b7
mov eax, 0x8007000e
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
push 0xa290
push 0
push esi
call fcn.10059a00
mov edx, dword [edi + 0xc]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xa290
push esi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001540e
call fcn.10002c20
push esi
mov edi, eax
call fcn.1005758d
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
lea ecx, [esi + 0x8001]
mov eax, ecx
cmp dword [eax], 0x30304443
jne 0x1001542a
add eax, 4
cmp byte [eax], 0x31
je 0x1001553f
cmp dword [ecx], 0x30414542
jne 0x1001543e
add ecx, 4
cmp byte [ecx], 0x31
je 0x1001553f
mov eax, 0x9311
mov ecx, esi
call fcn.10016f20
test eax, eax
jne 0x1001553f
mov eax, 0x9319
mov ecx, esi
call fcn.10016f20
test eax, eax
jne 0x1001553f
mov eax, 0x9911
mov ecx, esi
call fcn.10016f20
test eax, eax
jne 0x1001553f
mov eax, 0x9919
mov ecx, esi
call fcn.10016f20
test eax, eax
jne 0x1001553f
mov eax, 0x9209
mov ecx, esi
call fcn.10016f20
test eax, eax
jne 0x1001553f
mov eax, 0x9201
mov ecx, esi
call fcn.10016f20
test eax, eax
jne 0x1001553f
cmp dword [edi + 0x20], eax
je 0x100154e4
mov ecx, edi
mov dword [edi + 0x20], eax
call fcn.10015320
lea esi, [esp + 0xc]
mov edi, eax
call fcn.1004b720
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov edi, dword [edi + 0x24]
lea esi, [esp + 0xc]
call fcn.1004b720
cmp edi, 1
jne 0x1001550c
mov eax, 0xe003200b
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
cmp edi, 2
jne 0x10015528
mov eax, 0xe003200a
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov eax, 0xe00e1001
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
push esi
call fcn.1005758d
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x10015b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x118]
push edi
mov dword [esp + 8], eax
mov edi, ecx
test esi, esi
je 0x10015ccb
test edi, edi
je 0x10015ccb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
push esi
call ebx
cmp dword [esp + 0x124], 0
je 0x10015bda
mov eax, dword [edi + ebp]
push 0x100c4578
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10015bef
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, eax
test ebx, ebx
je 0x10015c7c
add ebx, 2
cmp dword [esp + 0x124], 0
je 0x10015c1a
mov edx, dword [edi + ebp]
add edx, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edx
push ebx
call edi
jmp 0x10015c8c
mov ecx, dword [edi + ebp]
push str..mdf
add ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10015ba4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x100c456c
push eax
call ebx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.1005710f
add esp, 0x10c
ret 0xc
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.10059a00
mov ecx, dword [edi + ebp]
add esp, 0xc
add ecx, edi
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
jmp 0x10015c50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015c50
mov ecx, esi
sub ecx, ebx
add ecx, 0x208
sar ecx, 1
push ecx
sub eax, edx
push ebx
inc eax
push eax
lea edx, [esp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10015c86
mov eax, 0x80004005
jmp 0x10015c00
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x10015bfe
mov eax, dword [esp + 0xc]
push eax
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x100c456c
push eax
call edi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x10015bfe
mov eax, 0xe0032009
jmp 0x10015c00
mov eax, 0x80070057
jmp 0x10015c01
Function at 0x10018430
Capabilities:
Get file size

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, eax
push edi
mov edi, dword [esi + 0x3a0]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
cmp edi, dword [esi + 0x3a4]
jbe 0x10018456
call fcn.10057548
mov ebx, dword [esi + 0x394]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x3a4]
cmp dword [esi + 0x3a0], edi
jbe 0x10018473
call fcn.10057548
mov eax, dword [esi + 0x394]
test ebx, ebx
je 0x10018481
cmp ebx, eax
je 0x10018486
call fcn.10057548
cmp dword [esp + 0x1c], edi
je 0x10018590
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
call fcn.10016620
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test ebx, ebx
jne 0x1001855c
call fcn.10057548
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x10]
jb 0x100184cf
call fcn.10057548
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x100184da
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x10018567
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10018574
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, 0xffffffd4
adc ecx, 0xffffffff
add ebp, eax
adc dword [esp + 0x24], ecx
inc dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea edi, [esi + 0x37c]
mov dword [esp + 0x30], ecx
call fcn.100121f0
test ebx, ebx
jne 0x10018563
call fcn.10057548
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x10018552
call fcn.10057548
add dword [esp + 0x1c], 0x1c
jmp 0x10018460
mov eax, dword [ebx]
jmp 0x100184c1
mov eax, dword [ebx]
jmp 0x10018544
call fcn.10002c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
call fcn.10002c20
mov edx, dword [esp + 0x30]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x24]
push edi
push ebp
call fcn.10016560
mov dword [esi + 0x35c], edi
pop edi
mov dword [esi + 0x358], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x100185c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x38c]
sub eax, dword [esi + 0x388]
sar eax, 4
cmp ebx, eax
jae 0x100186e1
mov ecx, dword [esi + 0x38c]
sub ecx, dword [esi + 0x388]
sar ecx, 4
cmp ebx, ecx
jb 0x100185fb
call fcn.10057548
mov edx, dword [esi + 0x388]
shl ebx, 4
mov eax, dword [ebx + edx + 8]
lea ebx, [ebx + edx + 8]
test eax, eax
je 0x100186e1
cmp eax, 0xffffffff
je 0x100186e1
mov ecx, dword [esp + 0x18]
xor edx, edx
push edx
push edx
push edx
add ecx, 0x2c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10018641
call fcn.10002c20
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], 0
mov edx, dword [ebx]
push ecx
push edx
call ebp
test eax, eax
jne 0x100186ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1001868e
cmp eax, 0x3e6
je 0x1001868e
test eax, eax
jle 0x100186e6
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
call fcn.100186f0
mov esi, eax
test esi, esi
jne 0x100186a5
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [ebx]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ecx
call ebp
test eax, eax
je 0x10018635
mov edx, dword [esp + 0x1c]
push edi
push esi
push edx
call fcn.10059a80
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100186d8
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x1001a7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
movzx ecx, word [eax]
cmp cx, 0x20
je 0x1001a80f
cmp cx, 9
jne 0x1001a814
add eax, 2
jmp 0x1001a800
cmp word [eax], 0x22
mov ebp, dword [sym.imp.SHLWAPI.dll_StrChrW]
mov dword [esp + 0x10], eax
jne 0x1001a831
lea edi, [eax + 2]
push 0x22
lea edx, [edi + 2]
push edx
call ebp
jmp 0x1001a852
lea esi, [eax + 2]
push 0x20
push esi
call ebp
push 9
push esi
mov edi, eax
call ebp
test edi, edi
je 0x1001a84e
test eax, eax
je 0x1001a84c
cmp edi, eax
jae 0x1001a84e
mov eax, edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1001a860
mov eax, 0xe0032002
jmp 0x1001a942
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0x104
mov dword [esp + 0x10], esi
jge 0x1001a856
push 0x5c
push edi
call ebp
test eax, eax
je 0x1001a890
add esi, esi
push esi
push edi
push ebx
call fcn.10059a80
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x1001a8d1
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
jne 0x1001a8b7
mov eax, 0x80004005
jmp 0x1001a942
mov ebp, dword [esp + 0x10]
add ebp, ebp
push ebp
add esi, 2
push edi
push esi
call fcn.10059a80
add esp, 0xc
xor edx, edx
mov word [esi + ebp], dx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x1001a940
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.10059a00
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
add esp, 0xc
push ebx
call edi
cmp word [eax], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
je 0x1001a916
push eax
lea edx, [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
push ebx
call esi
push ebx
call edi
cmp word [esp + 0x18], 0
je 0x1001a931
lea ecx, [esp + 0x18]
push ecx
push eax
call esi
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x1001a940
mov eax, 0xe0032001
jmp 0x1001a942
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x214
ret 8
Function at 0x1001b6f0
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
sub esp, 0x5c
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
mov ebp, dword [esp + 0x68]
xor eax, eax
push esi
xor esi, esi
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
push 0x24050
push edi
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
je 0x1001b78e
cmp dword [esp + 0xc], esi
je 0x1001b78e
cmp dword [esp + 0x4c], 0x800
jne 0x1001b823
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [ebp + 4], eax
mov dword [ebp], edx
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1005710f
add esp, 0x5c
ret 4
push esi
lea ecx, [esp + 0x10]
push ecx
push 0x18
lea edx, [esp + 0x44]
push edx
push esi
push esi
push 0x2404c
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call ebx
test eax, eax
je 0x1001b823
cmp dword [esp + 0xc], esi
je 0x1001b823
cmp esi, 0x800
jne 0x1001b823
push esi
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 8
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push 0x7405c
push edi
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
je 0x1001b823
cmp dword [esp + 0xc], esi
je 0x1001b823
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1005710f
add esp, 0x5c
ret 4
mov ecx, dword [esp + 0x64]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0xe003200c
call fcn.1005710f
add esp, 0x5c
ret 4
Function at 0x1001b920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a07a8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov si, cx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
push 0x100c4834
lea eax, [esp + 0x24]
push eax
xor edi, edi
mov word [esp + 0x28], si
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x1001b9a5
mov eax, 0xe003200c
jmp 0x1001ba7b
xor eax, eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
movzx eax, si
push eax
lea ecx, [esp + 0x38]
xor edx, edx
push str.._c:
push ecx
mov word [esp + 0x40], dx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push edi
push 3
push edi
push 1
push closesocket
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x58], edi
cmp esi, 0xffffffff
jne 0x1001ba07
call fcn.10002c20
jmp 0x1001ba7b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
push eax
mov edi, esi
call fcn.1001b6f0
mov edi, eax
test edi, edi
jl 0x1001ba72
cmp edi, 1
je 0x1001ba72
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x38]
push edx
push eax
push ebx
call ecx
mov edi, eax
test edi, edi
jl 0x1001ba72
cmp edi, 1
je 0x1001ba72
mov eax, dword [ebp + 8]
test ax, ax
je 0x1001ba5c
push eax
call fcn.1001b840
mov edi, eax
test edi, edi
jl 0x1001ba67
cmp edi, 1
je 0x1001ba67
mov edi, ebx
mov ecx, esi
call fcn.1001baa0
mov edi, eax
lea esi, [esp + 0x10]
call fcn.1000fcc0
jmp 0x1001ba79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1005710f
mov esp, ebp
pop ebp
ret 8
Function at 0x100212a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100212d0
call fcn.10002c20
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x10024970
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x100
lea eax, [esp + 8]
push 0
push eax
call fcn.10059a00
mov ecx, dword [esi]
mov ecx, dword [ecx + 0xc]
mov eax, dword [esi + 4]
add esp, 0xc
push 0
lea edx, [esp + 4]
push edx
push ecx
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100249c8
call fcn.10002c20
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
mov eax, 1
call fcn.1005710f
add esp, 0x108
ret

Function at 0x100249f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa08
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0xa04], eax
push 0xa00
lea eax, [esp + 8]
push 0
push eax
call fcn.10059a00
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
mov eax, dword [esi + 4]
add esp, 0xc
push 0
lea edx, [esp + 4]
push edx
push ecx
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10024a48
call fcn.10002c20
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0xa04]
xor ecx, esp
mov eax, 1
call fcn.1005710f
add esp, 0xa08
ret
Function at 0x10027230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x10027242
mov eax, 0x80070057
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002725b
call fcn.10002c20
pop esi
ret 0x10
test al, 0x10
je 0x1002726b
mov dword [esi], 8
xor eax, eax
pop esi
ret 0x10
mov eax, 0xe00e1001
pop esi
ret 0x10

Function at 0x100275c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x10027607
cmp word [esi], 0
je 0x10027607
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100275e4
call fcn.10002c20
pop esi
ret 0xc
test al, 0x10
je 0x10027607
push edi
mov edi, dword [esp + 0xc]
lea eax, [edi + 0xc]
push eax
mov edx, esi
call fcn.10009fe0
push 0
push esi
mov ecx, edi
call fcn.100278c0
pop edi
pop esi
ret 0xc
mov eax, 0xe00e1001
pop esi
ret 0xc