joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003a99
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007be08
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18007be81
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007be81
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x18007be81
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007be75
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007be93
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007be63
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18007be83
Function at 0x180003c65
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18001ebb8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1800893f8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1800893f0]
call fcn.18001e630
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x18001ebf8
call qword [0x1800ac020]
jmp 0x18001ebfe
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180003cfb
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006cf34
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.1800021d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006cfbe
cmp byte [rbp - 0x21], r15b
je 0x18006cfb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006cff4
call fcn.1800040c5
test eax, eax
jne 0x18006cfe0
cmp byte [rbp - 0x21], r15b
je 0x18006cfd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006cff4
cmp byte [rbp - 0x21], r15b
je 0x18006cff1
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.1800042dc
test eax, eax
jne 0x18006d094
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800021d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006d033
cmp byte [rbp - 0x21], r15b
je 0x18006d068
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006d068
call fcn.1800040c5
test eax, eax
jne 0x18006d054
cmp byte [rbp - 0x21], r15b
je 0x18006d04d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006d068
cmp byte [rbp - 0x21], r15b
je 0x18006d065
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.1800042dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006d094
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006d097
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006d0a5
mov rcx, rdi
call fcn.18000117c
cmp byte [rbp + 0x3f], r15b
je 0x18006d0b4
mov rcx, qword [rbp + 0x27]
call fcn.18000117c
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 0x180003deb
Capabilities:
Parse pe header

Disassembly:
jmp 0x180021ef8
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 0x180021cd3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180021cd3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180021cd3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180021cd3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180021cd3
cmp dword [rcx + 0x84], 0xe
jbe 0x180021cd3
cmp dword [rcx + 0xf8], 0
je 0x180021cd3
mov ecx, ebx
call fcn.180021e3c
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.1800219c4
nop
cmp dword [rbp + 0x20], 0
je 0x180021d21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180021d5c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021c64
Function at 0x180021c64
Capabilities:
Parse pe header

Disassembly:
jmp 0x180021ef8
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 0x180021cd3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180021cd3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180021cd3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180021cd3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180021cd3
cmp dword [rcx + 0x84], 0xe
jbe 0x180021cd3
cmp dword [rcx + 0xf8], 0
je 0x180021cd3
mov ecx, ebx
call fcn.180021e3c
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.1800219c4
nop
cmp dword [rbp + 0x20], 0
je 0x180021d21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180021d5c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021c64
Function at 0x18005ea08
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005ea08
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 0x18005ea38
xor eax, eax
jmp 0x18005eafb
mov rbp, rbx
cmp word [rax], si
je 0x18005ea5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005ea44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005ea40
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.18000330f
movsxd r14, eax
test eax, eax
jne 0x18005ea9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005ea31
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005eab4
xor ecx, ecx
call fcn.18000117c
jmp 0x18005ea90
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.18000330f
test eax, eax
jne 0x18005eae5
mov rcx, rdi
call fcn.18000117c
jmp 0x18005eaef
xor ecx, ecx
call fcn.18000117c
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 0x18005eb5c
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005eb5c
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 0x18005ebe3
mov rsi, rbx
cmp word [rax], bp
je 0x18005eba2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005eb8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005eb88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001037
mov rdi, rax
test rax, rax
je 0x18005ebd0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800026b2
mov rbp, rdi
xor ecx, ecx
call fcn.18000117c
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 0x180069cdc
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.180001a50
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 0x180069d7d
cmp ebx, dword [rsp + 0x30]
je 0x180069d76
test esi, esi
je 0x180069d76
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180069d51
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180069d5e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180069d3b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180069d62
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180069d7f
mov eax, 1
jmp 0x180069d7f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18006cf34
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006cf34
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.1800021d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006cfbe
cmp byte [rbp - 0x21], r15b
je 0x18006cfb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006cff4
call fcn.1800040c5
test eax, eax
jne 0x18006cfe0
cmp byte [rbp - 0x21], r15b
je 0x18006cfd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006cff4
cmp byte [rbp - 0x21], r15b
je 0x18006cff1
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.1800042dc
test eax, eax
jne 0x18006d094
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800021d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006d033
cmp byte [rbp - 0x21], r15b
je 0x18006d068
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006d068
call fcn.1800040c5
test eax, eax
jne 0x18006d054
cmp byte [rbp - 0x21], r15b
je 0x18006d04d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006d068
cmp byte [rbp - 0x21], r15b
je 0x18006d065
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.1800042dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006d094
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006d097
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006d0a5
mov rcx, rdi
call fcn.18000117c
cmp byte [rbp + 0x3f], r15b
je 0x18006d0b4
mov rcx, qword [rbp + 0x27]
call fcn.18000117c
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 0x1800739d0
Capabilities:
Get file size

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

Function at 0x180075c3c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800a1f40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180075c93
cmp word [rdx], r13w
jne 0x180075c93
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180075c98
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180075dbd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180075dde
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180075cd1
mov rdx, r9
mov word [rbx], cx
jmp 0x180075cf8
cmp r9, r8
jae 0x180075d08
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180075cb2
jmp 0x180075dbd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180075db2
cmp dword [rsp + 0x80], esi
je 0x180075db2
lea r8, [0x1800a1f40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180075d8a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180075d5a
mov word [rbx], r13w
jmp 0x180075dba
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180075d67
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180075dba
cmp word [rsp + 0x70], r13w
jne 0x180075d97
cmp rbx, r14
je 0x180075d54
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180001799
cmp word [rsp + 0x70], r13w
je 0x180075dbd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800a1f40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180075db7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180075dbd
Function at 0x18007be08
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007be08
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18007be81
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007be81
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x18007be81
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007be75
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007be93
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007be63
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18007be83
Function at 0x140001000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x60]
mov r8d, 0xa
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret

Function at 0x1400010c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x140001103
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x178]
call fcn.140001250
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
jmp 0x140001160
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x170]
cmp qword [rsp + 0x30], rax
jae 0x140001237
mov eax, dword [rsp + 0x24]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
movzx eax, byte [rsp + rax + 0x50]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
lea rax, [rsp + rax + 0x50]
movsxd rcx, dword [rsp + 0x24]
lea rcx, [rsp + rcx + 0x50]
mov rdx, rax
call fcn.140001340
movsxd rax, dword [rsp + 0x24]
movzx eax, byte [rsp + rax + 0x50]
movsxd rcx, dword [rsp + 0x28]
movzx ecx, byte [rsp + rcx + 0x50]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
movzx eax, byte [rsp + rax + 0x50]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x168]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
xor eax, ecx
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x160]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x140001153
xor eax, eax
add rsp, 0x150
pop rdi
ret
Function at 0x140001380
Capabilities:
Create directory
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x310
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rsp + 0x100]
mov qword [rsp + 0x28], rax
sub qword [rsp + 0x28], 2
add qword [rsp + 0x28], 2
mov rax, qword [rsp + 0x28]
cmp word [rax], 0
jne 0x14000142e
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x328]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x14000144e
xor edx, edx
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], rax
sub qword [rsp + 0x30], 2
add qword [rsp + 0x30], 2
mov rax, qword [rsp + 0x30]
cmp word [rax], 0
jne 0x140001481
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x328]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400014a1
cmp dword [rsp + 0x338], 0
je 0x1400014ff
lea rax, [rsp + 0x100]
mov qword [rsp + 0x38], rax
sub qword [rsp + 0x38], 2
add qword [rsp + 0x38], 2
mov rax, qword [rsp + 0x38]
cmp word [rax], 0
jne 0x1400014ce
mov rax, qword [rsp + 0x38]
lea rcx, str.dkwofjeiwucuinswncs
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400014ed
jmp 0x140001541
lea rax, [rsp + 0x100]
mov qword [rsp + 0x40], rax
sub qword [rsp + 0x40], 2
add qword [rsp + 0x40], 2
mov rax, qword [rsp + 0x40]
cmp word [rax], 0
jne 0x140001512
mov rax, qword [rsp + 0x40]
lea rcx, str.fsdkioajfuiewfwwss
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x140001531
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x320]
call fcn.140001000
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
mov r9, qword [str.jujuun]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.1400010c0
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [rsp + 0x90], 0x68
xor eax, eax
add rsp, 0x310
pop rdi
ret
Function at 0x140001880
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
test rcx, rcx
je 0x140001923
mov r9, rdx
test rdx, rdx
je 0x140001923
cmp word [rcx], 0x5a4d
jne 0x140001929
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001929
push rbp
xor r8d, r8d
push rdi
push rsi
push rbx
mov edx, dword [rdx + 0x88]
add rdx, rcx
mov ebp, dword [rdx + 0x20]
mov edi, dword [rdx + 0x18]
movzx eax, r8w
cmp eax, edi
jae 0x14000191f
movzx eax, r8w
lea r10, [rcx + rax*4]
mov r11d, dword [r10 + rbp]
xor r10d, r10d
add r11, rcx
mov sil, byte [r11 + r10]
mov bl, byte [r9 + r10]
test sil, sil
je 0x1400018f8
inc r10
cmp bl, sil
je 0x1400018e1
jmp 0x14000191a
test bl, bl
jne 0x14000191a
mov r8d, dword [rdx + 0x24]
add rax, rax
add rax, rcx
movzx r8d, word [rax + r8]
mov eax, dword [rdx + 0x1c]
lea rdx, [rcx + r8*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x140001924
inc r8d
jmp 0x1400018c7
xor eax, eax
jmp 0x140001924
ret
pop rbx
pop rsi
pop rdi
pop rbp
ret
ret

Function at 0x140001ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r12
mov r10, rcx
xor eax, eax
mov ecx, 0x400
push rbp
xor r9d, r9d
mov edx, 0x80000000
push rdi
push rsi
push rbx
sub rsp, 0x1050
lea rdi, [rsp + 0x50]
rep stosd dword [rdi], eax
mov rax, qword [0x140004930]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov rcx, r10
mov dword [rsp + 0x20], 3
and qword [rsp + 0x30], 0
push 1
pop r8
call qword [rax]
xchg rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140001faf
lea rdi, [rsp + 0x50]
push 0xffffffffffffffff
pop rbx
lea r12, [0x140004be0]
lea rbp, [rsp + 0x4c]
mov rax, qword [0x140004b50]
mov r9, rbp
mov rdx, rdi
mov rcx, rsi
and qword [rsp + 0x20], 0
mov r8d, 0x1000
call qword [rax]
test eax, eax
jne 0x140001f8b
mov rax, qword [0x140004920]
mov rcx, rsi
call qword [rax]
xchg ebx, eax
not eax
jmp 0x140001fb2
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140001f7a
xor edx, edx
mov ecx, ebx
xor bl, byte [rdi + rdx]
inc rdx
movzx ebx, bl
shr ecx, 8
xor ecx, dword [r12 + rbx*4]
mov ebx, ecx
cmp edx, eax
jb 0x140001f95
jmp 0x140001f58
push 0xffffffffffffffff
pop rax
add rsp, 0x1050
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret