joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401078f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1401078f0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xc8
lea rax, [rsp + 0x88]
lea rcx, [0x1403a6a30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x34
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140107959
xor eax, eax
jmp 0x140107aef
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x8f], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x96], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x9d], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb3], rax
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x34
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1403b7b70]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1403b7b78]
test eax, eax
je 0x140107a5c
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140107aef
cmp qword [rsp + 0x68], 0
jne 0x140107a83
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140107aef
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
sub rax, 0x10
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x78]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140107e90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movsxd r8, r8d
movsxd rcx, ecx
jmp 0x140107e90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
cmp qword [rsp + 0x110], 0
jne 0x140107ebf
xor eax, eax
jmp 0x1401080c3
lea rax, [rsp + 0x90]
lea rcx, [0x1403a6bb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x50
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140107f12
xor eax, eax
jmp 0x1401080c3
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x96], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xaa], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0xb5], eax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd7], rax
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x50
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1403b7b70]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1403b7b78]
test eax, eax
je 0x140108037
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1401080c3
cmp qword [rsp + 0x68], 0
jne 0x14010805e
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1401080c3
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x78]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x1401080d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movsxd r8, r8d
movsxd rcx, ecx
jmp 0x1401080d0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
cmp qword [rsp + 0xe8], 0
jne 0x1401080ff
xor eax, eax
jmp 0x1401082ab
lea rax, [rsp + 0x80]
lea rcx, [0x1403a6c00]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x3a
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140108152
xor eax, eax
jmp 0x1401082ab
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x86], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x9a], rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xa5], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x3a
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1403b7b70]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1403b7b78]
test eax, eax
je 0x140108249
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1401082ab
cmp qword [rsp + 0x68], 0
jne 0x140108270
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1401082ab
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1403b7b70]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 1
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x1401086a0
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x28
call fcn.140100bf0
mov rcx, rax
add rsp, 0x28
jmp 0x1401086a0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1401086ca
xor eax, eax
jmp 0x14010873d
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140108730
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x5c]
call fcn.140113c90
test eax, eax
jne 0x14010871d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14010873d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1401086f6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x270
pop rdi
ret
Function at 0x140108750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x848
mov dword [rsp + 0x10], 0
mov rax, qword [rsp + 0x858]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x18], 0xffffffffffffffff
inc qword [rsp + 0x18]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
cmp byte [rax + rcx], 0
jne 0x140108784
mov rax, qword [rsp + 0x18]
mov dword [rsp + 0x10], eax
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x860]
mov dword [rsp + 0x14], eax
mov dword [rsp + 0xc], 0
mov dword [rsp], 0
jmp 0x1401087ce
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x14010880e
movsxd rax, dword [rsp]
mov ecx, dword [rsp]
mov dword [rsp + rax*4 + 0x40], ecx
mov eax, dword [rsp]
cdq
idiv dword [rsp + 0x10]
mov eax, edx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x858]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rsp]
mov dword [rsp + rcx*4 + 0x440], eax
jmp 0x1401087c6
mov dword [rsp], 0
jmp 0x14010881f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x140108883
movsxd rax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0x40]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp]
add eax, dword [rsp + rcx*4 + 0x440]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0xc], eax
movsxd rax, dword [rsp + 0xc]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 0xc]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + rcx*4 + 0x40], eax
movsxd rax, dword [rsp]
mov ecx, dword [rsp + 0x24]
mov dword [rsp + rax*4 + 0x40], ecx
jmp 0x140108817
mov dword [rsp], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
jmp 0x1401088a6
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x14]
cmp dword [rsp + 8], eax
jge 0x14010896f
mov eax, dword [rsp]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp], eax
movsxd rax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0x40]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 4]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + rcx*4 + 0x40], eax
movsxd rax, dword [rsp]
mov ecx, dword [rsp + 0x28]
mov dword [rsp + rax*4 + 0x40], ecx
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 4]
mov eax, dword [rsp + rax*4 + 0x40]
add eax, dword [rsp + rcx*4 + 0x40]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x850]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x2c]
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x850]
mov byte [rdx + rcx], al
jmp 0x14010889c
mov rax, qword [rsp + 0x850]
add rsp, 0x848
ret
Function at 0x140108980
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1401089c0
xor al, al
jmp 0x140108b80
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140108a17
lea r8, [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140108abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x140108abc
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140108b80
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140108af4
xor al, al
jmp 0x140108b80
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140108b2f
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140108b80
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140108b4a
mov byte [rsp + 0x70], 1
jmp 0x140108b4f
mov byte [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x71], al
movzx eax, byte [rsp + 0x71]
test eax, eax
jne 0x140108b65
xor al, al
jmp 0x140108b80
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
add rsp, 0xb8
ret
Function at 0x140108b90
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140108bba
xor al, al
jmp 0x140108c24
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140108bec
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140108c24
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
add rsp, 0x58
ret
Function at 0x14010ad0c
Capabilities:
Parse pe header

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

Function at 0x140113bac
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140113a17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140113a17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140113a17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140113a17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140113a17
cmp dword [rcx + 0x84], 0xe
jbe 0x140113a17
cmp dword [rcx + 0xf8], 0
je 0x140113a17
mov ecx, ebx
call fcn.140113ac8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401138a4
nop
cmp dword [rbp + 0x20], 0
je 0x140113a65
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140113a70
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401139a8
Function at 0x14011981c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14010a6d0
sub rsp, rax
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14011f1d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14011986b
mov rax, rbp
jmp 0x140119973
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3b8b20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401209d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b8b20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14011996f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011996f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401209d0
test rax, rax
js 0x14011996f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14011996f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140119961
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140119961
cmp byte [rcx], 0xd
jne 0x140119947
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140119956
cmp byte [rcx + 1], 0xa
jne 0x140119956
inc rcx
jmp 0x140119956
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a71e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140119929
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140119973
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14010a630
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011fc08
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, [0x1403b8b20]
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 0x14011fc5f
cmp word [rdx], r13w
jne 0x14011fc5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14011fc64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14011fd89
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14011fdaa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14011fc9d
mov rdx, r9
mov word [rbx], cx
jmp 0x14011fcc4
cmp r9, r8
jae 0x14011fcd4
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 0x14011fc7e
jmp 0x14011fd89
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 0x14011fd7e
cmp dword [rsp + 0x80], esi
je 0x14011fd7e
lea r8, [0x1403b8b20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14011fd56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14011fd26
mov word [rbx], r13w
jmp 0x14011fd86
mov ecx, reloc.WS2_32.dll_listen
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 0x14011fd33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14011fd86
cmp word [rsp + 0x70], r13w
jne 0x14011fd63
cmp rbx, r14
je 0x14011fd20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401209d8
cmp word [rsp + 0x70], r13w
je 0x14011fd89
mov ecx, reloc.WS2_32.dll_listen
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, [0x1403b8b20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14011fd83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14011fd89
Function at 0x14012183c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140121852
mov al, 1
jmp 0x1401218b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140121863
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401218b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140123eb0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401218b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401218b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401218b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401218b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140122f60
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140122fe7
mov rsi, rbx
cmp word [rax], bp
je 0x140122fa6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140122f90
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140122f8c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14011bb08
mov rdi, rax
test rax, rax
je 0x140122fd4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14010bf90
mov rbp, rdi
xor ecx, ecx
call fcn.14011bacc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret