joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c3cc0
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x100
mov rax, qword [0x14012c240]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, qword [rbp + 0x67]
mov rdi, rdx
mov r12, qword [rbp + 0x77]
mov esi, 0x37
mov byte [rsp + 0x28], r9b
test rcx, rcx
jne 0x1400c3d04
lea eax, [rsi - 0x36]
jmp 0x1400c3ed5
mov ecx, 0x1b8
mov qword [rsp + 0x130], rbx
mov eax, ecx
mov qword [rsp + 0xf8], r13
rol ecx, 8
mov r13d, 2
ror eax, 8
xor ecx, eax
mov qword [rsp + 0xf0], r14
and ecx, 0xff00ff
mov byte [rsp + 0x20], 1
xor ecx, eax
mov dword [rsp + 0x30], ecx
xor r14d, r14d
nop word [rax + rax]
mov r8d, 1
mov dword [rsp + 0x40], 0x6a09e667
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x44], 0xbb67ae85
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
mov qword [rbp - 0x49], r14
mov dword [rbp - 0x41], r14d
mov qword [rbp - 0x39], r14
call fcn.1400bcfb0
mov ebx, eax
test eax, eax
jne 0x1400c3e8b
inc byte [rsp + 0x20]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400bcfb0
mov ebx, eax
test eax, eax
jne 0x1400c3e8b
cmp byte [rsp + 0x28], 4
je 0x1400c3e00
lea r8d, [rax + 1]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.1400bcfb0
mov ebx, eax
test eax, eax
jne 0x1400c3e8b
test r15, r15
jne 0x1400c3e12
cmp dword [rbp + 0x6f], r14d
jbe 0x1400c3e29
mov ebx, 0xffffff53
jmp 0x1400c3e8b
mov r8d, dword [rbp + 0x6f]
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.1400bcfb0
mov ebx, eax
test eax, eax
jne 0x1400c3e8b
test r12, r12
je 0x1400c3e4b
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x1400c3e4b
mov r8d, eax
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1400bcfb0
mov ebx, eax
test eax, eax
jne 0x1400c3e8b
lea rdx, [rbp - 0x29]
lea rcx, [rsp + 0x40]
call fcn.1400bd950
mov ebx, eax
test eax, eax
jne 0x1400c3e8b
cmp esi, 0x20
jbe 0x1400c3e7c
movups xmm0, xmmword [rbp - 0x29]
add esi, 0xffffffe0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
add rdi, 0x20
jmp 0x1400c3e8b
mov r8d, esi
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1400fb190
sub r13, 1
jne 0x1400c3d50
mov r13, qword [rsp + 0xf8]
lea rdx, [rbp - 0x29]
mov ecx, 0x20
nop word [rax + rax]
mov byte [rdx], r14b
lea rdx, [rdx + 1]
add ecx, 0xffffffff
jne 0x1400c3eb0
test ebx, ebx
mov rbx, qword [rsp + 0x130]
setne r14b
mov eax, r14d
mov r14, qword [rsp + 0xf0]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400cf9b0
add rsp, 0x100
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c4020
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push r12
push r13
push r14
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x14012c240]
xor rax, rsp
mov qword [rbp + 8], rax
mov r12, rdx
mov r13, rcx
mov r14d, 1
test rcx, rcx
jne 0x1400c405b
mov eax, r14d
jmp 0x1400c4286
movups xmm0, xmmword [r9]
mov qword [rsp + 0x130], rbx
test r8d, r8d
movups xmm1, xmmword [r9 + 0x10]
mov qword [rsp + 0x128], rsi
mov esi, r14d
cmovne esi, r8d
mov qword [rsp + 0x120], rdi
test sil, 0x1f
mov qword [rsp + 0x118], r15
mov r15d, 0
mov eax, esi
mov ecx, r15d
mov dword [rsp + 0x20], r15d
setne cl
shr eax, 5
add ecx, eax
mov eax, dword [r9 + 0x30]
mov dword [rbp], eax
lea ebx, [r15 + 0x37]
movzx eax, word [r9 + 0x34]
movups xmmword [rbp - 0x30], xmm0
mov word [rbp + 4], ax
movups xmm0, xmmword [r9 + 0x20]
movzx eax, byte [r9 + 0x36]
mov byte [rbp + 6], al
mov dword [rsp + 0x24], ecx
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm0
je 0x1400c4243
mov r8d, ebx
mov dword [rsp + 0x50], 0x6a09e667
lea rdx, [rbp - 0x30]
mov dword [rsp + 0x54], 0xbb67ae85
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], 0x3c6ef372
mov dword [rsp + 0x5c], 0xa54ff53a
mov dword [rsp + 0x60], 0x510e527f
mov dword [rsp + 0x64], 0x9b05688c
mov dword [rsp + 0x68], 0x1f83d9ab
mov dword [rsp + 0x6c], 0x5be0cd19
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
call fcn.1400bcfb0
mov r14d, eax
test eax, eax
jne 0x1400c4243
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400bd950
mov r14d, eax
test eax, eax
jne 0x1400c4243
cmp dword [r13], 1
mov eax, dword [rsp + 0x28]
jbe 0x1400c419f
cmp eax, dword [r13 + 4]
jne 0x1400c419f
cmp byte [r13 + 0x80], 1
je 0x1400c42a1
mov r8d, dword [rsp + 0x24]
mov dl, 1
lea eax, [r8 - 1]
cmp dword [rsp + 0x20], eax
lea ecx, [r8 + 1]
cmovne ecx, r8d
mov dword [rsp + 0x24], ecx
jmp 0x1400c41a5
mov dword [r13 + 4], eax
xor dl, dl
mov byte [r13 + 0x80], dl
test r12, r12
je 0x1400c422f
test esi, esi
je 0x1400c422f
cmp esi, 0x20
jb 0x1400c421c
movups xmm0, xmmword [rsp + 0x28]
add esi, 0xffffffe0
lea rcx, [rbp + 4]
movups xmm1, xmmword [rsp + 0x38]
mov edx, 0x36
lea rax, [rbp + 4]
movups xmmword [r12], xmm0
movups xmmword [r12 + 0x10], xmm1
add r12, 0x20
sub rdx, rcx
nop word [rax + rax]
add byte [rax + 2], 1
jne 0x1400c422f
add byte [rax + 1], 1
jne 0x1400c422f
add byte [rax], 1
jne 0x1400c422f
add byte [rax - 1], 1
jne 0x1400c422f
add byte [rax - 2], 1
jne 0x1400c422f
sub rax, 5
lea rcx, [rdx + rax]
test rcx, rcx
jns 0x1400c41f0
jmp 0x1400c422f
mov r8d, esi
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.1400fb190
mov esi, r15d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp eax, dword [rsp + 0x24]
jl 0x1400c40e1
lea rcx, [rbp - 0x30]
nop word [rax + rax]
mov byte [rcx], r15b
lea rcx, [rcx + 1]
add ebx, 0xffffffff
jne 0x1400c4250
test r14d, r14d
setne r15b
mov eax, r15d
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x128]
mov rbx, qword [rsp + 0x130]
mov r15, qword [rsp + 0x118]
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400cf9b0
add rsp, 0x138
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 3
jmp 0x1400c4266
Function at 0x1400c49a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14012c240]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
test rcx, rcx
jne 0x1400c49ca
mov eax, 0xffffff53
jmp 0x1400c4bc4
mov qword [rsp + 0xb8], rbp
xor ebp, ebp
mov qword [rcx + 0x10], rbp
mov byte [rcx + 0x18], bpl
mov qword [rcx + 8], r9
xor ecx, ecx
mov qword [rsp + 0xc8], rdi
call fcn.1400c5140
test eax, eax
jne 0x1400c4ba9
mov rax, qword [0x1401dee48]
mov ecx, 0x88
mov qword [rsp + 0xc0], rsi
test rax, rax
je 0x1400c4a14
call rax
jmp 0x1400c4a19
call fcn.1400d8a00
mov qword [rbx + 0x10], rax
mov esi, 0x34
test rax, rax
jne 0x1400c4a33
lea edi, [rax - 0x7d]
mov byte [rbx + 0x18], 2
jmp 0x1400c4b6e
mov edi, 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400c4b48
mov rcx, qword [rbx]
lea r8, [rsp + 0x40]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400c4b48
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r12d, 4
mov edi, ebp
mov r14d, ebp
mov r8d, r12d
mov r15, rbp
lea r13d, [r12 - 1]
nop dword [rax]
nop word [rax + rax]
mov eax, r8d
lea rdx, [rsp + 0x40]
add rax, r15
lea rcx, [rsp + 0x40]
add rdx, rax
add rcx, r15
call fcn.140072740
test eax, eax
mov r8d, esi
cmove edi, r13d
add r14d, r12d
sub r8d, r14d
add r15, r12
cmp r8d, r12d
cmova r8d, r12d
cmp r14d, 0x30
jb 0x1400c4ac0
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
test edi, edi
jne 0x1400c4b4c
mov rax, qword [rbx + 8]
lea r8d, [rdi + 0x30]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], ebp
call fcn.1400c48e0
mov edi, eax
test eax, eax
je 0x1400c4b6e
jmp 0x1400c4b4c
mov byte [rbx + 0x18], 2
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c4b6a
mov rax, qword [0x1401dee38]
test rax, rax
je 0x1400c4b65
call rax
jmp 0x1400c4b6a
call fcn.1400d7d54
mov qword [rbx + 0x10], rbp
lea rax, [rsp + 0x40]
mov byte [rax], bpl
lea rax, [rax + 1]
add esi, 0xffffffff
jne 0x1400c4b73
mov rsi, qword [rsp + 0xc0]
test edi, edi
jne 0x1400c4b91
mov byte [rbx + 0x18], 1
jmp 0x1400c4bb2
cmp edi, 3
je 0x1400c4ba9
cmp edi, 1
mov byte [rbx + 0x18], 2
mov eax, 0xffffff39
cmove edi, eax
mov ebp, edi
jmp 0x1400c4bb2
mov byte [rbx + 0x18], 3
mov ebp, 0xffffff2f
mov rdi, qword [rsp + 0xc8]
mov eax, ebp
mov rbp, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400cf9b0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400ce838
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 0x1400ce872
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ce877
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 0x1400ce8c0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140100ad0]
cmp byte [rcx + rax], 0
je 0x1400ce8c0
dec r8
sub rdx, 1
jne 0x1400ce8a6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400d8ffc
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.1400d06b0
sub rsp, rax
mov rax, qword [0x14012c240]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e7024
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d904b
mov rax, rbp
jmp 0x1400d9153
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 + 0x1cda30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400eac90
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1cda30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d914f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d914f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400eac90
test rax, rax
js 0x1400d914f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d914f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d9141
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d9141
cmp byte [rcx], 0xd
jne 0x1400d9127
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d9136
cmp byte [rcx + 1], 0xa
jne 0x1400d9136
inc rcx
jmp 0x1400d9136
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x12c660]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d9109
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d9153
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400cf9b0
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 0x1400e7144
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e715a
mov al, 1
jmp 0x1400e71ba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e716b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e71b8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ef258
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e71b8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e71b8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e71b8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e71ba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e9e10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401cda30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e9e67
cmp word [rdx], r13w
jne 0x1400e9e67
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e9e6c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e9f91
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e9fb2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e9ea5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e9ecc
cmp r9, r8
jae 0x1400e9edc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e9e86
jmp 0x1400e9f91
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e9f86
cmp dword [rsp + 0x80], esi
je 0x1400e9f86
lea r8, [0x1401cda30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e9f5e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e9f2e
mov word [rbx], r13w
jmp 0x1400e9f8e
mov ecx, recvfrom
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e9f3b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e9f8e
cmp word [rsp + 0x70], r13w
jne 0x1400e9f6b
cmp rbx, r14
je 0x1400e9f28
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400eac98
cmp word [rsp + 0x70], r13w
je 0x1400e9f91
mov ecx, recvfrom
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401cda30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e9f8b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e9f91
Function at 0x1400f03f4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400f047b
mov rsi, rbx
cmp word [rax], bp
je 0x1400f043a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f0424
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f0420
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ead3c
mov rdi, rax
test rax, rax
je 0x1400f0468
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400fb190
mov rbp, rdi
xor ecx, ecx
call fcn.1400e89c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f2c48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400e7604
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400f2ce9
cmp ebx, dword [rsp + 0x30]
je 0x1400f2ce2
test esi, esi
je 0x1400f2ce2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f2cbd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f2cca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f2ca7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f2cce
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f2ceb
mov eax, 1
jmp 0x1400f2ceb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f64d8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400eac98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400eac98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f6628
cmp rax, 0xffffffffffffffff
je 0x1400f6628
xor edi, edi
test rbp, rbp
jle 0x1400f65d3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e8fac
mov rbx, rax
test rax, rax
jne 0x1400f6560
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f65c9
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e558c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400e86b8
cmp eax, 0xffffffff
je 0x1400f65a9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f6570
mov edx, r15d
mov ecx, r14d
call fcn.1400e558c
jmp 0x1400f65c9
cmp byte [rsi + 0x38], dil
je 0x1400f65c0
cmp dword [rsi + 0x34], 5
jne 0x1400f65c0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x1400f65c9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e89c0
jmp 0x1400f663c
jns 0x1400f663c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400eac98
cmp rax, 0xffffffffffffffff
jne 0x1400f65f4
cmp byte [rsi + 0x30], dil
je 0x1400f663c
mov edi, dword [rsi + 0x2c]
jmp 0x1400f663c
mov ecx, r14d
call fcn.1400ef258
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f663c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
jmp 0x1400f663c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f6635
mov eax, dword [rsi + 0x2c]
jmp 0x1400f663a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400eac98
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.xP5_]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [str.tP5_]
mov dword [rax], 1
mov rax, qword [str.pP5_]
mov dword [rax], 1
mov rax, qword [0x1403522d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140352310]
mov dword [0x14035500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1403523e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1403523c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140352280]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1401a12e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1401a1350
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403550a4]
mov rbx, rcx
test esi, esi
jle 0x1401a1480
mov rax, qword [0x1403550a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401a139b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401a1425
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401a1380
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1401a14a2
mov rax, qword [0x1403550a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403550a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x1401a1487
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401a141e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401a1430
add dword [0x1403550a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1403550a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1401a141e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1401a13a8
mov rax, qword [0x1403550a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401a1a10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140355100]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1403550e0]
test rbx, rbx
je 0x1401a1a6c
mov rbp, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1401a1a63
test rsi, rsi
je 0x1401a1a63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401a1a48
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]