joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001155a
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x1400160a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x13a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x778]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x718], rax
mov dword [rbp + 0x704], 0
lea rcx, [0x14002e0fa]
call fcn.14001168b
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.MyApp
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140016151
lea rdx, [0x14002396b]
mov rcx, qword [rbp + 0x740]
call fcn.1400112e4
mov eax, dword [rbp + 0x704]
or eax, 1
mov dword [rbp + 0x704], eax
mov rax, qword [rbp + 0x740]
jmp 0x140016257
mov rcx, qword [rbp + 0x748]
call fcn.1400110a0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400161c4
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x14002396b]
mov rcx, qword [rbp + 0x740]
call fcn.1400112e4
mov eax, dword [rbp + 0x704]
or eax, 1
mov dword [rbp + 0x704], eax
mov rax, qword [rbp + 0x740]
jmp 0x140016257
lea rcx, [rbp + 0x48]
call fcn.14001167c
nop
lea r9, [rbp + 0x4a4]
mov r8d, 0x400
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140016214
cmp dword [rbp + 0x4a4], 0
jbe 0x140016214
mov eax, dword [rbp + 0x4a4]
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x48]
call fcn.1400116ea
jmp 0x1400161ce
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x740]
call fcn.140011631
mov eax, dword [rbp + 0x704]
or eax, 1
mov dword [rbp + 0x704], eax
lea rcx, [rbp + 0x48]
call fcn.140011140
mov rax, qword [rbp + 0x740]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140023220]
call fcn.14001157d
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.140011339
lea rsp, [rbp + 0x728]
pop rdi
pop rbp
ret
Function at 0x140015f40
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140156c30], rbx
je 0x140015fa7
cmp rax, rbx
jne 0x140015f9a
mov ebx, 1
mov esi, ebx
jmp 0x140015fac
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140015f7f
mov ebx, 1
mov eax, dword [0x140156c38]
cmp eax, ebx
jne 0x140015fc4
mov edi, 0x1f
mov ecx, edi
call fcn.1401f4000
jmp 0x14001603a
mov eax, dword [0x140156c38]
test eax, eax
jne 0x14001602f
mov dword [0x140156c38], ebx
lea r15, [0x1400fb7a0]
lea rdi, [0x1400fb788]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140016021
test eax, eax
jne 0x140016025
cmp qword [rdi], r14
je 0x140016016
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x1400fb6b0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140015fee
test eax, eax
je 0x140016035
mov eax, 0xff
jmp 0x14001619a
mov dword [0x1401565dc], ebx
mov edi, 0x1f
mov eax, dword [0x140156c38]
cmp eax, ebx
jne 0x140016061
lea rdx, [0x1400fb780]
lea rcx, [0x1400fb6c0]
call sub.msvcrt.dll__initterm
mov dword [0x140156c38], 2
test esi, esi
jne 0x14001606f
mov rax, r14
xchg qword [0x140156c30], rax
cmp qword [0x140156c50], r14
je 0x1400160ac
lea rcx, [0x140156c50]
call fcn.1400169f0
test eax, eax
je 0x1400160ac
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140156c50]
mov r9, qword [0x1400fb6b0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400160c5
mov eax, 0xff
jmp 0x14001619a
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14001614b
test ax, ax
je 0x1400160e0
test edx, edx
jne 0x14001614b
sub ax, bx
cmp ax, di
ja 0x1400160f6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400160e0
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140012fec
mov dword [0x1401565d8], eax
cmp dword [0x1401565f8], r14d
jne 0x140016134
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1401565dc], r14d
jne 0x140016149
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1401565d8]
jmp 0x14001619a
cmp ax, 0x22
jne 0x14001615f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400160ce
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140016a84
add rsp, 0x28
jmp 0x140015f40
Function at 0x1400168dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140016928
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016920
cmp dword [rcx + 0x3c], edx
jl 0x140016920
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140016920
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140016928
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400183b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x18], 0
mov rbx, rcx
and qword [rcx + 0x20], 0
xor edx, edx
and qword [rcx + 0x28], 0
mov r8d, 0x800
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
mov byte [rcx + 0x10], 0
lea rcx, str.amsi.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x1400184dc
lea rdx, str.AmsiInitialize
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiUninitialize
mov qword [rbx + 0x18], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiScanBuffer
mov qword [rbx + 0x28], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiOpenSession
mov qword [rbx + 0x20], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiCloseSession
mov qword [rbx + 0x30], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 0
mov qword [rbx + 0x38], rax
je 0x1400184c7
cmp qword [rbx + 0x20], 0
je 0x1400184c7
cmp qword [rbx + 0x28], 0
je 0x1400184c7
cmp qword [rbx + 0x30], 0
je 0x1400184c7
test rax, rax
je 0x1400184c7
lea rdx, [rbx + 8]
movabs r10, 0xec093f3d52532070
mov rax, qword [rbx + 0x18]
lea rcx, str.VSSAMSI
call qword [0x1400fb6b0]
test eax, eax
js 0x1400184c7
mov byte [rbx + 0x10], 1
cmp byte [rbx + 0x10], 0
jne 0x1400184dc
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400c73b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x140156408]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov r15, rcx
call qword [sym.imp.VssTrace.DLL_Ordinal_11]
nop dword [rax + rax]
cmp eax, dword [r15 + 4]
je 0x1400c7538
mov rdx, qword [r15 + 0x28]
lea r8, [rsp + 0x50]
mov ecx, dword [r15 + 0x24]
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov dword [r15 + 4], eax
call qword [sym.imp.VssTrace.DLL_Ordinal_8]
nop dword [rax + rax]
test eax, eax
je 0x1400c742a
mov eax, dword [rsp + 0x50]
jmp 0x1400c7446
mov rcx, qword [r15 + 0x60]
test rcx, rcx
je 0x1400c743a
call fcn.1400c3e38
jmp 0x1400c7446
call qword [sym.imp.VssTrace.DLL_Ordinal_6]
nop dword [rax + rax]
mov dword [r15], eax
mov eax, dword [r15 + 4]
cmp dword [0x140156420], eax
je 0x1400c7538
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x800
call sub.msvcrt.dll_memset
lea rdx, [rbp]
call fcn.1400c38c0
mov ebx, dword [r15 + 4]
mov edi, dword [0x140156420]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov r14, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
nop dword [rax + rax]
mov r12d, 0x78
mov dword [rsp + 0x70], 0x24f
mov esi, eax
mov dword [rsp + 0x74], reloc.VssTrace.DLL_Ordinal_11
lea rax, str.base_stor_vssmodules_trace_fntracer.cpp
mov dword [rsp + 0x78], 0xff
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x80]
lea rax, str.CVssFunctionTracer::UpdateLocalIsTracingEnabledFlag
mov dword [rbp - 8], 0x1000000
mov qword [rsp + 0x60], rax
mov r8d, r12d
lea rax, str.TRCTRCC
xor edx, edx
mov qword [rsp + 0x68], rax
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], ebx
lea rax, [rbp]
mov dword [rsp + 0x40], edi
lea r8, str.TRACING_STARTED
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea rax, str.Tracing_started_or_updated._PID_d__CommandLine__s___UserName__s_._SQN__d_____d_
mov dword [rsp + 0x28], esi
mov r9d, r12d
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140003350
mov eax, dword [r15 + 4]
mov dword [0x140156420], eax
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1400161f0
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400da648
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov r14, r8
mov rbx, rdx
mov rdi, rcx
lea r12, str.base_stor_vssmodules_registry_registry.cxx
mov qword [rsp + 0x40], r12
lea r13, str.CVssRegistryKey::SetBinaryValue
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x16a
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400c2124
nop
mov dword [rsp + 0x28], 0x48
mov qword [rsp + 0x20], r14
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400da795
mov rsi, qword [rdi + 0x18]
mov rdi, qword [rdi + 8]
jle 0x1400da720
movzx ebx, ax
or ebx, 0x80070000
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x17d
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x38], 0x48
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, str.RegSetValueExW_0x_08lx__s_0_REG_BINARY__p._lu_
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400c5eb0
nop
lea rcx, [rbp - 0x10]
call fcn.1400148c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140001340
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edx, ecx
xor edi, edi
lea ecx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400013bf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x1400013bf
nop
lea rdx, str.client.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400013ba
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140001390
jmp 0x1400013bf
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400023d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140001784
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400017d2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400017ca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400018b9
inc ebx
add rax, 0x28
jmp 0x1400017aa
mov rcx, r12
call fcn.140001fb1
mov rbp, rax
test rax, rax
jne 0x1400017f1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001720
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000205f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001853
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001720
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018b3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018b3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001720
inc dword [0x1400070a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001ce0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001d2c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001d26
test eax, eax
jne 0x140001d26
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001cfe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001ee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001f03
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001f03
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001f04
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001f3e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001f35
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001f40
inc r8d
add rax, 0x28
jmp 0x140001f1c
xor eax, eax
ret
Function at 0x140001fb1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004390]
mov r8, rcx
mov rcx, r9
call fcn.140001ee0
test eax, eax
je 0x140001fdd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140001f04
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140002660
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002660
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400018b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140991104]
mov rbx, rcx
test esi, esi
jle 0x1400019e0
mov rax, qword [0x140991108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001985
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018e0
mov rcx, rbx
call fcn.140002300
mov rdi, rax
test rax, rax
je 0x140001a02
mov rax, qword [0x140991108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002440
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140991108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000197e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001990
add dword [0x140991104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140991108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000197e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001840
nop dword [rax]
xor esi, esi
jmp 0x140001908
mov rax, qword [0x140991108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001840
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001840
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140991160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140991140]
test rbx, rbx
je 0x140001fcc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001fc3
test rsi, rsi
je 0x140001fc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fa8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14098d3f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000237d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002320
add rax, 0x28
cmp rax, r9
jne 0x140002360
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14098d3f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000239f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14098d3f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000245f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002468
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800016b3
Capabilities:
Print debug messages

Disassembly:
jmp 0x180057124
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x180057170
test rbx, rbx
je 0x18005715f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180001802
cmp eax, 1
je 0x180057170
mov eax, 4
jmp 0x1800571b3
call fcn.1800039b3
cmp eax, 2
jne 0x1800571ac
call fcn.180001861
test al, al
je 0x1800571ac
call fcn.180002b1c
test al, al
jne 0x1800571a2
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1800039ef
jmp 0x1800571b3
call fcn.180003896
mov rcx, rax
jmp 0x180057192
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180002171
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180076ac0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18009b080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009dbb8]
xor r11d, r11d
lea rdi, [0x1800858d4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x180076b30
mov rax, 0xfffffffffffffffe
jmp 0x180076c7d
cmp word [r10 + 6], r11w
jne 0x180076b9f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x180076b5a
test r14, r14
je 0x180076b4b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x180076c7d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180076b68
mov r8b, 2
jmp 0x180076b86
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x180076b76
mov r8b, 3
jmp 0x180076b86
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180076c72
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x180076bc8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180076c72
cmp bl, bpl
jb 0x180076c72
cmp bl, r8b
jae 0x180076c72
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180076bf5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180076c72
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x180076bd7
cmp r9, rbp
jae 0x180076c21
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180076b24
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180076c72
cmp edx, 0x110000
jae 0x180076c72
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180076c72
test r14, r14
je 0x180076c60
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1800039ea
jmp 0x180076c7d
mov rdx, rsi
mov rcx, r10
call fcn.180004052
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800025ef
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret