joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400353cf
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400f9dd0
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
push 0x800
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400f70e0
add rsp, 0x28
call fcn.1400f9ca0
lea rcx, [rsp + 0x38]
pop rdx
call fcn.1400f9ad0
call sub.KERNEL32.dll_GetTickCount
mov qword [rsp + 0x28], rax
fld dword [0x140249a34]
sub rsp, 8
fstp dword [rsp]
movss xmm0, dword [rsp]
add rsp, 8
call fcn.14006bb76
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
push 6
movsxd rax, dword [rsp + 0x60]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call qword [0x140275f50]
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x38], eax
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x58]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400f5cf0
add rsp, 0x28
push rax
call fcn.1400f9a30
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.1400f6470
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14009ebc0
add rsp, 0x28
pop rax
and rax, rax
je 0x1400354fd
movsxd r15, dword [rsp + 0x38]
and r15, r15
je 0x140035520
call sub.KERNEL32.dll_GetTickCount
mov r15, rax
sub r15, qword [rsp + 0x28]
movsxd rax, dword [rsp + 0x58]
cmp r15, rax
jg 0x140035520
jmp 0x140035529
mov rax, 1
jmp 0x14003552c
xor rax, rax
and rax, rax
je 0x14003543c
xor rax, rax
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400f9e70
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140043f83
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rbp
mov rax, 0x4b
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140043f90
sub rsp, 0x28
call fcn.1400f9dd0
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400f9ea0
add rsp, 0x10
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x238
push 0
push 2
pop rcx
pop rdx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
je 0x14004419e
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x270]
pop rcx
pop rdx
call sub.KERNEL32.dll_Process32FirstW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
je 0x140044191
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
push rcx
sub rsp, 0x20
call fcn.1400f99b0
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
push 0x104
lea rbp, [rsp + 0x60]
lea rax, [rbp + 0x2c]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400f8570
add rsp, 0x20
push rax
call fcn.1400f9a30
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400f6e70
add rsp, 0x28
lea rcx, [rsp + 0x280]
pop rdx
call fcn.1400f9ad0
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400f6e70
add rsp, 0x28
call fcn.1400f9ca0
push rcx
sub rsp, 0x20
call fcn.1400f99b0
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.1400f99b0
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x290]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400de1b0
add rsp, 0x20
pop rcx
sub rsp, 8
call fcn.1400f9cd0
add rsp, 8
mov rcx, rax
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400f9cd0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400f9d20
or rax, rax
je 0x140044169
lea rbp, [rsp + 0x30]
movsxd rax, dword [rbp + 8]
jmp 0x1400441a6
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x270]
pop rcx
pop rdx
call sub.KERNEL32.dll_Process32NextW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x270], eax
jmp 0x14004401b
push qword [rsp + 0x268]
pop rcx
call sub.KERNEL32.dll_CloseHandle
xor rax, rax
jmp 0x1400441a6
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400f9e70
add rsp, 0x28
mov rcx, qword [rsp + 0x280]
sub rsp, 0x28
call fcn.1400f9e70
add rsp, 0x28
pop rax
add rsp, 0x280
pop rbp
ret
Function at 0x14007e814
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400f9dd0
push qword [rsp + 0x50]
push 0
push 0x1f0fff
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_OpenProcess
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0
mov r15, qword [rsp + 0x38]
and r15, r15
jne 0x14007e891
push 0x64
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rsp + 0x38], rax
push 0
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.dll_TerminateProcess
mov qword [rsp + 0x30], rax
mov r15, qword [rsp + 0x38]
and r15, r15
jne 0x14007e88f
jmp 0x14007e891
jmp 0x14007e84f
mov rax, qword [rsp + 0x30]
jmp 0x14007e89b
add rsp, 0x40
pop r15
ret
Function at 0x14009ebc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140270940]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x1400a1b54
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.1400a19d0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x14027ac80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140276e50]
jmp 0x1400a1b90
cmp qword [rbx + 0x18], rdi
je 0x1400a1b97
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400a1b87
jmp 0x1400a1bb1
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140276e50]
call fcn.1400f9894
lea rcx, [0x14027ac80]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400a1bcc
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 0x1400a1c92
lea rcx, [0x14027ac80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140276e50]
jmp 0x1400a1c56
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400a1c53
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140276e50]
mov rdx, rsi
call fcn.1400f9894
jmp 0x1400a1c56
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400a1c23
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140276e50]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.1400f98dc
lea rcx, [0x14027ac80]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1400a5acc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400a5b43
movsxd rdx, ecx
lea rcx, [0x1400a5a28]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1402770c0]
test rbx, rbx
je 0x1400a5bb6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400a5b39
cmp byte [rbx + 0x20], 0
je 0x1400a5b39
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400a5aff
jmp 0x1400a5bb6
mov rbx, qword [0x1402770c0]
test rbx, rbx
je 0x1400a5bb6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400a5bae
cmp byte [rbx + 0x21], 0
je 0x1400a5b72
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400a5b9e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1402770c0]
call fcn.1400f9894
mov rbx, rdi
test rdi, rdi
jne 0x1400a5b4f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400a6290
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14027ad00]
call fcn.1400f9480
test rax, rax
je 0x1400a62cd
cmp dword [rax + 0x28], 0
je 0x1400a62cd
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.1400a5eb0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400fa050
Function at 0x1400c3b50
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14027ad80]
call fcn.1400f8c70
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x1400c3c4d
mov rcx, qword [rsp + 0x40]
mov r9w, SafeArrayAllocDescriptor
cmp dx, 0x20
jne 0x1400c3ba7
add rax, 2
cmp word [rax], 0x20
je 0x1400c3b9d
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x1400c3be5
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x1400c3c25
cmp cx, r9w
je 0x1400c3bd7
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400c3bc5
cmp word [rax], bp
je 0x1400c3c25
mov rcx, rax
add rax, 2
jmp 0x1400c3c2d
test dx, dx
je 0x1400c3c2a
mov rbx, rax
cmp dx, 0x20
je 0x1400c3bd7
add rax, 2
cmp word [rax], r9w
jne 0x1400c3c1b
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x1400c3c25
cmp cx, r9w
je 0x1400c3c1b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400c3c09
movzx edx, word [rax]
test dx, dx
jne 0x1400c3bed
jmp 0x1400c3bd7
mov rcx, rax
jmp 0x1400c3c2d
mov r8d, ebp
cmp dword [r14], esi
jne 0x1400c3c37
test rdi, rdi
jne 0x1400c3c57
test r8d, r8d
je 0x1400c3c3e
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x1400c3b97
test rdi, rdi
jne 0x1400c3c6c
movsxd rax, esi
jmp 0x1400c3c6e
test rbx, rbx
je 0x1400c3c6c
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x1400c3c6e
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400c3c84
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14027ad80]
call fcn.1400f8c70
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400c3b50

Function at 0x1400c3ca0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
lea rcx, [rax + 0x10]
xor ebp, ebp
mov dword [rax + 0x10], ebp
call fcn.1400c3b50
mov esi, dword [rsp + 0x38]
mov ecx, esi
mov edx, ebx
mov rdi, rax
call fcn.1400f9f10
mov ecx, ebp
jmp 0x1400c3cf6
test esi, esi
je 0x1400c3cfb
movzx edx, word [rdi]
cmp dx, 0x22
jne 0x1400c3ce9
inc ecx
jmp 0x1400c3cf0
mov word [rax], dx
add rax, 2
add rdi, 2
dec esi
cmp word [rdi], bp
jne 0x1400c3cd8
mov word [rax], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400fa090
Function at 0x1400c4464
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x1400c4479
mov edx, DispGetIDsOfNames
jmp 0x1400c4491
test dword [rcx + 0x28], 0x100
jne 0x1400c4491
test dword [rcx + 0x28], 0x200
mov eax, DispGetIDsOfNames
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp 0x1400c46bc
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 ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x1400c47fb
cmp edx, 2
je 0x1400c47fb
mov rcx, qword [0x140275ee0]
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
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400c47e4
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x1400c47dc
cmp r13d, 0xffffffff
je 0x1400c4769
cmp r14d, r13d
jae 0x1400c47dc
add r14d, 2
test edi, edi
jne 0x1400c4794
mov rcx, qword [0x140275ee0]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
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 0x1400c47dc
cmp ax, 0xd
je 0x1400c47b4
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400c4757
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401ce400
jmp 0x1400c48c4
mov r8, rcx
mov rcx, qword [0x140275ee0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x1400c482e
cmp r14d, r15d
jae 0x1400c4898
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c4898
cmp dword [rsp + 0x38], 1
jne 0x1400c4898
inc r14d
test edi, edi
jne 0x1400c487c
mov rcx, qword [0x140275ee0]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400c4898
cmp al, 0xd
je 0x1400c4823
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x1400c4823
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400c48bf
call fcn.1401cdee0
jmp 0x1400c48c4
call fcn.1401ce230
mov rcx, qword [0x140275ee0]
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 0x1400c4594
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 0x1400c45fb
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400c45ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400c45f7
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x1400c45fb
jmp 0x1400c45b8
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 0x1400c4614
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 0x1400c4642
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400f9f10
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
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 0x1400c46bc
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x1400c4479
mov edx, DispGetIDsOfNames
jmp 0x1400c4491
test dword [rcx + 0x28], 0x100
jne 0x1400c4491
test dword [rcx + 0x28], 0x200
mov eax, DispGetIDsOfNames
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp 0x1400c46bc
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 ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x1400c47fb
cmp edx, 2
je 0x1400c47fb
mov rcx, qword [0x140275ee0]
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
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400c47e4
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x1400c47dc
cmp r13d, 0xffffffff
je 0x1400c4769
cmp r14d, r13d
jae 0x1400c47dc
add r14d, 2
test edi, edi
jne 0x1400c4794
mov rcx, qword [0x140275ee0]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
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 0x1400c47dc
cmp ax, 0xd
je 0x1400c47b4
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400c4757
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401ce400
jmp 0x1400c48c4
mov r8, rcx
mov rcx, qword [0x140275ee0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x1400c482e
cmp r14d, r15d
jae 0x1400c4898
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c4898
cmp dword [rsp + 0x38], 1
jne 0x1400c4898
inc r14d
test edi, edi
jne 0x1400c487c
mov rcx, qword [0x140275ee0]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400c4898
cmp al, 0xd
je 0x1400c4823
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x1400c4823
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400c48bf
call fcn.1401cdee0
jmp 0x1400c48c4
call fcn.1401ce230
mov rcx, qword [0x140275ee0]
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 0x1400c5700
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140277500], 0
jne 0x1400c5725
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140277500], 1
mov dword [0x140277504], eax
mov rcx, qword [0x140275ee0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140277504]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x1400c58e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140277500], 0
mov ebx, ecx
jne 0x1400c5904
call fcn.1400c5700
mov ecx, dword [0x140277504]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400c592c
call fcn.1400c5700
mov ecx, dword [0x140277504]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, send
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x1400c5940
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x1400c5980
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret