joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023338
Capabilities:
Parse pe header

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

Function at 0x1400261ec
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002625b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002625b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002625b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002625b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002625b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002625b
cmp dword [rcx + 0xf8], 0
je 0x14002625b
mov ecx, ebx
call fcn.14002630c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400260e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400262a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400262b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400261ec

Function at 0x1400263f0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002625b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002625b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002625b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002625b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002625b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002625b
cmp dword [rcx + 0xf8], 0
je 0x14002625b
mov ecx, ebx
call fcn.14002630c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400260e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400262a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400262b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400261ec
Function at 0x1400377d4
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 0x14003785b
mov rsi, rbx
cmp word [rax], bp
je 0x14003781a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140037804
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140037800
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034df4
mov rdi, rax
test rax, rax
je 0x140037848
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003e100
mov rbp, rdi
xor ecx, ecx
call fcn.14003308c
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 0x14003b3d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003b3e6
mov al, 1
jmp 0x14003b446
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003b3f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003b444
mov ecx, dword [rcx + 0x18]
nop
call fcn.140037f78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b444
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003b444
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003b444
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003b446
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003d9b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003d9d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003d9d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140018a90
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
call fcn.140362150
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140018b1e
xor eax, eax
mov rcx, 0xffffffffffffffff
mov qword [rbx], rax
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140018af0
mov qword [rbx + 8], rcx
inc rcx
call fcn.140343a90
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x30]
inc r8
mov qword [rbx], rax
mov rcx, rax
call fcn.140361cf0
jmp 0x140018b27
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140343400
add rsp, 0x140
pop rbx
ret

Function at 0x140019150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140019184
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140019170
ret
Function at 0x14002ec70
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
test rcx, rcx
je 0x14002eef5
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], bl
jne 0x14002ecc6
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140005650
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002ee9a
lea rax, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x2f
je 0x14002ed1d
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
jne 0x14002ed45
dec rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
test rcx, rcx
je 0x14002eea4
lea rax, [rsp + 0x38]
cmp rdx, 0x10
jb 0x14002ed65
mov rax, r8
test r8, r8
je 0x14002eea4
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002eda5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002ee9a
jmp 0x14002ee6d
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14002ee67
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14002ee67
cmp rax, 0x104
ja 0x14002ee9a
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14002ee0e
cmp rax, 3
jne 0x14002edf5
cmp word [rsp + 0x62], 0x3a
je 0x14002ee1c
dec rax
lea rcx, [rax + rax]
cmp rcx, 0x208
jae 0x14002eef6
mov word [rsp + rcx + 0x60], bx
cmp rax, 2
jb 0x14002ee78
cmp word [rsp + 0x62], 0x3a
jne 0x14002ee78
movzx ecx, word [rsp + 0x60]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14002ee37
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14002ee78
sub cx, 0x20
test cx, cx
je 0x14002ee78
mov eax, 0x3d
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], cx
mov dword [rsp + 0x5c], 0x3a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x14002ee78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
test eax, eax
jne 0x14002ee9a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [0x1405274e8]
call fcn.140005650
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14002eed6
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x14002eece
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eefc
mov rcx, r8
call fcn.140343460
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140343400
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.140343ba0
nop
call fcn.14036500c
int3
Function at 0x14002ec79
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
test rcx, rcx
je 0x14002eef5
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], bl
jne 0x14002ecc6
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140005650
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002ee9a
lea rax, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x2f
je 0x14002ed1d
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
jne 0x14002ed45
dec rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
test rcx, rcx
je 0x14002eea4
lea rax, [rsp + 0x38]
cmp rdx, 0x10
jb 0x14002ed65
mov rax, r8
test r8, r8
je 0x14002eea4
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002eda5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002ee9a
jmp 0x14002ee6d
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14002ee67
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14002ee67
cmp rax, 0x104
ja 0x14002ee9a
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14002ee0e
cmp rax, 3
jne 0x14002edf5
cmp word [rsp + 0x62], 0x3a
je 0x14002ee1c
dec rax
lea rcx, [rax + rax]
cmp rcx, 0x208
jae 0x14002eef6
mov word [rsp + rcx + 0x60], bx
cmp rax, 2
jb 0x14002ee78
cmp word [rsp + 0x62], 0x3a
jne 0x14002ee78
movzx ecx, word [rsp + 0x60]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14002ee37
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14002ee78
sub cx, 0x20
test cx, cx
je 0x14002ee78
mov eax, 0x3d
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], cx
mov dword [rsp + 0x5c], 0x3a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x14002ee78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019e610
test eax, eax
jne 0x14002ee9a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [0x1405274e8]
call fcn.140005650
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14002eed6
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x14002eece
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002eefc
mov rcx, r8
call fcn.140343460
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140343400
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.140343ba0
nop
call fcn.14036500c
int3
Function at 0x1400364f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp dword [rcx + 0x3b8], 2
mov r14, rdx
mov rbx, rcx
je 0x14003652e
call fcn.140031ec0
add rax, 0x4e20
mov dword [rbx + 0x3b8], 2
mov qword [rbx + 0x4e8], rax
mov ecx, 0x80
call fcn.140343424
mov rcx, qword [rbx + 0x500]
mov r15, rax
mov qword [rax], rcx
mov ecx, 0x140
call fcn.140343424
mov rdi, qword [0x14053c330]
xor esi, esi
mov rcx, qword [rbx + 0x500]
mov qword [rbx + 0x508], rax
mov qword [rax], rcx
test rdi, rdi
jne 0x14003658c
lea rdi, [0x14053c340]
mov rcx, rdi
call fcn.14019b120
test eax, eax
je 0x140036585
mov edi, esi
jmp 0x14003658c
mov qword [0x14053c330], rdi
mov rdx, qword [rbx + 0x508]
lea rax, [rdi + 0x10]
mov qword [rdx + 8], rdi
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], recv
mov dword [rdx + 0x58], 8
mov qword [rcx], rax
mov rax, qword [rdi + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [rdi + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], rsi
mov qword [rdx + 0x78], rsi
mov qword [rdx + 0x108], rsi
mov dword [rdx + 0x100], esi
mov dword [rdx + 0x88], recv
mov qword [rdx + 0xc0], rsi
mov qword [rdx + 0xf0], rsi
mov qword [rdx + 0xf8], 0xffffffffffffffff
mov qword [rdx + 0x80], rdx
mov qword [rdx + 0x120], rsi
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], rsi
mov qword [rdx + 0x130], rsi
mov dword [rdx + 0x128], esi
mov dword [rdx + 0x118], esi
mov rcx, qword [rbx + 0x508]
call fcn.1401995a0
call fcn.1400c1cc0
test al, al
je 0x1400366d0
mov rdi, qword [rbx + 0x508]
mov rsi, qword [rdi + 0x110]
cmp rsi, 0xffffffffffffffff
je 0x1400366c9
lea r9, [rsp + 0x50]
mov dword [rsp + 0x60], 0x3c
mov edx, 0xffff
mov dword [rsp + 0x50], 1
mov r8d, 8
mov dword [rsp + 0x20], 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400366bf
cmp dword [rsp + 0x50], 0
je 0x1400366c9
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov rcx, rsi
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400366c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400366d0
or dword [rdi + 0x58], 0x2000000
mov rdx, qword [rbx + 0x508]
cmp dword [rdx + 0x10], 0xc
jne 0x140036712
movzx eax, word [r14]
cmp ax, 2
jne 0x1400366ef
mov r9d, reloc.WS2_32.dll_recv
jmp 0x1400366fb
cmp ax, 0x17
jne 0x140036712
mov r9d, 0x1c
lea rax, [0x1400383c0]
mov r8, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140198b40
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14004f420
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movzx eax, byte [rcx + 6]
mov rdx, rcx
movzx r8d, byte [rcx + 7]
movzx esi, byte [rcx + 0xb]
movzx ebp, byte [rcx + 0xf]
movzx r11d, byte [rcx + 0x13]
movzx ebx, byte [rcx + 0x17]
movzx edi, byte [rcx + 0x1b]
movzx r14d, byte [rcx + 0x1f]
shl r8, 8
or r8, rax
shl rsi, 8
movzx eax, byte [rcx + 5]
shl rbp, 8
shl r11, 8
shl rbx, 8
shl rdi, 8
shl r14, 8
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 4]
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 0xa]
or rsi, rax
movzx eax, byte [rcx + 9]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 8]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 0xe]
or rbp, rax
movzx eax, byte [rcx + 0xd]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0xc]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0x12]
or r11, rax
movzx eax, byte [rcx + 0x11]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x10]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x16]
or rbx, rax
movzx eax, byte [rcx + 0x15]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x14]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x1a]
or rdi, rax
movzx eax, byte [rcx + 0x19]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x18]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x1e]
or r14, rax
movzx eax, byte [rcx + 0x1d]
shl r14, 8
or r14, rax
movzx eax, byte [rcx + 0x1c]
movzx ecx, byte [rcx + 3]
shl rcx, 8
shl r14, 8
or r14, rax
movzx eax, byte [rdx + 2]
or rcx, rax
movzx eax, byte [rdx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdx]
shl rcx, 8
or rcx, rax
mov edx, 0x5cf5d3ec
mov eax, 1
sub rdx, rcx
test rdx, rdx
jle 0x14004f57a
mov r10d, eax
jmp 0x14004f587
xor r10d, r10d
test rdx, rdx
setns r10b
dec r10d
mov ecx, 0x5812631a
sub rcx, r8
test rcx, rcx
jle 0x14004f599
mov r9d, eax
jmp 0x14004f5a6
xor r9d, r9d
test rcx, rcx
setns r9b
dec r9d
mov ecx, 0xa2f79cd6
sub rcx, rsi
test rcx, rcx
jle 0x14004f5b8
mov r8d, eax
jmp 0x14004f5c5
xor r8d, r8d
test rcx, rcx
setns r8b
dec r8d
mov ecx, 0x14def9de
sub rcx, rbp
test rcx, rcx
jle 0x14004f5d6
mov edx, eax
jmp 0x14004f5e0
xor edx, edx
test rcx, rcx
setns dl
dec edx
mov ecx, 0x10000000
neg r11
sub rcx, r14
neg rbx
neg rdi
test rcx, rcx
jg 0x14004f600
xor eax, eax
test rcx, rcx
setns al
dec eax
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
cdqe
sar rdi, 0x3f
sar rbx, 0x3f
sar r11, 0x3f
lea rcx, [rdi + rax*2]
mov rdi, qword [rsp + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [rsp + 0x10]
lea rcx, [r11 + rax*2]
movsxd rax, edx
lea rdx, [rax + rcx*2]
movsxd rax, r8d
lea rcx, [rax + rdx*2]
movsxd rax, r9d
lea rdx, [rax + rcx*2]
movsxd rax, r10d
lea rax, [rax + rdx*2]
sar rax, 8
pop r14
ret
Function at 0x140051200
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x14005140a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1400512c4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140051280
mov ecx, dword [r10]
jmp 0x1400513a7
cmp ecx, 0x4e0
jb 0x1400513a7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400512e0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140051330
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140051260
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140051250
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14005142a
cmp r8d, r14d
jne 0x140051230
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x14005fcc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rbx, rcx
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x10]
mov r15, qword [rdx + 8]
cmp byte [r15 + 0x10], 0
je 0x14005fea7
mov r12d, 0x20
mov ecx, r12d
call fcn.140343424
mov rsi, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.xmrig::HttpsServer.0
mov qword [rsi], rax
xor edi, edi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14005fd34
lock inc dword [rax + 0xc]
mov rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x20]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
mov qword [rbx + 0x38], rsi
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 8]
lea rbp, [rax + 0xe8]
cmp byte [rbp], dil
je 0x14005fd7f
cmp qword [rbp + 0x10], rdi
je 0x14005fd75
cmp qword [rbp + 0x50], rdi
je 0x14005fd75
mov al, 1
jmp 0x14005fd77
xor al, al
test al, al
je 0x14005fd7f
mov al, 1
jmp 0x14005fd81
xor al, al
test al, al
je 0x14005fdbe
mov ecx, 8
call fcn.140343424
mov r14, rax
mov qword [rax], rdi
mov rdx, rbp
mov rcx, rax
call fcn.1401881c0
test al, al
jne 0x14005fdbb
mov rcx, qword [r14]
call fcn.1401f5980
mov edx, 8
mov rcx, r14
call fcn.140343460
jmp 0x14005fdbe
mov rdi, r14
mov qword [rsi + 0x18], rdi
mov ecx, 0xa8
call fcn.140343424
mov qword [rsp + 0x70], rax
mov r9, qword [rbx + 0x38]
movzx r8d, word [r15 + 0x38]
lea rdx, [r15 + 0x18]
mov rcx, rax
call fcn.14006eae0
nop
mov qword [rbx + 0x28], rax
mov rcx, rax
call fcn.14006ecb0
mov esi, eax
test eax, eax
jns 0x14005fe05
mov ecx, eax
call fcn.14018c2d0
mov rcx, rax
jmp 0x14005fe0c
lea rcx, [0x14042d0b5]
test esi, esi
jns 0x14005fe17
movzx eax, word [r15 + 0x38]
jmp 0x14005fe19
mov eax, esi
mov r8d, 0x24
test rdi, rdi
cmovne r8d, r12d
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9, qword [r15 + 0x18]
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.140028100
test esi, esi
jns 0x14005fe56
mov rcx, rbx
call fcn.14005fed0
xor al, al
jmp 0x14005fea9
mov word [rbx + 0x30], si
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14005fea7
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005fea7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14053c018], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x14053c010], rax
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret