joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180114a08
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 0x1801148bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801148bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801148bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801148bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801148bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1801148bb
cmp dword [rcx + 0xf8], 0
je 0x1801148bb
mov ecx, ebx
call fcn.18011496c
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.180114748
nop
cmp dword [rbp + 0x20], 0
je 0x180114909
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180114914
int3
xor r8d, r8d
xor edx, edx
jmp 0x18011484c

Function at 0x180118240
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1801bf780]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1801645b0]
mov rbp, rcx
call fcn.180116754
xor edi, edi
test rax, rax
je 0x180118326
mov ebx, edi
call fcn.180115e70
mov r14d, dword [rax]
call fcn.180115e70
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1801255ec
mov rsi, rax
test rax, rax
je 0x1801182b7
call fcn.180115e70
mov dword [rax], r14d
jmp 0x1801182e1
call fcn.180115e70
cmp dword [rax], 0x22
jne 0x18011831e
call fcn.180115e70
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1801255ec
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18011831e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1801182e5
cmp rax, 3
je 0x180118300
mov rcx, rsi
call fcn.18011819c
test al, al
je 0x180118311
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180118311
mov dil, 1
mov rcx, rbx
call fcn.180109938
mov al, dil
jmp 0x180118328
mov rcx, rbx
call fcn.180109938
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180102790
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18011cd1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1801c3bf0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18011cd73
cmp word [rdx], r13w
jne 0x18011cd73
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18011cd78
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18011ce9d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18011cebe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18011cdb1
mov rdx, r9
mov word [rbx], cx
jmp 0x18011cdd8
cmp r9, r8
jae 0x18011cde8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18011cd92
jmp 0x18011ce9d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18011ce92
cmp dword [rsp + 0x80], esi
je 0x18011ce92
lea r8, [0x1801c3bf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18011ce6a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18011ce3a
mov word [rbx], r13w
jmp 0x18011ce9a
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18011ce47
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18011ce9a
cmp word [rsp + 0x70], r13w
jne 0x18011ce77
cmp rbx, r14
je 0x18011ce34
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180118fa8
cmp word [rsp + 0x70], r13w
je 0x18011ce9d
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1801c3bf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18011ce97
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18011ce9d
Function at 0x180122e24
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180122e3a
mov al, 1
jmp 0x180122e9a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180122e4b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180122e98
mov ecx, dword [rcx + 0x18]
nop
call fcn.180125020
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180122e98
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180122e98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180122e98
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180122e9a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18012453c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18012455c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180115de4
or eax, 0xffffffff
jmp 0x18012455e
xor eax, eax
add rsp, 0x28
ret
Function at 0x180125130
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.180118fa8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180118fa8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180125280
cmp rax, 0xffffffffffffffff
je 0x180125280
xor edi, edi
test rbp, rbp
jle 0x18012522b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180122f6c
mov rbx, rax
test rax, rax
jne 0x1801251b8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180125221
mov edx, 0x8000
mov ecx, r14d
call fcn.180124a90
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.18011e0d4
cmp eax, 0xffffffff
je 0x180125201
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801251c8
mov edx, r15d
mov ecx, r14d
call fcn.180124a90
jmp 0x180125221
cmp byte [rsi + 0x38], dil
je 0x180125218
cmp dword [rsi + 0x34], 5
jne 0x180125218
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x180125221
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18011eec4
jmp 0x180125294
jns 0x180125294
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180118fa8
cmp rax, 0xffffffffffffffff
jne 0x18012524c
cmp byte [rsi + 0x30], dil
je 0x180125294
mov edi, dword [rsi + 0x2c]
jmp 0x180125294
mov ecx, r14d
call fcn.180125020
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180125294
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 0x180125294
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18012528d
mov eax, dword [rsi + 0x2c]
jmp 0x180125292
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180118fa8
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 0x1801288f4
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 0x180128924
xor eax, eax
jmp 0x1801289e7
mov rbp, rbx
cmp word [rax], si
je 0x180128949
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180128930
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18012892c
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.18012482c
movsxd r14, eax
test eax, eax
jne 0x180128987
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18012891d
mov rcx, r14
call fcn.18011ee64
mov rdi, rax
test rax, rax
jne 0x1801289a0
xor ecx, ecx
call fcn.18011eec4
jmp 0x18012897c
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.18012482c
test eax, eax
jne 0x1801289d1
mov rcx, rdi
call fcn.18011eec4
jmp 0x1801289db
xor ecx, ecx
call fcn.18011eec4
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 0x180128a04
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 0x180128a8b
mov rsi, rbx
cmp word [rax], bp
je 0x180128a4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180128a34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180128a30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18011ee64
mov rdi, rax
test rax, rax
je 0x180128a78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180131050
mov rbp, rdi
xor ecx, ecx
call fcn.18011eec4
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 0x18012bcbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18011f688
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18012bd5d
cmp ebx, dword [rsp + 0x30]
je 0x18012bd56
test esi, esi
je 0x18012bd56
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18012bd31
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18012bd3e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18012bd1b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18012bd42
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18012bd5f
mov eax, 1
jmp 0x18012bd5f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18012dd64
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1801bf780]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18012ddae
call fcn.180115e50
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.180115e70
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.180113594
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180102790
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18012ddb9
lea eax, [rbx + 1]
jmp 0x18012dd9b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x18012dd99
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18012dd9b

Function at 0x18012f680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18012f6a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18012f6a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc560c30
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc561632
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc584108]
test eax, eax
je 0x2fc5616ca
lea rax, [0x2fc5840e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc584110]
mov qword [rbp - 8], rax
jmp 0x2fc5616ae
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 0x2fc5616a2
cmp qword [rbp - 0x10], 0
je 0x2fc5616a2
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 0x2fc561668
lea rax, [0x2fc5840e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5616cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5617d0
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 0x2fc5617f8
mov eax, 0
jmp 0x2fc561846
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 0x2fc561821
mov eax, 0
jmp 0x2fc561846
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 0x2fc561841
mov eax, 0
jmp 0x2fc561846
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc56184c
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 0x2fc5618ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5618c1
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 0x2fc5618c1
mov rax, qword [rbp - 8]
jmp 0x2fc5618df
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 0x2fc561894
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x7ff7bd451fb0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
xor r15d, r15d
mov rdi, rcx
lea rcx, [rsp + 0x70]
lea r8d, [r15 + 0x68]
xor edx, edx
mov esi, r15d
mov r12d, r15d
call fcn.7ff7bd4544b0
mov ecx, dword [rdi]
xor eax, eax
dec ecx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
je 0x7ff7bd4521cd
dec ecx
je 0x7ff7bd4521bb
dec ecx
je 0x7ff7bd452105
dec ecx
je 0x7ff7bd452024
mov eax, 0x80070057
jmp 0x7ff7bd4520ea
mov rbx, qword [rdi + 8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x120], r15d
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
shr r13, 1
mov ebp, r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r13d
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x7ff7bd45206c
mov edi, 0x8007000e
jmp 0x7ff7bd4520b7
test r13d, r13d
je 0x7ff7bd4520ae
mov rdi, rax
nop word [rax + rax]
lea r8, [rsp + 0x120]
lea rdx, [0x7ff7bd45fe50]
mov rcx, rbx
call fcn.7ff7bd453658
movzx edx, byte [rsp + 0x120]
inc rdi
mov byte [rdi - 1], dl
add rbx, 2
dec rbp
jne 0x7ff7bd452080
mov r12d, r13d
mov rsi, r14
mov edi, r15d
test edi, edi
js 0x7ff7bd4520cf
mov edx, r12d
mov rcx, rsi
call fcn.7ff7bd453100
mov edi, eax
test eax, eax
js 0x7ff7bd4520cf
mov edi, r15d
test rsi, rsi
je 0x7ff7bd4520e8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rdi + 8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x128], r15d
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
shr r13, 1
mov ebp, r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r13d
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x7ff7bd45214d
mov edi, 0x8007000e
jmp 0x7ff7bd452197
test r13d, r13d
je 0x7ff7bd45218e
mov rdi, rax
nop word [rax + rax]
lea r8, [rsp + 0x128]
lea rdx, [0x7ff7bd45fe50]
mov rcx, rbx
call fcn.7ff7bd453658
movzx edx, byte [rsp + 0x128]
inc rdi
mov byte [rdi - 1], dl
add rbx, 2
dec rbp
jne 0x7ff7bd452160
mov r12d, r13d
mov rsi, r14
mov edi, r15d
test edi, edi
js 0x7ff7bd4520cf
mov edx, r12d
mov rcx, rsi
call fcn.7ff7bd452940
lea rcx, str.ads.php
call fcn.7ff7bd4512e0
jmp 0x7ff7bd4520c6
mov rcx, qword [0x7ff7bd464558]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x7ff7bd4520cc
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x7ff7bd4520cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x7ff7bd4520ea
movzx eax, ax
or eax, 0x80070000
jmp 0x7ff7bd4520ea
Function at 0x7ff7bd4527c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x7ff7bd462008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetDC]
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.7ff7bd452230
call fcn.7ff7bd451150
mov ebx, eax
test eax, eax
js 0x7ff7bd452907
lea rcx, str.ads.php
call fcn.7ff7bd4512e0
mov ebx, eax
test eax, eax
js 0x7ff7bd452907
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x7ff7bd464558], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, str.ads.php
call fcn.7ff7bd451c10
mov rbx, qword [rsp + 0x28]
test eax, eax
js 0x7ff7bd45288a
lea r8, str.ads.php
lea rdx, [0x7ff7bd464540]
mov rcx, rbx
call fcn.7ff7bd451840
test eax, eax
js 0x7ff7bd45288a
lea rcx, [0x7ff7bd464540]
call fcn.7ff7bd451fb0
test rbx, rbx
je 0x7ff7bd45289d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x7ff7bd4528b2
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x20], rdi
cmp qword [0x7ff7bd464548], rdi
je 0x7ff7bd4528d3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x7ff7bd464548]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [0x7ff7bd464a78]
mov rcx, qword [0x7ff7bd464558]
xor eax, eax
mov qword [0x7ff7bd464540], rax
mov qword [0x7ff7bd464548], rax
mov qword [0x7ff7bd464550], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7ff7bd452845
mov ebx, edi
call fcn.7ff7bd452550
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.7ff7bd453590
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x140068956
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400f2d20
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1400f1d70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400f2d57
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14018a020]
jmp 0x1400f2d5d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x1400696a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400edca0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400edcbd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400edd18
test al, 7
jne 0x1400edcb0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400edcd1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400edd42
test dh, dh
je 0x1400edd3c
shr rdx, 0x10
test dl, dl
je 0x1400edd36
test dh, dh
je 0x1400edd30
shr rdx, 0x10
test dl, dl
je 0x1400edd2a
test dh, dh
je 0x1400edd24
shr edx, 0x10
test dl, dl
je 0x1400edd1e
test dh, dh
jne 0x1400edcd1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400696ee
Capabilities:
Query environment variable

Disassembly:
jmp 0x14010f2cc
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 esi, esi
mov rbx, rax
test rax, rax
je 0x14010f369
mov rbp, rax
cmp word [rax], si
je 0x14010f315
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14010f2fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14010f2f8
sub rbp, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rbp, 2
mov r9d, 0x40
sar rbp, 1
add rbp, rbp
mov rcx, rbp
lea edx, [r9 - 0x3e]
call fcn.1400698fb
mov rdi, rax
test rax, rax
je 0x14010f354
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140069888
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.1400688cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140069a13
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14008b520
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14008aea0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008b55f
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 [0x14018a020]
jmp 0x14008b569
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret