joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14035a234
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1404f3628]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1404069d8]
mov rbp, rcx
call fcn.1403632f0
xor edi, edi
test rax, rax
je 0x14035a31a
mov ebx, edi
call fcn.140354518
mov r14d, dword [rax]
call fcn.140354518
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140371144
mov rsi, rax
test rax, rax
je 0x14035a2ab
call fcn.140354518
mov dword [rax], r14d
jmp 0x14035a2d5
call fcn.140354518
cmp dword [rax], 0x22
jne 0x14035a312
call fcn.140354518
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140371144
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14035a312
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14035a2d9
cmp rax, 3
je 0x14035a2f4
mov rcx, rsi
call fcn.14035a190
test al, al
je 0x14035a305
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14035a305
mov dil, 1
mov rcx, rbx
call fcn.140354584
mov al, dil
jmp 0x14035a31c
mov rcx, rbx
call fcn.140354584
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140346cc0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14035aecc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14035acbc

Function at 0x14036127c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14036129c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14035448c
or eax, 0xffffffff
jmp 0x14036129e
xor eax, eax
add rsp, 0x28
ret
Function at 0x14036167c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14078b660]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1403616da
cmp word [rdx], r12w
jne 0x1403616da
or byte [rax + r8*8 + 0x38], cl
jmp 0x1403616e0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14036183b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140361816
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140361719
mov rcx, r9
jmp 0x14036173c
cmp r9, rdx
jae 0x140361753
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1403616fd
jmp 0x14036183b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140361810
cmp dword [rsp + 0x80], edi
je 0x140361810
mov rdx, r14
lea r11, [0x14078b660]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1403617e9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1403617bc
mov word [rbx], r12w
jmp 0x140361837
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1403617c5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140361837
cmp word [rsp + 0x70], r12w
jne 0x1403617f6
cmp rbx, rsi
je 0x1403617b6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140362ff4
cmp word [rsp + 0x70], r12w
je 0x14036183b
mov word [rbx], r13w
jmp 0x140361837
lea r11, [0x14078b660]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140361833
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14036183b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140370404
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140370436
call fcn.140354518
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14034dd58
jmp 0x140370555
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140370555
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140370555
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140370465
lock or dword [rcx + 0x14], 0x10
jmp 0x140370555
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140370479
call fcn.140370570
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14035401c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140361b28
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140370543
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14037050e
mov rcx, rsi
call fcn.14035401c
cmp eax, edi
je 0x1403704f9
mov rcx, rsi
call fcn.14035401c
cmp eax, 0xfffffffe
je 0x1403704f9
mov rcx, rsi
call fcn.14035401c
movsxd rbx, eax
lea r14, [0x14078b660]
mov rcx, rsi
sar rbx, 6
call fcn.14035401c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140370500
lea rdx, [0x1404f3ac0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14037050e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140370532
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140370532
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140370532
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140370558
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140371ba8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140362ff4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140362ff4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140371cf8
cmp rax, 0xffffffffffffffff
je 0x140371cf8
xor edi, edi
test rbp, rbp
jle 0x140371ca3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14036b85c
mov rbx, rax
test rax, rax
jne 0x140371c30
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140371c99
mov edx, 0x8000
mov ecx, r14d
call fcn.140359ad0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140362a6c
cmp eax, 0xffffffff
je 0x140371c79
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140371c40
mov edx, r15d
mov ecx, r14d
call fcn.140359ad0
jmp 0x140371c99
cmp byte [rsi + 0x38], dil
je 0x140371c90
cmp dword [rsi + 0x34], 5
jne 0x140371c90
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140371c99
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14036b8d4
jmp 0x140371d0c
jns 0x140371d0c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140362ff4
cmp rax, 0xffffffffffffffff
jne 0x140371cc4
cmp byte [rsi + 0x30], dil
je 0x140371d0c
mov edi, dword [rsi + 0x2c]
jmp 0x140371d0c
mov ecx, r14d
call fcn.14034e4e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140371d0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140371d0c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140371d05
mov eax, dword [rsi + 0x2c]
jmp 0x140371d0a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140362ff4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140373ac4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140373af4
xor eax, eax
jmp 0x140373bb7
mov rbp, rbx
cmp word [rax], si
je 0x140373b19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140373b00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140373afc
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.1403715f0
movsxd r14, eax
test eax, eax
jne 0x140373b57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140373aed
mov rcx, r14
call fcn.14036c760
mov rdi, rax
test rax, rax
jne 0x140373b70
xor ecx, ecx
call fcn.14036b8d4
jmp 0x140373b4c
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.1403715f0
test eax, eax
jne 0x140373ba1
mov rcx, rdi
call fcn.14036b8d4
jmp 0x140373bab
xor ecx, ecx
call fcn.14036b8d4
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 0x140373bd4
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 0x140373c5b
mov rsi, rbx
cmp word [rax], bp
je 0x140373c1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140373c04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140373c00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14036c760
mov rdi, rax
test rax, rax
je 0x140373c48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140349350
mov rbp, rdi
xor ecx, ecx
call fcn.14036b8d4
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 0x140379d7c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140354730
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140379e06
cmp byte [rbp - 0x21], r15b
je 0x140379e01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140379e3c
call fcn.14036bc30
test eax, eax
jne 0x140379e28
cmp byte [rbp - 0x21], r15b
je 0x140379e20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140379e3c
cmp byte [rbp - 0x21], r15b
je 0x140379e39
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.14035833c
test eax, eax
jne 0x140379edc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140354730
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140379e7b
cmp byte [rbp - 0x21], r15b
je 0x140379eb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140379eb0
call fcn.14036bc30
test eax, eax
jne 0x140379e9c
cmp byte [rbp - 0x21], r15b
je 0x140379e95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140379eb0
cmp byte [rbp - 0x21], r15b
je 0x140379ead
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.14035833c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140379edc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140379edf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140379eed
mov rcx, rdi
call fcn.14036b8d4
cmp byte [rbp + 0x3f], r15b
je 0x140379efc
mov rcx, qword [rbp + 0x27]
call fcn.14036b8d4
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 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14008f730]
mov dword [rax], 1
mov rax, qword [0x14008f740]
mov dword [rax], 1
mov rax, qword [0x14008f750]
mov dword [rax], 1
mov rax, qword [0x14008f6e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400717c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140082f40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140082f40
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140072492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140099c08]
test eax, eax
je 0x14007252a
lea rax, [0x140099be0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140099c10]
mov qword [rbp - 8], rax
jmp 0x14007250e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140072502
cmp qword [rbp - 0x10], 0
je 0x140072502
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400724c8
lea rax, [0x140099be0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14007252b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140072630
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140072658
mov eax, 0
jmp 0x1400726a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140072681
mov eax, 0
jmp 0x1400726a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400726a1
mov eax, 0
jmp 0x1400726a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400726ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14007272a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140072721
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140072721
mov rax, qword [rbp - 8]
jmp 0x14007273f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400726f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400015e0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140001615
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14000161a
call fcn.140036680
mov ecx, dword [0x14004b220]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x58], 1
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rdx
add rsp, 0x38
ret

Function at 0x140002b30
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
lea rdi, [rcx + 0x28]
movzx r14d, byte [rcx + 0x68]
mov rax, qword [rcx + 0x20]
shl rax, 9
lea rbx, [r14*8]
or rbx, rax
mov byte [rcx + r14 + 0x28], 0x80
mov r8, r14
xor r8, 0x3f
je 0x140002b82
lea rcx, [r14 + rdi]
inc rcx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
bswap rbx
xor r14d, 0x38
cmp r14d, 8
jae 0x140002bd0
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call fcn.140029d10
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rcx, rsi
jmp 0x140002be0
mov qword [rsi + 0x60], rbx
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call fcn.140029d10
movdqu xmm6, xmmword [rsi]
movdqu xmm7, xmmword [rsi + 0x10]
movaps xmm0, xmmword [0x14003d3a0]
movups xmmword [rsi], xmm0
movdqa xmm0, xmmword [0x14003d3b0]
movdqu xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
mov byte [rsi + 0x68], 0
movzx eax, byte [0x14004b1f0]
mov rcx, qword [0x14004b178]
test rcx, rcx
jne 0x140002c3d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140002cc1
mov rcx, rax
mov qword [0x14004b178], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140002cc1
pxor xmm0, xmm0
movdqa xmm1, xmm7
punpckhbw xmm1, xmm0
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpcklbw xmm7, xmm0
pshuflw xmm2, xmm7, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm2, xmm1
movdqa xmm1, xmm6
punpckhbw xmm1, xmm0
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpcklbw xmm6, xmm0
pshuflw xmm0, xmm6, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmmword [rax + 0x10], xmm2
mov edx, 0x20
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 1
mov edx, 0x20
call fcn.14003a940
ud2
Function at 0x1400048c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140004902
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14000490a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000491b
jmp 0x140004932
xor r10d, r10d
jmp 0x1400049bd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140004932
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140004949
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140004969
add r11, r8
jmp 0x140004a9a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140004a32
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400049e0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140004a50
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140004a62
jmp 0x140004a7c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140004a7c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140004a96
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret