joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002fa50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r13, qword [rsp + 0xc8]
lea rbx, [r9*8]
mov r14, qword [rsp + 0xd8]
mov r12d, 1
mov r10, rdx
mov rdi, rcx
mov ecx, r12d
mov edx, 3
mov rax, r13
mov r11, r8
mov r8, qword [r8]
mov rsi, r9
shl rax, 6
cmp rax, 0x4f
cmova ecx, edx
lea r15, [r8*2 + 4]
shl r12, cl
and r15d, 8
mov rax, r12
mov qword [rsp + 0x40], rcx
imul rax, r9
add r15, r8
mov edx, 0x40
lea rbp, [r14 + rax*8]
lea r9, [rbx + rbp]
mov qword [rsp + 0xb8], r9
nop dword [rax]
nop dword [rax + rax]
mov rcx, r8
shr edx, 1
imul rcx, r15
mov eax, 2
sub rax, rcx
imul r15, rax
cmp edx, 8
jae 0x14002faf0
mov rax, qword [rsp + 0xd0]
neg r15
mov qword [rsp + 0x38], r9
mov r8, rsi
mov qword [rsp + 0x30], r14
mov r9, r15
mov qword [rsp + 0x28], r12
mov rdx, r11
mov rcx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], r15
call fcn.14002f820
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140037460
xor r14d, r14d
xor ebx, ebx
mov qword [rsp + 0xc8], rbx
nop word [rax + rax]
mov rax, qword [rsp + 0xb8]
mov r9, rsi
mov qword [rsp + 0x38], rax
mov rdi, r14
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xa0]
mov r8, rax
mov rdx, rax
mov rcx, rax
call fcn.14002f390
test r14, r14
jne 0x14002fbab
lea r14d, [rdi + 0x3f]
jmp 0x14002fbae
dec r14
test rdi, rdi
lea rax, [r13 - 1]
mov rcx, r14
cmovne rax, r13
inc rbx
mov r8, rax
mov r13, rax
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + r8*8]
mov rax, qword [rsp + 0xc8]
shr rdx, cl
add rax, rax
and edx, 1
or rdx, rax
mov qword [rsp + 0xc8], rdx
cmp rbx, qword [rsp + 0x40]
je 0x14002fc06
test r14, r14
jne 0x14002fb60
test r8, r8
jne 0x14002fd02
mov rdi, qword [rsp + 0xd8]
lea r15, [rsi*8]
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x140068180]
mov rcx, qword [0x140068180]
xor rax, rbx
xor rcx, rax
mov rax, qword [0x140068180]
xor rcx, rdx
xor rax, rcx
mov r9, rax
neg rax
shr r9, 1
neg r9
or r9, rax
shr r9, 0x3f
dec r9
cmp rbp, rdi
je 0x14002fca3
test rsi, rsi
je 0x14002fca3
mov r11, rdi
mov rax, rbp
sub r11, rbp
mov r10, rsi
nop dword [rax]
mov r8, qword [0x140068180]
mov rdx, qword [r11 + rax]
xor r8, r9
mov rcx, qword [rax]
lea rax, [rax + 8]
and rdx, r9
not r8
and rcx, r8
or rdx, rcx
mov qword [rax - 8], rdx
sub r10, 1
jne 0x14002fc70
mov rdx, qword [rsp + 0xc8]
inc rbx
add rdi, r15
cmp rbx, r12
jb 0x14002fc20
mov rax, qword [rsp + 0xb8]
mov r9, rsi
mov rdx, qword [rsp + 0xa0]
mov r8, rbp
mov r15, qword [rsp + 0x48]
mov rcx, rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.14002f390
xor ebx, ebx
mov qword [rsp + 0xc8], 0
mov r8, r13
test r14, r14
jne 0x14002fb60
mov r13, r8
test r8, r8
jne 0x14002fb60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003ea08
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003e867
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e867
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e867
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e867
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e867
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e867
cmp dword [rcx + 0xf8], 0
je 0x14003e867
mov ecx, ebx
call fcn.14003e924
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003e6f4
nop
cmp dword [rbp + 0x20], 0
je 0x14003e8b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003e8c0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003e7f8

Function at 0x14003f0d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140051d10
sub rsp, rax
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140046130
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003f123
mov rax, rbp
jmp 0x14003f22b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x677f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140047f44
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x677f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003f227
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003f227
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140047f44
test rax, rax
js 0x14003f227
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003f227
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003f219
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003f219
cmp byte [rcx], 0xd
jne 0x14003f1ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003f20e
cmp byte [rcx + 1], 0xa
jne 0x14003f20e
inc rcx
jmp 0x14003f20e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x66170]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003f1e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003f22b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400354e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400419f4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400677f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140041a52
cmp word [rdx], r12w
jne 0x140041a52
or byte [rax + r8*8 + 0x38], cl
jmp 0x140041a58
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140041bb3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140041b8e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140041a91
mov rcx, r9
jmp 0x140041ab4
cmp r9, rdx
jae 0x140041acb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140041a75
jmp 0x140041bb3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140041b88
cmp dword [rsp + 0x80], edi
je 0x140041b88
mov rdx, r14
lea r11, [0x1400677f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140041b61
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140041b34
mov word [rbx], r12w
jmp 0x140041baf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140041b3d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140041baf
cmp word [rsp + 0x70], r12w
jne 0x140041b6e
cmp rbx, rsi
je 0x140041b2e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140047f4c
cmp word [rsp + 0x70], r12w
je 0x140041bb3
mov word [rbx], r13w
jmp 0x140041baf
lea r11, [0x1400677f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140041bab
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140041bb3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400485d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400485f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400401d4
or eax, 0xffffffff
jmp 0x1400485f2
xor eax, eax
add rsp, 0x28
ret
Function at 0x140049fe8
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 0x14004a018
xor eax, eax
jmp 0x14004a0db
mov rbp, rbx
cmp word [rax], si
je 0x14004a03d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004a024
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004a020
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.140049f38
movsxd r14, eax
test eax, eax
jne 0x14004a07b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004a011
mov rcx, r14
call fcn.140044b90
mov rdi, rax
test rax, rax
jne 0x14004a094
xor ecx, ecx
call fcn.140044208
jmp 0x14004a070
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.140049f38
test eax, eax
jne 0x14004a0c5
mov rcx, rdi
call fcn.140044208
jmp 0x14004a0cf
xor ecx, ecx
call fcn.140044208
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 0x14004a0f8
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 0x14004a17f
mov rsi, rbx
cmp word [rax], bp
je 0x14004a13e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004a128
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004a124
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140044b90
mov rdi, rax
test rax, rax
je 0x14004a16c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140037460
mov rbp, rdi
xor ecx, ecx
call fcn.140044208
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 0x14004f944
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003ce98
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004f9ce
cmp byte [rbp - 0x21], r15b
je 0x14004f9c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004fa04
call fcn.14004445c
test eax, eax
jne 0x14004f9f0
cmp byte [rbp - 0x21], r15b
je 0x14004f9e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004fa04
cmp byte [rbp - 0x21], r15b
je 0x14004fa01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003eb94
test eax, eax
jne 0x14004faa4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003ce98
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004fa43
cmp byte [rbp - 0x21], r15b
je 0x14004fa78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004fa78
call fcn.14004445c
test eax, eax
jne 0x14004fa64
cmp byte [rbp - 0x21], r15b
je 0x14004fa5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004fa78
cmp byte [rbp - 0x21], r15b
je 0x14004fa75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003eb94
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004faa4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004faa7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004fab5
mov rcx, rdi
call fcn.140044208
cmp byte [rbp + 0x3f], r15b
je 0x14004fac4
mov rcx, qword [rbp + 0x27]
call fcn.140044208
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400509b0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140047f4c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140047f4c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140050b00
cmp rax, 0xffffffffffffffff
je 0x140050b00
xor edi, edi
test rbp, rbp
jle 0x140050aab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400436c8
mov rbx, rax
test rax, rax
jne 0x140050a38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140050aa1
mov edx, 0x8000
mov ecx, r14d
call fcn.140040f9c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140042de4
cmp eax, 0xffffffff
je 0x140050a81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140050a48
mov edx, r15d
mov ecx, r14d
call fcn.140040f9c
jmp 0x140050aa1
cmp byte [rsi + 0x38], dil
je 0x140050a98
cmp dword [rsi + 0x34], 5
jne 0x140050a98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140050aa1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140044208
jmp 0x140050b14
jns 0x140050b14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140047f4c
cmp rax, 0xffffffffffffffff
jne 0x140050acc
cmp byte [rsi + 0x30], dil
je 0x140050b14
mov edi, dword [rsi + 0x2c]
jmp 0x140050b14
mov ecx, r14d
call fcn.140047a44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140050b14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140050b14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140050b0d
mov eax, dword [rsi + 0x2c]
jmp 0x140050b12
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140047f4c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140006bb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400080a0]
test rax, rax
je 0x140006c02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006c02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006c02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006c02
cmp dword [rcx + 0x84], 0xe
jbe 0x140006c02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006c04
xor al, al
add rsp, 0x28
ret
Function at 0x14009f1db
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140129cc0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140129410
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140129d02
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.1400a147c
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x28]
jmp 0x140129d11
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
add rsp, 0x38
ret

Function at 0x14009f217
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401c1dec
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x1401c1ed6
mov rsi, rax
cmp word [rax], r14w
je 0x1401c1e3f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1401c1e27
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1401c1e23
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x1401c1ed6
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400a1918
mov rdi, rax
test rax, rax
je 0x1401c1ec4
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
je 0x1401c1ec4
mov rsi, rdi
mov rdi, r14
jmp 0x1401c1ec7
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400a0315
jmp 0x1401c1ed9
mov rsi, r14
test rbx, rbx
je 0x1401c1ee7
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14009f5dc
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140129c60
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401293d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140129c98
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.1400a147c
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x28]
jmp 0x140129ca2
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
add rsp, 0x38
ret

Function at 0x14009f7bc
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400abe94
mov r10, rcx
mov eax, 0x109d
syscall
ret
Function at 0x14009f870
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400ac5d0
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14023e230]
xor rax, rbp
mov qword [rbp + 0x178], rax
call fcn.1400a37ef
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400ac625
mov eax, 0xffffffff
jmp 0x1400ac732
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x58]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400ac642
mov eax, 0xffffffff
jmp 0x1400ac732
mov eax, 8
imul rax, rax, 0x32
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400ac668
mov eax, 0xffffffff
jmp 0x1400ac732
mov dword [rbp + 0x84], 0
lea r9, [rbp + 0x84]
mov r8d, 0x40
mov edx, 0x3e8
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1400ac69c
mov eax, 0xffffffff
jmp 0x1400ac732
mov eax, 1
imul rax, rax, 0x38
mov rcx, qword [rbp + 0x68]
movzx eax, byte [rcx + rax]
cmp eax, 0x41
je 0x1400ac6b9
mov eax, 0xffffffff
jmp 0x1400ac732
lea rax, section..data
add rax, 3
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
lea rcx, [0x1400a3bbe]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
add rax, 0x2d
mov r8d, 0xd
lea rdx, section..data
mov rcx, rax
call fcn.1400a2098
mov rax, qword [rbp + 0x68]
add rax, 0x3c
mov qword [0x140240860], rax
mov rax, qword [0x140240870]
mov qword [0x140240868], rax
mov r8, qword [0x140240868]
mov rdx, qword [0x140240860]
lea rcx, str.__g_ClientCopyDDEIn1_ContinueAddr:_p__g_BitMapAddr:_p_n
call fcn.1400a2052
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401ee630]
call fcn.1400a0e55
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400a38b7
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x14009fa4b
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400abe73
mov r10, rcx
mov eax, 0x10f1
syscall
ret
Function at 0x14009ff69
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400abe89
mov r10, rcx
mov eax, 0x1017
syscall
ret

Function at 0x1400a0338
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401a4f20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1401a3fe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a4f77
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [section..00cfg]
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x28]
jmp 0x1401a4f99
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400a163e
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
add rsp, 0x38
ret

Function at 0x1400a0694
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140187620
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14023e230]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x14018766b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x20
jge 0x140187697
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0x20
jae 0x140187686
jmp 0x14018768b
call fcn.1400a05c2
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x40], 0
jmp 0x140187661
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
test eax, eax
je 0x1401876ec
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
sar eax, 3
cdqe
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
and ecx, 7
mov edx, 1
shl edx, cl
mov ecx, edx
movzx eax, byte [rsp + rax + 0x40]
or eax, ecx
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
sar ecx, 3
movsxd rcx, ecx
mov byte [rsp + rcx + 0x40], al
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x140187697
mov dword [rsp + 0x20], 0
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x40]
or eax, 1
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 0x40], al
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
sar eax, 3
cdqe
movzx eax, byte [rsp + rax + 0x40]
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx]
and ecx, 7
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
jne 0x140187757
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x140187712
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a38b7
add rsp, 0x78
ret