joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003b30
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rsi, qword [rsp + 0x40]
xor r11d, r11d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test rsi, rsi
je 0x140003b51
mov qword [rsi], r11
test rbp, rbp
je 0x140003cfb
test rsi, rsi
je 0x140003cfb
lea rcx, [rdx + 2]
mov qword [rsi], r11
movabs r8, 0xaaaaaaaaaaaaaaab
mov rax, r8
mul rcx
shr rdx, 1
lea rdx, [rdx*4 + 2]
test rbx, rbx
je 0x140003cf8
cmp r9, rdx
jb 0x140003cf8
mov qword [rsp + 0x20], r12
mov rax, r8
mul rdi
mov qword [rsp + 0x28], r14
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r14, rdx
mov rcx, r11
shr r14, 1
je 0x140003c4f
mov qword [rsp + 0x30], r15
mov r15, r14
nop word [rax + rax]
movzx r8d, byte [r11 + rbp]
movzx r10d, byte [r11 + rbp + 1]
mov eax, r8d
movzx r9d, byte [r11 + rbp + 2]
and r8d, 3
shr rax, 2
add r11, 3
shl r8d, 4
mov edx, r8d
mov r8d, r9d
and r8d, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx + rbx], al
mov eax, r10d
shr rax, 4
and r10d, 0xf
or rdx, rax
shl r10d, 2
movzx eax, byte [rdx + r12]
mov byte [rcx + rbx + 1], al
mov eax, r9d
shr rax, 6
mov edx, r10d
or rdx, rax
movzx eax, byte [rdx + r12]
mov byte [rcx + rbx + 2], al
movzx eax, byte [r8 + r12]
mov byte [rcx + rbx + 3], al
add rcx, 4
sub r15, 1
jne 0x140003bd0
mov r15, qword [rsp + 0x30]
lea rax, [r14 + r14*2]
mov r14, qword [rsp + 0x28]
sub rdi, rax
sub rdi, 1
je 0x140003cb1
cmp rdi, 1
jne 0x140003cde
movzx edx, byte [r11 + rbp]
movzx r8d, byte [r11 + rbp + 1]
mov eax, edx
shr rax, 2
and edx, 3
shl edx, 4
movzx eax, byte [rax + r12]
mov byte [rcx + rbx], al
mov eax, r8d
shr rax, 4
and r8d, 0xf
or rdx, rax
shl r8d, 2
movzx eax, byte [rdx + r12]
mov byte [rcx + rbx + 1], al
movzx eax, byte [r8 + r12]
mov byte [rcx + rbx + 2], al
mov byte [rcx + rbx + 3], 0x3d
jmp 0x140003cda
movzx edx, byte [r11 + rbp]
mov eax, edx
and edx, 3
shr rax, 2
shl edx, 4
movzx eax, byte [rax + r12]
mov byte [rcx + rbx], al
movzx eax, byte [rdx + r12]
mov byte [rcx + rbx + 1], al
mov word [rcx + rbx + 2], 0x3d3d
add rcx, 4
mov r12, qword [rsp + 0x20]
mov al, 1
mov byte [rcx + rbx], 0
inc rcx
mov qword [rsi], rcx
mov rbx, qword [rsp + 0x38]
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi], rdx
mov rbx, qword [rsp + 0x38]
xor al, al
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e380
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov qword [r9], 0
mov rdi, r9
mov eax, dword [rcx + 0x18]
mov rbx, rcx
and eax, 1
mov r9d, eax
or r9d, 2
test byte [rcx + 0x18], 2
mov rcx, qword [rcx + 0x10]
cmove r9d, eax
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14000e3f8
cdqe
cmp rax, 0xffffffffffffffff
je 0x14000e3f8
test rax, rax
jne 0x14000e3e8
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x1400543b8]
mov eax, 0x4e34
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov qword [rdi], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140018dd0
cmp eax, 0x10
jne 0x14000e412
mov eax, 0x4e35
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x1400543b8]
mov rbx, qword [rsp + 0x30]
mov eax, 0x4e2a
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, r9
mov qword [r9], rbx
mov rdi, rcx
cmp dword [rcx + 0x1080], 1
jne 0x14000e788
mov eax, 0x4e3b
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [rsp + 0x60], bl
je 0x14000e7c6
mov eax, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.140018840
cmp rax, 0xffffffffffffffff
je 0x14000e83f
test rax, rax
je 0x14000e7f7
mov qword [rsi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rcx + 0x18]
and eax, 1
mov r9d, eax
or r9d, 2
test byte [rcx + 0x18], 2
mov rcx, qword [rcx + 0x10]
cmove r9d, eax
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14000e81e
cdqe
cmp rax, 0xffffffffffffffff
je 0x14000e81e
test rax, rax
jne 0x14000e7b1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [0x1400543b8]
mov ebx, 0x4e34
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.140018dd0
cmp eax, 0x10
jne 0x14000e83f
mov ebx, 0x4e35
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [0x1400543b8]
mov rsi, qword [rsp + 0x48]
mov ebx, 0x4e2a
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140017f30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
test r8, r8
je case.0x140017f65.9
mov r8d, dword [r8]
lea eax, [rdx - 1]
mov dword [rsp + 0x38], r8d
cmp eax, 0xe
ja case.0x140017f65.4
lea r9, [0x140000000]
cdqe
mov edx, dword [r9 + rax*4 + 0x180ec]
add rdx, r9
jmp rdx
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea eax, [rcx - 1]
add rsp, 0x48
ret
mov dword [rsp + 0x30], r8d
lea r9, [rsp + 0x30]
mov r8d, 4
movsxd rcx, ecx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add rsp, 0x48
ret
mov dword [rsp + 0x30], r8d
lea r9, [rsp + 0x30]
mov r8d, 0xfffffffb
movsxd rcx, ecx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add rsp, 0x48
ret
mov edx, 0x29
mov dword [rsp + 0x30], r8d
movsxd rcx, ecx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add rsp, 0x48
ret
xor edx, edx
mov dword [rsp + 0x30], r8d
mov r8d, 9
movsxd rcx, ecx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add rsp, 0x48
ret
xor edx, edx
mov dword [rsp + 0x30], r8d
movsxd rcx, ecx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
lea r8d, [rdx + 0xa]
call qword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add rsp, 0x48
ret
xor edx, edx
mov dword [rsp + 0x30], r8d
movsxd rcx, ecx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
lea r8d, [rdx + 0xb]
call qword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add rsp, 0x48
ret
mov edx, 0x29
jmp 0x140018014
mov edx, 0x29
mov dword [rsp + 0x30], r8d
lea r8d, [rdx - 0x1f]
jmp 0x14001801f
mov edx, 0x29
mov dword [rsp + 0x30], r8d
lea r8d, [rdx - 0x1e]
jmp 0x14001801f
mov edx, 6
mov dword [rsp + 0x30], r8d
lea r8d, [rdx - 5]
jmp 0x14001801f
mov ecx, 0xa
call fcn.1400190a0
mov eax, 0xffffffff
add rsp, 0x48
ret
Function at 0x140018630
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x14006a0d0]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14001866b
lea ecx, [rdi + 0xb]
call fcn.1400190a0
mov eax, edi
jmp 0x14001880a
mov qword [rsp + 0x6c0], rbp
lea r8, [rsp + 0x30]
mov qword [rsp + 0x688], r14
mov edx, 1
mov qword [rsp + 0x680], r15
mov dword [rsp + 0x30], 1
call fcn.140017f30
test eax, eax
jne 0x1400187ed
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
movsxd rbp, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140018829
call fcn.140018dd0
cmp eax, 0x10
jne 0x1400187ed
xor eax, eax
mov dword [rsp + 0x50], 0xffffffff
mov r8, rdi
mov word [rsp + 0x54], ax
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x56], al
lea edx, [rax + 1]
call fcn.1400185a0
mov r8, rdi
lea rcx, [rsp + 0x50]
mov edx, 2
call fcn.1400185a0
xor r14d, r14d
lea r15d, [r14 + 0x64]
mov rax, r14
test esi, esi
js 0x140018743
movzx eax, byte [0x14006c6e8]
mov ecx, esi
test al, al
nop
mov eax, 0x10624dd3
cmovne ecx, r15d
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
cmp byte [rsp + 0x56], r14b
lea r9, [rsp + 0x468]
lea r8, [rsp + 0x260]
mov qword [rsp + 0x20], rax
cmove r9, r14
lea rdx, [rsp + 0x58]
cmp byte [rsp + 0x55], r14b
cmove r8, r14
cmp byte [rsp + 0x54], r14b
cmove rdx, r14
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1400187ed
test eax, eax
je 0x14001882d
cmp eax, 1
jl 0x1400187ed
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400187ed
call fcn.140018dd0
mov ebx, eax
cmp byte [rsp + 0x55], r14b
je 0x1400187e4
lea rdx, [rsp + 0x260]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140018825
cmp ebx, 0x10
je 0x140018707
mov eax, 0xffffffff
mov r14, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x6c0]
mov r15, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140029f00
add rsp, 0x690
pop rdi
pop rsi
pop rbx
ret
test ebx, ebx
jne 0x1400187ed
xor eax, eax
jmp 0x1400187f2
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.1400190a0
jmp 0x1400187ed
Function at 0x1400193d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14006a0d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov r14, r9
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200080
mov edx, 0x100080
mov rbp, rcx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 7]
mov edi, ebx
call qword [0x14006a020]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001949a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x140019441
cmp eax, 2
jne 0x140019490
test edi, edi
jle 0x140019490
mov ecx, 0xc8
cmp edi, ecx
cmovl ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2200080
mov edx, 0x100080
mov rcx, rbp
mov dword [rsp + 0x20], 3
sub edi, 0xc8
lea r8d, [r9 + 7]
call qword [0x14006a020]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140019431
jmp 0x14001949a
cmp rsi, 0xffffffffffffffff
je 0x140019609
test rsi, rsi
je 0x140019609
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400195bc
mov ecx, dword [rsp + 0x48]
call fcn.140019340
mov edi, eax
test r14, r14
je 0x1400194f6
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x1400194ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400195bc
mov rax, qword [rsp + 0x40]
mov qword [r14], rax
mov rcx, rsi
call qword [0x14006a018]
test dil, 0x10
je 0x140019605
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x100080
mov rcx, rbp
mov dword [rsp + 0x20], 3
mov edi, ebx
lea r8d, [r9 + 7]
call qword [0x14006a020]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400195a5
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x140019550
cmp eax, 2
jne 0x14001959f
test edi, edi
jle 0x14001959f
mov ecx, 0xc8
cmp edi, ecx
cmovl ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x100080
mov rcx, rbp
mov dword [rsp + 0x20], 3
sub edi, 0xc8
lea r8d, [r9 + 7]
call qword [0x14006a020]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140019540
jmp 0x1400195a5
cmp rsi, 0xffffffffffffffff
je 0x140019609
test rsi, rsi
je 0x140019609
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1400195ce
mov rcx, rsi
mov ebx, 0xffffffff
call qword [0x14006a018]
mov eax, ebx
jmp 0x14001960e
test r14, r14
je 0x1400195fc
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x1400195f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400195bc
mov rcx, qword [rsp + 0x40]
mov qword [r14], rcx
mov rcx, rsi
call qword [0x14006a018]
mov eax, ebx
jmp 0x14001960e
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140029f00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140026fa0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140026fb0
add rcx, 0x100
call fcn.140020aa0
mov rcx, rbx
call fcn.140027660
test al, al
jne 0x140026ffc
cmp qword [rbx + 0x130], 0
je 0x140026ff4
lea rcx, [rbx + 0x120]
cmp qword [rcx + 0x18], 8
jb 0x140026fee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
add rsp, 0x40
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x50], rdi
cmp qword [rbx + 0x60], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x30], rax
setne r8b
mov qword [rsp + 0x38], rax
call fcn.140023710
cmp qword [rbx + 0x60], 0
mov edx, eax
je 0x140027030
cmp eax, 0xc
je 0x140027035
cmp eax, 0xd
jne 0x140027047
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140023710
mov edx, eax
xor dil, dil
test edx, edx
je 0x140027076
mov eax, dword [rsp + 0x38]
lea rcx, str.result:_d__chs_sessionid_d__chs_reply_d__chs_exitcode_d__chs_waitminutes_d_n
mov r9d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
call fcn.1400269f0
jmp 0x140027087
cmp dword [rsp + 0x30], 4
mov eax, 1
movzx edi, dil
cmove edi, eax
lea rcx, [rbx + 0x120]
cmp qword [rcx + 0x18], 8
jb 0x140027098
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, dil
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140029d4c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140029dd0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140055790]
cmp byte [rcx + rax], 0
je 0x140029dd0
dec r8
sub rdx, 1
jne 0x140029db6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002ac14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ac5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002ac5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002ac5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002ac5e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002ac5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002ac60
xor al, al
add rsp, 0x28
ret
Function at 0x140049c4c
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 0x140049cd3
mov rsi, rbx
cmp word [rax], bp
je 0x140049c92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049c7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140049c78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004345c
mov rdi, rax
test rax, rax
je 0x140049cc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002fe20
mov rbp, rdi
xor ecx, ecx
call fcn.140043420
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 0x1400523a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400523c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400523c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002fc0
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.140009d30
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.140009d30
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 0x140003030
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400100a4]
mov rbx, rcx
test esi, esi
jle 0x140003160
mov rax, qword [0x1400100a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000307b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003105
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003060
mov rcx, rbx
call fcn.140003a80
mov rdi, rax
test rax, rax
je 0x140003182
mov rax, qword [0x1400100a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003bc0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400100a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003167
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400030fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003110
add dword [0x1400100a4], 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 [0x1400100a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002fc0
nop dword [rax]
xor esi, esi
jmp 0x140003088
mov rax, qword [0x1400100a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002fc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002fc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400036f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400100e0]
test rbx, rbx
je 0x14000374c
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 0x140003743
test rsi, rsi
je 0x140003743
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003728
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 0x140003a80
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003b00
Capabilities:
Parse pe header

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

Function at 0x140003bc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ce60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003bdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003be8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400100e0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x14001013a
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x140010142
mov r14, qword [r14]
jmp 0x14001010b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x140010177
jmp 0x140010185
inc rax
inc rax
inc rax
inc rax
jmp 0x14001015e
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x8b000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0x55000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x1ce
push rax
movabs r15, 0x3ae00
mov eax, 0x15e
imul r12, rax
movabs rax, 0x6d
add rax, r11
add r12, rax
call fcn.14001023c
mov r12d, 0x63611
movabs r14, 0xcb000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.14001023c
pop rax
jmp 0x140010262
mov r12d, 0x8000000
mov r15d, 0x3ce
movabs r14, 0x8b000
mov eax, 4
imul r15d, eax
add r15d, 0xc8
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
invalid
invalid
invalid
invalid
Function at 0x140004430
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140003f10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000446f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14003f298]
jmp 0x140004479
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140024ae0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret