joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400282ec
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, [0x1400a82d0]
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 0x14002834a
cmp word [rdx], r12w
jne 0x14002834a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140028350
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400284ab
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140028486
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140028389
mov rcx, r9
jmp 0x1400283ac
cmp r9, rdx
jae 0x1400283c3
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 0x14002836d
jmp 0x1400284ab
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 0x140028480
cmp dword [rsp + 0x80], edi
je 0x140028480
mov rdx, r14
lea r11, [0x1400a82d0]
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 0x140028459
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002842c
mov word [rbx], r12w
jmp 0x1400284a7
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 0x140028435
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400284a7
cmp word [rsp + 0x70], r12w
jne 0x140028466
cmp rbx, rsi
je 0x140028426
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140028f78
cmp word [rsp + 0x70], r12w
je 0x1400284ab
mov word [rbx], r13w
jmp 0x1400284a7
lea r11, [0x1400a82d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400284a3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400284ab
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 0x14002a7e4
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 0x14002a86b
mov rsi, rbx
cmp word [rax], bp
je 0x14002a82a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002a814
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002a810
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002311c
mov rdi, rax
test rax, rax
je 0x14002a858
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011bd0
mov rbp, rdi
xor ecx, ecx
call fcn.1400230e0
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 0x140031060
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140031088
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140031088
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400380b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400380f9
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.140010b68
test rax, rax
jne 0x14003810b
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400380e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x56
mov dword [rbp - 0x20], 0x2f0020
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x2d000b
mov dword [rbp - 0x18], 0x2b001d
mov dword [rbp - 0x14], 0x37000d
mov dword [rbp - 0x10], 0x140023
call fcn.14000d180
mov rcx, qword [rax]
call 0x1400380b0
mov qword [0x1400a8928], rax
lea rcx, [rbp - 0x20]
mov eax, 0x70
mov dword [rbp - 0x20], 0x2f0020
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2d000b
mov dword [rbp - 0x18], 0x2b001d
mov dword [rbp - 0x14], 0x44007c
call fcn.1400044e0
mov rcx, qword [rax]
call 0x1400380b0
lea rcx, [rbp - 0x20]
mov qword [0x1400a8920], rax
mov dword [rbp - 0x20], 0x1e0005
mov dword [rbp - 0x1c], 0xf003d
mov dword [rbp - 0x18], 0x670034
call fcn.14000cf70
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x1400380b0
Function at 0x140038600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400380f9
nop dword [rax + rax]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.140010b68
test rax, rax
jne 0x14003810b
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400380e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x56
mov dword [rbp - 0x20], 0x2f0020
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x2d000b
mov dword [rbp - 0x18], 0x2b001d
mov dword [rbp - 0x14], 0x37000d
mov dword [rbp - 0x10], 0x140023
call fcn.14000d180
mov rcx, qword [rax]
call 0x1400380b0
mov qword [0x1400a8928], rax
lea rcx, [rbp - 0x20]
mov eax, 0x70
mov dword [rbp - 0x20], 0x2f0020
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2d000b
mov dword [rbp - 0x18], 0x2b001d
mov dword [rbp - 0x14], 0x44007c
call fcn.1400044e0
mov rcx, qword [rax]
call 0x1400380b0
lea rcx, [rbp - 0x20]
mov qword [0x1400a8920], rax
mov dword [rbp - 0x20], 0x1e0005
mov dword [rbp - 0x1c], 0xf003d
mov dword [rbp - 0x18], 0x670034
call fcn.14000cf70
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x1400380b0

Function at 0x1400388a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rbp, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140038917
nop dword [rax]
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rbp
mov esi, dword [r14 + rax*4]
add rsi, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140038936
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x1400388f0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140038919
Function at 0x14003a0a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400a8930]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x20038
mov dword [rbp - 0x1c], 0xf003c
mov dword [rbp - 0x18], 0x540034
mov dword [rbp - 0x14], 0x58007d
mov dword [rbp - 0x10], 0x3d0014
mov dword [rbp - 0xc], 0x4c003a
call fcn.140009820
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x140049fa0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400a8918], rax
mov word [rbp - 0x10], 0x362c
mov byte [rbp - 0xe], 0x4f
call fcn.14000c1b0
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0xf3c0238
mov dword [rbp - 0x1c], 0x13372234
mov dword [rbp - 0x18], 0x29222413
mov word [rbp - 0x14], 0x6e18
call fcn.140009ec0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x140001970
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea r9, [0x1400038a0]
mov rbx, rcx
lea r8, str.help
call fcn.140007450
test eax, eax
je 0x1400019a3
xor ecx, ecx
call fcn.140006450
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [rbx], 0
jne 0x1400019bc
call fcn.140003620
xor ecx, ecx
call fcn.140006450
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140003260
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
test dl, dl
movzx ebx, dl
lea rax, [r8 - 0x400]
mov r10, rcx
cmove rax, r8
add rcx, 0x400
test dl, dl
mov r8, rax
mov edx, 1
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, ebx
shl rcx, 0xa
add rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x140003700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x30
mov rbx, rdx
mov r14, rcx
mov rdx, r9
mov rcx, r8
mov rbp, r8
call fcn.140003310
xor ecx, ecx
movzx esi, al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140003768
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
test sil, sil
je 0x140003802
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fsetpos]
test eax, eax
je 0x140003768
lea rcx, [0x140034bd8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor al, al
jmp 0x14000381f
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
jne 0x140003782
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140003785
mov rax, rbx
mov r8, qword [0x140333ac8]
mov r9, rax
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [0x140333ac8], rax
je 0x1400037e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140333aa8]
lea rdx, str.Failed_to_write_page::_llu_to__s:__s_n
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov r9, r14
call fcn.140003850
xor al, al
jmp 0x14000381f
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000381d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
je 0x14000381d
lea rcx, [0x140034be0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor al, al
jmp 0x14000381f
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140004810
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov r9, rdx
mov ecx, 0xfffffff8
xor eax, eax
and r9, rcx
mov r10, rdx
add r9, r8
cmp r8, r9
jae 0x14000494a
nop
movzx ecx, byte [r8]
mov edx, ecx
xor rdx, rax
xor rdx, 0x62946a4f
shl rdx, 8
add rdx, rax
movzx eax, byte [r8 + 1]
xor rdx, 0x573ed587
add rdx, rcx
mov ecx, eax
xor rcx, rdx
xor rcx, 0x62946a4f
shl rcx, 8
add rcx, rdx
xor rcx, 0x573ed587
add rcx, rax
movzx eax, byte [r8 + 2]
mov edx, eax
xor rdx, rcx
xor rdx, 0x62946a4f
shl rdx, 8
add rdx, rcx
xor rdx, 0x573ed587
add rdx, rax
movzx eax, byte [r8 + 3]
mov ecx, eax
xor rcx, rdx
xor rcx, 0x62946a4f
shl rcx, 8
add rcx, rdx
xor rcx, 0x573ed587
add rcx, rax
movzx eax, byte [r8 + 4]
mov edx, eax
xor rdx, rcx
xor rdx, 0x62946a4f
shl rdx, 8
add rdx, rcx
xor rdx, 0x573ed587
add rdx, rax
movzx eax, byte [r8 + 5]
mov ecx, eax
xor rcx, rdx
xor rcx, 0x62946a4f
shl rcx, 8
add rcx, rdx
xor rcx, 0x573ed587
add rcx, rax
movzx eax, byte [r8 + 6]
mov edx, eax
xor rdx, rcx
xor rdx, 0x62946a4f
shl rdx, 8
add rdx, rcx
movzx ecx, byte [r8 + 7]
xor rdx, 0x573ed587
add r8, 8
add rdx, rax
mov eax, ecx
xor rax, rdx
xor rax, 0x62946a4f
shl rax, 8
add rax, rdx
xor rax, 0x573ed587
add rax, rcx
cmp r8, r9
jb 0x140004830
and r10d, 7
dec r10
cmp r10, 6
ja case.default.0x14000496d
lea rdx, [0x140000000]
mov ecx, dword [rdx + r10*4 + 0x4a64]
add rcx, rdx
jmp rcx
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
inc r8
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
inc r8
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
inc r8
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
inc r8
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
inc r8
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
inc r8
movzx edx, byte [r8]
mov ecx, edx
xor rcx, rax
xor rcx, 0x62946a4f
shl rcx, 8
add rax, rcx
xor rax, 0x573ed587
add rax, rdx
ret
Function at 0x140005780
Capabilities:
Encode data using xor

Disassembly:
lea r11, [0x140333ee0]
xor r8d, r8d
mov r9, r11
mov r10d, 0x100
nop dword [rax]
nop word [rax + rax]
mov eax, r8d
lea r9, [r9 + 4]
mov ecx, r8d
shr ecx, 1
mov edx, ecx
xor edx, 0x82f63b78
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0x82f63b78
and dl, 1
cmove eax, ecx
inc r8d
mov dword [r9 - 4], eax
cmp r8d, r10d
jb 0x1400057a0
lea rax, [0x1403346e0]
nop dword [rax]
mov r8d, dword [rax - 0x800]
lea rax, [rax + 4]
movzx edx, r8b
shr r8d, 8
mov r9d, dword [r11 + rdx*4]
xor r9d, r8d
mov dword [rax - 0x404], r9d
movzx edx, r9b
shr r9d, 8
mov r8d, dword [r11 + rdx*4]
xor r8d, r9d
mov dword [rax - 4], r8d
movzx edx, r8b
shr r8d, 8
mov r9d, dword [r11 + rdx*4]
xor r9d, r8d
mov dword [rax + 0x3fc], r9d
movzx edx, r9b
shr r9d, 8
mov r8d, dword [r11 + rdx*4]
xor r8d, r9d
mov dword [rax + 0x7fc], r8d
movzx edx, r8b
shr r8d, 8
mov r9d, dword [r11 + rdx*4]
xor r9d, r8d
mov dword [rax + 0xbfc], r9d
movzx edx, r9b
shr r9d, 8
mov r8d, dword [r11 + rdx*4]
xor r8d, r9d
mov dword [rax + 0xffc], r8d
movzx edx, r8b
shr r8d, 8
mov ecx, dword [r11 + rdx*4]
xor ecx, r8d
mov dword [rax + 0x13fc], ecx
sub r10, 1
jne 0x140005850
mov byte [0x140335ee0], 1
ret
Function at 0x1400065a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140335eec], 0
jne 0x1400066d3
inc dword [0x140335ee8]
lea rcx, str.UMASK
mov byte [0x140335eec], 1
mov dword [0x14017fbc4], 0x1b0
mov dword [0x14017fbd0], 0x1c0
mov dword [0x140336154], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140006601
mov rcx, rax
call fcn.1400063e0
or eax, 0x180
mov dword [0x14017fbc4], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140006626
mov rcx, rax
call fcn.1400063e0
or eax, 0x1c0
mov dword [0x14017fbd0], eax
call fcn.140008da0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140335f30]
mov qword [0x140335ef8], rax
lea rax, [0x140335ef8]
mov qword [0x140335ef0], rax
lea rax, str.unknown
mov qword [0x140335f38], rax
mov qword [0x140335f00], 0
test rcx, rcx
je 0x140006680
call fcn.140009a00
add rax, qword [0x140335f30]
mov qword [0x140335f38], rax
call fcn.140008da0
call fcn.140009380
test al, al
je 0x140006695
mov al, 1
add rsp, 0x28
ret
lea rcx, str.HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x140335f28], rax
test rax, rax
je 0x1400066c4
mov rdx, rax
lea rcx, [0x140336160]
call fcn.140009ac0
mov qword [0x140335f28], rax
call fcn.140009ba0
call fcn.1400066f0
call fcn.1400067d0
xor al, al
add rsp, 0x28
ret
Function at 0x1400066f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400066e0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__tzset]
add rsp, 0x28
jmp 0x140006880
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1403338e8]
xor rax, rsp
mov qword [rbp + 0x970], rax
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMySQL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400069fe
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov qword [rsp + 0xa90], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0xa98], rdi
xor edi, edi
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x44], 0xff
mov dword [rsp + 0x40], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x1400069e3
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x14000698f
test eax, eax
jne 0x1400069e3
cmp dword [rsp + 0x48], 1
jne 0x14000698f
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x140036138]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.14000b860
lea rcx, [rbp + 0x460]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x140006940
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400331d0
add rsp, 0xa80
pop rbp
ret
Function at 0x140006710
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400067b7
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsock2Parameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400067b7
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsockParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400067b7
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400067b0
cmp byte [0x140335eed], 0
je 0x1400067b7
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x1400067d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403338e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.140006710
test al, al
je 0x140006857
mov qword [rsp + 0x1d0], rbx
lea rdx, [rsp + 0x20]
mov ebx, 0x202
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140006817
cmp word [rsp + 0x20], bx
je 0x14000682e
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140006835
mov byte [0x140335eed], 1
mov rbx, qword [rsp + 0x1d0]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400331d0
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400331d0
add rsp, 0x1d8
ret
Function at 0x140006880
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400066e0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__tzset]
add rsp, 0x28
jmp 0x140006880
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1403338e8]
xor rax, rsp
mov qword [rbp + 0x970], rax
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMySQL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400069fe
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov qword [rsp + 0xa90], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0xa98], rdi
xor edi, edi
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x44], 0xff
mov dword [rsp + 0x40], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x1400069e3
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x14000698f
test eax, eax
jne 0x1400069e3
cmp dword [rsp + 0x48], 1
jne 0x14000698f
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x140036138]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.14000b860
lea rcx, [rbp + 0x460]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x140006940
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400331d0
add rsp, 0xa80
pop rbp
ret