joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ed240
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x102635c0]
sub esp, 0x114
test eax, eax
jne 0x100ed38d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x10263358
mov dword [0x102635c0], 1
mov dword [0x10263358], 0x114
call esi
mov edx, dword [0x10263368]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x1023edb8], eax
je 0x100ed368
push ebx
push 0x10263470
mov dword [0x10263470], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1023fca4
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x102635b4], eax
call edi
mov dword [0x102635b8], eax
mov eax, dword [0x102635b4]
test eax, eax
push 0x10263590
je 0x100ed2e4
call eax
jmp 0x100ed2ea
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10263474]
cmp eax, 6
jae 0x100ed302
cmp eax, 5
jne 0x100ed316
cmp dword [0x10263478], 2
jb 0x100ed316
cmp word [0x10263590], 9
jne 0x100ed316
mov dword [0x1026334c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x100ed334
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x102635bc], edx
jmp 0x100ed33a
mov edx, dword [0x102635bc]
test edx, edx
je 0x100ed368
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x100ed368
mov ecx, dword [esp + 0x14]
mov dword [0x10263364], ecx
push 0x10263360
push 0x1026335c
call fcn.100ed730
add esp, 8
call fcn.100ed3a0
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x100ee5c0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10204c98
push 0x101b86e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x102635c4]
xor ebx, ebx
cmp eax, ebx
jne 0x100ee720
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100ee71b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x1023ea70
lea edx, [ebp - 0x42c]
push edx
call fcn.10095ea3
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.10061128
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100ee71b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100ee712
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x1023fe98
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100ee712
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x102635c4], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100ee712
push esi
call fcn.10061157
add esp, 4
mov eax, dword [0x102635c4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100eecb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10263838]
test eax, eax
jne 0x100eed6e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x102635d8
mov dword [0x10263838], 1
mov dword [0x102635d8], 0x114
call esi
mov edx, dword [0x102635e8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x10240010], eax
je 0x100eed62
push 0x102636f0
mov dword [0x102636f0], 0x11c
call esi
push 0x1023fca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x10263834], eax
push 0x10263810
je 0x100eed30
call eax
jmp 0x100eed36
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x102636f4]
cmp eax, 6
jae 0x100eed4e
cmp eax, 5
jne 0x100eed62
cmp dword [0x102636f8], 2
jb 0x100eed62
cmp word [0x10263810], 9
jne 0x100eed62
mov dword [0x102635cc], 1
call fcn.100eed80
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x100ef3c0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10204ca8
push 0x101b86e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x1026383c]
xor ebx, ebx
cmp eax, ebx
jne 0x100ef520
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100ef51b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x1023ea70
lea edx, [ebp - 0x42c]
push edx
call fcn.10095ea3
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.10061128
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x100ef51b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100ef512
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x1023fe98
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100ef512
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x1026383c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x100ef512
push esi
call fcn.10061157
add esp, 4
mov eax, dword [0x1026383c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f1ac0
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x10263888], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x10263890], eax
cmp ebx, 0xffffffff
je 0x100f1cb9
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x100f1cb9
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
push esi
call fcn.10140840
add esp, 0xc
test eax, eax
je 0x100f1c8e
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push ebp
push ebx
call esi
mov edx, dword [esp + 0x58]
push ebp
push ebp
push ebp
push edx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x100f1b51
cmp edi, ebp
je 0x100f1c39
cmp eax, ebp
mov ebx, 0x1000
jne 0x100f1b60
cmp edi, ebx
jae 0x100f1b60
mov ebx, edi
push ebx
call fcn.10061128
add esp, 4
mov esi, eax
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x34], ebp
call fcn.1013ef50
add esp, 0x18
test eax, eax
je 0x100f1bd6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x100f1bb1
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x100f1c13
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov dword [esp + 0x38], ebp
call fcn.1013f050
add esp, 0x14
test eax, eax
je 0x100f1bec
cmp dword [esp + 0x14], ebp
je 0x100f1b6b
jmp 0x100f1c13
mov dword [0x10263888], 0xd
mov dword [0x1026388c], 0x54c
jmp 0x100f1c00
mov dword [0x10263888], 0xe
mov dword [0x1026388c], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10263890], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.10061157
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x100f1c82
cmp dword [esp + 0x18], ebp
jne 0x100f1c82
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x100f1c82
lea edx, [esp + 0x28]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
push 0x28
mov dword [esp + 0x2c], ebp
push edx
push ebx
rep stosd dword es:[edi], eax
call fcn.1013ead0
add esp, 0xc
test eax, eax
je 0x100f1c82
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.1013eb10
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x10263888], 0x25
mov dword [0x1026388c], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10263890], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x10263888], 1
mov dword [0x1026388c], 0x51d
call edi
pop edi
pop esi
mov dword [0x10263890], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x100f2ea0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 1
mov dword [esp + 0x30], 0
call fcn.100f39b0
add esp, 0x2c
test eax, eax
je 0x100f2f88
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x100f2f14
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.1011e5a0
mov edx, dword [0x102640c0]
mov ecx, dword [0x102640c4]
add esp, 8
mov dword [0x10263888], edx
mov edx, dword [0x102640c8]
mov dword [0x1026388c], ecx
mov dword [0x10263890], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x100f2f4e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.10104870
mov ecx, dword [0x10263930]
mov edx, dword [0x10263934]
add esp, 8
mov dword [0x10263888], ecx
mov ecx, dword [0x10263938]
mov dword [0x1026388c], edx
mov dword [0x10263890], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x100f2f8e
call fcn.1013aaa0
mov ecx, dword [0x102646c8]
mov edx, dword [0x102646cc]
add esp, 8
mov dword [0x10263888], ecx
mov ecx, dword [0x102646d0]
mov dword [0x1026388c], edx
mov dword [0x10263890], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret

Function at 0x100f3410
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1026393c]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100f3432
mov eax, dword [0x102640cc]
test eax, eax
jne 0x100f3432
mov eax, dword [0x102646d4]
test eax, eax
je 0x100f3436
test ebx, ebx
je 0x100f3470
mov eax, dword [0x1024012c]
or esi, 0xffffffff
cmp eax, esi
jne 0x100f3470
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1024012c], eax
je 0x100f3470
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100f3470
mov eax, dword [0x1024012c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1024012c], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10105270
add esp, 0xc
test eax, eax
je 0x100f34b3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.10121b40
add esp, 0x10
test eax, eax
je 0x100f34b3
push ebx
push esi
push edi
call fcn.10130e70
add esp, 0xc
test eax, eax
je 0x100f34b3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100f8450
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x100f85bb
cmp esi, 0xffffffff
je 0x100f85bb
cmp dword [0x10263898], ebp
je 0x100f85bb
mov ecx, dword [0x102638a0]
cmp ecx, ebp
je 0x100f85bb
mov eax, dword [0x1026389c]
cmp eax, ebp
jge 0x100f8499
neg eax
cmp ecx, eax
ja 0x100f85bb
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.10061128
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x100f85b0
mov ecx, dword [0x102638a0]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x102638a0]
mov edi, dword [0x1026389c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x100f85a2
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x100f8535
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.1013ef50
add esp, 0x18
jmp 0x100f8547
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x100f85a2
mov ebx, dword [0x10263844]
xor edx, edx
test ebx, ebx
jle 0x100f85a2
mov ebp, dword [0x10263840]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x100f8588
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100f859a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x100f85a2
jmp 0x100f856e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10061157
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x10102800
Capabilities:
Get file size

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.10100d60
push eax
call fcn.10142690
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10102865
mov dword [0x10263930], 0xc
mov dword [0x10263934], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10263938], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.10061128
mov esi, eax
add esp, 4
test esi, esi
jne 0x101028c9
mov dword [0x10263930], 0x21
mov dword [0x10263934], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10263938], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x101029b3
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x1010294a
test eax, eax
jne 0x1010294a
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call fcn.1013f050
add esp, 0x14
test eax, eax
je 0x101029c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.1013fb50
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x101029e8
mov dword [0x10263930], 0x11
mov dword [0x10263934], 0x14cb
jmp 0x101029dd
mov dword [0x10263930], 0xe
mov dword [0x10263934], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10263938], eax
push esi
call fcn.10061157
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x10104870
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x10263930], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10263938], eax
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x394]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call fcn.10100ff0
add esp, 8
test eax, eax
jne 0x101048d3
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x101048e4
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x10105870
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x10263930], ebp
call ebx
mov dword [0x10263938], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x101059ac
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1010c780
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x10105915
test edi, edi
jne 0x10105915
test ebp, ebp
jne 0x10105915
test ebx, ebx
jne 0x10105915
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x10105915
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x101059a1
cmp eax, 3
jne 0x101059a1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.1013fb00
add esp, 0xc
test eax, eax
je 0x1010599d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x10105945
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x10105950
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x1010595c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x1010597b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x1010598d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x1010599d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x10105a3d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x10105a3d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x10105a58
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10105a36
mov dword [0x10263930], 0xd
mov dword [0x10263934], 0x29f7
call ebx
mov dword [0x10263938], eax
jmp 0x10105a5a
mov edi, 1
jmp 0x10105a5a
mov dword [0x10263930], 1
mov dword [0x10263934], 0x29ea
call ebx
mov dword [0x10263938], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x101058be
mov dword [0x10263930], 0xf
mov dword [0x10263934], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x10263938], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x1010add0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
call fcn.10100d60
push eax
call fcn.10142690
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1010ae3b
mov dword [0x10263930], 0xc
mov dword [0x10263934], 0x265e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10263938], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x70]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 8]
mov ebx, eax
push ebx
call fcn.10061128
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010ae82
mov dword [0x10263930], 0x21
mov dword [0x10263934], 0x2667
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x10263938], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ebx
push esi
push ecx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x1010af42
mov ebp, dword [esp + 0x60]
lea edx, [esp + 0x18]
xor ebx, ebx
push 1
push edx
push ebx
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [edi], eax
mov eax, dword [esp + 0x20]
push edx
push esi
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1010af58
mov eax, dword [esp + 0x70]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x64]
push eax
push esi
mov dword [edi + 8], eax
call fcn.1013fb50
add esp, 8
mov dword [edi + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x1010af77
mov dword [0x10263930], 0x15
mov dword [0x10263934], 0x2673
jmp 0x1010af6c
mov dword [0x10263930], 0xe
mov dword [0x10263934], 0x267f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10263938], eax
push esi
call fcn.10061157
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret