joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c32f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140128240]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
test rcx, rcx
jne 0x1400c331a
mov eax, 0xffffff53
jmp 0x1400c3514
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.1400c3a90
test eax, eax
jne 0x1400c34f9
mov rax, qword [0x1401dacb8]
mov ecx, 0x88
mov qword [rsp + 0xc0], rsi
test rax, rax
je 0x1400c3364
call rax
jmp 0x1400c3369
call fcn.1400d7390
mov qword [rbx + 0x10], rax
mov esi, 0x34
test rax, rax
jne 0x1400c3383
lea edi, [rax - 0x7d]
mov byte [rbx + 0x18], 2
jmp 0x1400c34be
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 0x1400c3498
mov rcx, qword [rbx]
lea r8, [rsp + 0x40]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400c3498
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.140070e30
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 0x1400c3410
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
test edi, edi
jne 0x1400c349c
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.1400c3230
mov edi, eax
test eax, eax
je 0x1400c34be
jmp 0x1400c349c
mov byte [rbx + 0x18], 2
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c34ba
mov rax, qword [0x1401daca8]
test rax, rax
je 0x1400c34b5
call rax
jmp 0x1400c34ba
call fcn.1400d66e4
mov qword [rbx + 0x10], rbp
lea rax, [rsp + 0x40]
mov byte [rax], bpl
lea rax, [rax + 1]
add esi, 0xffffffff
jne 0x1400c34c3
mov rsi, qword [rsp + 0xc0]
test edi, edi
jne 0x1400c34e1
mov byte [rbx + 0x18], 1
jmp 0x1400c3502
cmp edi, 3
je 0x1400c34f9
cmp edi, 1
mov byte [rbx + 0x18], 2
mov eax, 0xffffff39
cmove edi, eax
mov ebp, edi
jmp 0x1400c3502
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.1400ce320
add rsp, 0xa0
pop rbx
ret
Function at 0x1400cb400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r13
mov rbp, r8
mov rbx, rdx
mov r11, rcx
mov rsi, rdx
movabs r12, 0x82434fe90edcef39
movabs r13, 0xec99bf0d8372caab
cmp rdx, 0x20
jbe 0x1400cb4fd
mov qword [rsp + 0x28], rdi
mov rdi, r8
mov qword [rsp + 0x30], r14
mov r14, rdx
ror r14, 0x11
ror rdi, 0x11
add r14, r8
mov qword [rsp + 0x38], r15
xor rdi, rdx
lea r15, [rdx - 0x1f]
add r15, rcx
nop
mov r10, qword [r11 + 0x10]
mov rax, qword [r11]
mov r8, qword [r11 + 0x18]
mov r9, qword [r11 + 8]
add r11, 0x20
lea rdx, [r10 + rdi]
ror rdx, 0x11
xor rdx, rax
lea rcx, [r8 + r14]
ror rax, 0x29
xor rax, rbp
ror rcx, 0x11
add r14, rax
xor rcx, r9
ror r9, 0x1f
lea rax, [rdx + r8]
imul rax, r12
xor r9, rsi
xor rbp, rax
sub rdi, r9
lea rax, [rcx + r10]
imul rax, r13
xor rsi, rax
cmp r11, r15
jb 0x1400cb460
mov r15, qword [rsp + 0x38]
mov rax, r14
ror rax, 0x11
movabs rcx, 0xcb5af53ae3aaac31
add rax, rdi
ror rdi, 0x11
add rdi, r14
mov r14, qword [rsp + 0x30]
imul rax, rcx
xor rbp, rax
movabs rax, 0xc060724a8424f345
imul rdi, rax
xor rsi, rdi
mov rdi, qword [rsp + 0x28]
and ebx, 0x1f
movabs r8, 0x9c06faf4d023e3ab
cmp rbx, 0x18
ja case.default.0x1400cb526
lea rdx, [0x140000000]
movzx eax, byte [rdx + rbx + 0xcb5e8]
mov ecx, dword [rdx + rax*4 + 0xcb5d8]
add rcx, rdx
jmp rcx
mov rax, r8
mul qword [r11]
xor rdx, rax
add rsi, rdx
add r11, 8
movabs rax, 0xbd9cacc22c6e9571
mul qword [r11]
xor rdx, rax
add rbp, rdx
add r11, 8
movabs rax, 0xd4f06db99d67be4b
mul qword [r11]
xor rdx, rax
add rsi, rdx
add r11, 8
neg ebx
and ebx, 7
lea ecx, [rbx*8]
test r11, 0xff8
je 0x1400cb588
mov eax, ebx
sub r11, rax
mov rdx, qword [r11]
shr rdx, cl
jmp 0x1400cb595
mov rdx, 0xffffffffffffffff
shr rdx, cl
and rdx, qword [r11]
mov rax, r12
mul rdx
xor rdx, rax
add rbp, rdx
mov rbx, qword [rsp + 0x40]
lea rcx, [rsi + rbp]
ror rcx, 0x11
xor rsi, rbp
imul rsi, r13
mov rax, r8
mul rcx
mov rcx, rax
mov rax, rsi
ror rax, 0x29
xor rdx, rcx
xor rax, rsi
add rax, rdx
pop r13
pop r12
pop rsi
pop rbp
ret

Function at 0x1400cd108
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 0x1400cd142
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400cd147
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 0x1400cd190
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400fd820]
cmp byte [rcx + rax], 0
je 0x1400cd190
dec r8
sub rdx, 1
jne 0x1400cd176
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400cd6dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400cd220
mov ebx, eax
test eax, eax
jne 0x1400cd70c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400cd768
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400cd75f
test al, 0x10
je 0x1400cd75f
bt eax, 0xa
jae 0x1400cd758
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400cd780
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400cd754
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400cd778
test edi, edi
jne 0x1400cd75f
and dword [rsp + 0x3c], 0
jmp 0x1400cd764
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400e079c
int3

Function at 0x1400cf230
Capabilities:
Parse pe header

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

Function at 0x1400d58dc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400d58fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e0890
or eax, 0xffffffff
jmp 0x1400d58fe
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400d74d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400d7507
call fcn.1400e091c
mov dword [rax], 0x16
call fcn.1400d72f8
xor eax, eax
jmp 0x1400d7595
mov rdx, r9
mov rcx, r8
call fcn.1400d746c
mov rbx, rax
test rax, rax
je 0x1400d7592
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d7398]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400d757f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e0890
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d7566
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d7575
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e66e0
jmp 0x1400d7592
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d758f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d798c
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.1400cefa0
sub rsp, rax
mov rax, qword [0x140128240]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e4d44
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d79db
mov rax, rbp
jmp 0x1400d7ae3
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 + 0x1c98a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e89b0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1c98a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d7adf
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 0x1400d7adf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e89b0
test rax, rax
js 0x1400d7adf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d7adf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d7ad1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d7ad1
cmp byte [rcx], 0xd
jne 0x1400d7ab7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d7ac6
cmp byte [rcx + 1], 0xa
jne 0x1400d7ac6
inc rcx
jmp 0x1400d7ac6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x128660]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d7a99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d7ae3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ce320
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 0x1400e2554
Capabilities:
Parse pe header

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

Function at 0x1400e4e64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e4e7a
mov al, 1
jmp 0x1400e4eda
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e4e8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e4ed8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ec868
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e4ed8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e4ed8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e4ed8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e4eda
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e7b30
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, [0x1401c98a0]
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 0x1400e7b87
cmp word [rdx], r13w
jne 0x1400e7b87
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e7b8c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e7cb1
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e7cd2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e7bc5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e7bec
cmp r9, r8
jae 0x1400e7bfc
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 0x1400e7ba6
jmp 0x1400e7cb1
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 0x1400e7ca6
cmp dword [rsp + 0x80], esi
je 0x1400e7ca6
lea r8, [0x1401c98a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e7c7e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e7c4e
mov word [rbx], r13w
jmp 0x1400e7cae
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 0x1400e7c5b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e7cae
cmp word [rsp + 0x70], r13w
jne 0x1400e7c8b
cmp rbx, r14
je 0x1400e7c48
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e89b8
cmp word [rsp + 0x70], r13w
je 0x1400e7cb1
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, [0x1401c98a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e7cab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e7cb1
Function at 0x1400eda04
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 0x1400eda8b
mov rsi, rbx
cmp word [rax], bp
je 0x1400eda4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400eda34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400eda30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e8a5c
mov rdi, rax
test rax, rax
je 0x1400eda78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f87a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e66e0
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 0x1400f0258
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.1400e5324
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 0x1400f02f9
cmp ebx, dword [rsp + 0x30]
je 0x1400f02f2
test esi, esi
je 0x1400f02f2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f02cd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f02da
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f02b7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f02de
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f02fb
mov eax, 1
jmp 0x1400f02fb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f3ae4
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.1400e89b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e89b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f3c34
cmp rax, 0xffffffffffffffff
je 0x1400f3c34
xor edi, edi
test rbp, rbp
jle 0x1400f3bdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e6ccc
mov rbx, rax
test rax, rax
jne 0x1400f3b6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f3bd5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e32ac
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.1400e63d8
cmp eax, 0xffffffff
je 0x1400f3bb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f3b7c
mov edx, r15d
mov ecx, r14d
call fcn.1400e32ac
jmp 0x1400f3bd5
cmp byte [rsi + 0x38], dil
je 0x1400f3bcc
cmp dword [rsi + 0x34], 5
jne 0x1400f3bcc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x1400f3bd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e66e0
jmp 0x1400f3c48
jns 0x1400f3c48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e89b8
cmp rax, 0xffffffffffffffff
jne 0x1400f3c00
cmp byte [rsi + 0x30], dil
je 0x1400f3c48
mov edi, dword [rsi + 0x2c]
jmp 0x1400f3c48
mov ecx, r14d
call fcn.1400ec868
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f3c48
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 0x1400f3c48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f3c41
mov eax, dword [rsi + 0x2c]
jmp 0x1400f3c46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e89b8
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 0x1400f4e10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400f4e38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400f4e38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d3b20
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d4522
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d45ba
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d459e
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 0x2fc4d4592
cmp qword [rbp - 0x10], 0
je 0x2fc4d4592
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 0x2fc4d4558
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d45bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d46c0
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 0x2fc4d46e8
mov eax, 0
jmp 0x2fc4d4736
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 0x2fc4d4711
mov eax, 0
jmp 0x2fc4d4736
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 0x2fc4d4731
mov eax, 0
jmp 0x2fc4d4736
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d473c
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 0x2fc4d47ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d47b1
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 0x2fc4d47b1
mov rax, qword [rbp - 8]
jmp 0x2fc4d47cf
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 0x2fc4d4784
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002943c
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.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
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.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
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 0x140001950
Capabilities:
Parse pe header

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