joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test r8d, r8d
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
jle 0x14000f060
mov r12, qword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
jmp 0x14000f02e
add ebx, eax
cmp esi, ebx
jle 0x14000f060
movsxd rdx, ebx
mov r8d, esi
xor r9d, r9d
mov rcx, qword [rdi + 0x23d8]
add rdx, rbp
sub r8d, ebx
call r12
cmp eax, 0xffffffff
jne 0x14000f028
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000f070
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test r8d, r8d
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
jle 0x14000f0d0
mov r12, qword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
jmp 0x14000f09e
add ebx, eax
cmp esi, ebx
jle 0x14000f0d0
movsxd rdx, ebx
mov r8d, esi
xor r9d, r9d
mov rcx, qword [rdi + 0x23d8]
add rdx, rbp
sub r8d, ebx
call r12
cmp eax, 0xffffffff
jne 0x14000f098
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000f0e0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov edi, 4
mov dword [rsp + 0x58], edx
lea r12, [rsp + 0x58]
mov rsi, rcx
mov ecx, edx
call qword [sym.imp.WS2_32.dll_htonl]
mov rbp, qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x58], eax
movsxd rdx, ebx
mov r8d, edi
xor r9d, r9d
mov rcx, qword [rsi + 0x23d8]
add rdx, r12
sub r8d, ebx
call rbp
cmp eax, 0xffffffff
je 0x14000f148
add ebx, eax
cmp ebx, 3
jle 0x14000f110
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000f160
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
mov ebp, 4
mov rdi, rcx
mov rsi, rdx
nop
movsxd rdx, ebx
mov r8d, ebp
xor r9d, r9d
mov rcx, qword [rdi + 0x23d8]
add rdx, rsi
sub r8d, ebx
call r12
cmp eax, 0xffffffff
je 0x14000f1c0
add ebx, eax
cmp ebx, 3
jle 0x14000f180
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rsi], eax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000f1d0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
xor ebx, ebx
mov edi, 4
mov dword [rsp + 0x2c], edx
lea r12, [rsp + 0x2c]
mov rsi, rcx
mov ecx, edx
call qword [sym.imp.WS2_32.dll_htonl]
mov rbp, qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x2c], eax
movsxd rdx, ebx
mov r8d, edi
xor r9d, r9d
mov rcx, qword [rsi + 0x23d8]
add rdx, r12
sub r8d, ebx
call rbp
cmp eax, 0xffffffff
je 0x14000f238
add ebx, eax
cmp ebx, 3
jle 0x14000f200
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000f250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
mov edi, 4
lea r12, [rsp + 0x2c]
mov rsi, rcx
mov r13, rdx
nop dword [rax]
movsxd rdx, ebx
mov r8d, edi
xor r9d, r9d
mov rcx, qword [rsi + 0x23d8]
add rdx, r12
sub r8d, ebx
call rbp
cmp eax, 0xffffffff
je 0x14000f2c0
add ebx, eax
cmp ebx, 3
jle 0x14000f278
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [r13], eax
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000f2d0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r14, qword [sym.imp.WS2_32.dll_htonl]
xor ebx, ebx
mov r12d, 4
mov dword [rsp + 0x2c], r8d
lea rbp, [rsp + 0x2c]
mov rsi, rcx
mov r13, rdx
mov ecx, r8d
call r14
mov rdi, qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x2c], eax
movsxd rdx, ebx
mov r8d, r12d
xor r9d, r9d
mov rcx, qword [rsi + 0x23d8]
add rdx, rbp
sub r8d, ebx
call rdi
cmp eax, 0xffffffff
je 0x14000f3c0
add ebx, eax
cmp ebx, 3
jle 0x14000f310
mov r15, qword [r13 + 8]
xor ebx, ebx
mov dword [rsp + 0x2c], r15d
mov ecx, r15d
mov r12d, r15d
call r14
mov r14d, 4
mov dword [rsp + 0x2c], eax
nop word cs:[rax + rax]
movsxd rdx, ebx
mov r8d, r14d
xor r9d, r9d
mov rcx, qword [rsi + 0x23d8]
add rdx, rbp
sub r8d, ebx
call rdi
cmp eax, 0xffffffff
je 0x14000f3c0
add ebx, eax
cmp ebx, 3
jle 0x14000f360
xor ebx, ebx
test r15d, r15d
mov rbp, qword [r13]
jg 0x14000f39f
jmp 0x14000f3d8
add ebx, eax
cmp r12d, ebx
jle 0x14000f3d8
movsxd rdx, ebx
mov r8d, r12d
xor r9d, r9d
mov rcx, qword [rsi + 0x23d8]
add rdx, rbp
sub r8d, ebx
call rdi
cmp eax, 0xffffffff
jne 0x14000f398
nop dword [rax]
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 1
jmp 0x14000f3c2
Function at 0x14000f910
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test r9, r9
mov rsi, rdx
mov ebx, r8d
sete al
test r8d, r8d
sete dl
or eax, edx
test rsi, rsi
sete dl
or al, dl
je 0x14000f948
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdi, qword [rsp + 0x70]
movsxd r8, dword [rdi]
test r8d, r8d
je 0x14000f938
lea ecx, [rbx + 2]
movsxd rbp, ebx
mov edx, ebx
imul rdi, rbp, 0x55555556
sar edx, 0x1f
shr rdi, 0x20
sub edi, edx
movsxd rdx, ecx
sar ecx, 0x1f
imul rdx, rdx, 0x55555556
shr rdx, 0x20
sub edx, ecx
shl edx, 2
cmp r8d, edx
jge 0x14000f9a0
mov rsi, qword [rsp + 0x70]
lea edx, [rdi*4 + 4]
mov dword [rsi], edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor edx, edx
mov rcx, r9
call fcn.140010a70
cmp ebx, 2
mov r9, rax
jle 0x14000fb50
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m
mov rdx, rsi
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx]
add rdx, 3
shr al, 2
and eax, 0x3f
movzx eax, byte [r8 + rax]
mov byte [r9 + rcx*4], al
movzx eax, byte [rdx - 3]
movzx r10d, byte [rdx - 2]
shl eax, 4
shr r10b, 4
and eax, 0x30
movzx r10d, r10b
or eax, r10d
cdqe
movzx eax, byte [r8 + rax]
mov byte [r9 + rcx*4 + 1], al
movzx eax, byte [rdx - 2]
movzx r10d, byte [rdx - 1]
shl eax, 2
shr r10b, 6
and eax, 0x3c
movzx r10d, r10b
or eax, r10d
cdqe
movzx eax, byte [r8 + rax]
mov byte [r9 + rcx*4 + 2], al
movzx eax, byte [rdx - 1]
and eax, 0x3f
movzx eax, byte [r8 + rax]
mov byte [r9 + rcx*4 + 3], al
add rcx, 1
cmp edi, ecx
jg 0x14000f9c8
test edi, edi
mov eax, 1
cmovg eax, edi
mov edx, ebx
imul rbp, rbp, 0x55555556
sar edx, 0x1f
shr rbp, 0x20
sub ebp, edx
lea edx, [rbp + rbp*2]
sub ebx, edx
cmp ebx, 1
je 0x14000fa90
cmp ebx, 2
je 0x14000fae0
test ebx, ebx
jne 0x14000fad6
shl edi, 2
mov rax, qword [rsp + 0x70]
mov dword [rax], edi
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea edx, [rax + rax*2]
shl eax, 2
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m
movsxd rdx, edx
cdqe
add rdx, rsi
movzx ecx, byte [rdx]
shr cl, 2
and ecx, 0x3f
movzx ecx, byte [r8 + rcx]
mov byte [r9 + rax], cl
movzx edx, byte [rdx]
mov byte [r9 + rax + 2], 0x3d
mov byte [r9 + rax + 3], 0x3d
shl edx, 4
and edx, 0x30
movzx edx, byte [r8 + rdx]
mov byte [r9 + rax + 1], dl
lea edi, [rdi*4 + 4]
jmp 0x14000fa76
lea ecx, [rax + rax*2]
shl eax, 2
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m
movsxd rcx, ecx
cdqe
lea r11, [rsi + rcx]
movzx edx, byte [r11]
lea r10, [rsi + rcx + 1]
shr dl, 2
and edx, 0x3f
movzx edx, byte [r8 + rdx]
mov byte [r9 + rax], dl
movzx edx, byte [r11]
movzx ecx, byte [r10]
shl edx, 4
shr cl, 4
and edx, 0x30
movzx ecx, cl
or edx, ecx
movsxd rdx, edx
movzx edx, byte [r8 + rdx]
mov byte [r9 + rax + 1], dl
movzx edx, byte [r10]
mov byte [r9 + rax + 3], 0x3d
shl edx, 2
and edx, 0x3c
movzx edx, byte [r8 + rdx]
mov byte [r9 + rax + 2], dl
jmp 0x14000fad6
xor eax, eax
jmp 0x14000fa4d
Function at 0x140010d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140010990
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140010990
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140010de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f1b04]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010f70
mov rax, qword [0x1400f1b08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010e2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010eb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010e10
mov rcx, rdi
call fcn.140011940
test rax, rax
mov r12, rax
je 0x140010fc2
mov rax, qword [0x1400f1b08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011a80
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400f1b08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010fa5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010eae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010f20
add dword [0x1400f1b04], 1
cmp ebx, 8
jae 0x140010ee1
test bl, 4
jne 0x140010f80
test ebx, ebx
je 0x140010ed6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010f94
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010ed6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1400f1b08]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010d70
xor esi, esi
jmp 0x140010e37
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010ed6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010ed6
mov rax, qword [0x1400f1b08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010d70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010d70
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011590
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400f1b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f1b40]
test rbx, rbx
je 0x1400115e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400115db
test rsi, rsi
je 0x1400115db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400115c0
lea rcx, [0x1400f1b60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400c9fe0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400119af
mov rcx, r9
call fcn.140011810
test eax, eax
je 0x1400119af
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400119ad
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400119a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400119af
add rdx, 0x28
cmp rdx, r9
jne 0x140011990
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140025aa0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400c11a8], eax
je 0x1400c0e70
add rsp, 0x28
ret

Function at 0x140025fe0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x140026003
call fcn.140025960
cmp eax, 1
je 0x14002600e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14002609a
lea r8, [rbx + 0x43]
mov ecx, 0x28
mov rax, rbx
sub ecx, ebx
jmp 0x14002606c
add rax, 1
cmp rax, r8
je 0x14002608c
cmp byte [rax + 0x28], 0
lea edx, [rcx + rax]
jne 0x140026063
cmp edx, 0x6a
je 0x14002608c
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x14002607a
Function at 0x140026140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x1400f2670], 1
je 0x140026156
call fcn.1400260b0
mov ecx, dword [0x1400c11a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rsi, rax
je 0x140026180
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140025f20
cmp qword [0x1400f5048], 0
mov rbx, rax
je 0x14002616a
test rax, rax
je 0x14002616a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x30], rax
call fcn.140025fe0
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400c0e76
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbx
mov ecx, dword [0x1400c11a8]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400c0e76
mov rsi, rbx
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140027830
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r13, rcx
mov r12, rdx
mov rsi, r8
mov rdi, r9
call fcn.140025f20
test rax, rax
mov rbx, rax
je 0x140027a80
test r13, r13
je 0x14002786b
mov rax, qword [rax + 0x1d8]
mov qword [r13], rax
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, rbp
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x1400278e0
test esi, esi
je 0x1400278d0
mov ecx, 0x14
call r14
cmp esi, 4
je 0x1400278e0
add esi, 1
jmp 0x14002789f
xor ecx, ecx
call rbp
jmp 0x1400278c8
lea rdi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rdi
call fcn.140025fe0
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x140027a30
xor edx, edx
test r12, r12
je 0x14002793f
mov eax, dword [r12]
mov edx, dword [r12 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x140027a60
mov eax, dword [r12 + 0x18]
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x1400265c0]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140027a00
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400279e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x1400279c2
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400279a9
add edx, 0xd
cmp eax, 0xffffffff
jl 0x140027983
cmp eax, 0xe
mov edx, 0xf
jg 0x140027983
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140027983
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140027a0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.1400102c0
mov rcx, rdi
call fcn.140025fe0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r13, r13
je 0x140027a3d
mov qword [r13], 0
mov rcx, rbx
call fcn.140025cc0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.140026140
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [rbx + 0xc0], eax
jmp 0x14002793f
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140085cf0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140085d17
call rbp
cmp dword [rax], 4
jne 0x140085d34
mov rcx, rdi
call fcn.140085b20
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x140085d10
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001a70
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xe8
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400fda50
mov dword [rsp + 0x70], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400fda50
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140144b80]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
add rsp, 0xe8
ret
Function at 0x1400e6b08
Capabilities:
Parse pe header

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

Function at 0x1400ee06c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ede68
Function at 0x1400f487c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f48ac
xor eax, eax
jmp 0x1400f496f
mov rbp, rbx
cmp word [rax], si
je 0x1400f48d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f48b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f48b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400f479c
movsxd r14, eax
test eax, eax
jne 0x1400f490f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f48a5
mov rcx, r14
call fcn.1400ef2f8
mov rdi, rax
test rax, rax
jne 0x1400f4928
xor ecx, ecx
call fcn.1400ef2bc
jmp 0x1400f4904
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400f479c
test eax, eax
jne 0x1400f4959
mov rcx, rdi
call fcn.1400ef2bc
jmp 0x1400f4963
xor ecx, ecx
call fcn.1400ef2bc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400f958c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400f95a2
mov al, 1
jmp 0x1400f9602
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400f95b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400f9600
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f5404
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f9600
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f9600
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f9600
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400f9602
xor al, al
add rsp, 0x20
pop rbx
ret