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

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rbx, rcx
call fcn.140181750
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x1401803ee
cmp byte [rax + 8], 0
jne 0x1401803ee
xor bl, bl
jmp 0x14018054e
lea rdx, [rbx + 0xc0]
lea rcx, [rbp + 7]
call fcn.1401751f0
nop
mov r8d, 0x4000
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x49]
call fcn.140175b80
nop
mov rax, qword [rbp - 0x29]
cmp byte [rax], 0
jne 0x140180539
mov r8d, 4
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x49]
mov rax, qword [rbp - 0x49]
cmp dword [rbx + 0xf0], 1
jne 0x14018056d
mov dword [rbp + 0x6f], 0x50525043
call qword [rax + 0x20]
mov edi, 0xffffffff
mov r8, qword [rbp - 0x11]
mov rcx, qword [rbp - 0x31]
test r8, r8
je 0x1401804c8
mov dword [rbp + 0x6f], 0
test rcx, rcx
je 0x1401804c0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x6f]
mov rdx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401804bc
lea rcx, [rbp + 0x77]
call fcn.14014d930
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rax]
mov qword [rbp - 0x29], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 0x77]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401804bc
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x1401804bc
call fcn.1400da0f0
mov rcx, qword [rbp - 0x31]
mov qword [rbp - 0x11], 0
test rcx, rcx
je 0x140180510
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x140180510
lea rcx, [rbp + 0x6f]
call fcn.14014d930
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rax]
mov qword [rbp - 0x29], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 0x6f]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140180510
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x140180510
call fcn.1400da0f0
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x17]
call fcn.14014e6a0
nop
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.1401802a0
nop
lea rcx, [rbp + 0x17]
test al, al
jne 0x140180565
call fcn.14014e4e0
nop
lea rcx, [rbp - 0x49]
call fcn.140175ab0
xor bl, bl
lea rcx, [rbp + 7]
call fcn.140175130
nop
lea rcx, [rbp + 0x7f]
call fcn.14001eb90
movzx eax, bl
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret
call fcn.14014e4e0
nop
jmp 0x140180587
mov dword [rbp + 0x6f], 0x504f5250
call qword [rax + 0x20]
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.1401802a0
test al, al
je 0x140180539
lea rcx, [rbp - 0x49]
call fcn.140175ab0
lea rcx, [rbp + 7]
call fcn.1401750a0
test al, al
je 0x140180542
mov byte [rbx + 0x101], 0
mov bl, 1
jmp 0x140180544
Function at 0x1401818d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140181750
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1401818f6
cmp byte [rax + 8], 0
jne 0x1401818f6
xor bl, bl
jmp 0x140181942
lea rdx, [rdi + 0xc0]
mov rax, qword [rdx]
cmp byte [rax], 0
je 0x14018193a
lea rcx, [rsp + 0x40]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14018193a
mov rcx, rdi
call fcn.140180900
test al, al
jne 0x14018193a
mov rcx, rdi
call fcn.1401810e0
test al, al
jne 0x14018193a
xor bl, bl
jmp 0x14018193c
mov bl, 1
mov byte [rdi + 0x100], bl
lea rcx, [rsp + 0x38]
call fcn.14001eb90
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140184c80
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x60], ebx
lea r14, [rcx + 0x38]
mov qword [rsp + 0x20], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rdi + 0xa8]
call fcn.14018a070
cmp byte [rdi + 0xea], bl
jne 0x140184d4e
lea rdx, [0x140379908]
mov qword [rsp + 0x78], rdx
mov ebx, 1
mov dword [rsp + 0x60], ebx
cmp qword [rdi + 0xc0], rdx
je 0x140184d4e
mov rcx, qword [rdi + 0xc0]
call fcn.140019450
test eax, eax
je 0x140184d4e
lea rdx, [rdi + 0xc0]
lea rcx, [rsp + 0x28]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x140184d11
cmp eax, 0xffffffff
jne 0x140184d4e
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 0xc0]
call fcn.1401786f0
nop
mov dword [rsp + 0x60], 3
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14017c050
mov ebx, 7
mov dword [rsp + 0x60], ebx
mov rax, qword [rax]
cmp byte [rax], 0
jne 0x140184d4e
xor bpl, bpl
jmp 0x140184d51
mov bpl, 1
mov esi, 0xffffffff
test bl, 4
je 0x140184d8a
and ebx, 0xfffffffb
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140184d86
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jne 0x140184d86
call fcn.1400da0f0
mov ebx, dword [rsp + 0x60]
test bl, 2
je 0x140184dbf
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140184dbb
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140184dbb
call fcn.1400da0f0
mov ebx, dword [rsp + 0x60]
test bl, 1
je 0x140184de7
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140184de7
lock xadd dword [rcx], esi
dec esi
cmp esi, 0xffffffff
jne 0x140184de7
call fcn.1400da0f0
test bpl, bpl
je 0x140184df0
xor bl, bl
jmp 0x140184e0b
mov rcx, rdi
cmp dword [rdi + 0xf0], 2
jne 0x140184e03
call fcn.140180b20
jmp 0x140184e08
call fcn.1401803c0
movzx ebx, al
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140185aa0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r14, rcx
xor r13d, r13d
mov eax, dword [rcx + 0x1b8]
nop
test eax, eax
jne 0x140185ca6
lea rsi, [rcx + 0x250]
lea r12, [0x140379908]
mov eax, dword [rsi]
nop
test eax, eax
js 0x140185c8e
mov r9d, 0xc8
lea rdx, [rsi + 0x28]
mov rcx, rsi
call fcn.14016fb50
cmp eax, 1
jne 0x140185c8e
mov eax, dword [rsi]
nop
test eax, eax
js 0x140185c8e
cmp byte [rsi + 4], 0
je 0x140185c8e
mov byte [rsp + 0x20], 1
movsxd rax, dword [rsi]
nop
mov rbp, rax
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x28]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, r13d
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x140185b96
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jle 0x140185b96
movzx ecx, byte [rsp + 0x20]
nop
mov ebx, ebp
cmp ebx, 0xa
jle 0x140185c8e
movsxd rbp, ebx
cmp byte [rsp + 0x40], 0
je 0x140185be5
lea rbx, [rbp + 4]
and rbx, 0xfffffffffffffffc
lea rcx, [rbx + 0x17]
call fcn.1400da540
mov ecx, r13d
xchg dword [rax], ecx
mov qword [rax + 8], rbx
lea rdi, [rax + 0x10]
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1402a26b0
mov byte [rdi + rbp], 0
mov qword [rsp + 0x28], rdi
mov r15, rdi
jmp 0x140185bf0
mov qword [rsp + 0x28], r12
mov rdi, r12
mov r15, r12
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14015c7e0
mov rbx, qword [rax]
mov qword [rax], r13
mov qword [rsp + 0x28], rbx
mov rbp, qword [rsp + 0x30]
test rbp, rbp
je 0x140185c2c
mov rcx, rbp
call fcn.140157950
mov edx, 0x20
mov rcx, rbp
call fcn.1400da0f0
mov rdi, r15
lea rcx, [rdi - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140185c4f
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140185c4f
call fcn.1400da0f0
test rbx, rbx
je 0x140185c74
mov rdx, qword [r14 + 0x2a8]
mov rcx, qword [rbx + 0x18]
call fcn.140019450
test eax, eax
jne 0x140185c74
mov rdx, rbx
mov rcx, r14
call fcn.1401857e0
nop
test rbx, rbx
je 0x140185c8e
mov rcx, rbx
call fcn.140157950
mov edx, 0x20
mov rcx, rbx
call fcn.1400da0f0
mov rcx, r14
call fcn.140185360
mov eax, dword [r14 + 0x1b8]
nop
test eax, eax
je 0x140185af4
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140186ca0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
xor ebx, ebx
lea r15, [rcx + 8]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov rcx, r15
call fcn.140162a50
nop
mov r14, qword [rdi + 0x180]
test r14, r14
je 0x140186d8d
movzx eax, byte [r14 + 0x10]
nop
test al, al
je 0x140186dda
movzx eax, byte [r14 + 0x11]
nop
test al, al
jne 0x140186dda
movsxd rax, dword [r14 + 0xc]
nop
mov r13, rax
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebp, ebp
jle 0x140186d86
nop word [rax + rax]
movsxd rdi, ebx
add rdi, r12
mov esi, ebp
sub esi, ebx
lea rcx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x140186d7c
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
lea rcx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x140186d7c
movzx ecx, byte [r14 + 0x10]
nop
test cl, cl
je 0x140186d7c
add ebx, edi
cmp ebx, ebp
jl 0x140186d30
jmp 0x140186d86
mov eax, 0xffffffff
test ebx, ebx
cmove ebx, eax
mov r15, qword [rsp + 0x28]
jmp 0x140186ddf
mov rbx, qword [rdi + 0x188]
test rbx, rbx
je 0x140186dda
mov esi, dword [rdi + 0x198]
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rdi
mov rcx, rdi
call fcn.140162a50
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x140186dcb
mov r9d, esi
mov r8d, ebp
mov rdx, r12
call fcn.140013d20
mov ebx, eax
jmp 0x140186dd0
mov ebx, 0xffffffff
mov rcx, rdi
call fcn.140162820
jmp 0x140186ddf
mov ebx, 0xffffffff
mov rcx, r15
call fcn.140162820
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401872e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbp, rcx
mov eax, dword [rcx + 0x194]
mov dword [rsp + 0x70], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x74], eax
mov rbx, qword [rdx + 8]
add rbx, 8
mov esi, 0
mov edi, esi
mov qword [rsp + 0x20], rsi
je 0x140187346
mov qword [rsp + 0x28], rbx
xor ecx, ecx
call fcn.1400e0818
mov rcx, rbx
call fcn.1400e0cb8
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14018743f
jmp 0x14018734e
mov rbx, rsi
mov qword [rsp + 0x28], rbx
mov r8d, 8
cmp rbx, r8
jae 0x140187361
mov r8, rbx
test rbx, rbx
je 0x14018736e
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1402a26b0
mov r8, qword [r14 + 8]
lea rax, [r8 + 8]
cmp rax, rbx
jbe 0x14018737f
lea r8, [rbx - 8]
test r8, r8
je 0x140187390
lea rcx, [rdi + 8]
mov rdx, qword [r14]
call fcn.1402a26b0
lea r14, [rbp + 8]
mov qword [rsp + 0x70], r14
mov rcx, r14
call fcn.140162a50
nop
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x1401873f1
movzx eax, byte [rcx + 0x11]
nop
test al, al
jne 0x1401873e0
movzx eax, byte [rcx + 0x10]
nop
test al, al
je 0x1401873e0
movsxd rcx, dword [rcx + 0xc]
nop
xor r9d, r9d
mov rbx, qword [rsp + 0x28]
mov r8d, ebx
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14018740f
mov esi, 0xffffffff
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x140187411
mov rcx, qword [rbp + 0x188]
test rcx, rcx
je 0x140187411
mov r9d, dword [rbp + 0x198]
mov r8d, ebx
mov rdx, rdi
call fcn.14014be40
mov esi, eax
mov rcx, r14
call fcn.140162820
cmp esi, ebx
sete bl
mov rcx, rdi
call fcn.1400e0818
movzx eax, bl
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x30]
call fcn.14000d820
lea rdx, [0x14041f578]
lea rcx, [rsp + 0x30]
call fcn.1400dca74
int3

Function at 0x1401898f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r9, [0x14037c62c]
lea r8, [0x14037c624]
lea rcx, [rsp + 0x50]
call fcn.140021d10
mov esi, 0xdc00
mov ebp, 0xdfff
mov r14d, 0xd800
mov rbx, qword [rax]
nop
movzx ecx, word [rbx]
lea eax, [rcx - 0xd800]
cmp eax, 0x7ff
ja 0x140189962
movzx edx, word [rbx + 2]
cmp dx, si
jb 0x140189962
mov ecx, edx
shl eax, 0xa
sub ecx, esi
or ecx, eax
call fcn.1400e9f60
test eax, eax
je 0x140189988
movzx eax, word [rbx]
add rbx, 2
cmp ax, r14w
jb 0x140189940
cmp ax, bp
ja 0x140189940
cmp word [rbx], si
jb 0x140189940
add rbx, 2
jmp 0x140189940
mov rdx, rbx
mov rcx, rdi
call fcn.14001a140
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140196f00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x11c]
mov rbx, rcx
inc eax
mov dword [rcx + 0x11c], eax
cmp eax, dword [rcx + 0x108]
jb 0x14019708f
cmp byte [rcx + 0x16c], 0
je 0x140197077
test byte [rcx + 0x54], 2
mov dword [rcx + 0x11c], 0
je 0x140196f59
inc byte [rcx + 0x16d]
lea rdx, [rbx + 0x100]
movzx ecx, byte [rcx + 0x16d]
jmp 0x14019700e
mov qword [rsp + 0x30], rsi
lea rsi, [0x140000000]
mov qword [rsp + 0x38], rdi
nop word [rax + rax]
movzx ecx, byte [rbx + 0x16d]
lea rdx, [rbx + 0x100]
inc cl
mov byte [rbx + 0x16d], cl
cmp cl, 7
jae 0x140197004
movzx r11d, cl
movzx r8d, byte [r11 + rsi + 0x39ee48]
movzx eax, byte [r11 + rsi + 0x39ef90]
mov edx, r8d
movzx r9d, byte [r11 + rsi + 0x39f67c]
sub edx, eax
mov eax, dword [rbx + 0x100]
dec eax
add eax, edx
xor edx, edx
div r8d
movzx edx, byte [r11 + rsi + 0x39f978]
mov r8d, dword [rbx + 0x104]
mov r10d, eax
sub r8d, edx
mov dword [rbx + 0x10c], eax
xor edx, edx
lea eax, [r9 - 1]
add eax, r8d
div r9d
mov dword [rbx + 0x108], eax
test r10d, r10d
je 0x140196f70
lea rdx, [rbx + 0x100]
test eax, eax
je 0x140196f70
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp cl, 7
jae 0x140197077
mov r10, qword [rbx + 0x128]
test r10, r10
je 0x14019708f
movzx eax, byte [rbx + 0x171]
movzx ecx, byte [rbx + 0x174]
mov r8d, eax
mov r9d, dword [rdx]
imul eax, ecx
imul r8, rcx
cmp eax, 8
jb 0x140197059
shr r8, 3
xor edx, edx
imul r8, r9
mov rcx, r10
inc r8
add rsp, 0x20
pop rbx
jmp fcn.1402a2d50
imul r8, r9
xor edx, edx
mov rcx, r10
add r8, 7
shr r8, 3
inc r8
add rsp, 0x20
pop rbx
jmp fcn.1402a2d50
mov r9d, 4
xor r8d, r8d
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140199b80
add rsp, 0x20
pop rbx
ret
Function at 0x1401b4cf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x250]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x1401b4e71
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x1401b4d8d
mov rax, qword [rbx + 0x30]
add qword [r14 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x1401b4de7
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x1401b4dd0
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rdi + rbx], cl
inc rbx
cmp rbx, 0xff
jle 0x1401b4db2
cmp r13d, 1
jne 0x1401b4e43
mov ecx, 1
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x1401b4e20
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x1401b4d70
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x1401b5310
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
mov ecx, 0x98
mov dword [rsp + 0x38], esi
call fcn.1400e0cb8
mov rbx, rax
test rax, rax
jne 0x1401b5356
mov rdx, qword [rdi]
mov dword [rdx + 0x28], 0x36
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.1401b6420]
mov qword [rbx], rax
lea rcx, str.JPEGMEM
lea rax, [fcn.1401b6330]
mov qword [rbx + 8], rax
lea rax, [fcn.1401b6240]
mov qword [rbx + 0x10], rax
lea rax, [fcn.1401b6150]
mov qword [rbx + 0x18], rax
lea rax, [0x1401b60a0]
mov qword [rbx + 0x20], rax
lea rax, [0x1401b5ff0]
mov qword [rbx + 0x28], rax
lea rax, [0x1401b5e60]
mov qword [rbx + 0x30], rax
lea rax, [0x1401b5a20]
mov qword [rbx + 0x38], rax
lea rax, [0x1401b5780]
mov qword [rbx + 0x40], rax
lea rax, [0x1401b5640]
mov qword [rbx + 0x48], rax
lea rax, [0x1401b5480]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov dword [rbx + 0x90], 0x98
mov qword [rdi + 8], rbx
call fcn.1400f90bc
test rax, rax
je 0x1401b545d
lea r9, [rsp + 0x30]
mov byte [rsp + 0x30], 0x78
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str._ld_c
call fcn.1400239e0
test eax, eax
jle 0x1401b545d
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x1401b5450
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x1401b5454
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401c4ca0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [rcx + 0x98]
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x1401c4cdc
mov rax, qword [rcx + 0x200]
call qword [rax]
mov dword [rsi], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x200]
mov qword [rsp + 0x30], rdi
cmp byte [rax + 0x10], bpl
je 0x1401c4d60
nop
mov eax, dword [rsi]
cmp eax, dword [rbx + 0x78]
jae 0x1401c4d38
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401c4d16
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rbx + 0x208]
xor r9d, r9d
mov edi, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsi]
cmp eax, edi
je 0x1401c4d8e
cmp eax, dword [rbx + 0x78]
jb 0x1401c4cf7
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax]
mov dword [rsi], ebp
mov rax, qword [rbx + 0x200]
cmp byte [rax + 0x10], bpl
jne 0x1401c4cf0
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x1401c4d73
Function at 0x1401d1090
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
movaps xmm6, xmm1
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1401d10aa
xor eax, eax
xor edx, edx
jmp 0x1401d10b0
mov eax, dword [rcx + 0x18]
mov edx, dword [rcx + 0x14]
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], 0
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x20]
nop
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x1401d120a
sub ecx, 1
je 0x1401d120a
sub ecx, 1
je 0x1401d116a
cmp ecx, 1
jne 0x1401d120a
xor r9d, r9d
mov r10d, dword [rsp + 0x50]
test r10d, r10d
jle 0x1401d120a
mov r8d, dword [rsp + 0x4c]
movsxd rcx, dword [rsp + 0x44]
movsxd rax, r9d
imul rcx, rax
add rcx, qword [rsp + 0x30]
xor edx, edx
test r8d, r8d
jle 0x1401d115d
nop dword [rax]
movzx eax, byte [rcx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
cvttss2si eax, xmm0
mov byte [rcx], al
movsxd rax, dword [rsp + 0x48]
add rcx, rax
inc edx
mov r8d, dword [rsp + 0x4c]
cmp edx, r8d
jl 0x1401d1130
mov r10d, dword [rsp + 0x50]
inc r9d
cmp r9d, r10d
jl 0x1401d1114
jmp 0x1401d120a
xor r10d, r10d
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jle 0x1401d120a
movss xmm1, dword [0x1403b5f90]
mov ecx, dword [rsp + 0x4c]
nop word [rax + rax]
movsxd rdx, dword [rsp + 0x44]
movsxd rax, r10d
imul rdx, rax
add rdx, qword [rsp + 0x30]
xor r9d, r9d
test ecx, ecx
jle 0x1401d1202
movaps xmm0, xmm6
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov r8d, 1
sub r8d, eax
nop dword [rax]
mov ecx, dword [rdx]
mov eax, ecx
shr eax, 8
and eax, 0xff00ff
imul eax, r8d
and ecx, 0xff00ff
imul ecx, r8d
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [rdx], ecx
movsxd rax, dword [rsp + 0x48]
add rdx, rax
inc r9d
mov ecx, dword [rsp + 0x4c]
cmp r9d, ecx
jl 0x1401d11c0
mov r8d, dword [rsp + 0x50]
inc r10d
cmp r10d, r8d
jl 0x1401d1190
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401d121e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
ret