joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
test rcx, rcx
jne 0x140011b54
mov ecx, dword [0x141aa20f8]
test ecx, ecx
je 0x140011b15
dec ecx
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [0x141aa20d8]
test ecx, ecx
je 0x140011b28
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x140011b47
movzx eax, byte [0x141aa2030]
mov ecx, 0x38
call fcn.140034ef0
test rax, rax
je 0x140011b8c
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 2
mov qword [rax + 0x28], rdi
mov byte [rax + 0x30], 0
mov qword [rbp - 0x40], rax
mov rax, qword [0x141aa4038]
lock inc qword [rsi]
jle 0x140011b9b
mov ecx, dword [0x141aa20f8]
test ecx, ecx
je 0x140011aef
dec ecx
jmp 0x140011afd
lea rcx, [0x141aa20e0]
call fcn.14000ecf0
mov ecx, eax
add rsi, 0x10
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x141aa20e0]
call fcn.14000ecf0
mov ecx, eax
jmp 0x140011a65
lea rcx, [0x141aa20c0]
call fcn.14000ecf0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x140011a90
call fcn.140011000
mov rdi, rax
jmp 0x140011a90
cmp rcx, 1
je 0x140011b9d
lea rax, [0x141a9a940]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, [0x141a9a970]
lea rcx, [rbp - 0x40]
call fcn.140002910
mov ecx, 8
mov edx, 0x38
call fcn.140001f5d
ud2
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, [0x141a9aa78]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.14000eec0
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call fcn.14000f000
mov ecx, 7
int 0x29
ud2
Function at 0x140014d30
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov rax, r8
mov rdi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.140031a70
mov rsi, rdx
test rax, rax
je 0x140014df2
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140014de6
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x140014db2
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x140014dd5
cmp qword [r14 + 0x10], 0x11
jb 0x140014dc4
mov rbx, qword [rbx - 8]
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov qword [rdi], 0
jmp 0x140014f5d
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.140031cf0
cmp dword [rbp - 0x48], 2
jne 0x140014e7f
mov rax, qword [rbp - 0x40]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140014e5f
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rax, qword [r15]
test rax, rax
je 0x140014e2b
mov rcx, r14
call rax
cmp qword [r15 + 8], 0
je 0x140014e4e
cmp qword [r15 + 0x10], 0x11
jb 0x140014e3d
mov r14, qword [r14 - 8]
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rbp - 0x10]
test rsi, rsi
je 0x140014ecd
mov qword [rbp - 0x48], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140014f49
mov rbx, qword [rbp - 0x48]
jmp 0x140014ecf
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140014f38
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140014f38
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140014f55
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140014f55
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140032fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x140033041
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x140033041
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x140033041
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x14003311c
cmp byte [rdx], 0xed
jne 0x140033125
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140033125
cmp rbx, 3
jb 0x140033081
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x14003320f
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [0x14003ced0]
por xmm6, xmmword [0x14003cee0]
cmp rcx, 3
jbe 0x140033241
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x1400331b3
test rdi, rdi
je 0x1400331b0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140033148
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x1400331b0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140033140
cmp r10b, 0xe0
jb 0x14003312e
cmp r10b, 0xed
jne 0x14003317f
cmp r8, rax
je 0x1400331b0
lea r8, [r9 + 2]
cmp r8, rax
je 0x1400331b0
cmp byte [r9 + 1], 0x9f
ja 0x1400331ac
add r9, 3
mov r8, r9
jmp 0x140033140
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140033140
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140033140
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1400331e2
add rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140014b30
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1400331bb
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.140014b30
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x1400330a0
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.140014b30
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x1400330fe
Function at 0x140033340
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140031e00
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x1400333a0
movabs rbx, 0x8000000000000000
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
call fcn.140032110
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x1400333ac
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x1400333d4
test rdi, rdi
je 0x1400333fc
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
xor eax, eax
jmp 0x1400333a3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400333a3
mov rcx, qword [0x141aa20b0]
xor edx, edx
mov r8, rsi
mov rsi, rax
call sub.KERNEL32.dll_HeapFree
jmp 0x1400333a0
xor eax, eax
jmp 0x1400333a3

Function at 0x140036bf9
Capabilities:
Get thread local storage value
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], rcx
mov qword [rbp + 0x408], rdx
mov qword [rbp + 0x420], r8
lock inc qword [0x141aa20a0]
jle 0x1400375c8
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
call fcn.1400102a0
test rax, rax
jne 0x140036c70
lea rcx, [rbp + 0x3e8]
and dword [rcx], 0
mov byte [rcx + 4], 0
lea rax, [rbp + 0x420]
lea r8, [rbp + 0x3a8]
mov qword [r8], rax
lea rax, [0x140036a00]
mov qword [r8 + 8], rax
lea rax, [rbp + 0x400]
mov qword [r8 + 0x10], rax
lea rax, [0x141a9b390]
lea rdx, [rbp - 0x58]
mov qword [rdx], rax
mov qword [rdx + 8], 3
and qword [rdx + 0x20], 0
lea rax, [0x1400037b0]
mov qword [r8 + 0x18], rax
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
call fcn.14000eec0
lea rcx, [rbp + 0x428]
jmp 0x1400376ce

Function at 0x140038a30
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 fcn.140039840
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x141a9c4c0]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140039840
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140038aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x141aa2174]
mov rbx, rcx
test esi, esi
jle 0x140038bd0
mov rax, qword [0x141aa2178]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140038aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140038b75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140038ad0
mov rcx, rbx
call fcn.140039560
mov rdi, rax
test rax, rax
je 0x140038bf2
mov rax, qword [0x141aa2178]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400396a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x141aa2178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140038bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140038b6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140038b80
add dword [0x141aa2174], 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 [0x141aa2178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140038b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x141a9c538]
mov edx, eax
call fcn.140038a30
nop dword [rax]
xor esi, esi
jmp 0x140038af8
mov rax, qword [0x141aa2178]
mov edx, dword [rdi + 8]
lea rcx, [0x141a9c500]
mov r8, qword [rax + rbx + 0x18]
call fcn.140038a30
mov rdx, rbx
lea rcx, [0x141a9c4e0]
call fcn.140038a30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400391a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x141aa21e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x141aa21c0]
test rbx, rbx
je 0x140039204
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400391fb
test eax, eax
jne 0x1400391fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400391e0
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 0x140039560
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400395e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141a9c680]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400395ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140039608
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400395ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400396a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141a9c680]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400396bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400396c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c7530]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c7540]
mov dword [rax], 1
mov rax, qword [0x1400c7550]
mov dword [rax], 1
mov rax, qword [0x1400c74c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c7520]
mov dword [0x1400db00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400c7610]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400c75f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400c74a0]
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 [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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400c7580]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x1400c7590]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1400db008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [str._q_f_]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call sym._pei386_runtime_relocator
mov rcx, qword [sym._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400c7570]
lea rcx, [sym.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov ebx, dword [0x1400db028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x1400db020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1400db020], rbp
call sym.__main
mov rax, qword [0x1400c7500]
mov r8, qword [0x1400db018]
mov ecx, dword [0x1400db028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1400db020]
call sym.main
mov ecx, dword [0x1400db00c]
mov dword [0x1400db010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1400db008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400c7590]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call sym._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x1400c75c0]
mov rcx, qword [0x1400c75b0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x1400db010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400c75e0]
mov rcx, qword [0x1400c75d0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x140001490
Capabilities:
Copy file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
mov rcx, rdx
call sym.std::sys::os_str::wtf8::Buf::as_mut_slice::hc42e064764fb4d62
mov r9, rdx
mov rcx, rsi
mov rdx, rdi
mov r8, rax
add rsp, 0x28
pop rdi
pop rsi
jmp sym.std::sys::pal::windows::fs::copy::he6c351078caf69fb
Function at 0x140003010
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x140003050
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140003082
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h624a621d3f86a298
mov rcx, qword [rsp + 0x28]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x14000a2b0
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rcx
movsx rax, dl
lea rcx, [0x1400a21b0]
mov ebp, dword [rcx + rax*4]
mov dword [rsp + 0x28], 0
xor r15d, r15d
lea r14, [rsp + 0x28]
mov ecx, ebp
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_GetComputerNameExW
mov esi, dword [rsp + 0x28]
test rsi, rsi
je 0x14000a319
lea r15, [rsi + rsi]
mov edx, 2
mov rcx, r15
call sym.__rust_alloc_zeroed
test rax, rax
je 0x14000a431
mov rbx, rax
mov r15d, dword [rsp + 0x28]
jmp 0x14000a31e
mov ebx, 2
mov dword [rsp + 0x2c], r15d
lea r15, [rsp + 0x2c]
mov ecx, ebp
mov rdx, rbx
mov r8, r15
call sub.KERNEL32.dll_GetComputerNameExW
test eax, eax
je 0x14000a37a
mov r8d, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], r8d
jbe 0x14000a389
cmp r8d, esi
ja 0x14000a43e
lea rcx, [rsp + 0x30]
mov rdx, rbx
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h624a621d3f86a298
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
jne 0x14000a40a
jmp 0x14000a41e
call sym.std::sys::pal::windows::os::errno::h413f12e3b80117bc
shl rax, 0x20
or rax, 2
jmp 0x14000a3f4
mov qword [rsp + 0x60], r14
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::hc590a99803984d19]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rax
lea rax, str.8__n_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x30]
call sym.alloc::fmt::format::format_inner::h2e4b5bde2a7ad535
lea rcx, [rsp + 0x80]
call sym.std::io::error::Error::new::ha80ecd4d4b8f285a
mov qword [rdi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rdi], rax
test rsi, rsi
je 0x14000a41e
add rsi, rsi
mov r8d, 2
mov rcx, rbx
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 2
mov rdx, r15
call sym.alloc::raw_vec::handle_error::hb4a2c97b2f2cc7c5
lea rax, str._Users_astrop_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winapi_util_0.1.9_src_sysinfo.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
ud2
Function at 0x14000bcf0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x14000bd53
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x14000bd5f
lea rax, [0x14009d6f4]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.library_std_src_synconce.rs
call sym.core::option::unwrap_failed::h511674c62460528b
mov qword [rbp + 0x138], 0
lea rdx, [0x1400a9218]
lea r9, [0x1400a9220]
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::he1f5a6e92591b991
int3

Function at 0x140029840
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret