joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d6fd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d80b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d79d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d7a6a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d7a4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7a42
cmp qword [rbp - 0x10], 0
je 0x2fc4d7a42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d7a08
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d7a6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7b70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7b98
mov eax, 0
jmp 0x2fc4d7be6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7bc1
mov eax, 0
jmp 0x2fc4d7be6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7be1
mov eax, 0
jmp 0x2fc4d7be6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7bec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d7c6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7c61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d7c61
mov rax, qword [rbp - 8]
jmp 0x2fc4d7c7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d7c34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001380
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rcx
lea rcx, str.Advapi32
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x24], r8d
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x48
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140039490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400394a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140019690
jmp 0x14000123c
mov rax, qword [0x1400394a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400394a0]
mov dword [rax], 1
mov rax, qword [0x1400394e0]
mov rdx, rax
mov rax, qword [0x1400394d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14003d024], 1
mov rax, qword [0x1400394a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400394c0]
mov rdx, rax
mov rax, qword [0x1400394b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400394a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140039490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400393e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400393e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140018918
mov rax, qword [0x140039520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140039480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140018110
mov eax, dword [0x14003d004]
lea rdx, [0x14003d008]
mov ecx, eax
call fcn.14000147c
call fcn.140017ea7
mov rax, qword [0x140039410]
mov rax, qword [rax]
mov rdx, qword [0x14003d010]
mov qword [rax], rdx
mov rcx, qword [0x14003d010]
mov rdx, qword [0x14003d008]
mov eax, dword [0x14003d004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14003d01c], eax
mov eax, dword [0x14003d020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14003d01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14003d024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14003d01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140018120
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140019480
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140018df2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14003d168]
test eax, eax
je 0x140018e8a
lea rax, [0x14003d140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14003d170]
mov qword [rbp - 8], rax
jmp 0x140018e6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140018e62
cmp qword [rbp - 0x10], 0
je 0x140018e62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140018e28
lea rax, [0x14003d140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140018e8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140018f90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140018fb8
mov eax, 0
jmp 0x140019006
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140018fe1
mov eax, 0
jmp 0x140019006
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140019001
mov eax, 0
jmp 0x140019006
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001900c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001908a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140019081
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140019081
mov rax, qword [rbp - 8]
jmp 0x14001909f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140019054
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004b38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140004b72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140004b77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140004bc0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400073c0]
cmp byte [rcx + rax], 0
je 0x140004bc0
dec r8
sub rdx, 1
jne 0x140004ba6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005bc4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d8fca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8fc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8fc1
mov rax, qword [rbp - 8]
jmp 0x2fc4d8fdf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8f94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005000
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140005058
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x78
ret
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
setl al
and al, 1
cmp al, 0
je 0x140005166
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rax]
add rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x5c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x5c], 0
setbe al
and al, 1
cmp al, 0
jne 0x14000511c
cmp dword [rsp + 0x38], 0
jne 0x140005153
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x28]
mov eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
mov eax, dword [rsp + 0x5c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x140005098
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
Function at 0x140015530
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov cx, word [rax + 0xe]
mov word [rsp + 0xc], cx
mov cx, word [rax + 0xc]
mov word [rsp + 0xe], cx
mov cx, word [rax + 0xa]
mov word [rsp + 0x10], cx
mov cx, word [rax + 8]
mov word [rsp + 0x12], cx
mov cx, word [rax + 6]
mov word [rsp + 0x14], cx
mov cx, word [rax + 4]
mov word [rsp + 0x16], cx
mov cx, word [rax]
mov word [rsp + 0x18], cx
mov cx, word [rax + 2]
mov word [rsp + 0x1a], cx
mov ax, word [rax + 0x10]
mov word [rsp + 0x1c], ax
mov cx, ax
mov word [rsp + 0x1e], cx
sub ax, 1
je 0x1400155ad
jmp 0x1400155a0
mov ax, word [rsp + 0x1e]
sub ax, 2
je 0x1400155c1
jmp 0x1400155da
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
mov eax, 1
add rsp, 0x58
pop rdi
pop rsi
ret
mov ax, word [rsp + 0x1c]
mov cx, word [rsp + 0xc]
mov dx, word [rsp + 0xe]
mov r8w, word [rsp + 0x10]
mov r9w, word [rsp + 0x12]
mov r10w, word [rsp + 0x14]
mov r11w, word [rsp + 0x16]
mov si, word [rsp + 0x1a]
mov di, word [rsp + 0x18]
mov word [rsp + 0x2e], di
mov word [rsp + 0x30], si
mov word [rsp + 0x32], r11w
mov word [rsp + 0x34], r10w
mov word [rsp + 0x36], r9w
mov word [rsp + 0x38], r8w
mov word [rsp + 0x3a], dx
mov word [rsp + 0x3c], cx
mov word [rsp + 0x3e], ax
ud2
Function at 0x140019cf0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x1a8
mov qword [rsp + 0x88], r9
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], rcx
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0xa8], rax
mov r9, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov qword [rsp + 0x108], r8
mov qword [rsp + 0x100], rdx
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x108]
cmp byte [rax + 0x129], 0
sete al
and al, 1
cmp al, 0
setne cl
and cl, 1
lea rdx, str.you_can_only_call_body_once_per_request
lea r8, str.C:_Users_Jshaw_Odin_odin_http_body.odin
call fcn.14003d400
mov rax, qword [rsp + 0x108]
mov rcx, rax
add rcx, 0x78
mov qword [rsp + 0x78], rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], 0
mov rax, qword [rax + 0x78]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x138], rax
movabs rcx, 0x9e3779b97f4a7c15
add rax, rcx
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x130]
shr rcx, 0x1e
xor rax, rcx
movabs rcx, 0xbf58476d1ce4e5b9
imul rax, rcx
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x130]
shr rcx, 0x1b
xor rax, rcx
movabs rcx, 0x94d049bb133111eb
imul rax, rcx
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x130]
mov rax, qword [rsp + 0x130]
shr rax, 0x1f
xor rcx, rax
lea rax, str.transfer_encoding
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x148], rcx
lea rax, str.transfer_encoding
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x140]
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x180], rdx
movabs rdx, 0xcbf29ce484222325
add rcx, rdx
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x160], 0
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x168], rax
jge 0x140019f8b
mov rax, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
movzx ecx, byte [rcx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x170]
add rax, 1
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x168]
add rax, 1
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x160]
add rax, 1
mov qword [rsp + 0x160], rax
jmp 0x140019efc
mov rax, qword [rsp + 0x78]
movabs rcx, 0x7fffffffffffffff
and rcx, qword [rsp + 0x178]
mov qword [rsp + 0x178], rcx
mov rcx, qword [rsp + 0x178]
cmp qword [rsp + 0x178], 0
sete dl
and dl, 1
movzx edx, dl
or rcx, rdx
mov qword [rsp + 0x70], rcx
cmp qword [rax + 8], 0
je 0x14001a122
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x198], 0
mov r9, qword [rax]
mov rcx, r9
and rcx, 0x3f
mov r8d, 1
shl r8, cl
mov rcx, r8
xor r8d, r8d
ror byte [rcx - 0x7d], 0xf9
add byte [rcx + 0xf], cl
enter 0xffffffffffff8948, 0x4c
and al, 0x48
Function at 0x140038e70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x80], rcx
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140038ebc
mov rax, qword [rsp + 0x38]
mov qword [rax], 0
xor eax, eax
add rsp, 0x88
ret
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x68]
setl al
and al, 1
cmp al, 0
je 0x140038fcf
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], r9
mov rax, qword [rax + 8]
lea rcx, str.C:_Users_Jshaw_Odin_Odin_core_os_file_windows.odin
mov edx, 0x5b
mov r8d, 0x30
mov qword [rsp + 0x20], rax
call fcn.140003990
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rdx, rax
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x7c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x7c], 0
setbe al
and al, 1
cmp al, 0
jne 0x140038f96
cmp dword [rsp + 0x58], 0
jne 0x140038fbc
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x38]
mov eax, eax
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov qword [rcx], rdx
add rsp, 0x88
ret
mov eax, dword [rsp + 0x7c]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
jmp 0x140038edb
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x88
ret
Function at 0x14003c480
Capabilities:
Get file size

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_GetFileSizeEx
cmp eax, 0
jne 0x14003c4c5
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rdx
add rsp, 0x48
ret

Function at 0x14003d520
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14003d5ee
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Users_Jshaw_Odin_Odin_core_os_file_windows.odin
mov edx, 0xe5
mov r8d, listen
mov r9d, 0x40000000
call fcn.140004360
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
jne 0x14003d6f6
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret