joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005bc0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140003e5e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140005bc0
cmp byte [0x14007dd30], 0
jne 0x140003ea9
lea rcx, [0x140055e38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003e99
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14007dd30], 1
mov qword [0x14007dd28], rax
jmp 0x140003eb0
mov rax, qword [0x14007dd28]
mov byte [0x14007dd30], 1
jmp 0x140003eb0
mov rax, qword [0x14007dd28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140003ecf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140005c34
lea rcx, [0x140055e38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je case.default.0x140005c4f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140005c4f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x140005c4f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
xchg esp, eax
xchg byte [rdx + 0x11413b91], al
cmp esp, eax
mov al, 0x63
xchg edi, eax
xchg byte [rcx], cl
mov eax, 0x4d22d0e9
invalid
Function at 0x1400b4e73
Capabilities:
Execute anti-debugging instructions

Disassembly:
btc edx, ebx
xchg byte [rsp + 4], al
xchg dword [rsp], r13d
pop r15w
neg rax
xchg rdi, r11
jmp 0x1400b4eb7
xchg byte [rsp + 2], r11b
bsr si, r14w
sete r9b
mov dword [rsp + 3], ebx
jmp 0x1400b4e55
mov word [rsp + 1], r13w
lea rsp, [rsp + 9]
mov rsi, qword [rsp]
jmp 0x1400b4ee7
mov byte [rsp + 2], cl
xchg r14b, dl
std
xchg qword [rsp], rdi
mov r13w, 0x1f3f
jmp 0x1400b4e87
dec r15w
rdtsc
lea r13, [r12 + 0x17c942df]
mov r9d, edi
sub rsp, 7
xchg r11d, esi
jmp 0x1400b4e9d
mov byte [rsp + 1], sil
mov r14d, 0xad608d28
xchg dword [rsp], r11d
jmp 0x1400b4f20
mov byte [rsp + 2], r10b
mov r13b, sil
mov r11d, 0xbd4df83b
xchg esi, r15d
jmp 0x1400b4ed1
rcl dil, 1
xchg r13d, eax
xchg byte [rsp], al
mov word [rsp + 1], r10w
push word [rsp + 3]
lea rdx, [rax + rcx]
jmp 0x1400b4f0a

Function at 0x1400b832a
Capabilities:
Execute anti-debugging instructions

Disassembly:
add rsp, 0x23
mov byte [rsp], r14b
lea rsp, [rsp + 1]
rcr dl, 1
jmp 0x1400b8358
cpuid
push qword [rsp + 6]
rcl r15d, 0x14
push word [rsp + 0x17]
mov r11, qword [rsp + 0xc]
xchg qword [rsp], r15
jmp 0x1400b82f0
std
mov byte [rsp + 0x11], r15b
cpuid
sub rsp, 0xa
pop qword [rsp + 0xf]
jmp 0x1400b8306
mov dx, 0x9e96
mov r15w, word [rsp + 2]
lea rsp, [rsp + 3]
btr r15d, r10d
jmp 0x1400b836c
xchg r10d, r9d
pushfq
xchg qword [rsp], rbp
pop word [rsp + 4]
stc
pop word [rsp]
jmp 0x1400b833d
lea r15, [rsi + r12]
lea r9, [rsi + rsi]
mov rdx, r10
mov ebx, ecx
setnp r9b
neg r13d
jmp 0x1400b83c5
bswap edi
lea rdx, [rbx + riz + 0x51eefd2e]
std
bt bp, dx
mov ebp, dword [rsp]
jmp 0x1400b8396
xchg r9d, edx
mov r13w, cx
cpuid
add rsp, 1
lea rdi, [rax*4]
lea rdx, [rdx + riz + 1]
jmp 0x1400b83ac

Function at 0x1400b8ea0
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg r8w
rdtsc
mov bpl, 0xe6
xchg r8, r15
mov r11b, byte [rsp + 0x16]
jmp 0x1400b8ef7
xchg dword [rsp + 0x14], r10d
Function at 0x14002924c
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.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
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.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
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 0x140141480
Capabilities:
Encode data using xor

Disassembly:
int 0
cli
add dl, byte ds:[rax + 0x43]
outsd dx, dword [rsi]
movabs al, byte [0xd321f058b02717]
sub al, 0xb6
mov esi, 0xe34e3bda
push rdx
add byte [rdx + 0x6c0dde82], dl
xchg ecx, ebx
mov fs, word [rax + 0x28]
mov bl, byte [rsi]
neg dword [rcx + 0x1f]
add byte [rbp - 0x5afe11c5], bh
add ax, 0x24fe
sbb al, 0xe8
add al, 2
pop rsp
sbb ch, byte [rsi]
jnp 0x140141525
or dword [rsi - 0x1360dba5], eax
sbb eax, dword [rax]
xor al, 0x36
jae 0x1401414c3
lea eax, [rax]
mov bl, 0xaf
sbb eax, 0x47cbb131
movabs eax, dword [0xc089939442c1aa00]
invalid
mov al, 0x21
invalid
Function at 0x140001f40
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1400210c0
sub rsp, rax
mov rax, qword [0x14005a958]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001c490
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140001fbd
lea rcx, [rsp + 0x70]
call fcn.1400332e4
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140021120
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140021120
add rsp, 0x10088
ret

Function at 0x140002070
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14005a958]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140041020]
call fcn.140001f40
xor edi, edi
mov qword [0x14005bef0], rax
lea rdx, [0x140041020]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.14001c490
lea rdx, [0x140041028]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140001f40
mov cl, 1
mov qword [0x14005bef8], rax
call fcn.14001d640
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14001c490
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.14001d640
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140021120
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140002600
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005a958]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.14000f5a0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001c490
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1400026c3
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1400026b1
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1400026e3
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400026e3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1400026e3
mov rcx, rbp
call fcn.140001a20
sub qword [rdi], 1
jne 0x1400026f3
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140002703
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140021120
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001c540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x14001c604
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x14001c560
not eax
ret
Function at 0x140021b04
Capabilities:
Parse pe header

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

Function at 0x140026a98
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 0x140026903
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026903
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026903
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026903
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026903
cmp dword [rcx + 0x84], 0xe
jbe 0x140026903
cmp dword [rcx + 0xf8], 0
je 0x140026903
mov ecx, ebx
call fcn.1400269b4
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.140026790
nop
cmp dword [rbp + 0x20], 0
je 0x140026951
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002695c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140026894
Function at 0x140038550
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 0x1400385d7
mov rsi, rbx
cmp word [rax], bp
je 0x140038596
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140038580
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003857c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400333d0
mov rdi, rax
test rax, rax
je 0x1400385c4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021e30
mov rbp, rdi
xor ecx, ecx
call fcn.140034304
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 0x14003c14c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003c162
mov al, 1
jmp 0x14003c1c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003c173
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003c1c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140038cf4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003c1c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003c1c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003c1c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003c1c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140052300]
mov dword [rax], 1
mov rax, qword [0x140052310]
mov dword [rax], 1
mov rax, qword [0x140052320]
mov dword [rax], 1
mov rax, qword [0x1400522b0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001b560
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140035470
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14002bb30
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001b5b9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x140034150
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400458d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400458d0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140034e22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14005b268]
test eax, eax
je 0x140034eba
lea rax, [0x14005b240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14005b270]
mov qword [rbp - 8], rax
jmp 0x140034e9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140034e92
cmp qword [rbp - 0x10], 0
je 0x140034e92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140034e58
lea rax, [0x14005b240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140034ebb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140034fc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140034fe8
mov eax, 0
jmp 0x140035036
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140035011
mov eax, 0
jmp 0x140035036
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140035031
mov eax, 0
jmp 0x140035036
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003503c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400350ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400350b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400350b1
mov rax, qword [rbp - 8]
jmp 0x1400350cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140035084
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180007740
Capabilities:
Send data
Send http request
Set http header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x18009b018]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov r9d, dword [rsp + 0x288]
lea r8, str.Content_Length:
lea rdx, str._s__d
lea rcx, [rsp + 0x50]
call fcn.180008df0
mov r9d, 0xa0000000
mov r8d, 0xffffffff
lea rdx, [rsp + 0x50]
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1800077bb
xor eax, eax
jmp 0x1800078e1
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
lea rcx, [rsp + 0x50]
call fcn.180008df0
mov r9d, 0xa0000000
mov r8d, 0xffffffff
lea rdx, [rsp + 0x50]
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1800077f5
xor eax, eax
jmp 0x1800078e1
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x288]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180007834
xor eax, eax
jmp 0x1800078e1
mov eax, dword [rsp + 0x288]
cmp dword [rsp + 0x40], eax
jae 0x1800078dc
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x288]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x288]
sub ecx, eax
mov eax, ecx
cmp eax, 0x1000
jae 0x180007883
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x288]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
jmp 0x18000788b
mov dword [rsp + 0x48], 0x1000
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x280]
add rcx, rax
mov rax, rcx
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x44]
mov rdx, rax
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1800078c7
xor eax, eax
jmp 0x1800078e1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x180007834
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180047960
add rsp, 0x278
ret
Function at 0x180007980
Capabilities:
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x18009b018]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x3c], 0x40
mov dword [rsp + 0x38], 0
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.180007740
test eax, eax
jne 0x1800079db
xor eax, eax
jmp 0x180007b41
xor edx, edx
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1800079f5
xor eax, eax
jmp 0x180007b41
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 5
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x180007a2e
xor eax, eax
jmp 0x180007b41
lea rcx, [rsp + 0x50]
call fcn.18004f220
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180007a4d
mov eax, 1
jmp 0x180007b41
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
jne 0x180007a7e
xor eax, eax
jmp 0x180007b41
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x18009d428]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x180007aee
mov rax, qword [rsp + 0xc0]
cmp qword [rax], 0
je 0x180007adb
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0xc0]
mov qword [rax], 0
xor eax, eax
jmp 0x180007b41
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x34], 0
jbe 0x180007b3c
cmp dword [rsp + 0x30], 0
ja 0x180007a9c
mov eax, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180047960
add rsp, 0xa8
ret