joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140176dc4
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 0x140176df4
xor eax, eax
jmp 0x140176eb7
mov rbp, rbx
cmp word [rax], si
je 0x140176e19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140176e00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140176dfc
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.140174034
movsxd r14, eax
test eax, eax
jne 0x140176e57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140176ded
mov rcx, r14
call fcn.14016ef1c
mov rdi, rax
test rax, rax
jne 0x140176e70
xor ecx, ecx
call fcn.14016caa0
jmp 0x140176e4c
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.140174034
test eax, eax
jne 0x140176ea1
mov rcx, rdi
call fcn.14016caa0
jmp 0x140176eab
xor ecx, ecx
call fcn.14016caa0
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 0x140176ed4
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 0x140176f5b
mov rsi, rbx
cmp word [rax], bp
je 0x140176f1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140176f04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140176f00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14016ef1c
mov rdi, rax
test rax, rax
je 0x140176f48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401458c0
mov rbp, rdi
xor ecx, ecx
call fcn.14016caa0
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 0x140179ca0
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.14016c104
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 0x140179d41
cmp ebx, dword [rsp + 0x30]
je 0x140179d3a
test esi, esi
je 0x140179d3a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140179d15
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140179d22
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140179cff
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140179d26
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140179d43
mov eax, 1
jmp 0x140179d43
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14017cf34
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140225b08]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14017cf7e
call fcn.14015ed0c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14015ed2c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14015e604
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401439f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14017cf89
lea eax, [rbx + 1]
jmp 0x14017cf6b
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 0x14017cf69
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14017cf6b
Function at 0x14017e54c
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.14015458c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14017e5d6
cmp byte [rbp - 0x21], r15b
je 0x14017e5d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14017e60c
call fcn.14016cdfc
test eax, eax
jne 0x14017e5f8
cmp byte [rbp - 0x21], r15b
je 0x14017e5f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14017e60c
cmp byte [rbp - 0x21], r15b
je 0x14017e609
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.14015f104
test eax, eax
jne 0x14017e6ac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14015458c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14017e64b
cmp byte [rbp - 0x21], r15b
je 0x14017e680
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14017e680
call fcn.14016cdfc
test eax, eax
jne 0x14017e66c
cmp byte [rbp - 0x21], r15b
je 0x14017e665
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14017e680
cmp byte [rbp - 0x21], r15b
je 0x14017e67d
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.14015f104
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14017e6ac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14017e6af
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14017e6bd
mov rcx, rdi
call fcn.14016caa0
cmp byte [rbp + 0x3f], r15b
je 0x14017e6cc
mov rcx, qword [rbp + 0x27]
call fcn.14016caa0
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 0x14017f29c
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.14017274c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14017274c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14017f3ec
cmp rax, 0xffffffffffffffff
je 0x14017f3ec
xor edi, edi
test rbp, rbp
jle 0x14017f397
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14016c6d8
mov rbx, rax
test rax, rax
jne 0x14017f324
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14017f38d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401623c8
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.14016e240
cmp eax, 0xffffffff
je 0x14017f36d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14017f334
mov edx, r15d
mov ecx, r14d
call fcn.1401623c8
jmp 0x14017f38d
cmp byte [rsi + 0x38], dil
je 0x14017f384
cmp dword [rsi + 0x34], 5
jne 0x14017f384
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14017f38d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14016caa0
jmp 0x14017f400
jns 0x14017f400
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14017274c
cmp rax, 0xffffffffffffffff
jne 0x14017f3b8
cmp byte [rsi + 0x30], dil
je 0x14017f400
mov edi, dword [rsi + 0x2c]
jmp 0x14017f400
mov ecx, r14d
call fcn.140173628
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14017f400
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 0x14017f400
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14017f3f9
mov eax, dword [rsi + 0x2c]
jmp 0x14017f3fe
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14017274c
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 0x6d7d4410
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d4598
mov rax, qword [0x6d7f55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d445c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d44e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d4440
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d45cd
mov rax, qword [0x6d7f55e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d45b0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d44de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d4540
add dword [0x6d7f55e4], 1
cmp edi, 8
jae 0x6d7d4513
test dil, 4
jne 0x6d7d4584
test edi, edi
je 0x6d7d4508
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d459f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d4508
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d452c
jmp 0x6d7d4508
add rsi, qword [0x6d7f55e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d44de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d4508
xor esi, esi
jmp 0x6d7d4467
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d4508
mov rax, qword [0x6d7f55e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d4d20
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f58a0]
test rbx, rbx
je 0x6d7d4d74
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d4d6b
test rsi, rsi
je 0x6d7d4d6b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d4d50
lea rcx, [0x6d7f58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d4fb0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d4fc0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d4fd0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d5011
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d5008
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d5013
add rax, 0x28
cmp rax, r9
jne 0x6d7d4ff4
xor eax, eax
ret

Function at 0x6d7d50b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d511d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d511d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d511d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5114
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d511f
add rax, 0x28
cmp rax, r9
jne 0x6d7d5100
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d5220
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d5240
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5238
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d529d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d52a4
add rax, 0x28
cmp rax, r9
jne 0x6d7d5280
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d52c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d532e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d532e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d532e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d532e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d5325
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d5335
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d5310
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d5348
jmp 0x6d7d532e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d5356
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d532e
test r9d, r9d
jg 0x6d7d5340
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d5690
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400013f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [0x140001320]
mov rdi, rcx
lea r8, str.apply
xor bl, bl
call fcn.140056610
test eax, eax
je 0x14000141f
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movzx eax, byte [0x1403b3e82]
xor ecx, ecx
movzx edx, byte [0x1403b3e81]
test dl, dl
cmove eax, ecx
mov byte [0x1403b3e82], al
cmp dword [rdi], ecx
jle 0x140001461
mov ecx, 2
mov bl, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Too_many_arguments_given_n
call fcn.1400012d0
movzx edx, byte [0x1403b3e81]
movsx eax, byte [0x1403b3e80]
movsx ecx, byte [0x1403b3e85]
add ecx, eax
movsx eax, dl
add ecx, eax
cmp ecx, 1
je 0x140001497
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.You_must_use_one_and_only_one_of_the_options_display_only___nprint_log_control_file_and_apply_n
call fcn.1400012d0
jmp 0x14000149b
test bl, bl
je 0x1400014c0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
call fcn.140001a90
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [0x1403b3e88]
lea rbx, [0x1403b3ec0]
mov rcx, rbx
call fcn.140053520
test al, al
je 0x1400014e6
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [0x140bc2f40], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ecf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rdx
mov r9, r8
mov rdx, r8
mov rcx, rbx
cmp dword [rax + 0x704], 3
je 0x14002ed18
add rsp, 0x20
pop rbx
jmp fcn.14006a990
shr rcx, 8
mov r8d, 0xa
call fcn.14006bd10
movzx ecx, bl
mov r8d, 0xa
lea rdx, [rax + 1]
mov byte [rax], 0x3a
add rsp, 0x20
pop rbx
jmp fcn.14006bd10

Function at 0x140045d10
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx]
xor ecx, ecx
mov r8d, dword [rax + 0x374]
jmp fcn.14005bca0

Function at 0x140046600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rdx
mov rdx, qword [rdx + 8]
mov r9d, dword [r8 + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx + 0x70]
jmp fcn.140046620
Function at 0x140052070
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1403b3e38]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x140bb8ff8]
test rax, rax
jne 0x140052127
movzx eax, word [0x1400a164c]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x1400a164e]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
lea r9d, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor edx, edx
lea r8, [rsp + 0x20]
mov eax, edx
lea r9, str.cp932
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140052107
cmp rax, 6
jne 0x1400520f0
jmp 0x14005210c
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x1402002d0]
lea rax, [0x1401ffa80]
cmove rax, rcx
mov qword [0x140bb8ff8], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140099470
add rsp, 0x48
ret

Function at 0x140053020
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140bbd004], 0
jne 0x140053153
inc dword [0x140bbd000]
lea rcx, str.UMASK
mov byte [0x140bbd004], 1
mov dword [0x1401ff134], 0x1b0
mov dword [0x1401ff140], 0x1c0
mov dword [0x140bbd694], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140053081
mov rcx, rax
call fcn.140052e60
or eax, 0x180
mov dword [0x1401ff134], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400530a6
mov rcx, rax
call fcn.140052e60
or eax, 0x1c0
mov dword [0x1401ff140], eax
call fcn.1400012c0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140bbd470]
mov qword [0x140bbd010], rax
lea rax, [0x140bbd010]
mov qword [0x140bbd008], rax
lea rax, str.unknown
mov qword [0x140bbd478], rax
mov qword [0x140bbd018], 0
test rcx, rcx
je 0x140053100
call fcn.14005c610
add rax, qword [0x140bbd470]
mov qword [0x140bbd478], rax
call fcn.1400012c0
call fcn.140059830
test al, al
je 0x140053115
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 [0x140bbd468], rax
test rax, rax
je 0x140053144
mov rdx, rax
lea rcx, [0x140bbd6a0]
call fcn.14005b160
mov qword [0x140bbd468], rax
call fcn.14005bc40
call fcn.140053170
call fcn.140053250
xor al, al
add rsp, 0x28
ret
Function at 0x140053170
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140053160]
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 0x140053300
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1403b3e38]
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 0x14005347e
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 0x140053463
nop dword [rax]
inc ebx
cmp eax, 0xea
je 0x14005340f
test eax, eax
jne 0x140053463
cmp dword [rsp + 0x48], 1
jne 0x14005340f
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400a18f8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.14006a930
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 0x1400533c0
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.140099470
add rsp, 0xa80
pop rbp
ret