joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x48
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x140014bcb
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140014b05
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140014bb4
lea rdx, [rsp + 0x90]
call fcn.1400037b0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140014b30
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x140014b77
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014b87
add ebx, dword [rsp + 0x30]
jmp 0x140014b92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140014b98
cmp ebx, edi
je 0x140014b9d
jmp 0x140014b50
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.14001b8c4
nop
jmp 0x140014bc2
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x140014d0a
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140014c36
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x14004c060]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140014c60
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x140014ca7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014cb7
add ebx, dword [rsp + 0x78]
jmp 0x140014cc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140014cc8
cmp ebx, edi
je 0x140014ccd
jmp 0x140014c80
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x140014ce8
mov rcx, r13
call fcn.14001b8c4
test r14, r14
je 0x140014cf6
mov rcx, r14
call fcn.14001b8c4
nop
jmp 0x140014d01
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140014d30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x140014e28
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140014d80
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400037b0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140014d95
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x140014dd7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014de7
add ebx, dword [rsp + 0x78]
jmp 0x140014df2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140014df8
cmp ebx, edi
je 0x140014dfd
jmp 0x140014db0
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.14001b8c4
nop
jmp 0x140014e1f
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400183b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140054028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
cmp qword [rcx + 0x18], 8
jb 0x1400183e8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140018441
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140055160]
mov r10, qword [rcx]
mov r9d, eax
lea r8d, [rdi + 3]
lea rdx, str.SwapMethod___Overwrite:_CreateFileW_failed__d
call qword [r10 + 0x10]
jmp 0x140018522
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140018481
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140055160]
mov rax, qword [rcx]
mov r9d, ebx
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_SetFilePointer_failed__d
call qword [rax + 0x10]
jmp 0x140018518
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400184b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140055160]
mov rax, qword [rcx]
mov r9d, ebx
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_SetEndOfFile_failed__d
call qword [rax + 0x10]
jmp 0x140018518
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140018457
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001850f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140055160]
mov rax, qword [rcx]
mov r9d, ebx
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_WriteFile_failed__d
call qword [rax + 0x10]
jmp 0x140018518
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.140003b70
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001bc30
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001c25c
Capabilities:
Parse pe header

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

Function at 0x140029f3c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140029d38
Function at 0x1400341a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400341d4
xor eax, eax
jmp 0x140034297
mov rbp, rbx
cmp word [rax], si
je 0x1400341f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400341e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400341dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140032a70
movsxd r14, eax
test eax, eax
jne 0x140034237
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400341cd
mov rcx, r14
call fcn.14002e3c8
mov rdi, rax
test rax, rax
jne 0x140034250
xor ecx, ecx
call fcn.14002e38c
jmp 0x14003422c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140032a70
test eax, eax
jne 0x140034281
mov rcx, rdi
call fcn.14002e38c
jmp 0x14003428b
xor ecx, ecx
call fcn.14002e38c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140037644
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002d414
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400376e5
cmp ebx, dword [rsp + 0x30]
je 0x1400376de
test esi, esi
je 0x1400376de
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400376b9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400376c6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400376a3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400376ca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400376e7
mov eax, 1
jmp 0x1400376e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003aa8c
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.14002235c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003ab16
cmp byte [rbp - 0x21], r15b
je 0x14003ab11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003ab4c
call fcn.14002dc08
test eax, eax
jne 0x14003ab38
cmp byte [rbp - 0x21], r15b
je 0x14003ab30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003ab4c
cmp byte [rbp - 0x21], r15b
je 0x14003ab49
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.140029444
test eax, eax
jne 0x14003abec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002235c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003ab8b
cmp byte [rbp - 0x21], r15b
je 0x14003abc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003abc0
call fcn.14002dc08
test eax, eax
jne 0x14003abac
cmp byte [rbp - 0x21], r15b
je 0x14003aba5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003abc0
cmp byte [rbp - 0x21], r15b
je 0x14003abbd
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.140029444
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003abec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003abef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003abfd
mov rcx, rdi
call fcn.14002e38c
cmp byte [rbp + 0x3f], r15b
je 0x14003ac0c
mov rcx, qword [rbp + 0x27]
call fcn.14002e38c
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 0x14003ca90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140056250]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003cae7
cmp word [rdx], r13w
jne 0x14003cae7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003caec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003cc11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003cc32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003cb25
mov rdx, r9
mov word [rbx], cx
jmp 0x14003cb4c
cmp r9, r8
jae 0x14003cb5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003cb06
jmp 0x14003cc11
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003cc06
cmp dword [rsp + 0x80], esi
je 0x14003cc06
lea r8, [0x140056250]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003cbde
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003cbae
mov word [rbx], r13w
jmp 0x14003cc0e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14003cbbb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003cc0e
cmp word [rsp + 0x70], r13w
jne 0x14003cbeb
cmp rbx, r14
je 0x14003cba8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003c570
cmp word [rsp + 0x70], r13w
je 0x14003cc11
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140056250]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003cc0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003cc11
Function at 0x10014e12c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100167d60], rdi
je 0x10014e18c
cmp rax, rdi
jne 0x10014e17f
mov r12d, 1
jmp 0x10014e18c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10014e165
mov eax, dword [0x100167d58]
cmp eax, 1
jne 0x10014e1a1
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10014e208
mov eax, dword [0x100167d58]
cmp eax, ebx
jne 0x10014e1fe
mov dword [0x100167d58], 1
lea r13, [0x100001e70]
lea rdi, [0x100001e58]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10014e1f0
cmp eax, ebx
jne 0x10014e1f0
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10014e1e5
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10014e1ce
cmp eax, ebx
je 0x10014e208
mov eax, 0xff
jmp 0x10014e350
mov dword [0x100165ecc], 1
mov eax, dword [0x100167d58]
cmp eax, 1
jne 0x10014e230
lea rdx, [0x100001e50]
lea rcx, [0x100001d90]
call sub.msvcrt.dll__initterm
mov dword [0x100167d58], 2
cmp r12d, ebx
jne 0x10014e23f
mov rax, rbx
xchg qword [0x100167d60], rax
cmp qword [0x100167d78], rbx
je 0x10014e267
lea rcx, [0x100167d78]
call fcn.10014ea1c
cmp eax, ebx
je 0x10014e267
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100167d78]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10014e27d
mov eax, 0xff
jmp 0x10014e350
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10014e302
cmp word [rcx], bx
je 0x10014e298
cmp edx, ebx
jne 0x10014e302
cmp word [rcx], bx
je 0x10014e2ae
cmp word [rcx], 0x20
ja 0x10014e2ae
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10014e298
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100066950
mov dword [0x100165ec8], eax
cmp dword [0x100165eac], ebx
jne 0x10014e2ec
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100165ecc], ebx
jne 0x10014e300
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100165ec8]
jmp 0x10014e350
cmp word [rcx], 0x22
jne 0x10014e315
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10014e289
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10028d000
add rsp, 0x28
jmp 0x10014e12c
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004bfbe0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004bfbf0]
mov dword [rax], 1
mov rax, qword [0x004bfc00]
mov dword [rax], 1
mov rax, qword [0x004bfbd0]
mov dword [rax], 1
mov rax, qword [0x004bfaa0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004bfbc0]
mov dword [0x004e700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004bfb80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004beee0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4016e6
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov dword [rbp - 0x40], 0x40
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
test eax, eax
sete al
test al, al
je 0x40173a
lea rdx, str.Failed_to_get_system_memory_status.
mov rcx, qword [0x004bf4a0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x40175b
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov rax, qword [rbp - 0x28]
mov edx, dword [rbp - 0x6c]
mov ecx, edx
mov edx, 0
div rcx
add rsp, 0x90
pop rbp
ret

Function at 0x401764
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp - 0xc], eax
mov dword [rbp - 4], 0
mov byte [rbp - 5], 0
cmp byte [rbp - 5], 0x19
jg 0x4017eb
movsx eax, byte [rbp - 5]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
and eax, dword [rbp - 0xc]
test eax, eax
je 0x4017df
movsx eax, byte [rbp - 5]
lea edx, [rax + 0x41]
lea rax, [rbp - 0x14]
mov r8d, edx
lea rdx, str._c:_
mov rcx, rax
call sym.int_sprintf_s_4ull__char_____4ull___char_const__::_
lea rax, [rbp - 0x14]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call rax
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 3
je 0x4017db
cmp dword [rbp - 0x10], 2
jne 0x4017df
add dword [rbp - 4], 1
movzx eax, byte [rbp - 5]
add eax, 1
mov byte [rbp - 5], al
jmp 0x401783
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x4017f4
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x1c], 0
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x10
mov ecx, 0
call sym.GetAdaptersAddresses
mov eax, dword [rbp - 0x1c]
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 0
mov edx, 0x10
mov ecx, 0
call sym.GetAdaptersAddresses
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x401891
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x68]
cmp eax, 1
jne 0x401883
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov qword [rbp - 0x10], rax
jmp 0x40186c
mov eax, dword [rbp - 4]
add rsp, 0x50
pop rbp
ret