joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010b190
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10314008]
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 0x1010b1f3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1010b1f3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1010b1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1010b1f3
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.1025b3e6
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1025b3e6
add esp, 8
ret 4

Function at 0x1010c360
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102f9028
push 0x1025bed8
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10314008]
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 0x1010c3c1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.1010c4b0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1010c404
test bl, bl
jne 0x1010c48d
cmp edi, 0x1a
jne 0x1010c48d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1010c426
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x1010c460
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004d70
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.1025b3e6
mov esp, ebp
pop ebp
ret
Function at 0x1010df60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10285d27
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10314008]
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 edi, ecx
mov esi, dword [ebp + 8]
push 4
call fcn.1025b3f7
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x4c]
push 2
push 0
push 0x40000000
push esi
push eax
call fcn.1010eee0
test al, al
je 0x1010e12b
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x4c]
movlpd qword [ebp - 0x54], xmm0
call fcn.1010b190
test al, al
je 0x1010e004
cmp dword [ebp - 0x50], 0
ja 0x1010dffd
cmp dword [ebp - 0x54], 0
jbe 0x1010e004
mov bl, 1
jmp 0x1010e12d
push ecx
lea ecx, [ebp - 0x20]
call fcn.1006bb20
call fcn.1006fff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.1006fff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.1006fff0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.1006fff0
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], 0xffffffff
mov byte [ebp - 4], 6
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.100706a0
mov edx, eax
call fcn.10070690
mov ecx, dword [edx]
cmp ecx, dword [eax]
lea ecx, [ebp - 0x48]
jne 0x1010e066
call fcn.1010d1d0
jmp 0x1010e06c
push esi
call fcn.1010f020
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x48]
call fcn.1010dbd0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0
call fcn.100706b0
mov edx, dword [eax]
call fcn.1006ff60
mov esi, dword [ebp - 0x4c]
mov edi, eax
test esi, esi
jne 0x1010e09a
xor bl, bl
jmp 0x1010e0e2
test edx, edx
jne 0x1010e0a2
xor bl, bl
jmp 0x1010e0ca
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1010e0ad
xor bl, bl
jmp 0x1010e0ca
push 0
lea ecx, [ebp - 0x14]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010e0c4
xor bl, bl
jmp 0x1010e0ca
cmp edi, dword [ebp - 0x14]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1010e0e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1010e0e2
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1006ff60
cmp dword [ebp - 0x14], eax
jne 0x1010e0f7
test bl, bl
je 0x1010e0f7
mov bl, 1
jmp 0x1010e0f9
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.1006ff70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.1006ff70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.1006ff70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.1006ff70
jmp 0x1010e130
xor bl, bl
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1010e165
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1010e153
test eax, eax
je 0x1010e153
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.1025b427
add esp, 8
mov dword [ebp - 0x4c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 4
Function at 0x10114500
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10314008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10114565
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10114540
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10114565
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.1025b3e6
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1025b3e6
add esp, 8
ret 4

Function at 0x10114840
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x10314008]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
mov dword [ebx], 0
push edi
cmp dword [ebp], 0xffffffff
mov edi, dword [esp + 0x1c]
je 0x101148d5
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x101148d5
test ecx, ecx
je 0x101148be
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10114880
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1025b3e6
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1025b3e6
add esp, 8
ret 0xc

Function at 0x10115b60
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10314008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1025b3f7
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x10115bbc
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.1025b3e6
add esp, 0x120
ret
Function at 0x1011aeb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028790b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x1011aee9
call fcn.1011b100
cmp byte [0x103183d0], 0
jne 0x1011aefc
mov eax, SysReAllocString
jmp 0x1011b02c
mov eax, dword [esi]
test eax, eax
jne 0x1011af7c
push 8
call fcn.1025b3f7
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.1025b3f7
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1011af6b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1011b01b
call fcn.10116b50
test al, al
jne 0x1011afb6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.10117390
test al, al
je 0x1011b01b
mov ecx, dword [esi]
add ecx, 4
call fcn.10116450
call fcn.10116b50
test al, al
je 0x1011b01b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.100046c0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.1011e230
mov ecx, eax
call fcn.1011e300
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004cc0
test edi, edi
je 0x1011b01b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1011b01b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1011b01b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1011b02a
mov dword [eax], SysReAllocString
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 4
Function at 0x10120f70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10288c7f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10314008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea esi, [edi + 0x94]
cmp esi, ebx
je 0x10120fd3
push esi
mov ecx, edi
call fcn.10123790
add esi, 0x94
add edi, 0x94
cmp esi, ebx
jne 0x10120fb3
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 4]
jmp 0x10120fd5
mov edi, eax
lea esi, [ebx - 0x94]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004cc0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004cc0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004cc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004cc0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004cc0
mov eax, dword [ebp - 0x14]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10122780
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028903f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10314008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004cc0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004cc0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004cc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004cc0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004cc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1012e280
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028b7b1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10314008]
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 - 0x14], edi
mov dword [edi], vtable.DL::RCSimpleDownloadHandler.0
mov dword [edi + 4], vtable.DL::RCSimpleDownloadHandler.1.0
mov dword [ebp - 4], 7
mov dword [edi + 0x98], 0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov esi, dword [edi + 0xf8]
test esi, esi
je 0x1012e2fe
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1012e2fe
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1012e2fe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x1012e319
lock xadd dword [ecx + 8], ebx
dec ebx
jne 0x1012e319
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test eax, eax
je 0x1012e34a
push eax
call ebx
push 0x18
push dword [edi + 0xe4]
call fcn.1025b427
add esp, 8
mov dword [edi + 0xe4], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0xc0]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x1012e36e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
call fcn.10004cc0
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xac]
test eax, eax
je 0x1012e3a5
push eax
call ebx
push 0x18
push dword [edi + 0xac]
call fcn.1025b427
add esp, 8
mov dword [edi + 0xac], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x1012e420
mov edx, dword [edi + 0xa4]
push ecx
call fcn.10132490
mov eax, dword [edi + 0xa8]
add esp, 4
mov ecx, dword [edi + 0xa0]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x1012e3f8
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1012e49f
mov ecx, esi
push edx
push ecx
call fcn.1025b427
add esp, 8
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov byte [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x70]
call fcn.10004cc0
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x48]
call fcn.10004cc0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x30]
call fcn.10004cc0
mov byte [ebp - 4], 9
lea ecx, [esi + 0x18]
call fcn.10004cc0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10004cc0
mov dword [ebp - 4], 0xe
mov dword [edi + 4], vtable.RC::RCRefCounted.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.DL::ISimpleDownloadHandler.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.RC::IRefCount.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x10130530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028bce8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.1010b210
test al, al
jne 0x10130590
mov eax, 1
jmp 0x1013070d
push 0x10000
call fcn.1025b86b
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x101306e6
test ebx, ebx
je 0x101306e6
cmp dword [eax], 0xffffffff
je 0x101306e6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101306e6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x101306dc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.10258210
test al, al
je 0x101306cf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10130682
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x10130671
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x101306dc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x1013068c
add ebx, eax
cmp ebx, 0x8000
je 0x1013069c
cmp dword [ebp - 0x28], 0xf
ja 0x101306c5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x10130620
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x101306be
add ecx, 4
add esi, 4
sub edx, 4
jae 0x101306a6
mov esi, 4
jmp 0x101306f7
mov esi, 5
jmp 0x101306f7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x101306f7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x101306f1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x101306f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1013070b
push ebx
call fcn.1025b866
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10133460
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028c208
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10314008]
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, edx
mov edi, ecx
cmp esi, 0xffffffff
jne 0x10133498
xor al, al
jmp 0x10133517
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x101334a8
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x101334ba
mov al, 1
jmp 0x10133517
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 edx, [ebp - 0x28]
mov ecx, edi
call fcn.10134450
test al, al
je 0x10133504
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10133504
mov bl, 1
jmp 0x10133506
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004cc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028c238
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10133576
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101335da
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 edx, [ebp - 0x28]
mov ecx, esi
call fcn.10134450
test al, al
je 0x101335cb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004cc0
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.1025b3e6
mov esp, ebp
pop ebp
ret
Function at 0x10133600
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028c270
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10314008]
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, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x10133638
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10133642
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x101336fc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x41], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.10134450
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10134450
test al, al
jne 0x101336bf
cmp byte [ebp - 0x48], al
je 0x10133700
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10133700
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004cc0
mov al, 1
jmp 0x1013371d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004cc0
xor al, al
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.1025b3e6
mov esp, ebp
pop ebp
ret