joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002e20
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140006510]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002e40
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002e48
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002e40
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002e90
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002e87
test rcx, rcx
je 0x140002e40
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002e78
xor eax, eax
ret

Function at 0x140002ea0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140006510]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f92
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002fa0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f92
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f92
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002f92
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]
cmp rax, r9
mov r8, r9
jb 0x140002ff5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003008
add rdx, 0x28
cmp rdx, r10
jne 0x140002fe0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003017
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003027
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002ffe
test ecx, ecx
jg 0x140003010
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004580
Capabilities:
Create new key via cryptacquirecontext
Create thread
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call sym.__main
call sym.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400045cb
jmp 0x140004641
test cl, cl
je 0x1400045f8
and esi, 1
je 0x1400045e0
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x1400045c7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x1400045a8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x1400045b6
test cl, cl
je 0x1400045f8
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1400045f8
cmp al, 0x20
jle 0x1400045e8
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [rsp + 0x5c], 1
mov r9d, 0xa
je 0x140004626
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x140006510]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x140006120]
jmp 0x1400045f8
Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002149
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000218a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021c0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a3d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a481
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1400102e0
cmp rax, 1
jne 0x14000a4b7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a45d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a450
cmp rcx, 1
jb 0x14000a4b7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a420
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b970
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000ffa4
int3
Function at 0x14000a540
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a585
xor al, al
jmp 0x14000a5d2
cmp word [rbx], 0
je 0x14000a59d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a590
cmp word [rsp + 0x30], 0
je 0x14000a5cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a5f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b970
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000ffa4
int3
Function at 0x14000ad90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.140020150
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140030dd0]
lea rsi, [0x140045e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae09
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a600
test al, al
je 0x14000aee9
lea rcx, [rsp + 0x20]
call fcn.1400146a0
movsxd r11, dword [0x140030dd0]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140030dd0], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae44
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae34
add rax, 2
test ecx, ecx
jne 0x14000ae20
test edx, edx
je 0x14000ae67
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae14
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae50
cmp rax, 2
jne 0x14000ae6b
cmp word [rdi + 2], 0x3a
jne 0x14000ae6b
mov al, 1
jmp 0x14000aec8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae96
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aebd
mov bl, 1
cmp dword [0x140030dd0], 0x400
jge 0x14000aebd
mov rcx, rdi
call fcn.1400146a0
movsxd rdx, dword [0x140030dd0]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140030dd0], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b970
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac30
int3
Function at 0x14000b010
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030dd8]
test rcx, rcx
je 0x14000b04b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b03e
mov rcx, qword [0x140030dd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030dd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030de8], 0
je 0x14000b13e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a8c8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140043610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b11f
test al, 0x10
je 0x14000b11f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b0c5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c230
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c27a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c27a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c27a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c27a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c27a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c27c
xor al, al
add rsp, 0x28
ret

Function at 0x14000ff98
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fe03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fe03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fe03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fe03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fe03
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fe03
cmp dword [rcx + 0xf8], 0
je 0x14000fe03
mov ecx, ebx
call fcn.14000feb4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fc90
nop
cmp dword [rbp + 0x20], 0
je 0x14000fe51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fe5c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fd94
Function at 0x140019584
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 0x14001960b
mov rsi, rbx
cmp word [rax], bp
je 0x1400195ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400195b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400195b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016db4
mov rdi, rax
test rax, rax
je 0x1400195f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020860
mov rbp, rdi
xor ecx, ecx
call fcn.140015dd8
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 0x14001bbd4
Capabilities:
Get file size

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

Function at 0x140020060
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020088
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020088
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400c8f0c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14013d4b8], rbx
je 0x1400c8f58
cmp rax, rbx
jne 0x1400c8f4b
mov ebx, 1
mov esi, ebx
jmp 0x1400c8f5d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400c8f30
mov ebx, 1
mov eax, dword [0x14013d4c0]
cmp eax, ebx
jne 0x1400c8f73
mov ecx, 0x1f
call fcn.1401d7000
jmp 0x1400c8fd8
mov eax, dword [0x14013d4c0]
test eax, eax
jne 0x1400c8fd2
mov dword [0x14013d4c0], ebx
lea r15, [0x1400d6930]
lea rdi, [0x1400d6918]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400c8fc4
test eax, eax
jne 0x1400c8fc8
cmp qword [rdi], 0
je 0x1400c8fb9
mov rax, qword [rdi]
mov rcx, qword [case.0x140057c6a.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400c8f9a
test eax, eax
je 0x1400c8fd8
mov eax, 0xff
jmp 0x1400c90b4
mov dword [0x14012d750], ebx
mov eax, dword [0x14013d4c0]
cmp eax, ebx
jne 0x1400c8fff
lea rdx, [0x1400d6910]
lea rcx, [0x1400d5fb0]
call sub.msvcrt.dll__initterm
mov dword [0x14013d4c0], 2
test esi, esi
jne 0x1400c900c
xor eax, eax
xchg qword [0x14013d4b8], rax
cmp qword [0x14013d4d8], 0
je 0x1400c9040
lea rcx, [0x14013d4d8]
call fcn.1400c9490
test eax, eax
je 0x1400c9040
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14013d4d8]
mov r9, qword [case.0x140057c6a.0]
call r9
mov r8, qword [0x14012d768]
mov rdx, qword [0x14012d760]
mov ecx, dword [0x14012d758]
call fcn.140009e00
mov dword [0x14012d74c], eax
cmp dword [0x14012d770], 0
jne 0x1400c9070
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14012d750], 0
jne 0x1400c9085
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14012d74c]
jmp 0x1400c90b4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400c9510
add rsp, 0x28
jmp 0x1400c8f0c

Function at 0x1400c9390
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c93dc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c93d4
cmp dword [rcx + 0x3c], edx
jl 0x1400c93d4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c93d4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c93dc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002934c
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.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
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.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
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 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x140011361
Capabilities:
Terminate process

Disassembly:
jmp 0x140018280
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001141f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018db0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018dd0
xor al, al
jmp 0x140018e51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018de3
xor al, al
jmp 0x140018e51
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 0x140018e0d
xor al, al
jmp 0x140018e51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018e21
xor al, al
jmp 0x140018e51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018e33
xor al, al
jmp 0x140018e51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018e4f
xor al, al
jmp 0x140018e51
mov al, 1
add rsp, 0x38
ret
Function at 0x140016750
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400115c8
movzx eax, al
test eax, eax
jne 0x140016770
mov ecx, 7
call fcn.1400114f6
nop
mov byte [rsp + 0x20], 0
call fcn.14001150f
mov byte [rsp + 0x21], al
cmp dword [0x140023470], 1
jne 0x140016794
mov ecx, 7
call fcn.1400114f6
nop
jmp 0x1400167ec
cmp dword [0x140023470], 0
jne 0x1400167e7
mov dword [0x140023470], 1
lea rdx, [0x14001f770]
lea rcx, [0x14001f440]
call fcn.1400112a8
test eax, eax
je 0x1400167c8
mov eax, 0xff
jmp 0x1400168f1
lea rdx, [0x14001f330]
lea rcx, [section..rdata]
call fcn.140011505
mov dword [0x140023470], 2
jmp 0x1400167ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114dd
call fcn.140011447
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016849
mov rcx, qword [rsp + 0x30]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x140016849
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.140011483
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001687d
mov rcx, qword [rsp + 0x38]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x14001687d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001156e
nop
call fcn.1400169a0
mov dword [rsp + 0x28], eax
call fcn.14001141f
movzx eax, al
test eax, eax
jne 0x14001689c
mov ecx, dword [rsp + 0x28]
call fcn.140011082
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400168ab
call fcn.140011582
nop
xor edx, edx
mov cl, 1
call fcn.140011208
mov eax, dword [rsp + 0x28]
jmp 0x1400168f1
add rsp, 0x68
ret