joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d558
Capabilities:
Create directory

Disassembly:
jmp 0x14001d558
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14002de40]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rcx, rdx
mov rdi, rdx
call sub.MSVCR100.dll_strlen
cmp rax, rbx
jbe 0x14001d5c6
lea rcx, [rsp + 0x20]
mov rdx, rdi
call sub.MSVCR100.dll_strcpy
lea rcx, [rsp + 0x20]
mov edx, 0x2f
call qword [sym.imp.MSVCR100.dll_strrchr]
test rax, rax
je 0x14001d5c6
lea rdx, [rsp + 0x20]
mov ecx, ebx
mov byte [rax], 0
call fcn.1400016db
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001ea50
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret

Function at 0x14001d60c
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d60c
push rbx
sub rsp, 0x20
test rcx, rcx
lea rbx, str.corrupt_pack_file_or_internal_error
mov rax, rdx
cmovne rbx, rcx
test rdx, rdx
jne 0x14001d658
call fcn.140001208
test rax, rax
jne 0x14001d658
call qword [sym.imp.MSVCR100.dll___iob_func]
lea rdx, str.Error:_unpacker:__s_n
mov r8, rbx
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR100.dll_fprintf]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.MSVCR100.dll_abort]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400016b3

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

Disassembly:
jmp 0x14001d7bc
test r8d, r8d
jle 0x14001d80f
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov r9, qword [rdi]
movsxd r8, ebx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_fwrite]
test eax, eax
jle 0x14001d810
add dword [rdi + 0x34], eax
movsxd rcx, eax
sub ebx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001d7d9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.MSVCR100.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov rcx, qword [rcx + 0xc0]
mov r8d, dword [rax]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 1
call qword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x14001d8f4
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d8f4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001d949
lea rdx, [0x14002af74]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001d949
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_Could_not_open_jar_file:__s_n
mov r8, rdi
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 3
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d9f4
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d9f4
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002de40]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001da33
cmp edi, dword [rcx + 0xc]
jne 0x14001da27
mov eax, dword [rcx + 0x10]
jmp 0x14001daf4
mov eax, dword [rcx + 8]
cmp eax, 0
cmove eax, edi
mov dword [rcx + 8], eax
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rdx + 0x24]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__gmtime64]
mov r10, rax
test rax, rax
jne 0x14001da7d
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov r11d, dword [rax + 0x14]
mov edx, 0x7bc
add r11d, 0x76c
cmp r11d, edx
jge 0x14001daba
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, 1
mov rcx, rbx
mov r8d, r9d
call fcn.14000135c
mov r11d, eax
jmp 0x14001daed
add r11d, 0xffffffc4
shl r11d, 9
or r11d, dword [rax + 0xc]
shl r11d, 5
or r11d, dword [rax + 8]
shl r11d, 6
or r11d, dword [rax + 4]
mov eax, dword [rax + 0x10]
inc eax
shl r11d, 5
shl eax, 0x15
or r11d, eax
mov eax, dword [r10]
shr eax, 1
or r11d, eax
mov dword [rbx + 0x10], r11d
mov eax, r11d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001ea50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x14001ef6b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002de40]
jne 0x14001ea6a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001ea66
repz ret
ror rcx, 0x10
jmp 0x14001eec4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002e550]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002e648]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001ef49
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002e550]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001ef6b
mov rax, qword [rsp + 0x88]
mov qword [0x14002e648], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002e5e8], rax
mov rax, qword [0x14002e648]
mov qword [0x14002e4c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002e5d0], rax
mov dword [0x14002e4b0], 0xc0000409
mov dword [0x14002e4b4], 1
mov rax, qword [0x14002de40]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002de48]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002e548], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002b038]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002e548], 0
jne 0x14001eff2
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400011c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400dcac4
jmp 0x1400dc97c
push rbx
sub rsp, 0x50
mov rax, qword [0x140188050]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r10d, r10d
mov rbx, r8
mov eax, r10d
mov r11, rdx
cmp rax, 0x20
mov r9, rcx
jae 0x1400dca7b
mov byte [rsp + rax + 0x20], r10b
inc rax
cmp rax, 0x20
jl 0x1400dc9a4
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x1400dc9b8
test r9, r9
jne 0x1400dc9e5
mov r9, qword [rbx]
movzx r8d, byte [r9]
mov edx, 1
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
je 0x1400dca2a
mov r8b, byte [r9]
test r8b, r8b
je 0x1400dca2a
inc r9
mov edx, 1
movzx r8d, byte [r9]
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x1400dca04
mov r11, r9
jmp 0x1400dca4e
movzx r8d, byte [r9]
mov edx, 1
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x1400dca55
inc r9
cmp byte [r9], r10b
jne 0x1400dca2f
jmp 0x1400dca5b
mov byte [r9], r10b
inc r9
cmp r9, r11
mov qword [rbx], r9
cmovne r10, r11
mov rax, r10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d260
add rsp, 0x50
pop rbx
ret
call fcn.140004ad0
int3
sub rsp, 0x28
test r8, r8
jne 0x1400dcae4
call fcn.140008260
mov dword [rax], socket
call fcn.14000c430
xor eax, eax
add rsp, 0x28
ret
test rdx, rdx
je 0x1400dcacd
test rcx, rcx
jne 0x1400dcaf3
cmp qword [r8], rcx
je 0x1400dcacd
add rsp, 0x28
jmp 0x1400068c0

Function at 0x1400014f0
Capabilities:
Read file on windows

Disassembly:
jmp 0x14009c5f0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14009c61d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x14009c638
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x14009c662
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x230], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x228]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x14009c6c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14009c6c6
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001520
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400b0324
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14015d410]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 7
lea r8, [0x14015d408]
call fcn.1400afa98
mov rsi, rax
test rax, rax
je 0x1400b0370
mov rcx, rax
call fcn.140007330
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400b037b
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001620
Capabilities:
Query environment variable

Disassembly:
jmp 0x14011dae8
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x14011dbbc
mov rsi, rax
cmp word [rax], r14w
je 0x14011db3b
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14011db23
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14011db1f
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x14011dbbc
mov rcx, rbp
call fcn.140004e90
mov rdi, rax
test rax, rax
je 0x14011dbaf
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14011dbaf
mov rsi, rdi
mov rdi, r14
jmp 0x14011dbb2
mov rsi, r14
mov rcx, rdi
call fcn.14000e1e0
jmp 0x14011dbbf
mov rsi, r14
test rbx, rbx
je 0x14011dbcd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400018a0
Capabilities:
Connect pipe

Disassembly:
jmp 0x14009bcc0
push rdi
sub rsp, 0x20
mov rdi, rcx
xor eax, eax
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x14009bd28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
cmp dword [rdi + 0x214], eax
jne 0x14009bd0d
cmp dword [rdi + 0x218], eax
jne 0x14009bd2e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14009bd0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14009bd1c
mov ebx, 1
mov dword [rdi + 0x210], 1
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, [rdi + 0x278]
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x280], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14009bd12
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14009bd06
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x14009bd12
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001f40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b02b8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14015d3f0]
mov ecx, 6
lea r8, [0x14015d3e8]
lea rdx, str.FlsGetValue
call fcn.1400afa98
mov rdi, rax
test rax, rax
je 0x1400b02f9
mov rcx, rax
call fcn.140007330
mov ecx, ebx
call rdi
jmp 0x1400b0301
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14002e7f0
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [rsp + 0xa0]
xor ebx, ebx
mov r12, r9
mov r13, r8
mov rsi, rdx
mov r14, rcx
mov qword [rax], rbx
cmp rdx, 2
jb 0x14002ea1c
movzx edx, word [rcx]
lea edi, [rbx + 2]
mov eax, 6
lea r8d, [rbx + 0x7f]
movzx ecx, dx
mov r9d, 0x7e
shr cx, 0xf
and cl, 1
cmovne edi, eax
movzx eax, dx
shr ax, 8
and ax, 0x7f
cmp r9w, ax
jne 0x14002e85d
add rdi, 2
jmp 0x14002e867
cmp r8w, ax
jne 0x14002e867
add rdi, 8
cmp rsi, rdi
jb 0x14002ea1c
test rdi, rdi
je 0x14002ea1c
test dl, 0x70
je 0x14002e888
mov eax, 0xf3
jmp 0x14002e962
test cl, cl
je 0x14002e87e
movzx ecx, byte [r14]
and cl, 0xf
lea eax, [rcx - 3]
cmp al, 4
jbe 0x14002e87e
cmp cl, 0xb
jae 0x14002e87e
movzx eax, cl
lea r8, [rsp + 0x88]
mov rcx, r14
mov dword [rsp + 0x88], eax
mov rdx, rsi
mov qword [rsp + 0x80], rbp
call fcn.14002e6f0
mov rbp, rax
test rax, rax
jne 0x14002e8d8
mov eax, dword [rsp + 0x88]
jmp 0x14002e95a
cmp dword [reloc.WSOCK32.dll_accept], 4
mov qword [rsp + 0x90], r15
mov r15d, dword [rsp + 0x88]
jl 0x14002e942
test dword [0x1401877e0], 0x8000
je 0x14002e942
mov qword [rsp + 0x48], rdi
lea r9, str.........ESIF_WSSourcesesif_ws_socket.c
mov qword [rsp + 0x40], rsi
lea r8, str.esif_ws_socket_get_subsequent_frame_type
mov qword [rsp + 0x38], rax
mov edx, 4
lea rax, str.WS_Receive_Frame:_Type_02X_Payload_zd_Received_zd_Hdr_zd_n
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov ecx, 0x8000
mov dword [rsp + 0x20], 0x1be
call fcn.140008b60
mov rax, rsi
sub rax, rdi
cmp rbp, rax
jbe 0x14002e977
mov eax, 0xf4
mov r15, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
jae 0x14002e98a
mov rax, qword [rsp + 0xa0]
sub rsi, rdi
sub rsi, rbp
mov qword [rax], rsi
movzx ecx, word [r14]
movzx eax, cx
shr ax, 0xf
test al, 1
je 0x14002ea12
shr cx, 8
mov eax, 0x7e
and cx, 0x7f
cmp ax, cx
jne 0x14002e9b1
lea rdx, [r14 + 4]
jmp 0x14002e9c3
mov eax, 0x7f
lea rdx, [r14 + 0xa]
cmp ax, cx
je 0x14002e9c3
lea rdx, [r14 + 2]
test rdx, rdx
je 0x14002ea12
lea rax, [rdx + 4]
mov qword [r13], rax
mov qword [r12], rbp
test rbp, rbp
je 0x14002e9fa
nop dword [rax]
mov rax, qword [r13]
mov rcx, rbx
and ecx, 3
movzx ecx, byte [rcx + rdx]
xor byte [rax + rbx], cl
inc rbx
cmp rbx, qword [r12]
jb 0x14002e9e0
movzx ecx, byte [r14]
mov eax, 0xf7
and cl, 0x80
cmove r15d, eax
mov eax, r15d
jmp 0x14002e952
mov eax, 0xf3
jmp 0x14002e952
mov eax, 0xf4
jmp 0x14002e962
Function at 0x140003940
Capabilities:
Terminate process

Disassembly:
jmp 0x14009ca30
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 1
xor eax, eax
lock cmpxchg dword [rcx], edi
je 0x14009ca63
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lock cmpxchg dword [rbx], edi
jne 0x14009ca50
dec dword [rbx + 4]
xor edi, edi
mov eax, dword [rbx + 4]
test eax, eax
cmovs eax, edi
mov dword [rbx + 4], eax
test eax, eax
jne 0x14009cb14
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14009caba
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14009caac
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], rdi
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009caf3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x10]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009caf3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x20], 0xffffffff
test rcx, rcx
je 0x14009cb14
call fcn.140006db0
mov qword [rbx + 8], rdi
xchg dword [rbx], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003ac0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14011dc2c
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 0x14011dcab
jmp 0x14011dc67
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x14011dc56
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x14011dc52
sub rax, rbx
add rax, 2
sar rax, 1
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.140004e90
mov rdi, rax
test rax, rax
je 0x14011dc9b
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140009200
mov rsi, rdi
xor ecx, ecx
call fcn.14000e1e0
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 0x140003fc0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14012f810
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x14012f851
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x14012f845
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x14012f853
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x14012f833
xor eax, eax
ret
Function at 0x1400043a0
Capabilities:
Get geographical location

Disassembly:
jmp 0x140115be8
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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, [0x140162388]
mov r14, rcx
lea r8, [0x140162380]
lea rdx, str.GetLocaleInfoEx
mov ecx, listen
call fcn.1401151d4
mov rbx, rax
test rax, rax
je 0x140115c4b
mov rcx, rax
call qword [section..00cfg]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x140115c65
xor edx, edx
mov rcx, r14
call fcn.1400078a0
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140004460
Capabilities:
Encode data using base64

Disassembly:
jmp 0x140028d00
mov qword [rsp + 0x20], rbx
push rdi
push r14
mov r11, rdx
lea r10, [r9 + 2]
mov r14, r8
xor edi, edi
movabs r8, 0xaaaaaaaaaaaaaaab
mov rbx, r9
mov rax, r8
mul r10
shr rdx, 1
lea r10, [rdx*4 + 1]
cmp r11, r10
jb 0x140028ebd
mov rax, r8
mov qword [rsp + 0x28], r15
mul rbx
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r11, rdx
shr r11, 1
je 0x140028df0
mov qword [rsp + 0x18], rbp
mov rdi, r11
mov qword [rsp + 0x20], rsi
mov rbp, r11
lea rsi, [r14 + 2]
nop dword [rax]
movzx eax, byte [rsi - 2]
movzx r10d, byte [rsi - 1]
movzx r8d, al
movzx edx, byte [rsi]
lea rsi, [rsi + 3]
shl al, 4
movzx r9d, r10b
shr r9b, 4
or r9b, al
shl r10b, 2
movzx eax, dl
shr r8b, 2
shr al, 6
and r9b, 0x3f
or r10b, al
and dl, 0x3f
movzx eax, r8b
and r10b, 0x3f
movzx eax, byte [rax + r15]
mov byte [rcx], al
movzx eax, r9b
movzx eax, byte [rax + r15]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + r15]
mov byte [rcx + 2], al
movzx eax, dl
movzx eax, byte [rax + r15]
mov byte [rcx + 3], al
add rcx, 4
sub rbp, 1
jne 0x140028d70
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
lea rax, [r11 + r11*2]
sub rbx, rax
sub rbx, 1
je 0x140028e76
cmp rbx, 1
jne 0x140028ea9
lea rax, [r14 + rdi*2]
movzx edx, byte [rdi + rax]
movzx r10d, byte [rdi + rax + 1]
movzx r8d, dl
movzx r9d, r10b
shr r8b, 2
shr r9b, 4
and r10b, 0xf
movzx eax, r8b
shl dl, 4
or r9b, dl
shl r10b, 2
and r9b, 0x3f
movzx eax, byte [rax + r15]
mov byte [rcx], al
movzx eax, r9b
movzx eax, byte [rax + r15]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + r15]
mov r15, qword [rsp + 0x28]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov rax, rcx
mov byte [rcx], 0
mov rbx, qword [rsp + 0x30]
pop r14
pop rdi
ret
lea rax, [r14 + rdi*2]
movzx edx, byte [rdi + rax]
movzx eax, dl
and dl, 3
shr al, 2
movzx eax, al
shl dl, 4
movzx eax, byte [rax + r15]
mov byte [rcx], al
movzx eax, dl
movzx eax, byte [rax + r15]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
add rcx, 4
mov r15, qword [rsp + 0x28]
mov rax, rcx
mov byte [rcx], 0
mov rbx, qword [rsp + 0x30]
pop r14
pop rdi
ret
mov rax, rdi
mov rbx, qword [rsp + 0x30]
pop r14
pop rdi
ret
Function at 0x140004d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400dd010
sub rsp, 0x58
mov rax, qword [0x140188050]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x1400dd0a8
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x1400dd02f
mov al, byte [rdx]
jmp 0x1400dd062
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x1400dd043
jmp 0x1400dd087
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x1400dd0a3
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x1400dd068
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d260
add rsp, 0x58
ret
mov rax, r8
jmp 0x1400dd091
call fcn.140004ad0
int3