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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov ebx, 0x200
xor edi, edi
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], 0
cmp ebx, 0x201
jae 0x10164f00
jmp 0x10164ee1
mov edi, dword [ebp - 0x10]
jbe 0x10164f89
cmp ebx, 0x201
jae 0x10164f00
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0x200
lea esi, [ebp - 0x438]
mov edi, ebx
jmp 0x10164f31
mov eax, dword [ebp - 0x1c]
sub ebx, edi
sub eax, edi
cmp eax, ebx
jae 0x10164f22
mov edx, edi
lea ecx, [ebp - 0x28]
push ebx
call fcn.10150480
add esp, 4
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
push 0
call sub.KERNEL32.dll_SetLastError
push esi
push edi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x10164f52
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10164fd6
cmp ebx, edi
jne 0x10164ed0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10164ff1
lea ebx, [edi + edi]
test edi, edi
mov edi, dword [ebp - 0x10]
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x10164ee1
jmp 0x10164f00
mov eax, dword [ebp - 0x18]
cmp ebx, eax
ja 0x10165007
lea eax, [ebp - 0x38]
push ebx
push esi
push eax
call fcn.10169f90
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test edi, edi
je 0x10164fc8
push dword [ebp - 0x14]
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 8]
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
test edi, edi
jne 0x10164fb8
jmp 0x10164fc8
push 0x1043b1dc
push 0x28
push str.internal_error:_entered_unreachable_codel
call fcn.10027330
add esp, 0xc
jmp 0x10165016
push 0x1043b1cc
push eax
push ebx
call fcn.1002ac30
add esp, 0xc
ud2
Function at 0x1016a960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x1016a97e
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x1016a995
test edx, edx
jne 0x1016a9be
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x1016a9a8
test edx, edx
jne 0x1016a9b2
mov ecx, edi
call fcn.1016a870
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x1016aa1f
jmp 0x1016a9cb
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x1016aa1f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x1016aa1f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x1016ab38]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov esi, dword [edi + 4]
lea ebx, [eax + ecx]
mov dword [ebp - 0x1c], ecx
cmp esi, ebx
jb 0x1016ab1e
mov ecx, edi
mov edi, dword [edi]
cmp esi, ebx
mov edx, edi
lea edx, [edi + ebx]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov edx, esi
jne 0x1016aa5b
movzx eax, byte [ecx + 8]
mov edi, dword [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0xd], al
xor eax, eax
jmp 0x1016aacc
movzx ecx, byte [ecx + 8]
cmp cl, 3
mov byte [ebp - 0xd], cl
jae 0x1016aa8d
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edx
sub eax, edx
lea esi, [edx + esi - 1]
nop dword [eax + eax]
cmp byte [esi], 0x5c
je 0x1016aab8
dec esi
inc eax
jne 0x1016aa80
xor eax, eax
jmp 0x1016aacc
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov ecx, edx
sub eax, edx
lea edi, [edx + esi - 1]
nop dword [eax + eax]
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x1016aab8
cmp esi, 0x5c
je 0x1016aab8
dec edi
inc eax
jne 0x1016aaa0
mov edi, dword [ebp - 0x18]
xor eax, eax
jmp 0x1016aacc
not eax
lea ebx, [ebx + eax + 1]
cmp ecx, ebx
jb 0x1016ab26
mov edi, dword [ebp - 0x14]
mov eax, 1
add edi, ebx
sub ecx, ebx
je 0x1016aaf3
movzx ebx, byte [ebp - 0xd]
mov dl, 9
cmp ecx, 2
je 0x1016aaf7
cmp ecx, 1
jne 0x1016ab06
cmp byte [edi], 0x2e
jne 0x1016ab06
xor edx, edx
cmp bl, 3
setae dl
lea edx, [edx + edx*2 + 7]
jmp 0x1016ab06
mov dl, 0xa
jmp 0x1016ab06
cmp byte [edi], 0x2e
jne 0x1016ab06
cmp byte [edi + 1], 0x2e
sete dl
xor dl, 9
mov esi, dword [ebp - 0x20]
add eax, ecx
mov dword [esi], eax
mov byte [esi + 4], dl
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10439a2c
push esi
jmp 0x1016ab2c
push 0x10439a3c
push ecx
push ebx
call fcn.1002abd0
add esp, 0xc
ud2
Function at 0x1016e320
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.1001ade0
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1016e363
mov ecx, dword [0x10439c48]
mov edx, dword [0x10439c4c]
cmp dword [ebp - 0x1c], 0
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x1016e3df
push eax
jmp 0x1016e3d2
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1016e3b5
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x1016e3d1
jmp 0x1016e3df
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x1016e3df
push edi
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10170a40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.101e8860
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x10178660
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x10170b66
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10170a9e
cmp dword [ebp - 0x18], 0
jne 0x10170b75
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10170b75
cmp ebx, 0x1000
ja 0x10170b9d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x10170b8c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x10178660
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x10170b6d
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10170b10
cmp dword [ebp - 0x18], 0
jne 0x10170b72
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x10170ad0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x10178660
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x10170a9e
call sub.KERNEL32.dll_GetLastError
jmp 0x10170b75
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1043ab10
push ebx
push edi
call fcn.1002ac90
add esp, 0xc
jmp 0x10170bb0
push 0x1043ab10
push 0x1000
push ebx
call fcn.1002ac30
add esp, 0xc
ud2

Function at 0x10174a10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.1017e3a0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x10174a71
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.10177490
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x10174a6e
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x10174a78
mov byte [esi], 4
test edi, edi
jne 0x10174a87
jmp 0x10174a95
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x10174a95
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x10174a95
push ebx
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10174e40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.1017e3a0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x10174f08
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
push 1
call fcn.10177490
add esp, 4
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x10174f05
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x18]
call fcn.1017e3a0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
test ecx, ecx
je 0x10174f12
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 1
call fcn.10177490
add esp, 4
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
test ebx, ebx
je 0x10174f0f
push 1
push ebx
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x10174f3a
mov eax, dword [ebp + 8]
test esi, esi
mov byte [eax], 4
je 0x10174efc
push ebx
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 8]
test edi, edi
je 0x10174f30
jmp 0x10174f20
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x10174f30
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov esi, ecx
mov dword [ecx + 4], eax
test edi, edi
je 0x10174f30
push dword [ebp - 0x1c]
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
test esi, esi
mov esi, ecx
mov byte [ecx], 0
mov dword [ecx + 4], eax
je 0x10174f1c
push ebx
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
jmp 0x10174f1c

Function at 0x101757d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.1017e3a0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x10175836
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.10177490
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x10175833
push dword [ebp + 0x14]
push ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x1017583d
mov byte [esi], 4
test edi, edi
jne 0x1017584c
jmp 0x1017585a
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x1017585a
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1017585a
push ebx
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10175b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10175b64
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10175b6a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x10175b9d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x10175bad
mov dword [esi + 4], 0
jmp 0x10175bbf
cmp eax, 0x103
je 0x10175bd8
test eax, eax
js 0x10175bca
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10175bc2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1043a890
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.101690a0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1014a230
mov ecx, 7
int 0x29
ud2

Function at 0x10175c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10175c84
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10175c8a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x10175cc4
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10175ce8
test eax, eax
js 0x10175cd3
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x10175cde
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1043a890
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.101690a0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1014a230
mov ecx, 7
int 0x29
ud2
Function at 0x10178220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x101782c9
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push 0x10178660
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x10178299
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10178270
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x101782a0
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
jmp 0x101782ad
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push edi
call fcn.1017dcb0
add esp, 4
cmp al, 0xb
jne 0x101782b5
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x101782c1
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x104396d0
push ecx
push ebx
call fcn.1002abd0
add esp, 0xc
ud2

Function at 0x10178750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x10178824
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x1017877d
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x101787f1
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x1017880d
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x101787b7
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x101787d4
jmp 0x101787c8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x101787cf
cmp eax, 0x6d
jne 0x101787e6
mov word [esi], 4
jmp 0x101787de
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x101787de
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.101503f0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x10178788
mov ecx, ebx
push 1
call fcn.101503f0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x10178788
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.1014c350
ud2
Function at 0x1017c080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.1017e3a0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ecx, ecx
je 0x1017c0e5
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.10174340
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1017c0f8
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1017c124
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x1017c166
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0
cmp al, 3
je 0x1017c103
jmp 0x1017c160
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x1017c160
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x1017c152
cmp dword [ebx + 8], 9
jae 0x1017c13e
mov eax, dword [ebp - 0x10]
jmp 0x1017c144
test ebx, ebx
mov dword [esi], 0
je 0x1017c166
push edi
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
jmp 0x1017c166
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1017c800
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1017c845
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x1043ac54
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], fcn.10167360
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x1043ac80
push eax
call fcn.100272b0
add esp, 8
ud2
Function at 0x1017d430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x1044f00c]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
mov eax, dword [0x1048f0f8]
test eax, eax
jne 0x1017d45d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1017d4f0
mov dword [0x1048f0f8], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1017d4f0
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov dword [edi + 4], ecx
push 0
push 0x10000
push edi
push 0x1017d540
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x1017d4a0
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1017d4e6
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x1017d4ca
cmp dword [esi + 8], 9
jb 0x1017d4bc
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call fcn.1001ac80
add esp, 8
ud2
Function at 0x1017d760
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x1017d7c9
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x1017d803
cmp dword [ebp - 0x14], 0
je 0x1017d7ea
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1017d825
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x1048f110]
mov dword [edi + 8], eax
lock cmpxchg dword [0x1048f110], edi
jne 0x1017d7b0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1017d7f9
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1017d865
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x1017d7ee
mov esi, dword [ebp - 0x10]
jmp 0x1017d7f9
mov esi, dword [edi]
jmp 0x1017d7f8
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x1043b04c
push 0x1043b0ac
push eax
call fcn.1014c2f0
add esp, 8
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x1043b064
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x1043b09c
push eax
call fcn.100272b0
add esp, 8
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1043b064
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.1014c3b0
ud2