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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000523d
xor eax, eax
jmp 0x1400053a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005277
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005277
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400053a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000539c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400052ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400052e5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400053a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005354
sub eax, 1
je 0x140005354
cmp eax, 2
jne 0x14000539c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400053a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005382
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000539c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400053a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400083a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005a10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005ae3
cmp byte [rcx + 0x71], 0
je 0x140005ae3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005adf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005aa4
sub eax, 1
je 0x140005aa8
cmp eax, 2
jne 0x140005adf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400083a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005ad6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140005adf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005a8c
xor al, al
jmp 0x140005a8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400083a0
add rsp, 0x60
pop rbx
ret

Function at 0x140008114
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 0x14000814e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140008153
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 0x14000819c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a4e0]
cmp byte [rcx + rax], 0
je 0x14000819c
dec r8
sub rdx, 1
jne 0x140008182
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140008d9c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, str.C:WindowsSystem32.dll
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001116
nop dword [rax + rax]
cmp dword [rsp + 0x40], 0x32000
jb 0x1400010f7
lea rdx, str..dll
lea rcx, [rsp + 0x4c]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1400010f7
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x4c]
lea rcx, str.Found_possible_DLL:__s__Size:__lu_n
call fcn.140001010
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400010c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x14000111b
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140001150
add rsp, 0x170
pop rbx
ret

Function at 0x140001a24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a6e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a70
xor al, al
add rsp, 0x28
ret
Function at 0x140001040
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x20
cmp dword [0x140004640], 0
jne 0x14000123e
mov rax, qword gs:[0x60]
xor r12d, r12d
mov edx, r12d
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000124a
nop word [rax + rax]
mov r11, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x1400010bd
lea rdx, [r11 + rcx]
mov ecx, dword [r11 + rcx + 0xc]
mov eax, dword [rcx + r11]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1400010bd
mov eax, dword [rcx + r11 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400010c9
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001080
test rdx, rdx
je 0x14000124a
mov qword [rsp + 0x30], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x38], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x40], rsi
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x18], rdi
add rsi, r11
mov qword [rsp + 0x10], r13
mov r13d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
mov edx, r12d
add r14, r11
mov qword [rsp], r15
add rbp, r11
lea r15, [0x140004640]
nop word [rax + rax]
lea eax, [rbx - 1]
mov r10d, dword [rsi + rax*4]
mov ebx, eax
add r10, r11
mov edi, eax
cmp word [r10], r13w
jne 0x140001183
mov r9d, r12d
mov r8d, 0x7fc61928
mov rax, r10
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, r10
xor r8d, ecx
cmp byte [rax], r12b
jne 0x140001140
mov ecx, edx
inc edx
add rcx, rcx
mov dword [r15 + rcx*8 + 8], r8d
movzx eax, word [rbp + rdi*2]
mov eax, dword [r14 + rax*4]
mov dword [r15 + rcx*8 + 0xc], eax
mov qword [r15 + rcx*8 + 0x10], r12
cmp edx, 0x258
je 0x140001187
test ebx, ebx
jne 0x140001120
mov r14, qword [rsp + 8]
lea eax, [rdx - 1]
mov r13, qword [rsp + 0x10]
mov r8d, r12d
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov dword [0x140004640], edx
test eax, eax
je 0x140001230
nop
mov ecx, edx
mov eax, r12d
sub ecx, r8d
cmp ecx, 1
je 0x140001225
nop dword [rax]
lea r11d, [rax + 1]
mov r10d, eax
add r10, r10
mov r9d, r11d
add r9, r9
mov edi, dword [r15 + r10*8 + 0xc]
mov ebx, dword [r15 + r9*8 + 0xc]
cmp edi, ebx
jbe 0x140001216
mov edx, dword [r15 + r10*8 + 8]
mov eax, dword [r15 + r9*8 + 8]
mov rcx, qword [r15 + r10*8 + 0x10]
mov dword [r15 + r10*8 + 8], eax
mov rax, qword [r15 + r9*8 + 0x10]
mov qword [r15 + r10*8 + 0x10], rax
mov dword [r15 + r10*8 + 0xc], ebx
mov dword [r15 + r9*8 + 8], edx
mov dword [r15 + r9*8 + 0xc], edi
mov qword [r15 + r9*8 + 0x10], rcx
mov edx, dword [0x140004640]
mov ecx, edx
mov eax, r11d
sub ecx, r8d
dec ecx
cmp r11d, ecx
jb 0x1400011c0
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x1400011b0
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x20
pop r12
ret
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x14000234c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14006575c], 2
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x140063120]
jne 0x140002549
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140065800]
mov r8d, 0x200
mov rdx, rdi
call fcn.140016120
cmp byte [0x140065a00], 0
jne case.default.0x140002542
xor r9d, r9d
mov r8d, 0xc8
mov rcx, rbx
lea edx, [r9 + 2]
mov byte [0x140065a00], 1
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [0x140063120]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x140065a00], 0
je 0x14000256d
mov edx, 2
mov rcx, rbx
mov byte [0x140065a00], 0
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [0x140063120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, rdi
mov edx, 0x69
mov rcx, rbx
call fcn.140023970
lea rcx, str._s_r_n
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140026850
int 1
xor eax, 0x6827e9d1
retf
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400bc340]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400bc350]
mov dword [rax], 1
mov rax, qword [0x1400bc360]
mov dword [rax], 1
mov rax, qword [0x1400bc2a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400bc330]
mov dword [0x1400e100c], 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 [0x1400bc420]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400bc400]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400bb710]
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 0x140001763
Capabilities:
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 1
lea rdx, [rbp - 4]
mov rax, qword [rbp + 0x10]
mov r8, rdx
mov edx, 0x8004667e
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001799
Capabilities:
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rax, qword [rbp + 0x10]
mov r8, rdx
mov edx, 0x8004667e
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400017cf
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
mov qword [rbp + 0x1f8], rdx
mov dword [rbp + 0x200], r8d
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
call sym.setNonBlocking_unsigned_long_long_
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp + 0x1d8], eax
mov ecx, dword [rbp + 0x200]
mov rdx, qword [rbp + 0x1f8]
mov rax, qword [rbp + 0x1f0]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x1400019e9
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
cmp eax, 0x2733
sete al
test al, al
je 0x1400019d3
mov dword [rbp - 0x50], 0
mov dword [rbp + 0x1dc], 0
jmp 0x14000188a
mov eax, dword [rbp + 0x1dc]
mov rax, qword [rbp + rax*8 - 0x48]
cmp qword [rbp + 0x1f0], rax
je 0x140001895
add dword [rbp + 0x1dc], 1
mov eax, dword [rbp - 0x50]
cmp dword [rbp + 0x1dc], eax
jb 0x14000186f
mov eax, dword [rbp - 0x50]
cmp dword [rbp + 0x1dc], eax
jne 0x1400018c3
mov eax, dword [rbp - 0x50]
cmp eax, 0x3f
ja 0x1400018c3
mov eax, dword [rbp + 0x1dc]
mov rdx, qword [rbp + 0x1f0]
mov qword [rbp + rax*8 - 0x48], rdx
mov eax, dword [rbp - 0x50]
add eax, 1
mov dword [rbp - 0x50], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
sub eax, dword [rbp + 0x1d8]
mov dword [rbp + 0x1d4], eax
cmp dword [rbp + 0x1d4], 0x1387
ja 0x1400018f1
mov eax, 0x1388
sub eax, dword [rbp + 0x1d4]
jmp 0x1400018f6
mov eax, 0
mov dword [rbp + 0x1d0], eax
mov eax, dword [rbp + 0x1d0]
mov eax, eax
imul rax, rax, 0x10624dd3
shr rax, 0x20
shr eax, 6
mov dword [rbp + 0x1c4], eax
mov ecx, dword [rbp + 0x1d0]
mov eax, ecx
imul rax, rax, 0x10624dd3
shr rax, 0x20
shr eax, 6
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rbp + 0x1c8], eax
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1c4]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1cc], eax
cmp dword [rbp + 0x1cc], 0xffffffff
jne 0x140001994
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400019f9
cmp dword [rbp + 0x1cc], 0
jne 0x1400019b2
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400019f9
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
call sym.__WSAFDIsSet
test eax, eax
setne al
test al, al
jne 0x1400019e8
jmp 0x14000185c
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400019f9
nop
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
call sym.resetBlocking_unsigned_long_long_
nop
add rsp, 0x260
pop rbp
ret
Function at 0x14000bdc0
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 0x14000be30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e10a4]
mov rbx, rcx
test esi, esi
jle 0x14000bf60
mov rax, qword [0x1400e10a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000be7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bf05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000be60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000bf82
mov rax, qword [0x1400e10a8]
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 [0x1400e10a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bf67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000befe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000bf10
add dword [0x1400e10a4], 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 [0x1400e10a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000befe
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 0x14000be88
mov rax, qword [0x1400e10a8]
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 0x14000c510
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e1100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e10e0]
test rbx, rbx
je 0x14000c56c
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 rsi, rsi
je 0x14000c563
test eax, eax
jne 0x14000c563
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c548
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c780
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000c798
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000c7a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000c7b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000c7fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000c7f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000c7ff
add rax, 0x28
cmp rax, r9
jne 0x14000c7e0
xor eax, eax
ret

Function at 0x14000c800
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000c890
mov rdx, qword [0x1400bc2a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000c87e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000c87e
cmp word [rax + 0x18], 0x20b
jne 0x14000c87e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000c890
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000c869
add rbx, 0x28
cmp rbx, rdi
je 0x14000c890
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000c860
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000c8a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400bc2a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c8c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c8c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c8c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c91d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c914
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c8c0
add rax, 0x28
cmp rax, r9
jne 0x14000c900
xor eax, eax
ret

Function at 0x14000c920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bc2a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c93f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c948
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c93f
movzx ecx, word [rax + 6]
mov eax, ecx
ret