joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400923b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rbx, rcx
jne 0x1400923da
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140101a58]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.140092980
cmp byte [rbx], 0
mov rbp, rax
je 0x140092411
test rax, rax
jne 0x14009241a
jmp 0x1400924b2
test rbp, rbp
jne 0x1400924ad
test rdi, rdi
je 0x1400924ad
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14009248f
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x14009248f
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140092460
mov rax, qword [0x140101a58]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400924ad
mov edx, 1
call fcn.1400016f0
cmp byte [rbx], 0
je 0x1400924c6
xor r9d, r9d
mov r8, rbp
movzx edx, r14b
mov rcx, rbx
call fcn.1400924f0
jmp 0x1400924d2
movzx edx, r14b
mov rcx, rbx
call fcn.1400926e0
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400926e0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400c0680
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x1400928a4
xor edx, edx
call fcn.1400928c0
test eax, eax
jne 0x140092720
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140101a58]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.140092980
mov ecx, dword [0x140108274]
xor ebp, ebp
test rax, rax
mov dword [rsp + 0x30], ebp
lea rax, [0x1400cffcc]
mov dword [rsp + 0x1884], ebp
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [0x140108274], ecx
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x1400927aa
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x1400927b2
mov byte [rsp + 0x1881], 1
mov rax, qword [0x140108280]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x18a0], ecx
lea rcx, [0x140092aa0]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x140092868
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [0x140091160]
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x140092830
mov rcx, qword [rsp + 0x1888]
call fcn.140091ff0
mov qword [rsp + 0x1888], r10
jmp 0x140092838
mov r10, qword [rsp + 0x1888]
mov rcx, r10
call fcn.14008fe20
mov rcx, qword [rsp + 0x1888]
call fcn.140091ff0
mov rcx, qword [0x140101a58]
mov ecx, dword [rcx + 0x74]
cmp ecx, 0xffffffff
jle 0x140092894
mov edx, 1
call fcn.1400016f0
jmp 0x140092894
mov eax, dword [0x140108274]
test eax, eax
je 0x140092894
cmp eax, 1
mov dword [0x140108274], ebp
setg al
test al, al
je 0x140092894
mov rcx, rsi
call fcn.140091ff0
xor edx, edx
mov rcx, rbx
call fcn.1400926e0
mov rsi, qword [rsp + 0x11cf8]
mov rbp, qword [rsp + 0x11cf0]
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
Function at 0x1400af2c8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400af09c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400af09c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400af09c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400af09c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400af09c
cmp dword [rcx + 0x84], 0xe
jbe 0x1400af09c
cmp dword [rcx + 0xf8], esi
je 0x1400af09c
mov ecx, r14d
call fcn.1400af1e4
mov ecx, 2
call fcn.1400b8500
nop
cmp byte [0x140104b08], 0
jne 0x1400af166
mov r15d, 1
mov eax, r15d
xchg dword [0x140104afc], eax
test ebx, ebx
jne 0x1400af10f
mov rdi, qword [0x140101018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140104b00]
cmp rcx, rax
je 0x1400af106
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140017e30]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140104d40]
jmp 0x1400af11b
cmp ebx, r15d
jne 0x1400af121
lea rcx, [0x140104d58]
call fcn.1400b5120
nop
test ebx, ebx
jne 0x1400af138
lea rdx, [0x1400c7fa0]
lea rcx, [0x1400c7f80]
call fcn.1400b54b4
lea rdx, [0x1400c7fb0]
lea rcx, [0x1400c7fa8]
call fcn.1400b54b4
movzx eax, byte [0x140104b08]
test esi, esi
cmove eax, r15d
mov byte [0x140104b08], al
jmp 0x1400af166
mov ecx, 2
call fcn.1400b8554
test esi, esi
jne 0x1400af17d
mov ecx, r14d
call fcn.1400af198
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400af02c
Function at 0x140001599
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rcx
mov rcx, r8
mov rdi, rdx
mov rbx, r8
mov rsi, r9
call sub.msvcrt.dll_malloc
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov dword [rsp + 0x20], 0x10000000
xor ecx, ecx
mov r12, rax
mov dword [rsp + 0x4c], 0
call sub.WINHTTP.dll_WinHttpOpen
mov r14, rax
test rax, rax
jne 0x1400015fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.___ERROR:_WinHttpOpen_____GetLastError_Status:__d____n
mov edx, eax
jmp 0x140001626
xor r9d, r9d
mov r8d, 0x50
mov rdx, rbp
mov rcx, rax
call sub.WINHTTP.dll_WinHttpConnect
mov r15, rax
test rax, rax
jne 0x140001641
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.___ERROR:_WinHttpConnect_____GetLastError_Status:__d____n
mov edx, eax
call fcn.140001550
mov rcx, r13
call sub.WINHTTP.dll_WinHttpCloseHandle
test r15, r15
je 0x14000173d
jmp 0x140001735
mov dword [rsp + 0x30], 0x100
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, rax
mov qword [rsp + 0x20], 0
call sub.WINHTTP.dll_WinHttpOpenRequest
mov r13, rax
test rax, rax
jne 0x14000168c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.___ERROR:_WinHttpOpenRequest_____GetLastError_Status:__d____n
mov edx, eax
call fcn.140001550
jmp 0x140001735
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], 0
mov rcx, rax
mov dword [rsp + 0x20], 0
call sub.WINHTTP.dll_WinHttpSendRequest
test eax, eax
jne 0x1400016cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.___ERROR:_WinHttpSendRequest_____GetLastError_Status:__d____n
mov edx, eax
jmp 0x140001626
xor edx, edx
mov rcx, r13
call sub.WINHTTP.dll_WinHttpReceiveResponse
test eax, eax
jne 0x1400016ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.___ERROR:_WinHttpReceiveResponse_____GetLastError_Status:__d____n
mov edx, eax
jmp 0x140001626
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r12
mov rcx, r13
call sub.WINHTTP.dll_WinHttpReadData
test eax, eax
jne 0x14000171a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.___ERROR:_WinHttpReadData_____GetLastError_Status:__d____n
mov edx, eax
jmp 0x140001626
mov edx, dword [rsp + 0x4c]
cmp rdx, rbx
jae 0x14000172e
mov rcx, r12
call sub.msvcrt.dll_realloc
mov r12, rax
mov qword [rsi], r12
xor eax, eax
jmp 0x14000175d
mov rcx, r15
call sub.WINHTTP.dll_WinHttpCloseHandle
test r14, r14
je 0x14000174a
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
or eax, 0xffffffff
test r12, r12
je 0x14000175d
mov rcx, r12
call sub.msvcrt.dll_free
or eax, 0xffffffff
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001770
Capabilities:
Enumerate process modules

Disassembly:
push r14
mov eax, 0x4140
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140002bc0
sub rsp, rax
lea rbp, [rsp + 0x140]
lea r8, [rsp + 0x28]
mov rsi, rcx
mov rdi, rdx
mov rcx, rbp
mov edx, 0x4000
call sub.PSAPI.DLL_EnumProcesses
mov r8d, eax
or eax, 0xffffffff
test r8d, r8d
je 0x140001848
xor ebx, ebx
lea r13, [rsp + 0x2c]
mov r8d, dword [rbp + rbx*4]
test r8d, r8d
je 0x140001833
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140001833
lea rdx, [rsp + 0x30]
mov r9, r13
mov r8d, 8
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000182a
lea r14, [rsp + 0x3c]
mov rdx, qword [rsp + 0x30]
mov r9d, 0x20
mov rcx, r12
mov r8, r14
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x14000182a
mov rdx, rsi
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14000182a
mov eax, dword [rbp + rbx*4]
mov dword [rdi], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
inc rbx
shr eax, 2
cmp rax, rbx
jae 0x1400017bd
xor eax, eax
add rsp, 0x4140
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140001df0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007d80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007d80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000e0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140002010
mov rax, qword [0x14000e0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001eac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001f37
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001e90
mov rcx, r12
call fcn.140002910
mov rbp, rax
test rax, rax
je 0x14000206d
mov rax, qword [0x14000e0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002a40
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000e0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002052
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f30
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001fc0
add dword [0x14000e0a4], 1
cmp ebx, 8
jae 0x140001f68
test bl, 4
jne 0x140002020
test ebx, ebx
je 0x140001f59
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002040
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001f59
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001f9a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000e0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001df0
xor edi, edi
jmp 0x140001eb7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001f59
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001f59
mov rax, qword [0x14000e0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001df0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001df0
nop
nop dword [rax]
Function at 0x140002580
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000e100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x1400025d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400025cb
test r12, r12
je 0x1400025cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025b0
lea rcx, [0x14000e100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002910
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000ab20]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002989
mov rcx, r10
call fcn.1400027e0
test eax, eax
je 0x140002989
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002986
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000297d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002989
add r8, 0x28
cmp r8, r9
jne 0x140002968
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400028c0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002940
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002937
nop dword [rax + rax]
lea rdx, str.taskmgr.exe
lea rcx, [rsp + 0x4c]
call fcn.1400299e0
mov rcx, rbx
test eax, eax
je 0x14000295b
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140009110
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140002942
Function at 0x14000804c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000807a
xor eax, eax
jmp 0x140008160
cmp qword [rcx + 0x68], 0
je 0x14000808b
call fcn.14000817c
jmp 0x140008160
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400080a2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400080a4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400080d6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140028e20
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000815a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000810d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140008136
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400125cc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000815a
cmp rsi, rbx
ja 0x140008114
test rsi, rsi
je 0x14000815a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400125cc
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140009f88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009fd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009fd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009fd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009fd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140009fd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009fd4
xor al, al
add rsp, 0x28
ret
Function at 0x14001578c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400157fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400157fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400157fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400157fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400157fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400157fb
cmp dword [rcx + 0xf8], 0
je 0x1400157fb
mov ecx, ebx
call fcn.1400158a0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140015694
nop
cmp dword [rbp + 0x20], 0
jne 0x14001585c
call fcn.140021840
cmp eax, 1
jne 0x14001584c
xor dl, dl
jmp 0x140015856
call fcn.14002180c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140015867
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015870
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001578c

Function at 0x140015974
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001578c

Function at 0x14001b2f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140042050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14001b35d
test rax, rax
jne 0x14001b34b
lea r9, str.GetLocaleInfoEx
lea r8, [0x140030358]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.14001af08
test rax, rax
je 0x14001b35d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140028de0
jmp 0x14001b377
xor edx, edx
mov rcx, rbp
call fcn.14001b5e8
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001ce00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140009770
sub rsp, rax
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400199a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001ce4f
mov rax, rbp
jmp 0x14001cf5b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3e470]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001dfe8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e470]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001cf57
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001cf57
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001dfe8
test rax, rax
js 0x14001cf57
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001cf57
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001cf49
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001cf49
cmp byte [rcx], 0xd
jne 0x14001cf2f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001cf3e
cmp byte [rcx + 1], 0xa
jne 0x14001cf3e
inc rcx
jmp 0x14001cf3e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001cf11
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001cf5b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009110
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001d17c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d192
mov al, 1
jmp 0x14001d1fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d1a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d1fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021b1c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d1fc
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d1fc
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d1fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d1fe
xor al, al
add rsp, 0x20
pop rbx
ret