joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003b610
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, [0x180067310]
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 0x18003b66e
cmp word [rdx], r12w
jne 0x18003b66e
or byte [rax + r8*8 + 0x38], cl
jmp 0x18003b674
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18003b7cf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18003b7aa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18003b6ad
mov rcx, r9
jmp 0x18003b6d0
cmp r9, rdx
jae 0x18003b6e7
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 0x18003b691
jmp 0x18003b7cf
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 0x18003b7a4
cmp dword [rsp + 0x80], edi
je 0x18003b7a4
mov rdx, r14
lea r11, [0x180067310]
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 0x18003b77d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18003b750
mov word [rbx], r12w
jmp 0x18003b7cb
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 0x18003b759
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18003b7cb
cmp word [rsp + 0x70], r12w
jne 0x18003b78a
cmp rbx, rsi
je 0x18003b74a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18003a94c
cmp word [rsp + 0x70], r12w
je 0x18003b7cf
mov word [rbx], r13w
jmp 0x18003b7cb
lea r11, [0x180067310]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18003b7c7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18003b7cf
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 0x18003fe20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x18003fdfd
call fcn.18003da9c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18003e1fc
or eax, 0xffffffff
jmp 0x18003fe1a
sub dword [rcx + 0x10], 1
jns 0x18003fe0c
add rsp, 0x28
jmp 0x18004893c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x18003fddc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18004896e
call fcn.18003da9c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18003e1fc
jmp 0x180048a8d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180048a8d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180048a8d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18004899d
lock or dword [rcx + 0x14], 0x10
jmp 0x180048a8d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800489b1
call fcn.180048aa8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180039c9c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18003babc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180048a7b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180048a46
mov rcx, rsi
call fcn.180039c9c
cmp eax, edi
je 0x180048a31
mov rcx, rsi
call fcn.180039c9c
cmp eax, 0xfffffffe
je 0x180048a31
mov rcx, rsi
call fcn.180039c9c
movsxd rbx, eax
lea r14, [0x180067310]
mov rcx, rsi
sar rbx, 6
call fcn.180039c9c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180048a38
lea rdx, [0x180066070]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180048a46
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180048a6a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180048a6a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180048a6a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180048a90
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x180043ed8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180043ef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18003da10
or eax, 0xffffffff
jmp 0x180043efa
xor eax, eax
add rsp, 0x28
ret
Function at 0x18004557c
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 0x1800455ac
xor eax, eax
jmp 0x18004566f
mov rbp, rbx
cmp word [rax], si
je 0x1800455d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800455b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800455b4
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.1800454cc
movsxd r14, eax
test eax, eax
jne 0x18004560f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800455a5
mov rcx, r14
call fcn.18003cf44
mov rdi, rax
test rax, rax
jne 0x180045628
xor ecx, ecx
call fcn.18003cf08
jmp 0x180045604
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.1800454cc
test eax, eax
jne 0x180045659
mov rcx, rdi
call fcn.18003cf08
jmp 0x180045663
xor ecx, ecx
call fcn.18003cf08
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 0x18004568c
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 0x180045713
mov rsi, rbx
cmp word [rax], bp
je 0x1800456d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800456bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800456b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18003cf44
mov rdi, rax
test rax, rax
je 0x180045700
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18004cb20
mov rbp, rdi
xor ecx, ecx
call fcn.18003cf08
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 0x18004a58c
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.18002bf78
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18004a616
cmp byte [rbp - 0x21], r15b
je 0x18004a611
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18004a64c
call fcn.1800406f4
test eax, eax
jne 0x18004a638
cmp byte [rbp - 0x21], r15b
je 0x18004a630
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18004a64c
cmp byte [rbp - 0x21], r15b
je 0x18004a649
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.180037188
test eax, eax
jne 0x18004a6ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18002bf78
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18004a68b
cmp byte [rbp - 0x21], r15b
je 0x18004a6c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18004a6c0
call fcn.1800406f4
test eax, eax
jne 0x18004a6ac
cmp byte [rbp - 0x21], r15b
je 0x18004a6a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18004a6c0
cmp byte [rbp - 0x21], r15b
je 0x18004a6bd
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.180037188
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18004a6ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18004a6ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18004a6fd
mov rcx, rdi
call fcn.18003cf08
cmp byte [rbp + 0x3f], r15b
je 0x18004a70c
mov rcx, qword [rbp + 0x27]
call fcn.18003cf08
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 0x18004c3b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18004c3d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18004c3d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400050bc
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14004f0c0]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.1400021dc
lea r8, [0x14003e370]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002268
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x14003e30c]
mov rbx, rax
test rax, rax
jne 0x140005174
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000527a
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
mov r8, r13
call fcn.140003c90
mov esi, eax
jmp 0x14000525b
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140003dc8
mov esi, eax
test eax, eax
jns 0x1400051b5
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.140003c58
mov rcx, rbx
call fcn.140003d40
jmp 0x14000525b
lea r8, [0x14003e378]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002268
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140005201
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xd5
call fcn.140003c90
mov esi, eax
jmp 0x1400051a8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003dc8
mov esi, eax
test eax, eax
jns 0x140005238
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xd7
call fcn.140003c58
mov rcx, rdi
call fcn.140003d40
jmp 0x1400051a8
mov rcx, rdi
call fcn.140003d40
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.140003d40
xor esi, esi
test esi, esi
jns 0x14000527a
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.140003c58
mov eax, esi
jmp 0x14000527f
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140038350
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14000f214
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r11, r8
mov r10, rdx
xor r8d, r8d
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
mov rdi, rcx
mov rbx, rdx
shr rbx, 1
lea rax, [rbx + rbx*2]
sub r10, rax
cmp r10, 1
mov rax, r10
setne r8b
add r8, 2
neg rax
sbb rax, rax
and rax, r8
lea rax, [rax + rbx*4]
inc rax
cmp rax, 0x81
ja 0x14000f384
xor r9d, r9d
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_x
xor esi, esi
test rbx, rbx
je 0x14000f2fa
movzx ecx, byte [rdi]
inc esi
movzx edx, byte [rdi + 2]
mov eax, ecx
movzx r8d, byte [rdi + 1]
and cl, 3
shr rax, 2
add rdi, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, r8d
shr rax, 4
and r8b, 0xf
or rcx, rax
shl r8b, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
mov eax, edx
shr rax, 6
and edx, 0x3f
movzx ecx, r8b
or rcx, rax
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 2], al
mov al, byte [rdx + r14]
mov byte [r9 + r11 + 3], al
add r9, 4
mov eax, esi
cmp rax, rbx
jb 0x14000f289
sub r10, 1
je 0x14000f350
cmp r10, 1
jne 0x14000f37f
movzx ecx, byte [rdi]
movzx edx, byte [rdi + 1]
mov eax, ecx
shr rax, 2
and cl, 3
shl cl, 4
movzx ecx, cl
mov al, byte [rax + r14]
mov byte [r9 + r11], al
mov eax, edx
shr rax, 4
and dl, 0xf
or rcx, rax
shl dl, 2
mov al, byte [rcx + r14]
mov byte [r9 + r11 + 1], al
movzx eax, dl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 2], al
mov byte [r9 + r11 + 3], 0x3d
jmp 0x14000f37b
movzx ecx, byte [rdi]
mov eax, ecx
and cl, 3
shr rax, 2
shl cl, 4
mov al, byte [rax + r14]
mov byte [r9 + r11], al
movzx eax, cl
mov al, byte [rax + r14]
mov byte [r9 + r11 + 1], al
mov word [r9 + r11 + 2], 0x3d3d
add r9, 4
mov byte [r9 + r11], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x1400104d0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, r9
mov qword [r11 + 8], rbp
mov rsi, r8
mov r10, rcx
test rdx, rdx
je 0x140010530
lea rax, [r11 + 8]
mov r9d, 0x20006
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400105d6
mov r10, qword [rsp + 0x40]
mov rcx, rbp
test rdi, rdi
je 0x140010570
mov ecx, 0xc350
mov rax, rdi
mov edx, ecx
cmp word [rax], bp
je 0x140010551
add rax, 2
sub rdx, 1
jne 0x140010542
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x14001056b
sub rcx, rdx
jmp 0x140010575
mov rcx, rbp
jmp 0x140010575
mov ebx, 0x80070057
test ebx, ebx
js 0x14001057e
add rcx, rcx
jmp 0x140010581
mov rcx, rbp
test ebx, ebx
jns 0x1400105a0
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreenduserwindowsupdate_ruximplugliblibplugutils.cpp
mov r9d, ebx
mov edx, 0x13c
call fcn.140003c58
jmp 0x1400105d6
add rcx, 2
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, r10
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400105ec
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14001060c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [r11 - 0x18], 0
mov rdi, r9
mov rsi, r8
test rdx, rdx
je 0x140010660
lea rax, [r11 - 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400106b5
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov dword [rsp + 0x58], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400106b5
cmp dword [rsp + 0x50], 4
je 0x1400106b3
mov ebx, 0x8007139f
jmp 0x1400106b5
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400106cb
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400106e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov r15, r9
mov r14, r8
mov rsi, rcx
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov ebx, 0x80070000
test rdx, rdx
je 0x140010757
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x18]
mov qword [r11 - 0x58], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001084e
mov rsi, qword [rbp - 0x18]
mov dword [rbp + 0x38], r12d
mov dword [rbp + 0x30], r12d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001084e
cmp dword [rbp + 0x38], 1
je 0x1400107a8
mov edi, 0x8007139f
jmp 0x14001084e
mov eax, dword [rbp + 0x30]
inc eax
mov dword [rbp + 0x30], eax
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400394e8
mov rbx, rax
mov qword [rbp - 8], rax
test rax, rax
jne 0x1400107e0
mov edi, 0x8007000e
jmp 0x14001083b
mov dword [rbp + 0x38], r12d
mov eax, dword [rbp + 0x30]
mov dword [rbp - 0x20], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001083b
mov eax, dword [rbp + 0x30]
dec eax
mov word [rbx + rax*2], r12w
mov rdx, rbx
mov rcx, r15
call fcn.14000938c
mov edi, r12d
test rbx, rbx
je 0x14001084e
mov edx, 2
mov rcx, rbx
call fcn.1400389fc
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140010863
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140019738
Capabilities:
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor edi, edi
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15d, edx
mov rbp, rcx
test rcx, rcx
je 0x1400197e0
test r8, r8
je 0x1400197e0
test r9, r9
je 0x1400197e0
and dword [rax - 0x28], ebx
lea rcx, str.RUXIMCABAgent
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400197bc
and qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
nop dword [rax + rax]
test rax, rax
jne 0x1400197d8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400197e5
mov qword [r14], rbx
mov qword [rsi], rax
jmp 0x1400197f9
mov edi, 0x80004003
test rbx, rbx
je 0x1400197f9
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140023510
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, rdx
mov rbp, rcx
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
mov qword [rax + 0x10], rcx
lea rcx, [rax - 0x60]
call fcn.1400201a4
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2c], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3c], xmm1
movsd xmm0, qword [rax + 0x20]
movsd qword [rbp + 0x4c], xmm0
mov eax, dword [rax + 0x28]
mov dword [rbp + 0x54], eax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__Getdays]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14002359a
lea rcx, [r14 + 8]
mov rdx, rax
call fcn.14000dee4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
nop dword [rax + rax]
lea rsi, [0x140040ad0]
cmp qword [r14 + 8], 0
cmovne rsi, qword [r14 + 8]
or rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400235b2
mov r12d, 1
add rdi, r12
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_calloc]
nop dword [rax + rax]
test rax, rax
je 0x14002372b
test rdi, rdi
je 0x1400235f7
mov rdx, rax
sub rdx, rsi
mov cl, byte [rsi]
mov byte [rdx + rsi], cl
add rsi, r12
sub rdi, r12
jne 0x1400235ea
mov qword [rbp + 0x10], rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__Getmonths]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14002362a
lea rcx, [r14 + 0x18]
mov rdx, rax
call fcn.14000dee4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
nop dword [rax + rax]
lea rdi, [0x140040a40]
cmp qword [r14 + 0x18], 0
cmovne rdi, qword [r14 + 0x18]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14002363b
add rbx, r12
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_calloc]
nop dword [rax + rax]
test rax, rax
je 0x14002372b
test rbx, rbx
je 0x14002367a
mov rdx, rax
sub rdx, rdi
mov cl, byte [rdi]
mov byte [rdx + rdi], cl
add rdi, r12
sub rbx, r12
jne 0x14002366d
mov qword [rbp + 0x18], rax
lea rbx, [0x140040d38]
mov edi, 0xd
mov rdx, r12
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_calloc]
nop dword [rax + rax]
test rax, rax
je 0x14002372b
mov rdx, rax
sub rdx, rbx
mov cl, byte [rbx]
mov byte [rdx + rbx], cl
add rbx, r12
sub rdi, r12
jne 0x1400236aa
mov qword [rbp + 0x20], rax
and dword [rsp + 0x90], edi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o____lc_locale_name_func]
nop dword [rax + rax]
lea ebx, [rdi + 2]
mov r9d, ebx
lea r8, [rsp + 0x90]
lea edx, [rdi + 0x22]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
nop dword [rax + rax]
mov eax, dword [rsp + 0x90]
cmp ax, 0x30
je 0x140023713
cmp ax, 0x31
jne 0x140023707
mov ebx, r12d
jmp 0x140023713
xor ebx, ebx
lea ecx, [rbx + 3]
cmp ax, 0x32
cmove ebx, ecx
mov dword [rbp + 0x28], ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14000bf84
nop
int3