joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024f90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140025037
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140024fea
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140027210
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140010cc0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14005abc8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002503f
mov rcx, rbx
call fcn.140010cc0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400255b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14005c168]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140025613
mov qword [rsp], rbx
lea rbx, [0x14004da80]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400255f3
cmp byte [r8], r9b
jne 0x1400255f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400255e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140025647
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14002564e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140025634
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400465b0
Capabilities:
Create thread
Encode data using xor
Execute command

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [0x14005a010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor edx, edx
mov r8d, 0xa8
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call fcn.140047140
nop
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x40]
lea r8, [0x140049880]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
je 0x140046738
call fcn.140003330
mov eax, dword [str.Q_G5]
mov dword [rsp + 0x30], eax
cmp byte [0x140052843], bl
je 0x14004670c
cmp dword [0x14005a018], 2
jl 0x1400466d1
movdqa xmm3, xmmword [0x140052c30]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140052d60]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140052d60]
shufps xmm2, xmm0, 0xdd
mov ecx, 4
movd xmm0, ecx
psrad xmm2, xmm0
mov ecx, 0x1f
movd xmm0, ecx
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x140052cb0]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140052d10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140052d20]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x14004670c
lea r8, [rsp + 0x30]
nop word [rax + rax]
mov eax, 0x5397829d
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
sub al, cl
add al, 0x32
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 4
jl 0x1400466e0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400478f0
test eax, eax
je 0x140046738
cmp byte [rsp + 0xcd], 0
je 0x140046720
lea rcx, [rsp + 0x40]
call fcn.140047750
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400499d0
add rsp, 0x100
pop rbx
ret
Function at 0x14004a550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a59a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a59a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a59a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a59a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a59a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004a59c
xor al, al
add rsp, 0x28
ret
Function at 0x14075d210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14075d397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14075d241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075d227
add dl, dl
jne 0x14075d24e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075d2ae
xor eax, eax
add dl, dl
jne 0x14075d25d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075d365
add dl, dl
jne 0x14075d26e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075d27b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075d288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075d295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14075d2a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14075d236
mov eax, 1
add dl, dl
jne 0x14075d2be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075d2cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075d2b3
sub eax, ebx
mov ebx, 1
jne 0x14075d304
mov ecx, 1
add dl, dl
jne 0x14075d2e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075d2f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075d2db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075d236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14075d320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075d32d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075d315
cmp eax, 0x7d00
jae 0x14075d353
cmp eax, 0x500
jb 0x14075d34e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075d236
cmp eax, 0x7f
ja 0x14075d356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075d236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14075d38a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14075d236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140035840]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140035850]
mov dword [rax], 1
mov rax, qword [0x140035860]
mov dword [rax], 1
mov rax, qword [0x1400357f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140035830]
mov dword [0x14003800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140035900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400358e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400357a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x314c0
call fcn.1400026b0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x31450], ecx
mov dword [rbp + 0x31458], edx
mov dword [rbp + 0x31460], r8d
mov dword [rbp + 0x31468], r9d
call dbg.__main
cmp dword [rbp + 0x31450], 2
jne 0x140001636
cmp dword [rbp + 0x31458], 2
jne 0x140001636
cmp dword [rbp + 0x31460], 2
jne 0x140001636
cmp dword [rbp + 0x31468], 2
jne 0x140001636
lea rax, [rbp - 0x50]
lea rdx, str.____0_
mov ecx, 0x3145d
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x3143c], 0
jmp 0x140001590
mov dword [rbp + 0x31411], 0x72636573
mov dword [rbp + 0x31414], 0x746572
mov dword [rbp + 0x3141c], 0x3145d
mov dword [rbp + 0x31418], 7
mov dword [rbp + 0x31438], 0
mov dword [rbp + 0x31434], 0
jmp 0x14000157b
mov eax, dword [rbp + 0x31418]
lea edx, [rax - 1]
mov eax, dword [rbp + 0x31438]
cmp edx, eax
jne 0x14000153e
mov dword [rbp + 0x31438], 0
mov eax, dword [rbp + 0x31434]
cdqe
movzx eax, byte [rbp + rax - 0x50]
mov edx, eax
mov eax, dword [rbp + 0x31438]
cdqe
movzx eax, byte [rbp + rax + 0x31411]
xor eax, edx
mov edx, eax
mov eax, dword [rbp + 0x31434]
cdqe
mov byte [rbp + rax - 0x50], dl
add dword [rbp + 0x31438], 1
add dword [rbp + 0x31434], 1
mov eax, dword [rbp + 0x31434]
cmp eax, dword [rbp + 0x3141c]
jb 0x140001521
add dword [rbp + 0x3143c], 1
cmp dword [rbp + 0x3143c], 2
jle 0x1400014e3
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x3145d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x31428], rax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x31428]
mov r8d, 0x3145d
mov rcx, rax
call sym.memmove
mov rax, qword [rbp + 0x31428]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x31420], rax
mov rax, qword [rbp + 0x31420]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
jmp 0x14000163b
mov eax, 0
add rsp, 0x314c0
pop rbp
ret

Function at 0x140001910
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400380a4]
mov rbx, rcx
test esi, esi
jle 0x140001ab0
mov rax, qword [0x1400380a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ad2
mov rax, qword [0x1400380a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400380a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a60
add dword [0x1400380a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400380a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019d8
mov rax, qword [0x1400380a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140038100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400380e0]
test rbx, rbx
je 0x14000209c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002093
test rsi, rsi
je 0x140002093
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002078
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000232d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002324
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000232f
add rax, 0x28
cmp rax, r9
jne 0x140002310
xor eax, eax
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023c0
mov rdx, qword [0x1400357f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023ae
cmp word [rax + 0x18], 0x20b
jne 0x1400023ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002399
add rbx, 0x28
cmp rbx, rdi
je 0x1400023c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002390
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400357f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000244d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002444
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023f0
add rax, 0x28
cmp rax, r9
jne 0x140002430
xor eax, eax
ret

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400357f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000246f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002478
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000246f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400357f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002500
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024f7
test rcx, rcx
je 0x1400024b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024e8
xor eax, eax
ret
Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400357f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000252f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002538
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400357f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002570
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002570
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400025b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400025e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400357f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002602
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002610
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002602
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002602
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002602
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002665
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002678
add rdx, 0x28
cmp rdx, r10
jne 0x140002650
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002687
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002697
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000266e
test ecx, ecx
jg 0x140002680
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400100f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x140010174
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x140010154
cmp rdi, r14
ja 0x1400101b1
cmp r14, rax
ja 0x1400101b1
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x14001015e
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x140010141
jmp 0x140010166
mov rdx, rbx
mov rdi, r14
jbe 0x14001011b
jmp 0x140010174
mov rdx, rbx
mov rdi, r14
jmp 0x14001011b
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x140010168
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x140010192
mov r11, r8
jmp 0x1400101a9
cmp r8, r10
je 0x1400101b1
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x140010168
xor al, 1
jmp 0x14001017c
ud2

Function at 0x140012f86
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x14002e010]
call fcn.140012fbd
mov ecx, eax
add rsp, 0x28
jmp fcn.14002b97c

Function at 0x140012fa1
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.140012fbd
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14002b974

Function at 0x140012fbd
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x14001b662
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14001b6d9
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14001b720
cmp dword [rsp + 0x2c], 0
je 0x14001b701
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001b710
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14003c148]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14003c148], rsi
jne 0x14001b6b4
mov byte [0x14003c140], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001b706
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001b720
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14001b706
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14001b706
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2
Function at 0x140017bb2
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140012fbd
mov ecx, eax
add rsp, 0x28
jmp fcn.14002b97c
Function at 0x14001a606
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
test r9, r9
je 0x14001a648
mov r15, r9
mov r14, r8
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001a665

Function at 0x14001b662
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x14001b662
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14001b6d9
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14001b720
cmp dword [rsp + 0x2c], 0
je 0x14001b701
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001b710
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14003c148]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14003c148], rsi
jne 0x14001b6b4
mov byte [0x14003c140], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001b706
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001b720
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14001b706
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14001b706
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2

Function at 0x14001c07b
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov ecx, 0x10
call fcn.14001b633
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14001c104]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14001c0f7
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.14001b29f
mov rcx, rsi
call fcn.14001ede1
mov edi, 1
call fcn.14001a38d
mov rdx, rax
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret