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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x7ff698a46904
cmp r8d, 0xff
jne 0x7ff698a46841
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x7ff698a4682b
lea r8, [0x7ff698990000]
mov r9, qword [r8 + r10*8 + 0xe2220]
mov r8, rdx
lea rdx, [0x7ff698a72ca8]
add rsp, 0x38
jmp fcn.7ff698a23200
mov r8, rdx
mov r9d, r10d
lea rdx, [0x7ff698a72cb8]
add rsp, 0x38
jmp fcn.7ff698a23200
cmp r8d, 0xfb
jne 0x7ff698a46853
lea r9, [0x7ff698a72c34]
jmp 0x7ff698a46891
cmp r8d, 0xfc
jne 0x7ff698a46865
lea r9, [0x7ff698a72c3c]
jmp 0x7ff698a46891
cmp r8d, 0xfd
jne 0x7ff698a46877
lea r9, [0x7ff698a72c44]
jmp 0x7ff698a46891
xor r9d, r9d
lea rax, [0x7ff698a72c48]
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x7ff698a468ed
cmp r10d, 0x27
jg 0x7ff698a468c4
lea r8, [0x7ff698990000]
mov r8, qword [r8 + r10*8 + 0xe2840]
test r8, r8
jne 0x7ff698a468d4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, [0x7ff698a72ce0]
call fcn.7ff698a23200
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x7ff698a468ab
lea r8, [0x7ff698a72cc4]
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, [0x7ff698a72cd0]
call fcn.7ff698a23200
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, [0x7ff698a72cf0]
call fcn.7ff698a23200
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff698a46caf
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff698a72d00]
mov rcx, rbp
mov r8d, eax
call fcn.7ff698a23080
mov rcx, qword [rbx]
lea rdx, [0x7ff698a72d1c]
mov r9d, edi
mov r8d, esi
call fcn.7ff698a467e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff698a46e60
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x7ff698a47008
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x7ff698a46ec5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x7ff698a46ec5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x7ff698a46ec5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.ws2_32.dll_htons_1]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.ws2_32.dll_htons_1]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x7ff698a46efc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x7ff698a46f52
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff698a46f52
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff698a46f52
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff698a46f52
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff698a46f52
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.7ff698a46910
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x7ff698a46fb4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff698a72d00]
mov rcx, rbp
mov r8d, eax
call fcn.7ff698a23080
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.7ff698a46ce0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff698a47000
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff698a72d00]
mov rcx, rbp
mov r8d, eax
call fcn.7ff698a23080
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x7ff698a48770
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x7ff698a89018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x7ff698a48805
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy_1
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x7ff698a48866
lea rdx, [0x7ff698a73590]
mov rcx, rdi
call fcn.7ff698a23080
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.7ff698a5be00
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x7ff698a48921
sub ecx, 1
je 0x7ff698a48994
sub ecx, 1
je 0x7ff698a488d0
cmp ecx, 1
je 0x7ff698a488b3
lea r8, [0x7ff698a735c0]
mov rcx, rdi
lea rdx, [0x7ff698a61ba4]
call fcn.7ff698a23080
jmp 0x7ff698a48994
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.7ff698a484a0
test eax, eax
je 0x7ff698a48994
jmp 0x7ff698a4883a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x7ff698a48994
sub rax, rsi
cmp rax, rbp
jae 0x7ff698a48994
mov r8, rsi
lea rdx, [0x7ff698a735b0]
mov rcx, rdi
call fcn.7ff698a23200
jmp 0x7ff698a48994
cmp r8d, 4
jle 0x7ff698a48994
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x7ff698a48994
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.7ff698a22fa0
mov esi, eax
test eax, eax
je 0x7ff698a48973
mov edx, 5
mov rcx, rbx
call fcn.7ff698a49460
mov eax, esi
jmp 0x7ff698a4883a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.7ff698a31890
mov rcx, r14
call fcn.7ff698a31b70
test eax, eax
je 0x7ff698a48838
mov edx, 5
mov rcx, rbx
call fcn.7ff698a49460
mov eax, 0x2a
jmp 0x7ff698a4883a
Function at 0x7ff698a5b730
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.ucrtbase.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x7ff698a5b772
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x7ff698a5b7b9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x7ff698a5b812
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x7ff698a5b7d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x7ff698a5b853
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x7ff698a75df2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x7ff698a75df3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff698a5b820
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x7ff698a5c7a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff698a5c7ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff698a5c7ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff698a5c7ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff698a5c7ee
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff698a5c7ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff698a5c7f0
xor al, al
add rsp, 0x28
ret
Function at 0x140002ff0
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 fcn.140004a10
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.140004a10
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 0x140003060
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003190
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400030ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003135
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003090
mov rcx, rbx
call fcn.140003ab0
mov rdi, rax
test rax, rax
je 0x1400031b2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003bf0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003197
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000312e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003140
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000312e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ff0
nop dword [rax]
xor esi, esi
jmp 0x1400030b8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ff0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ff0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003720
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000377c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003773
test rsi, rsi
je 0x140003773
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003758
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 0x140003ab0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003ad0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003ad8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003ad0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003b2d
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 0x140003b24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003ad0
add rax, 0x28
cmp rax, r9
jne 0x140003b10
xor eax, eax
ret

Function at 0x140003b30
Capabilities:
Parse pe header

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

Function at 0x140003bf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1406735b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1406735bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1406735cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1406735b5
lea eax, [rcx + 1]
jmp 0x1406735db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1406735ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1406735d4
sub eax, 3
jb 0x14067360e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14067365d
sar eax, 1
movsxd rbp, eax
jb 0x140673644
jmp 0x14067361c
add ebx, ebx
jne 0x14067361a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140673644
inc ecx
add ebx, ebx
jne 0x14067362a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140673644
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14067363d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14067362c
add ecx, 2
jmp 0x140673649
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140673572
jmp 0x1406735bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x11d200
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1406736a9
cmp rsi, rcx
jae 0x1406736b1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140673690
cmp al, 0x8f
ja 0x140673690
cmp byte [rsi - 2], 0xf
je 0x140673696
sub al, 0xe8
cmp al, 1
ja 0x14067367a
cmp rsi, rcx
jae 0x1406736b1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140673680
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1406736b1
lodsb al, byte [rsi]
jmp 0x140673690
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x66f000]
mov eax, dword [rdi]
or eax, eax
je 0x14067370e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x67e28c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1406736be
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140673708
mov qword [rbx], rax
add rbx, 8
jmp 0x1406736de
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140673766
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x140070e50
Capabilities:
Encode data using xor

Disassembly:
push r14
jrcxz 0x140070eab
jo 0x140070e9e
sub esp, 0x3fb388
mov rax, qword [0x140128f93]
imul rsp, rax, 0x48
mov dword [rsi], ebx
sbb byte [rdi], 3
add bh, al
cmp dword [rax + 0xf70001], 0x48000000
cwde
sbb esi, 0x48000026
mov eax, dword [rax]
cmp dword [rax + 8], 0
je 0x140070edd
rol byte [rbx + 0x48ce8948], 0x8b
mov dword [rax - 0x458d9e8d], ebx
sub ecx, dword [rdi - 0x3d180000]
clc
cld
inc dword [rax + rax*8 + 0x7448b275]
je 0x140070e33
cwde
add byte [rax], al
cmp dword [rdx + 0x2c], edi
test al, al
jne 0x140070e54
add byte [rax], al
add byte [rbp*4 - 0x7b88ccba], bh

Function at 0x140075a30
Capabilities:
Encode data using xor

Disassembly:
cli
sub byte [rsi + 0x57], dl
jle 0x140075a7e
sub esp, 0x7a000e
mov rsi, rcx
mov rax, qword [0x140129050]
add byte [rbp + 0x50], dh

Function at 0x140077ed0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
xchg ebp, eax
sub esp, 0x48
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov qword [rcx + 0x6105ea48], rax
adc dword [rbx], ecx
add byte [rax + 0x31], cl
xor eax, esp
invalid
mov dword [rax + rax*8 + 0x40], eax
and al, 0x58
stc
pop rsi
cmp ch, 0x7f

Function at 0x140079030
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x57d35641
push rbx
invalid
invalid
invalid

Function at 0x14008ad20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
or dl, bl
push rbx
sub rsp, 0x600d5b8
adc al, 0xd7
push rcx
invalid
Function at 0x140005820
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140005850
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000584f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005855
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000584f
mov eax, 0
jmp 0x14000584f

Function at 0x140005ed0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005e80
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000f4e0
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.140018020
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.140018020
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 0x14000f550
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409c4934]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000f6e0
mov rax, qword [0x1409c4938]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000f59c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000f625
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000f580
mov rcx, rdi
call fcn.1400100b0
test rax, rax
mov r12, rax
je 0x14000f732
mov rax, qword [0x1409c4938]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400101f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409c4938]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f715
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f61e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f690
add dword [0x1409c4934], 1
cmp ebx, 8
jae 0x14000f651
test bl, 4
jne 0x14000f6f0
test ebx, ebx
je 0x14000f646
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000f704
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 0x14000f646
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 0x14000f66a
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 [0x1409c4938]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f4e0
xor esi, esi
jmp 0x14000f5a7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000f646
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000f646
mov rax, qword [0x1409c4938]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000f4e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000f4e0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000fd00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409c49a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409c4980]
test rbx, rbx
je 0x14000fd54
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 0x14000fd4b
test rsi, rsi
je 0x14000fd4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fd30
lea rcx, [0x1409c49a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400100b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409be830]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001011f
mov rcx, r9
call fcn.14000ff80
test eax, eax
je 0x14001011f
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 0x14001011d
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 0x140010114
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001011f
add rdx, 0x28
cmp rdx, r9
jne 0x140010100
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409ba8c0]
jmp 0x140010ee0

Function at 0x14001a4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409ba8c0]
jmp 0x140010ee0