joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140a33058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a331df
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 0x140a33089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3306f
add dl, dl
jne 0x140a33096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a330f6
xor eax, eax
add dl, dl
jne 0x140a330a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a331ad
add dl, dl
jne 0x140a330b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a330c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a330d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a330dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a330ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a3307e
mov eax, 1
add dl, dl
jne 0x140a33106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a33113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a330fb
sub eax, ebx
mov ebx, 1
jne 0x140a3314c
mov ecx, 1
add dl, dl
jne 0x140a3312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a3313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a33123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a33168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a33175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3315d
cmp eax, 0x7d00
jae 0x140a3319b
cmp eax, 0x500
jb 0x140a33196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3307e
cmp eax, 0x7f
ja 0x140a3319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a331d2
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 0x140a3307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140f5de84
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5de8e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5deb7
pop rbp
sub rbp, 0x33
sub rbp, 0xf5de84
sub rsp, 0x20
jmp 0x140f5ded6
mov rax, 0xf5de84
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb41cc489
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5def5
jmp 0x140f5df0c
rol dword [rax], 0x60
add al, byte [rax]
mov ch, 0x89
mov dword [rcx - 0x7eb7f73f], ecx
mov byte [rcx + 0x6088c189], cl
ror dword [rsi + 0x49], 0x8e
mov dword [rcx + 0x4b4ec189], ecx
movabs eax, dword [0x88c16b7ec1898989]
add cl, byte [rax]
test dword [rcx - 0x773e7677], ecx
invalid
Function at 0x1400f9288
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1401490e0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, [0x1403d27db]
call fcn.1400fa363
nop
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x14031a520]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x140149226
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x14014917a
mov dword [rbp + 0x160], 1
jmp 0x140149184
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x140149221
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x1401491fb
cmp qword [rbp + 0x198], 2
jb 0x1401491fb
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401491fb
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401491fb
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x140149145
jmp 0x1401492c0
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x1401492c0
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x140149297
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140149297
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140149297
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x140149226
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400f93e1
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402e72f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402e7310
xor al, al
jmp 0x1402e7391
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402e7323
xor al, al
jmp 0x1402e7391
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1402e734d
xor al, al
jmp 0x1402e7391
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402e7361
xor al, al
jmp 0x1402e7391
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402e7373
xor al, al
jmp 0x1402e7391
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402e738f
xor al, al
jmp 0x1402e7391
mov al, 1
add rsp, 0x38
ret
Function at 0x1400f9f53
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x140148fc0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x1403d27db]
call fcn.1400fa363
nop
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x14031a520]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x140149040
mov dword [rbp + 0x120], 1
jmp 0x14014904a
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x140149093
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x14014900b
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1401e4e30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1403d29f1]
call fcn.1400fa363
nop
call fcn.1401e31c0
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1401e4ea3
mov rax, qword [rbp + 8]
mov dword [rax + 0x2c], 0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1402580b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1403b20c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1403d306f]
call fcn.1400fa363
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140258c70
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140258330
nop
lea rax, [0x140257fa0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140258d30
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14025818c
lea rcx, [rbp + 8]
call fcn.140258d80
nop
jmp 0x1402581a5
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400f7b04
nop
lea rcx, [rbp + 8]
call fcn.140258760
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140368a80]
call fcn.1400f9a62
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400f880b
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1402dedc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1402dedcb
xor eax, eax
ret
lea r11, [0x140389a00]
not ecx
cmp r8d, 8
jb 0x1402deea1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1402dedf0
test r8d, r8d
je 0x1402deecd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1402deeb0
not ecx
mov eax, ecx
ret
Function at 0x14002c440
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140030040
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14002fef0
lea rcx, [rsp + 0x40]
call fcn.140030000
movzx eax, al
test eax, eax
jne 0x140030088
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14002ff10
mov rax, qword [rsp + 0x70]
jmp 0x140030259
lea rcx, [rsp + 0x40]
call fcn.14002ffe0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14002ff90
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14002ffe0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14002fdc0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14003012e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14002ff10
mov rax, qword [rsp + 0x80]
jmp 0x140030259
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140021380
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003340
lea rcx, [rsp + 0x48]
call fcn.140003380
movzx eax, al
test eax, eax
jne 0x140030195
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140003360
lea rcx, [rsp + 0x40]
call fcn.14002ff10
mov rax, qword [rsp + 0x88]
jmp 0x140030259
lea rcx, [rsp + 0x48]
call fcn.1400033a0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14002ffe0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14002fdc0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14003022b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140003360
lea rcx, [rsp + 0x40]
call fcn.14002ff10
mov rax, qword [rsp + 0xa0]
jmp 0x140030259
lea rcx, [rsp + 0x48]
call fcn.14001c3d0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140003360
lea rcx, [rsp + 0x40]
call fcn.14002ff10
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140037290
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140046da0
sub rsp, rax
mov rax, qword [0x14005d848]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005f480]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140037482
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400373d6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400373d6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400373bb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140037358
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140037442
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400374a1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14003747d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400374a1
jmp 0x14003732e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002af0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400374c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140046da0
sub rsp, rax
mov rax, qword [0x14005d848]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005f480]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400376cd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140037619
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140037619
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400375f9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140037588
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003768d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400376ec
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400376c8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400376ec
jmp 0x14003755e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002af0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14003e860
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14002d450
lea rcx, [rsp + 0x48]
call fcn.14002d450
call fcn.14002d730
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14002c820
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14003e8cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14002d540
lea rcx, [rsp + 0x78]
call fcn.14002d540
mov eax, dword [rsp + 0x24]
jmp 0x14003e960
call fcn.14002d730
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14002c820
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14003e916
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14002d540
lea rcx, [rsp + 0x78]
call fcn.14002d540
mov eax, dword [rsp + 0x2c]
jmp 0x14003e960
lea rcx, [rsp + 0x48]
call fcn.14002db10
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14002db10
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14002d540
lea rcx, [rsp + 0x78]
call fcn.14002d540
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400011a0
Capabilities:
Allocate or change rwx memory
Enumerate processes
Enumerate threads
Inject apc

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov dword [rbp + 0x170], 0x616161
xor edx, edx
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.140011c50
mov dword [rbp + 0x190], 0x1c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x194], xmm0
mov qword [rbp + 0x1a4], rax
movdqu xmmword [rbp + 0x178], xmm0
xor edi, edi
mov qword [rbp + 0x188], rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001283
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x5c]
call fcn.14000709c
test eax, eax
je 0x140001283
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x5c]
call fcn.14000709c
test eax, eax
jne 0x140001260
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x1000
mov r8d, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
mov qword [rsp + 0x20], rdi
mov r9d, 4
lea r8, [rbp + 0x170]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rbp + 0x190]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov rbx, qword [rbp + 0x180]
test eax, eax
je 0x140001351
mov eax, dword [rsp + 0x38]
cmp dword [rbp + 0x19c], eax
jne 0x14000133d
cmp rbx, rdi
je 0x140001319
mov eax, dword [rbp + 0x198]
mov dword [rbx], eax
add rbx, 4
mov qword [rbp + 0x180], rbx
jmp 0x14000133d
lea r8, [rbp + 0x198]
mov rdx, rbx
lea rcx, [rbp + 0x178]
call fcn.140001470
mov rdi, qword [rbp + 0x188]
mov rbx, qword [rbp + 0x180]
lea rdx, [rbp + 0x190]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400012f3
mov r14, qword [rbp + 0x178]
mov rsi, r14
cmp r14, rbx
je 0x140001396
mov r8d, dword [rsi]
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsi, 4
cmp rsi, rbx
jne 0x140001360
test r14, r14
je 0x1400013ce
sub rdi, r14
and rdi, 0xfffffffffffffffc
mov rax, r14
cmp rdi, 0x1000
jb 0x1400013c3
add rdi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400013fc
mov rdx, rdi
mov rcx, r14
call fcn.14000178c
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140001730
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140007624
int3