joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f1f8
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.14007fdc4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008f282
cmp byte [rbp - 0x21], r15b
je 0x14008f27d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008f2b8
call fcn.14007db40
test eax, eax
jne 0x14008f2a4
cmp byte [rbp - 0x21], r15b
je 0x14008f29c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008f2b8
cmp byte [rbp - 0x21], r15b
je 0x14008f2b5
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.140080e64
test eax, eax
jne 0x14008f358
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007fdc4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008f2f7
cmp byte [rbp - 0x21], r15b
je 0x14008f32c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008f32c
call fcn.14007db40
test eax, eax
jne 0x14008f318
cmp byte [rbp - 0x21], r15b
je 0x14008f311
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008f32c
cmp byte [rbp - 0x21], r15b
je 0x14008f329
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.140080e64
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008f358
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008f35b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008f369
mov rcx, rdi
call fcn.14007abd0
cmp byte [rbp + 0x3f], r15b
je 0x14008f378
mov rcx, qword [rbp + 0x27]
call fcn.14007abd0
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 0x140091910
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, [0x1409597c0]
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 0x140091967
cmp word [rdx], r13w
jne 0x140091967
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009196c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140091a91
mov r11d, SafeArrayGetElemsize
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140091ab2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400919a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400919cc
cmp r9, r8
jae 0x1400919dc
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 0x140091986
jmp 0x140091a91
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 0x140091a86
cmp dword [rsp + 0x80], esi
je 0x140091a86
lea r8, [0x1409597c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140091a5e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140091a2e
mov word [rbx], r13w
jmp 0x140091a8e
mov ecx, SafeArrayGetElemsize
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 0x140091a3b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140091a8e
cmp word [rsp + 0x70], r13w
jne 0x140091a6b
cmp rbx, r14
je 0x140091a28
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140092eac
cmp word [rsp + 0x70], r13w
je 0x140091a91
mov ecx, SafeArrayGetElemsize
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, [0x1409597c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140091a8b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140091a91
Function at 0x1400a2ac0
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x1400a2acc
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov ebp, r8d
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x1400a2cc8
cmp word [rdx], di
je 0x1400a2cc8
mov qword [r11 - 0x38], rdi
lea r12d, [rdi + 1]
mov r8d, r12d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400a2cc3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
test eax, eax
jle 0x1400a2cba
mov ecx, ebp
call fcn.1400a3270
mov rsi, rax
test rax, rax
je 0x1400a2cba
lea edx, [rdi + 2]
cmp ebp, 0xffffffff
mov rcx, r14
cmovne edx, ebp
call fcn.1400a3874
mov rbx, rax
test rax, rax
je 0x1400a2caf
mov qword [rax + 0x40], rsi
lea r8, [r15 + 0x10]
mov qword [rbx + 0x60], rdi
cmp r14, 0xffffffffffffffff
mov dword [rbx + 0x68], edi
cmove r14, rax
mov dword [rbx + 0x20], edi
mov qword [rax + 0x48], r14
xor edx, edx
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x140957d28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x1400a2bdf
lea eax, [r15 + 0x10]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
mov qword [rax], rdi
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x1400a2be8
mov dword [rbx + 0x50], r12d
mov rdx, rbx
mov rcx, rsi
call fcn.1401240a0
mov ebp, edi
mov r14d, 0x4000
lea eax, [r14 + rbp]
cmp eax, r15d
jle 0x1400a2c0a
mov r14d, r15d
sub r14d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.140123280
mov r12, rax
test rax, rax
je 0x1400a2c99
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x1400a2c85
add ebp, edx
cmp dword [rbx + 0x20], edi
jne 0x1400a2c55
mov rcx, r12
call fcn.1400a3354
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rsi
cmp ebp, r15d
jl 0x1400a2c65
mov r8d, 1
jmp 0x1400a2c68
xor r8d, r8d
call fcn.1401238e0
test eax, eax
je 0x1400a2c78
cmp ebp, r15d
jl 0x1400a2bfb
jmp 0x1400a2cab
mov rcx, rsi
call fcn.1401235c0
mov dword [rbx + 0x24], eax
jmp 0x1400a2ca0
lea rax, str.file_read_error
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x1400a2cab
mov dword [rbx + 0x24], 1
mov rdx, rsi
mov rcx, rbx
call fcn.1400a3428
mov qword [rbx + 0x40], rdi
mov rcx, rsi
call fcn.140123a70
mov rdi, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x1400a2cca
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400a3a3c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400a3b00
lea rcx, [0x1409d4b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140959e50]
jmp 0x1400a3ac6
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400a3ac3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140959e50]
mov rdx, rsi
call fcn.14011af20
jmp 0x1400a3ac6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400a3a93
mov rdi, qword [0x140953800]
lea rcx, [0x140959e50]
lea rdx, [rdi + 1]
mov qword [0x140953800], rdx
lea edx, [rbx + 0x20]
call fcn.14011af68
lea rcx, [0x1409d4b60]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a4024
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400a40a0
movsxd rdx, ecx
lea rcx, [0x1400a3f84]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140959e60]
test rbx, rbx
je 0x1400a4113
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400a4096
cmp byte [rbx + 0x20], 0
je 0x1400a4096
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400a405c
jmp 0x1400a4113
mov rbx, qword [0x140959e60]
test rbx, rbx
je 0x1400a4113
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400a410b
cmp byte [rbx + 0x21], 0
je 0x1400a40cf
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400a40fb
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140959e60]
call fcn.14011af20
mov rbx, rsi
test rsi, rsi
jne 0x1400a40ac
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400a4820
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1409d4c00]
call fcn.14011a4e0
test rax, rax
je 0x1400a485d
cmp dword [rax + 0x28], 0
je 0x1400a485d
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.1400a4430
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14011b740
Function at 0x1400c2918
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1400c297f
mov rcx, qword [rbp + 0x18]
lea r9, [rsp + 0x50]
and dword [rsp + 0x50], 0
mov r8d, edi
and qword [rsp + 0x20], 0
sub r8d, ebx
movsxd rdx, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400c2971
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400c297b
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x1400c297f
jmp 0x1400c293c
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c2a2c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x1400c2e30
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r9d
mov edi, ecx
mov r13d, r8d
mov ebp, eax
mov r14d, eax
cmp edx, 0x18
je 0x1400c2f6c
cmp edx, 2
je 0x1400c2f6c
mov rcx, qword [0x140957d28]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x34]
mov rbx, rax
lea r8d, [rcx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400c2f55
mov r15, qword [rsp + 0x90]
mov esi, ecx
mov r12d, edi
cmp dword [rsp + 0x38], 2
jne 0x1400c2f4d
cmp r13d, 0xffffffff
je 0x1400c2eda
cmp r14d, r13d
jae 0x1400c2f4d
add r14d, 2
test edi, edi
jne 0x1400c2f05
mov rcx, qword [0x140957d28]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x1400c2f4d
cmp ax, 0xd
je 0x1400c2f25
mov word [rsi + rbx], ax
inc ebp
add rsi, 2
inc r12d
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x34]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400c2ec8
mov r15d, dword [rsp + 0xa8]
movsxd rax, ebp
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401adb70
jmp 0x1400c303e
mov r8, rcx
xor edx, edx
mov rcx, qword [0x140957d28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov r13d, edi
mov rsi, qword [rsp + 0x90]
mov rbx, rax
xor eax, eax
mov r12d, eax
jmp 0x1400c2f9d
xor eax, eax
cmp r15d, 0xffffffff
je 0x1400c2fa8
cmp r14d, r15d
jae 0x1400c3012
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c3012
cmp dword [rsp + 0x38], 1
jne 0x1400c3012
inc r14d
test edi, edi
jne 0x1400c2ff6
mov rcx, qword [0x140957d28]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
mov edi, 0x1000
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400c3012
cmp al, 0xd
je 0x1400c2f9b
mov byte [r12 + rbx], al
inc ebp
inc r12
inc r13d
dec edi
jmp 0x1400c2f9b
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
mov edx, r15d
movsxd rax, ebp
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400c3039
call fcn.1401adbd0
jmp 0x1400c303e
call fcn.1401ad990
mov rcx, qword [0x140957d28]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c2ac0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400c2aee
dec edi
mov edx, ebx
mov ecx, edi
call fcn.14011b560
lea r8d, [rdi + 1]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c2ba0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1409d4ca0]
call fcn.14011a2d8
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x1400c2cd7
mov rcx, qword [rsp + 0x30]
jmp 0x1400c2bf1
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x1400c2be9
mov r11d, 1
cmp r8w, 0x22
jne 0x1400c2c40
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400c2c9f
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400c2c3a
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x1400c2c1e
test r8w, r8w
jmp 0x1400c2c9f
test r8w, r8w
je 0x1400c2caf
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x1400c2c9b
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x1400c2c91
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400c2c91
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400c2c91
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x1400c2c75
movzx r10d, r8w
test r8w, r8w
jne 0x1400c2c49
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x1400c2cb5
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x1400c2cbe
test rbx, rbx
jne 0x1400c2ce1
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x1400c2bf1
test rbx, rbx
jne 0x1400c2cf5
movsxd rax, edi
jmp 0x1400c2cfa
test r9, r9
je 0x1400c2cf5
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x1400c2cfa
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c2d10
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1409d4ca0]
call fcn.14011a2d8
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400c2ba0
Function at 0x1400c2da4
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
xor ebp, ebp
mov rcx, qword [0x1409d4ca0]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14011a2d8
test ebx, ebx
js 0x1400c2dd3
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.1400c2ba0
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.14011b560
mov ecx, ebp
jmp 0x1400c2e0f
test edi, edi
je 0x1400c2e14
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x1400c2e02
inc ecx
jmp 0x1400c2e09
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x1400c2df1
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14011b610
Function at 0x1400c45d0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140952de8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, SafeArrayGetLBound
lea r8, [0x1400c44ec]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14011a610
xor r8d, r8d
mov qword [0x140959eb0], rax
xor edx, edx
mov ecx, ebx
call fcn.14011a370
xor ebx, ebx
mov qword [0x1409d4d20], rax
cmp word [0x140959ea8], bx
jne 0x1400c4705
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400c464a
movzx eax, di
jmp 0x1400c464c
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140959ea8], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140959eb8], rax
test rax, rax
je 0x1400c4705
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140959eb8]
lea rdx, str.freeaddrinfo
mov qword [0x140959e88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140959eb8]
lea rdx, str.getnameinfo
mov qword [0x140959e90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140959eb8]
lea rdx, str.WSAStringToAddressA
mov qword [0x140959e98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140959e88], rbx
mov qword [0x140959ea0], rax
je 0x1400c4705
cmp qword [0x140959e90], rbx
je 0x1400c4705
cmp qword [0x140959e98], rbx
je 0x1400c4705
mov ecx, dword [0x140959eac]
test rax, rax
cmovne ecx, edi
mov dword [0x140959eac], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401ade40
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1400c48c8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x1400c4990
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x1400c4990
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140957d28]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400c4987
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x68], ebp
jne 0x1400c4975
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.1400c4b9c
mov rbx, rax
mov rcx, qword [0x140957d28]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ecee0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x1409d24c0], 0
jne 0x1400ecfb7
lea rdx, [0x1409d1fb8]
mov dword [0x1409d24c0], 1
xor ecx, ecx
mov dword [0x1409d4da0], 0x40
call fcn.14015daf0
test eax, eax
jne 0x1400ecfb7
lea edx, [rax + 0x40]
lea ecx, [rdx + 0x40]
lea r8, [0x1400ece10]
call fcn.14011a610
mov rcx, qword [0x140957d28]
mov edx, 8
mov qword [0x1409d1fa8], rax
movsxd rax, dword [0x1409d4da0]
imul r8, rax, 0x468
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x1409d1fb8]
mov qword [0x1409d4dc0], rax
call fcn.14015da90
mov rcx, rax
mov qword [0x1409d4d80], rax
call fcn.14015b1d0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400ed3d0]
mov edx, 0x2000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400ecfad
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1409d1fb0], 1
mov rax, qword [0x1409d1fa8]
add rsp, 0x38
ret

Function at 0x1400edb70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.14014e890
lea rax, [0x1409539c0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14014ec00
test eax, eax
jne 0x1400edc68
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.1401ae6f4
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.1401ae6f4
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400edc80]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400edc68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x1400edc6a
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret