joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8b58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
cmp dword [0x140118630], 0
je 0x1400c8b6f
cmp qword [0x140119010], 0
jne 0x1400c8bca
mov rcx, qword [0x1401179a0]
mov edx, 0x271b
mov r8d, 5
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rcx, qword [0x1401179a0]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x1400c8bca
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
test rax, rax
je 0x1400c8bca
mov rcx, qword [0x1401179a0]
and qword [rsp + 0x20], 0
lea r9, [0x1400c8b00]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.USER32.DLL_DialogBoxIndirectParamW]
add rsp, 0x38
ret

Function at 0x1400c8ca0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
or qword [rsp + 0x38], 0xffffffffffffffff
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x1400c9284
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov byte [rax + 0x10], 0
mov byte [rax + 0x11], 0
mov byte [rax + 0x12], 0
mov byte [rax + 0x13], 0
mov byte [rax + 0x14], 0
mov byte [rax + 0x15], 5
lea rax, [rax + 0x18]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
call qword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1400c931e
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x70]
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.DLL_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400c9490
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r14, r8
mov rsi, rcx
cmp edx, 0x40
jb 0x1400c9679
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c9679
movsxd rcx, dword [rcx + 0x3c]
lea eax, [rcx + 0x108]
cmp edx, eax
jl 0x1400c9679
lea rbx, [rsi + rcx]
cmp dword [rbx], 0x4550
jne 0x1400c9679
mov eax, 0x2000
test word [rbx + 0x16], ax
jne 0x1400c9679
test byte [rbx + 0x16], 2
je 0x1400c9679
mov ecx, 0xe0
cmp word [rbx + 0x14], cx
je 0x1400c951f
lea eax, [rcx + 0x10]
cmp word [rbx + 0x14], ax
jne 0x1400c9679
lea rdi, [rbx + 0x108]
cmp word [rbx + 0x14], cx
jne 0x1400c9533
lea rdi, [rbx + 0xf8]
mov r9, rdi
mov r8, rbx
mov rcx, rsi
call fcn.1400c6de0
mov r13, qword [rsp + 0x78]
mov rdx, rax
mov qword [r13], rax
xor eax, eax
cmp rdx, rax
je 0x1400c967b
movzx eax, word [rbx + 6]
mov ebp, dword [rbx + 0x54]
xor ebx, ebx
cmp eax, ebx
jle 0x1400c957f
add rdi, 0x14
mov rcx, rax
cmp dword [rdi], ebx
je 0x1400c9575
cmp dword [rdi], ebp
cmovb ebp, dword [rdi]
add rdi, 0x28
sub rcx, 1
jne 0x1400c956c
movsxd rax, dword [rsi + 0x3c]
mov edi, 0x1000
mov r9d, pe_nt_image_headers64
mov rcx, qword [rax + rsi + 0x30]
mov r8d, edi
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov r12, qword [rsp + 0x70]
mov qword [r12], rax
cmp rax, rbx
jne 0x1400c95cc
mov rdx, qword [r13]
mov r9d, pe_nt_image_headers64
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov qword [r12], rax
cmp rax, rbx
je 0x1400c9679
mov rcx, qword [r12]
mov r8d, ebp
mov rdx, rsi
call fcn.14001b760
mov r11, qword [r12]
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov qword [r14], rcx
lea r10, [rcx + 0x108]
mov qword [r15], r10
mov r9, qword [r14]
mov ecx, dword [r9 + 0x54]
mov edx, dword [r9 + 0x38]
call fcn.1400c6dcc
mov ebp, ebx
mov rdi, rax
add rdi, qword [r12]
cmp bx, word [r9 + 6]
jae 0x1400c9672
mov eax, dword [rbx + r10 + 0xc]
test eax, eax
je 0x1400c9623
mov rdi, rax
add rdi, qword [r12]
mov eax, dword [rbx + r10 + 0x10]
test eax, eax
je 0x1400c964e
mov edx, dword [rbx + r10 + 0x14]
mov r8, rax
mov rcx, rdi
add rdx, rsi
call fcn.14001b760
mov r10, qword [r15]
mov ecx, dword [rbx + r10 + 0x10]
cmp dword [rbx + r10 + 8], ecx
jb 0x1400c9653
mov ecx, dword [rbx + r10 + 8]
mov rax, qword [r14]
mov edx, dword [rax + 0x38]
call fcn.1400c6dcc
mov rcx, qword [r14]
inc ebp
movzx edx, word [rcx + 6]
add rdi, rax
add rbx, 0x28
cmp ebp, edx
jl 0x1400c9613
mov eax, 1
jmp 0x1400c967b
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400d3728
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov r9, rdx
mov rbx, rcx
cmp rdx, rdi
je 0x1400d37b3
cmp dword [rdx], edi
jge 0x1400d3748
cmp dword [rdx + 4], edi
jl 0x1400d37b3
movzx r10d, di
mov r11d, 1
movsx ecx, r10w
add r10w, r11w
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
movsxd r8, eax
mov eax, ecx
cdq
and eax, r11d
xor eax, edx
sub eax, edx
movsxd rcx, eax
mov eax, dword [r9]
add r9, 4
cmp r10w, 2
lea rdx, [rcx + r8*2]
mov dword [rbx + rdx*4 + 0x6c], eax
jl 0x1400d3752
mov ecx, dword [rbx + 0x70]
cmp ecx, edi
jl 0x1400d379b
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x88], rax
mov ecx, dword [rbx + 0x78]
cmp ecx, edi
jl 0x1400d37af
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x90], rax
mov byte [rbx + 0x6b], dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400db708
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov r9, rdx
mov rbx, rcx
cmp rdx, rdi
je 0x1400db7d8
cmp dword [rdx], edi
jge 0x1400db73f
cmp dword [rdx + 4], edi
jge 0x1400db73f
cmp dword [rdx + 8], edi
jge 0x1400db73f
cmp dword [rdx + 0xc], edi
jl 0x1400db7d8
mov esi, 4
movzx r10d, di
lea r11d, [rsi - 3]
movsx ecx, r10w
add r10w, r11w
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
movsxd r8, eax
mov eax, ecx
cdq
and eax, r11d
xor eax, edx
sub eax, edx
movsxd rcx, eax
mov eax, dword [r9]
add r9, rsi
cmp r10w, si
lea rdx, [rcx + r8*2 + 0x1e]
mov dword [rbx + rdx*4], eax
jl 0x1400db74c
mov ecx, dword [rbx + 0x7c]
cmp ecx, edi
jl 0x1400db793
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x98], rax
mov ecx, dword [rbx + 0x84]
cmp ecx, edi
jl 0x1400db7aa
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0xa0], rax
mov eax, dword [rbx + 0x84]
mov byte [rbx + 0xa8], dil
cmp eax, edi
jl 0x1400db7d8
cmp eax, dword [rbx + 0x7c]
jne 0x1400db7d8
mov eax, dword [rbx + 0x78]
cmp dword [rbx + 0x80], eax
jne 0x1400db7d8
mov al, byte [rbx + 0x69]
cmp al, dil
jle 0x1400db7d8
neg al
mov byte [rbx + 0x69], al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400dcdd4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 0xffdf
and cx, ax
mov eax, 0x41
cmp ax, cx
je 0x1400dcdfd
mov eax, 0x42
cmp ax, cx
je 0x1400dcdfd
mov eax, 0xfffffffe
jmp 0x1400dce26
mov word [rsp + 0x38], cx
mov eax, 0x3a
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], bx
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400dcefc
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [rsp + 0xc8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov dword [rsp + 0x50], eax
jmp 0x1400dcf62
add rsp, 0x78
ret

Function at 0x1400e3d68
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400e6644
nop
cmp dword [0x140119330], 1
je 0x1400e3d14
mov dword [0x14011932c], 1
mov byte [0x140119328], r12b
test ebx, ebx
jne 0x1400e3d00
mov rcx, qword [0x14011a490]
call sub.KERNEL32.DLL_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400e3ced
mov rcx, qword [0x14011a488]
call sub.KERNEL32.DLL_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400e3c8c
call fcn.1400e3484
cmp qword [rdi], rax
jne 0x1400e3c8c
jmp 0x1400e3c72
cmp rdi, rsi
jb 0x1400e3ced
mov rcx, qword [rdi]
call sub.KERNEL32.DLL_DecodePointer
mov rbx, rax
call fcn.1400e3484
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14011a490]
call sub.KERNEL32.DLL_DecodePointer
mov rbx, rax
mov rcx, qword [0x14011a488]
call sub.KERNEL32.DLL_DecodePointer
cmp r14, rbx
jne 0x1400e3ccb
cmp r13, rax
je 0x1400e3ceb
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400e3c72
lea rdx, [0x1400f9300]
lea rcx, [0x1400f92e8]
call fcn.1400e3abc
lea rdx, [0x1400f9310]
lea rcx, [0x1400f9308]
call fcn.1400e3abc
nop
test r12d, r12d
je 0x1400e3d23
mov ecx, 8
call fcn.1400e6544
test r12d, r12d
jne 0x1400e3d4e
mov dword [0x140119330], 1
lea ecx, [r12 + 8]
call fcn.1400e6544
mov ecx, r15d
call fcn.1400e3a50
mov ecx, r15d
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400e3bdc

Function at 0x1400e3d74
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400e3bdc
Function at 0x1400f03cf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401164d0]
jne 0x1400e5eca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400e5ec6
repz ret
ror rcx, 0x10
jmp 0x1400f0328
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140119cf0]
call qword [sym.imp.KERNEL32.DLL_RtlCaptureContext]
mov r11, qword [0x140119de8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.DLL_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400f03ad
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140119cf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.DLL_RtlVirtualUnwind
jmp 0x1400f03cf
mov rax, qword [rsp + 0x88]
mov qword [0x140119de8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140119d88], rax
mov rax, qword [0x140119de8]
mov qword [0x140119c60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140119d70], rax
mov dword [0x140119c50], 0xc0000409
mov dword [0x140119c54], 1
mov rax, qword [0x1401164d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401164d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
mov dword [0x140119ce8], eax
mov ecx, 1
call fcn.1400ef514
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea rcx, [0x14010b5b0]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
cmp dword [0x140119ce8], 0
jne 0x1400f0456
mov ecx, 1
call fcn.1400ef514
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400f1a88
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400e3484
xor ebx, ebx
mov rdi, rax
cmp qword [0x14011a1c8], rbx
jne 0x1400f1b8e
lea rcx, [0x140105720]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400f1c63
lea rdx, [0x14010b620]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x1400f1c63
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, [0x14010b610]
mov rcx, rsi
mov qword [0x14011a1c8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, [0x14010b5f8]
mov rcx, rsi
mov qword [0x14011a1d0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, [0x14010b5d8]
mov rcx, rsi
mov qword [0x14011a1d8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
mov r11, rax
mov qword [0x14011a1e8], rax
test rax, rax
je 0x1400f1b85
lea rdx, [0x14010b5c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
mov qword [0x14011a1e0], rax
jmp 0x1400f1b95
mov rax, qword [0x14011a1e0]
jmp 0x1400f1b9c
mov rax, qword [0x14011a1e0]
mov r11, qword [0x14011a1e8]
cmp rax, rdi
je 0x1400f1c04
cmp r11, rdi
je 0x1400f1c04
mov rcx, rax
call sub.KERNEL32.DLL_DecodePointer
mov rcx, qword [0x14011a1e8]
mov rsi, rax
call sub.KERNEL32.DLL_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400f1c04
test rax, rax
je 0x1400f1c04
call rsi
test rax, rax
je 0x1400f1bfe
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400f1bfe
test byte [rsp + 0x38], 1
jne 0x1400f1c04
bts ebp, 0x15
jmp 0x1400f1c42
mov rcx, qword [0x14011a1d0]
cmp rcx, rdi
je 0x1400f1c42
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x1400f1c42
call rax
mov rbx, rax
test rax, rax
je 0x1400f1c42
mov rcx, qword [0x14011a1d8]
cmp rcx, rdi
je 0x1400f1c42
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x1400f1c42
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14011a1c8]
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x1400f1c63
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400f1c65
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400406a8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400bd288]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x20], r14d
call fcn.14003e9b4
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x140040757
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.140003cac
lea esi, [r14 + 1]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140040745
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
test eax, eax
mov bl, sil
je 0x14004075a
mov bl, r14b
test sil, 1
je 0x14004076a
lea rcx, [rsp + 0x30]
call fcn.140003c44
test bl, bl
je 0x14004080c
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004078e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
call fcn.14004051c
mov rsi, rax
mov rbx, r14
test rax, rax
je 0x140040898
lea rdx, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__stricmp]
test eax, eax
je 0x14004088c
add rbx, 8
cmp rbx, 0x30
jb 0x1400407a7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004080c
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040807
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1400408dc
movdqa xmm0, xmmword [0x140097d60]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003cac
nop
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140040c78
cmp qword [rax + 0x18], 8
jb 0x140040869
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140003c44
nop
lea rcx, [rsp + 0x30]
call fcn.140003c44
jmp 0x1400408d7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400408d7
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400408d2
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov rax, rbx
jmp 0x1400408de
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140066490
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140064164
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rdx
mov rbx, rcx
mov rdx, rcx
mov rcx, rbp
call fcn.140035324
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006419e
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 1
lea r9, [0x14008cd7c]
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
call fcn.1400416b8
cmp rax, 0xffffffffffffffff
jne 0x1400641c7
mov al, 1
jmp 0x14006426d
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400641d4
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14006426d
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14001c180
nop
cmp qword [rbx + 0x18], 8
jb 0x140064201
mov rbx, qword [rbx]
mov r8d, esi
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
sete bl
jne 0x140064228
mov rdx, rdi
mov rcx, rbp
call fcn.140003cac
nop
test rdi, rdi
je 0x14006426b
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
sar rdx, 1
add rdx, rdx
mov rax, rdi
cmp rdx, 0x1000
jb 0x140064263
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064263
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400667e4
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140065ff0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140066038
lea ebx, [rsi + 0xd]
jmp 0x1400660a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x1400660a3
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003ffcc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140066095
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400660a3
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.140003cac
mov ebx, esi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400660e6
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400660e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400660e1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140066b50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400be0c0], eax
call fcn.140066fd4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400be0c0], 0
jne case.default.0x140066ba6
mov ecx, 1
call fcn.140066fd4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
invalid
mov esp, 0x17a4621d
std
xlatb
push rbx
mov ss, word [rax - 0x78c66276]
jo 0x14012a295
mov al, 0x9b
wait
imul ebp, esp, 0xfffffff7
sbb dword [rcx - 0x27], ebx
xchg ebp, edi
jge 0x14012a2e4
sti
add eax, dword [0x1478f99f2]
add byte [rsi], al
int 0x13
jle 0x14012a337
fidiv dword [rcx - 0x11e1e53]
mov bl, 0x2c
push rsp
call 0x19a823a8a
in al, 0x57
movabs dword [0x3ce716efffa6a989], eax
invalid
movsb byte [rdi], byte [rsi]
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400eff20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400eff30]
mov dword [rax], 1
mov rax, qword [0x1400eff40]
mov dword [rax], 1
mov rax, qword [0x1400efec0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400eff10]
mov dword [0x14010200c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400efff0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400effd0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400efe70]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
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
lea rcx, [sym._matherr]
call sym.__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 0x140005be0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x140005c38
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x140005c52
lea rax, [0x1400be41c]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x1400c3440]
lea r8, str._h_f_
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x1400c8658]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2

Function at 0x1400258d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140025905
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140025915
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret