joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016e230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1016e274
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x1016e27c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1016e306
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x1016e2c9
xor ecx, ecx
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.100cdd90
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1033d458
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1016e2d0
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.100cdd90
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1033d458
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1033d458
add esp, 0x210
ret

Function at 0x1016e4e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1016e508
mov eax, dword [esi]
jmp 0x1016e50a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x410
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1016e555
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1033d458
add esp, 0x418
ret
cmp eax, 0x208
jae 0x1016e53d
xor eax, eax
mov ecx, esi
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.100cd6c0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.1033d458
add esp, 0x418
ret

Function at 0x1016eaf0
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x1016eafd
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1016eaf8
cmp dword [eax], 0xffffffff
je 0x1016eaf8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc
Function at 0x1016ebb0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1016ebdd
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1016ebc9
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1016ec17
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1016ec17
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 4

Function at 0x1016ecd0
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1016ecea
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.1016ec40
test al, al
je 0x1016ecde
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.1016ec40
test al, al
je 0x1016ecde
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x1016ed57
cmp dword [esp + 0x14], edi
jne 0x1016ed57
mov eax, dword [esi]
test eax, eax
jne 0x1016ed44
xor bl, bl
jmp 0x1016ed57
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1016ed40
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.1016ec40
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
Function at 0x10170130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x103406da
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
cmp edi, ecx
jae 0x1017019f
mov eax, dword [esi]
cmp eax, edi
ja 0x1017019f
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ecx, dword [esi + 8]
jne 0x10170185
push ecx
mov ecx, esi
call fcn.101701f0
mov ecx, dword [esi + 4]
lea eax, [edi + edi*2]
shl eax, 4
add eax, dword [esi]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x101701c1
push eax
jmp 0x101701bc
cmp ecx, dword [esi + 8]
jne 0x101701ac
push ecx
mov ecx, esi
call fcn.101701f0
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x101701c1
push edi
call fcn.10170450
mov dword [esp + 0x14], 0xffffffff
add dword [esi + 4], 0x30
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10173960
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10351fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x58]
xorps xmm0, xmm0
mov esi, dword [esp + 0x54]
mov ecx, esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [esp + 0x3c], xmm0
call fcn.1016ec40
test al, al
jne 0x101739cc
mov eax, 1
jmp 0x10173b62
push 0x10000
call fcn.1033d1c5
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], 0
push 0x10000
push 0
push ebx
call sub.MSVCR120.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov dword [esp + 0x34], 0
test eax, eax
je 0x10173b39
test ebx, ebx
je 0x10173b39
cmp dword [eax], 0xffffffff
je 0x10173b39
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10173b39
mov esi, dword [esp + 0x18]
mov ecx, 0x8000
xor ebp, ebp
mov dword [esp + 0x20], ecx
xor ebx, ebx
add esi, ecx
jmp 0x10173a60
cmp byte [edi + 0x9c], 0
jne 0x10173b2e
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0
push edx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esi + ebx]
push eax
call fcn.1017ae20
test al, al
je 0x10173b1f
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10173acb
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x10173abb
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x10173b2e
mov eax, dword [esp + 0x1c]
inc ebp
jmp 0x10173ad5
add ebx, eax
cmp ebx, 0x8000
je 0x10173aea
cmp ebp, 0xf
ja 0x10173b14
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x20], ecx
jne 0x10173a60
mov ebx, dword [esp + 0x18]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10173b0d
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10173af5
mov esi, 4
jmp 0x10173b4a
mov esi, 5
jmp 0x10173b4a
mov ebx, dword [esp + 0x18]
mov esi, 3
jmp 0x10173b4a
mov eax, dword [esp + 0x24]
mov esi, 3
mov ebx, dword [esp + 0x18]
jmp 0x10173b44
mov ebx, dword [esp + 0x18]
mov esi, 2
jmp 0x10173b4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [esp + 0x4c], 0xffffffff
test ebx, ebx
je 0x10173b60
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1033d458
add esp, 0x3c
ret 0xc
Function at 0x101752e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1035229e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esi + 4], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x10
mov dword [esp + 0xc], 0x11c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10175364
cmp dword [esp + 0x10], 6
mov ecx, dword [esi + 4]
setae dl
mov byte [ecx], dl
mov dword [esp + 0x134], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1033d458
add esp, 0x130
ret

Function at 0x10175850
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10175866
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x10175880
cmp dword [eax + 0x14], 8
jb 0x10175882
mov eax, dword [eax]
jmp 0x10175882
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x101758a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x101758a4
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x101758b0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x103523a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x101758fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [esp + 0x14]
mov word [esi + 4], 0
mov dword [esp + 0x14], 0
call fcn.10176700
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x10175927
add eax, 8
jmp 0x10175929
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x10175939
cmp dword [edi + 0x14], 8
jb 0x1017593b
mov edi, dword [edi]
jmp 0x1017593b
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1017595c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1017595c
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10176990
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1033d458
add esp, 0x18
ret 4
Function at 0x101759a0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x103523a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x101759ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [esp + 0x18]
mov word [esi + 4], 0
mov dword [esp + 0x18], 0
call fcn.10176840
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x10175a18
lea ebx, [eax + 8]
jmp 0x10175a1a
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x10175a2e
cmp dword [edi + 0x14], 8
jb 0x10175a2a
mov eax, dword [edi]
jmp 0x10175a30
mov eax, edi
jmp 0x10175a30
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x10175a76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10175a71
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x10175a63
cmp dword [edi + 0x14], 8
jb 0x10175a65
mov edi, dword [edi]
jmp 0x10175a65
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
cmp dword [esi], 0
je 0x10175a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10175a87
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.101505c0
cmp dword [esi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10176990
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1033d458
add esp, 0x18
ret 4
Function at 0x10176370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x103525ac
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x101763dd
push 0x34
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.10176040
mov esi, eax
jmp 0x101763df
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.1017b660
test al, al
jne 0x10176411
test esi, esi
je 0x1017640d
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x10176459
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
lea ecx, [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call fcn.1017b880
test al, al
je 0x10176401
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x10176405
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret
Function at 0x10177720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x103528a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x18], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x18], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov byte [esp + 0x18], 2
mov dword [esi + 0x6c], 7
mov dword [esi + 0x68], eax
mov word [esi + 0x58], ax
mov byte [esp + 0x18], 3
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esi + 0x80], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x18], 4
lea eax, [esi + 0x84]
mov dword [eax], 0
xor ecx, ecx
mov byte [eax + 4], 0
mov dword [eax + 0x1c], 7
mov dword [eax + 0x18], 0
mov dword [esp + 0xc], eax
mov word [eax + 8], cx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x10177c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10351d59
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.100cd9d0
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.100cd9d0
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.100cd9d0
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.100cd9d0
mov byte [esp + 0x18], 3
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x1017acb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x10352e88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [ebx], 0
cmp dword [ebp + 4], 0
je 0x1017ad58
lea esi, [ebp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 4]
call fcn.1017ac10
add esp, 8
test al, al
jne 0x1017ad60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push esi
call eax
or eax, 0xffffffff
jmp 0x1017adfa
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
add dword [edi + 0x10], eax
adc dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x20]
mov ebx, eax
cmp ebx, dword [edi + 4]
je 0x1017adf8
movd xmm1, esi
mov ecx, esi
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
shr eax, 0x1f
mov edx, dword [edi + 0x14]
movd xmm0, ebx
addsd xmm1, qword [ecx*8 + 0x10589080]
cvtdq2pd xmm0, xmm0
mov ecx, dword [edi + 0x10]
addsd xmm0, qword [eax*8 + 0x10589080]
divsd xmm1, xmm0
movsd qword [edi + 0x18], xmm1
call fcn.1033e73e
mov ecx, ebx
mov dword [edi + 4], ebx
sub ecx, dword [edi]
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
addsd xmm1, qword [ecx*8 + 0x10589080]
divsd xmm0, xmm1
movsd qword [edi + 0x20], xmm0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1033d458
add esp, 0x20
ret 0x10

Function at 0x1017b010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1034a058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.1017b180
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
call fcn.1017dcf0
mov esi, eax
mov edi, edx
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1017b07b
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov edx, edi
mov dword [esp + 0x1c], 0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret
Function at 0x1017b4f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push edi
mov edi, dword [esp + 0x18]
mov dword [ebx], 0
cmp dword [ebp], 0xffffffff
jne 0x1017b52d
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 0xc
push esi
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
jmp 0x1017b540
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]
test eax, eax
setne al
add dword [ebx], ecx
test al, al
je 0x1017b59a
test ecx, ecx
je 0x1017b583
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x1017b540
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 0xc

Function at 0x1017b7f0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x1017b81e
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 4
push esi
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 0x1017b859
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1017b859
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.1033d458
add esp, 8
ret 4
Function at 0x1017d1e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10353300
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
mov byte [esp + 0x48], 1
mov dword [esp + 8], eax
lea eax, [esp + 8]
push edx
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x30]
call fcn.1017ccd0
add esp, 0xc
mov bl, al
mov byte [esp + 0x48], 0
cmp dword [esp + 0x20], 8
jb 0x1017d28e
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x1017d2c1
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1033d458
add esp, 0x44
ret