joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ff014
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400feff1
call fcn.1400fde68
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400fe498
or eax, 0xffffffff
jmp 0x1400ff00e
sub dword [rcx + 0x10], 1
jns 0x1400ff000
add rsp, 0x28
jmp fcn.140112040
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400fefd0

Function at 0x140109aa0
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 0x1401098ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401098ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401098ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401098ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401098ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1401098ff
cmp dword [rcx + 0xf8], 0
je 0x1401098ff
mov ecx, ebx
call fcn.1401099bc
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.14010978c
nop
cmp dword [rbp + 0x20], 0
je 0x14010994d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140109958
int3
xor r8d, r8d
xor edx, edx
jmp 0x140109890

Function at 0x14010c6f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14013d060]
mov rbp, rcx
call fcn.14011753c
xor edi, edi
test rax, rax
je 0x14010c7d6
mov ebx, edi
call fcn.1400fde68
mov r14d, dword [rax]
call fcn.1400fde68
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140117488
mov rsi, rax
test rax, rax
je 0x14010c767
call fcn.1400fde68
mov dword [rax], r14d
jmp 0x14010c791
call fcn.1400fde68
cmp dword [rax], 0x22
jne 0x14010c7ce
call fcn.1400fde68
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140117488
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14010c7ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14010c795
cmp rax, 3
je 0x14010c7b0
mov rcx, rsi
call fcn.14010c64c
test al, al
je 0x14010c7c1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14010c7c1
mov dil, 1
mov rcx, rbx
call fcn.14010053c
mov al, dil
jmp 0x14010c7d8
mov rcx, rbx
call fcn.14010053c
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400f1ea0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14010f330
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140237080]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14010f38e
cmp word [rdx], r12w
jne 0x14010f38e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14010f394
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14010f4ef
mov r9d, reloc.WLDAP32.dll_Ordinal_26
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14010f4ca
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14010f3cd
mov rcx, r9
jmp 0x14010f3f0
cmp r9, rdx
jae 0x14010f407
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.WLDAP32.dll_Ordinal_26
add rbx, 2
cmp rcx, rdx
jb 0x14010f3b1
jmp 0x14010f4ef
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14010f4c4
cmp dword [rsp + 0x80], edi
je 0x14010f4c4
mov rdx, r14
lea r11, [0x140237080]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14010f49d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14010f470
mov word [rbx], r12w
jmp 0x14010f4eb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14010f479
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14010f4eb
cmp word [rsp + 0x70], r12w
jne 0x14010f4aa
cmp rbx, rsi
je 0x14010f46a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14010d1f8
cmp word [rsp + 0x70], r12w
je 0x14010f4ef
mov word [rbx], r13w
jmp 0x14010f4eb
lea r11, [0x140237080]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14010f4e7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14010f4ef
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140112040
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140112072
call fcn.1400fde68
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400fe498
jmp 0x140112191
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140112191
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140112191
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401120a1
lock or dword [rcx + 0x14], 0x10
jmp 0x140112191
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401120b5
call fcn.14011343c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140111b4c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14010f7dc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14011217f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14011214a
mov rcx, rsi
call fcn.140111b4c
cmp eax, edi
je 0x140112135
mov rcx, rsi
call fcn.140111b4c
cmp eax, 0xfffffffe
je 0x140112135
mov rcx, rsi
call fcn.140111b4c
movsxd rbx, eax
lea r14, [0x140237080]
mov rcx, rsi
sar rbx, 6
call fcn.140111b4c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14011213c
lea rdx, [0x1402350d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14011214a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14011216e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14011216e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14011216e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140112194
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140116fcc
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.14010d1f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010d1f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14011711c
cmp rax, 0xffffffffffffffff
je 0x14011711c
xor edi, edi
test rbp, rbp
jle 0x1401170c7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140113f54
mov rbx, rax
test rax, rax
jne 0x140117054
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401170bd
mov edx, 0x8000
mov ecx, r14d
call fcn.14010eebc
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.140110720
cmp eax, 0xffffffff
je 0x14011709d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140117064
mov edx, r15d
mov ecx, r14d
call fcn.14010eebc
jmp 0x1401170bd
cmp byte [rsi + 0x38], dil
je 0x1401170b4
cmp dword [rsi + 0x34], 5
jne 0x1401170b4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401170bd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140111de8
jmp 0x140117130
jns 0x140117130
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010d1f8
cmp rax, 0xffffffffffffffff
jne 0x1401170e8
cmp byte [rsi + 0x30], dil
je 0x140117130
mov edi, dword [rsi + 0x2c]
jmp 0x140117130
mov ecx, r14d
call fcn.140116ebc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140117130
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140117130
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140117129
mov eax, dword [rsi + 0x2c]
jmp 0x14011712e
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010d1f8
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 0x14011a21c
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 0x14011a2a3
mov rsi, rbx
cmp word [rax], bp
je 0x14011a262
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14011a24c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14011a248
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140113b3c
mov rdi, rax
test rax, rax
je 0x14011a290
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f6150
mov rbp, rdi
xor ecx, ecx
call fcn.140111de8
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 0x14011b224
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14011b244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fdddc
or eax, 0xffffffff
jmp 0x14011b246
xor eax, eax
add rsp, 0x28
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp qword [rdx - 0x7d]
loopne 0x14003f64f
jmp qword [rcx - 0x7e]
invalid
fdivp st(7)
invalid
invalid
pop rsp
jnp 0x14003f64b
call [rbx + 0x7a]
invalid
pop rbx
jp 0x14003f64e
call [rbx + 0x7b]
invalid
jge 0x14003f65a
call [rsi + rdi*2 - 0x1f]
loope 0x14003f67f
call [rsi + rdi*2 - 0x1f]
pop rsp
jle 0x14003f664
call [rbx + 0x7e]
loope 0x14003f687
call [rbx + 0x7e]
loope 0x14003f68b
pop rbx
jle 0x14003f66c
call [rbx + 0x7e]
loope 0x14003f68f
pop rbx
jle 0x14003f670
call [rdx + 0x7d]
loopne 0x14003f693
pop rdx
jge 0x14003f673
call [rbx + 0x7e]
pop rbx
jle 0x14003f679
invalid
loop 0x14003f697
call [rdi + rdi*2 - 0x1d]
pop rsp
jg case.0x140007272.0
call [rax + rax*4 - 0x1c]
call [rax + rax*4 - 0x1c]
call [rbx - 0x7f]
in eax, 0xff
pop rsp
in al, 0xff
pop rsp
and ah, 0xff
pop rbx
and ebp, 0xe5825cff
call [rdx + rax*4 - 0x1b]
invalid
call [rcx + rax*4 - 0x1c]
call [rbx - 0x7e]
jrcxz 0x14003f6b3
call [rdx - 0x80]
loope 0x14003f6b7
pop rdx
and cl, 0xff
call [rcx + 0x7e]
loopne 0x14003f6bb
pop rcx
jle 0x14003f69b
call [rax + 0x7d]
invalid
pop rax
jge 0x14003f69e
call qword [rsi + 0x7b]
fdivp st(7)
push rbp
jns 0x14003f6a4
call qword [rbp + 0x79]
fdiv st(7), st(0)
push rdx
jbe 0x14003f6a9
push rbp
jns 0x14003f6a7
call qword [rdx + 0x76]
invalid
call qword [rcx + 0x74]
fdivr st(7)
and rsp, qword [rcx]
dec dword [rdx + 0x24]
and bh, bh
and al, 0x22
inc dword [rdi + 0x24]
and edi, edi
and al, 0x21
dec dword [rax + 0x25]
and bh, bh
and rax, 0x2548ff22
and bh, bh
and rax, 0x2548ff22
and bh, bh
and eax, 0x2546ff22
and edi, edi
and al, 0x24
inc dword [rsi + 0x25]
and eax, 0x2647ff24
and edi, edi
and eax, 0x2647ff24
and edi, edi
and edi, edi
and edi, edi
and edi, edi
invalid
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14003c8d0]
mov dword [rax], 1
mov rax, qword [0x14003c8e0]
mov dword [rax], 1
mov rax, qword [0x14003c8f0]
mov dword [rax], 1
mov rax, qword [0x14003c8c0]
mov dword [rax], 1
mov rax, qword [0x14003c770]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000708e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400070be
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x1400070c3
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140010e3c
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400136b9
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x1400357f8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_7
call sym.nimErrorFlag_6
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x140046180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, [0x140036210]
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x14001383a
mov qword [rbp - 0x50], 0xac6
lea rax, [0x1400357f8]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x14001377d
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x140013796
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x1400138cb
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9054
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x1400138ca
mov qword [rbp - 0x50], 0x10
lea rax, [0x140036210]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x68]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.nimAddInt_5
test al, al
je 0x14001382d
call sym.raiseOverflow
jmp 0x1400138cb
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x14001374b
nop
mov qword [rbp - 0x50], 0xae1
lea rax, [0x1400357f8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400357e9]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xae6
lea rax, [0x140046180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400138cb
nop
call sym.popFrame_7
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x14001f500
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140020132
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140046328]
test eax, eax
je 0x1400201ca
lea rax, [0x140046300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140046330]
mov qword [rbp - 8], rax
jmp 0x1400201ae
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 0x1400201a2
cmp qword [rbp - 0x10], 0
je 0x1400201a2
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 0x140020168
lea rax, [0x140046300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400201cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400202d0
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 0x1400202f8
mov eax, 0
jmp 0x140020346
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 0x140020321
mov eax, 0
jmp 0x140020346
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 0x140020341
mov eax, 0
jmp 0x140020346
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002034c
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 0x1400203ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400203c1
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 0x1400203c1
mov rax, qword [rbp - 8]
jmp 0x1400203df
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 0x140020394
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140027d84
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140027ece
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140027ec1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140027e77
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140027e8d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140027e73
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140027eac
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140027ecf
nop
add rsp, 0x90
pop rbp
ret