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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14007daf8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140065fd6
call fcn.140051a14
mov dword [rax], 0xf
call fcn.140051a34
mov dword [rax], 0xd
call fcn.14004c034
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140045f60
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140065fe1
lea eax, [rbx + 1]
jmp 0x140065fc3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140065fc1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140065fc3

Function at 0x140067558
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.1400513e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400675e2
cmp byte [rbp - 0x21], r15b
je 0x1400675dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140067618
call fcn.14005995c
test eax, eax
jne 0x140067604
cmp byte [rbp - 0x21], r15b
je 0x1400675fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140067618
cmp byte [rbp - 0x21], r15b
je 0x140067615
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.140050ed0
test eax, eax
jne 0x1400676b8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400513e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140067657
cmp byte [rbp - 0x21], r15b
je 0x14006768c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006768c
call fcn.14005995c
test eax, eax
jne 0x140067678
cmp byte [rbp - 0x21], r15b
je 0x140067671
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006768c
cmp byte [rbp - 0x21], r15b
je 0x140067689
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.140050ed0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400676b8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400676bb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400676c9
mov rcx, rdi
call fcn.140058f94
cmp byte [rbp + 0x3f], r15b
je 0x1400676d8
mov rcx, qword [rbp + 0x27]
call fcn.140058f94
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 0x140003a60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a94
cmp word [rcx], 0x5a4d
jne 0x140003a94
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a94
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a94
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400039a0
test eax, eax
jne 0x140003ab0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a10
test rax, rax
je 0x140003aa5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004262
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004160
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004100
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009ee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140009f03
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140009f03
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140009fb1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140572bb0]
mov r8, rcx
mov rcx, r9
call fcn.140009ee0
test eax, eax
je 0x140009fdd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140009f04
xor eax, eax
add rsp, 0x28
ret
Function at 0x140682b80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140682b8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140682b9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140682b85
lea eax, [rcx + 1]
jmp 0x140682bab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140682bbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140682ba4
sub eax, 3
jb 0x140682bde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140682c2d
sar eax, 1
movsxd rbp, eax
jb 0x140682c14
jmp 0x140682bec
add ebx, ebx
jne 0x140682bea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140682c14
inc ecx
add ebx, ebx
jne 0x140682bfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140682c14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140682c0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140682bfc
add ecx, 2
jmp 0x140682c19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140682b42
jmp 0x140682b8d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x67c000]
mov eax, dword [rdi]
or eax, eax
je 0x140682c95
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x68da80]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140682c39
jns 0x140682c6e
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140682c78
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140682c8f
mov qword [rbx], rax
add rbx, 8
jmp 0x140682c59
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140682cd9
cmp al, 0xef
ja 0x140682cc1
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140682ca1
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140682cb0
mov eax, dword [rdi]
add rdi, 4
jmp 0x140682cb0
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140682d2d
sub rsp, 0xffffffffffffff80
jmp 0x1401d9d8c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.hP0_]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [str.dP0_]
mov dword [rax], 1
mov rax, qword [0x1402ddd20]
mov dword [rax], 1
mov rax, qword [0x1402ddc60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1402ddcf0]
mov dword [0x14030500c], 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 [0x1402dddf0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [str.pP0_]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1402dd0d0]
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 0x140001f06
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x140001f98
mov dword [rbp - 8], 0
jmp 0x140001f8e
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x18]
add rdx, rax
mov eax, dword [rbp - 8]
movzx eax, byte [rdx + rax]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
shr al, 4
movzx edx, al
movzx eax, byte [rbp - 9]
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x18]
add rcx, rax
movsxd rax, r8d
movsxd rdx, edx
shl rdx, 4
add rdx, rax
lea rax, str.cw
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
mov byte [rcx + rax], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jbe 0x140001f28
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jbe 0x140001f1f
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002342
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x1400023b7
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx eax, byte [rax]
shr al, 4
movzx ecx, al
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rdx, rax
movsxd rax, r8d
movsxd rcx, ecx
shl rcx, 4
add rcx, rax
lea rax, str.cw
add rax, rcx
movzx eax, byte [rax]
mov byte [rdx], al
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x14000235b
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140002772
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x140002804
mov dword [rbp - 8], 0
jmp 0x1400027fa
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x18]
add rdx, rax
mov eax, dword [rbp - 8]
movzx eax, byte [rdx + rax]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
shr al, 4
movzx edx, al
movzx eax, byte [rbp - 9]
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x18]
add rcx, rax
movsxd rax, r8d
movsxd rdx, edx
shl rdx, 4
add rdx, rax
lea rax, [0x1400bc100]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
mov byte [rcx + rax], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jbe 0x140002794
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jbe 0x14000278b
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002812
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
jmp 0x140002853
lea rax, [rbp - 0x40]
mov rdx, qword [rbp - 8]
shl rdx, 2
add rax, rdx
mov r8d, 4
mov edx, 0
mov rcx, rax
call sym.memset
add qword [rbp - 8], 1
cmp qword [rbp - 8], 3
jbe 0x14000282c
mov qword [rbp - 0x10], 0
jmp 0x14000293d
mov qword [rbp - 0x18], 0
jmp 0x14000292d
mov qword [rbp - 0x20], 0
jmp 0x14000291d
mov rax, qword [rbp - 0x10]
shl rax, 2
lea rdx, [rbp + rax]
mov rax, qword [rbp - 0x20]
add rax, rdx
sub rax, 0x40
movzx r8d, byte [rax]
mov rax, qword [rbp - 0x10]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rdx, rax
lea rax, [0x1400bd110]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp - 0x18]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x18]
add rcx, rax
mov rax, qword [rbp - 0x20]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
cdqe
movsxd rdx, edx
shl rdx, 8
add rdx, rax
lea rax, [0x1400bc200]
add rax, rdx
movzx eax, byte [rax]
mov edx, r8d
xor edx, eax
mov rax, qword [rbp - 0x10]
shl rax, 2
lea rcx, [rbp + rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
sub rax, 0x40
mov byte [rax], dl
add qword [rbp - 0x20], 1
cmp qword [rbp - 0x20], 3
jbe 0x140002881
add qword [rbp - 0x18], 1
cmp qword [rbp - 0x18], 3
jbe 0x140002874
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 3
jbe 0x140002867
mov qword [rbp - 0x28], 0
jmp 0x14000297d
lea rax, [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
shl rdx, 2
add rax, rdx
mov rdx, qword [rbp - 0x28]
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x18]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rbp - 0x28], 1
cmp qword [rbp - 0x28], 3
jbe 0x140002952
nop
nop
add rsp, 0x60
pop rbp
ret
Function at 0x14000e670
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 0x14000e6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140305094]
mov rbx, rcx
test esi, esi
jle 0x14000e810
mov rax, qword [0x140305098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e72b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e7b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e710
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000e832
mov rax, qword [0x140305098]
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 [0x140305098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e817
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e7ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e7c0
add dword [0x140305094], 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 [0x140305098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e7ae
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 0x14000e738
mov rax, qword [0x140305098]
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 0x14000edc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140305100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403050e0]
test rbx, rbx
je 0x14000ee1c
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 rsi, rsi
je 0x14000ee13
test eax, eax
jne 0x14000ee13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000edf8
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 0x14000f030
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000f048
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000f050
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000f060
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 0x14000f0ad
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 0x14000f0a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000f0af
add rax, 0x28
cmp rax, r9
jne 0x14000f090
xor eax, eax
ret

Function at 0x14000f0b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000f140
mov rdx, qword [0x1402ddc60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000f12e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000f12e
cmp word [rax + 0x18], 0x20b
jne 0x14000f12e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000f140
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000f119
add rbx, 0x28
cmp rbx, rdi
je 0x14000f140
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000f110
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 0x14000f150
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402ddc60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000f170
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000f178
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000f170
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000f1cd
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 0x14000f1c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000f170
add rax, 0x28
cmp rax, r9
jne 0x14000f1b0
xor eax, eax
ret

Function at 0x14000f1d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402ddc60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000f1ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000f1f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000f1ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000f210
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1402ddc60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000f230
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000f238
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000f230
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000f280
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000f277
test rcx, rcx
je 0x14000f230
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14000f268
xor eax, eax
ret

Function at 0x14000f290
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1402ddc60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000f2f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000f2f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000f2f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000f2f0
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 0x14000f344
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000f350
add rdx, 0x28
cmp rdx, r9
jne 0x14000f330
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1402ddc60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000f382
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000f390
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000f382
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000f382
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000f382
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 0x14000f3e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000f3f8
add rdx, 0x28
cmp r10, rdx
jne 0x14000f3d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000f407
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000f417
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000f3ee
test ecx, ecx
jg 0x14000f400
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140010150
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, global_msg.0
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140010180
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400101a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, [0x1402dcac0]
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x1400101d0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140018b50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140018b98
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140305b80], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x140018b7e

Function at 0x14001b3e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001b40c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret