joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007b60
Capabilities:
Set registry value

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
sub rsp, 0x40
mov rbp, r8
mov r12, rdx
mov rdx, rcx
lea r8, [rax - 0x18]
mov rcx, 0xffffffff80000001
mov esi, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180007c5b
test rbp, rbp
je 0x180007c2c
test esi, esi
je 0x180007c2c
mov rcx, qword [0x180029648]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180007c25
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x180007bef
mov r8d, dword [0x180029788]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.18001d768
mov rcx, qword [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180007c50
mov ebx, 8
jmp 0x180007c50
and dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r9d, 3
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret

Function at 0x180009208
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x18002c814]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
je 0x1800092be
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x180029704], eax
je 0x1800092c3
lea rcx, [0x18002caa0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002caa8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002ca2a]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002caaf]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002c7c7]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002cab6]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002c884]
call fcn.18001ca44
mov r11, qword [0x180029768]
lea edx, [rbx + 0xe]
or dword [r11 + 0x34], 1
lea r8, [0x180028970]
lea rcx, [0x180028820]
mov r9d, edx
call fcn.18000ccdc
mov ebx, eax
jmp 0x1800092c3
mov ebx, 0x7e
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180009354
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, qword [rdx + 0x28]
and dword [rsp + 0x68], 0
mov rbp, rdx
mov rdi, rcx
lea rdx, [0x18002c154]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x60]
xor r8d, r8d
cmp rax, rbx
mov rax, qword [rbp + 0x50]
sete r8b
mov qword [rsp + 0x28], rax
mov r9, rbx
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call fcn.180005cbc
xor r8d, r8d
lea r9, [rsp + 0x68]
lea esi, [r8 + 0x21]
mov rcx, rdi
mov edx, esi
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180009505
mov rcx, qword [0x180029648]
lea r8d, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180009505
lea r9, [rsp + 0x68]
mov r8, rax
mov edx, esi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x1800094f3
mov ecx, dword [rsp + 0x68]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov byte [rcx + rbx], 0
lea r8d, [rsi - 0x1e]
xor r9d, r9d
mov rcx, rbx
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1800094f3
mov rcx, qword [0x180029648]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800094ea
mov rcx, qword [rbp]
and dword [rsp + 0x78], 0
and dword [rsp + 0x7c], 0
mov r10, qword [rcx]
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
call qword [r10 + 0x28]
mov rcx, qword [rbp]
and dword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
mov rax, qword [rcx]
mov r8d, 0x2000
mov rdx, rdi
call qword [rax + 0x18]
mov r8d, dword [rsp + 0x68]
test r8d, r8d
je 0x1800094d8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800094d8
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x70], eax
jne 0x1800094d8
cmp eax, 0x2000
je 0x180009485
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180009514
Capabilities:
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x18], 0
or esi, 0xffffffff
cmp byte [0x180029878], 5
mov rbx, rcx
mov rcx, qword [0x180029648]
mov eax, 0x1388
mov rbp, rdx
cmovbe esi, eax
mov r8d, 0x2000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800095eb
lea r9, [rsp + 0x40]
mov r8d, 0x2000
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800095ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800095c7
mov rcx, qword [rbx + 0x58]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1800095d7
test eax, eax
jne 0x1800095c7
mov eax, dword [rbx + 0x48]
cmp eax, 1
je 0x1800095c7
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1800095d0
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x180009565
mov dword [rbx + 0x48], 1
jmp 0x1800095d7
mov dword [rbx + 0x48], 2
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800095f2
mov dword [rbx + 0x48], 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18000a0a4
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r9
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.1800096d0
cmp rax, rbx
mov r13, rax
je 0x18000a112
mov rdx, rdi
mov rcx, rax
call fcn.180009608
mov rdx, qword [rsi + 0x20]
lea r9, [rsi + 0x28]
mov r8d, dword [r9]
mov dword [rsi + 0x2c], r8d
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea ecx, [rbx + 1]
lea r8, [r13 - 0x34]
cmp eax, ebx
cmove ebx, ecx
xor edx, edx
xor ecx, ecx
call fcn.180017ab8
jmp 0x18000a134
cmp dword [rsp + 0x60], ebx
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
je 0x18000a12c
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18000a132
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18000bef0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180029648]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18000bfab
lea rdx, [0x18002c364]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180029798]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x18000bf99
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 1]
add eax, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000cda4
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x28], 0
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x18]
lea rcx, [rax - 0x24]
call sub.ntdll.dll_memset
test rbx, rbx
je 0x18000cdd8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [rsp + 0x20], 0x1c
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x18000ce7e
lea rcx, [0x18002c02e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18002ce97]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rsi, rax
call sub.KERNEL32.dll_Thread32First
jmp 0x18000ce71
mov ecx, dword [0x180029874]
cmp dword [rsp + 0x2c], ecx
jne 0x18000ce64
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1f03ff
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rdi, rax
je 0x18000ce64
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18000ce26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18000d37c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
and qword [r11 - 0x38], 0
xor eax, eax
mov rbp, rdx
mov r12d, r9d
mov edi, r8d
mov rsi, rcx
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rsp + 0x58], rax
je 0x18000d490
mov rcx, qword [0x1800298a0]
and dword [rsp + 0x88], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
test r12d, r12d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
je 0x18000d40e
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x18000d414
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000d45f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x18000d47d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov r9d, 0x2710
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, rsi
cmp eax, 1
mov ebx, eax
jne 0x18000d477
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x88]
add rbp, rax
sub edi, dword [rsp + 0x88]
je 0x18000d481
jmp 0x18000d3e6
call qword [sym.imp.KERNEL32.dll_CancelIo]
test edi, edi
jne 0x18000d483
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000d498
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000d868
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov ebp, r8d
mov r15, r9
and dword [rax - 0x38], esi
xor eax, eax
test r9, r9
mov r13, rdx
mov r12d, ecx
lea r14d, [rbp + 0xc]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
lea ebx, [rsi + 8]
je 0x18000d8bc
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x18000d8c8
cmp ecx, 0x119
je 0x18000d97a
mov rcx, qword [0x180029648]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18000d978
test esi, esi
movzx ecx, r12w
mov dword [rax + 8], esi
mov dword [rax], ecx
lea ecx, [rsi + rbp]
mov dword [rax + 4], ecx
je 0x18000d908
lea rcx, [rax + 0xc]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18000d921
test ebp, ebp
je 0x18000d921
lea rcx, [rsi + rdi + 0xc]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180029778]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], 0xc
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x18000d95e
xor ebx, ebx
jmp 0x18000d966
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180010844
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
mov rcx, r8
mov r12, r9
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180029648]
add eax, eax
xor edx, edx
lea r8d, [rax + 1]
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800108a6
lea r8, [rsp + 0x60]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
cmovne rsi, rdi
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
mov qword [rbx + 0x18], rax
je 0x1800109c5
lea rdx, [0x180010734]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x1800109c5
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x30], 0
xor r9d, r9d
mov r8w, 0x50
mov rdx, rbp
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
test rax, rax
mov qword [rbx + 0x20], rax
jne 0x180010950
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800109c5
mov rcx, qword [rbx + 0x30]
mov edx, 0xea60
call fcn.1800105ac
test eax, eax
jne 0x1800109c5
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x84404000
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
mov rdx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
test rax, rax
mov qword [rbx + 0x28], rax
je 0x1800109c5
mov esi, 4
lea r8, [rsp + 0x88]
mov rcx, rax
lea edx, [rsi + 2]
mov r9d, esi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x1800109c5
mov rcx, qword [rbx + 0x28]
lea r8, [rsp + 0x88]
lea edx, [rsi + 1]
mov r9d, esi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x1800109c5
xor ebx, ebx
jmp 0x1800109cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x1800109e4
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180011290
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov eax, dword [0x180028074]
mov ebp, r8d
mov r13d, r8d
shr ebp, 0x14
mov r14, rdx
mov r15, rcx
mov ebx, 8
lea r12, [0x18002c3b3]
imul ebp, eax
test ebp, ebp
jne 0x1800112d5
mov ebp, dword [0x180028074]
mov rcx, qword [0x180029648]
test r9, r9
cmovne r12, r9
xor edx, edx
lea r8d, [rdx + 0x4c]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180011402
mov rcx, rax
call fcn.1800105e8
test eax, eax
je 0x1800113e2
cmp dword [rsp + 0xa8], 0
jne 0x180011319
or dword [rdi + 0x48], 1
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ebp
mov r9d, r13d
mov qword [rsp + 0x28], rax
mov r8, r14
mov rdx, r15
mov rcx, rdi
mov qword [rsp + 0x20], r12
call fcn.180010fb0
test eax, eax
mov ebx, eax
jne 0x1800113da
cmp dword [rsp + 0xa8], eax
je 0x180011402
mov rcx, qword [rdi + 0x30]
mov edx, ebp
call fcn.1800105ac
test eax, eax
mov ebx, eax
jne 0x1800113c9
mov ebx, dword [rdi + 0x40]
test ebx, ebx
jne 0x1800113da
mov rcx, qword [rdi + 0x28]
and dword [rsp + 0x90], ebx
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], 4
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1800113bf
cmp dword [rsp + 0x40], 0xc8
je 0x1800113da
mov ebx, 0xe8
jmp 0x1800113da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800113da
cmp eax, 0x102
jne 0x1800113da
add dword [0x180028074], 0xea60
mov rcx, rdi
call fcn.180010654
cmp dword [rsp + 0xa8], 0
jne 0x1800113f0
test ebx, ebx
je 0x180011402
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800122b8
Capabilities:
Allocate or change rwx memory
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov rsi, rcx
mov r15d, edx
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x4c8
call sub.ntdll.dll_memset
mov ecx, dword [rsi + 0x10]
mov r12, qword [rsi]
mov r14, qword [0x180029898]
xor edx, edx
mov dword [rsp + 0x560], 0xccccfeeb
xor ebp, ebp
call fcn.180014510
lea ecx, [rbp + 0x10]
xor r13d, r13d
test eax, eax
mov dword [rsp + 0x70], 0x100003
cmovne r13d, ecx
mov rcx, qword [rsi]
mov edx, r13d
call fcn.180011b40
lea ebx, [rbp + 4]
lea r8, [rsp + 0x30]
mov rdi, rax
lea rax, [rsp + 0x38]
mov r9, rbx
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18001246b
cmp qword [rsp + 0x38], rbx
jne 0x18001246b
lea rax, [rsp + 0x558]
lea r9d, [rbp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1800123aa
lea r9, [rsp + 0x558]
lea r8, [rsp + 0x560]
mov rdx, rdi
mov rcx, r12
call fcn.180011acc
jmp 0x1800123ac
xor eax, eax
test eax, eax
je 0x18001246b
mov ebx, 0x1770
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x40]
sub ebx, 0x12c
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18001246b
test ebx, ebx
jle 0x1800123ff
cmp qword [rsp + 0x138], rdi
jne 0x1800123b9
test r13b, 0x10
je 0x180012410
mov rcx, r14
call fcn.180014444
mov rbp, rax
lea rdx, [0x180029818]
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
call fcn.180011d18
mov r9d, 0x40
mov rdx, rdi
mov ebx, eax
lea rax, [rsp + 0x550]
lea r8d, [r9 - 0x3c]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012466
lea r9, [rsp + 0x550]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, r12
call fcn.180011acc
cmp ebx, 0xffffffff
jne 0x180012473
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test r15b, 4
jne 0x180012483
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rbp, rbp
je 0x18001249a
mov rcx, qword [0x180029648]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x568]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800128a8
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
xor eax, eax
mov dword [r11 - 0x28], r9d
mov dword [r11 + 0x24], eax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], r9
mov dword [r11 + 0x20], r9d
mov qword [r11 - 0x48], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret
Function at 0x1800128fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov rdi, rcx
je 0x180012968
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov esi, eax
je 0x180012968
mov rcx, qword [0x180029648]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180012968
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180012968
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x180012b49
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov ebx, eax
jne 0x180012af4
mov ebx, 0xe8
jmp 0x180012b51
mov rcx, qword [0x180029648]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180012b49
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180012b49
cmp ebx, dword [rsp + 0x78]
je 0x180012b3a
mov ebx, 0x1e
jmp 0x180012b51
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x180012b51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x180012b60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180012b7b
test ebx, ebx
je 0x180012b7b
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret