joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140cf9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140cf91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cf9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cf906f
add dl, dl
jne 0x140cf9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cf90f6
xor eax, eax
add dl, dl
jne 0x140cf90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cf91ad
add dl, dl
jne 0x140cf90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cf90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cf907e
mov eax, 1
add dl, dl
jne 0x140cf9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cf9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cf90fb
sub eax, ebx
mov ebx, 1
jne 0x140cf914c
mov ecx, 1
add dl, dl
jne 0x140cf912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cf913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cf9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cf907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cf9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cf9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cf915d
cmp eax, 0x7d00
jae 0x140cf919b
cmp eax, 0x500
jb 0x140cf9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cf907e
cmp eax, 0x7f
ja 0x140cf919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cf907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cf91d2
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 0x140cf907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140031510
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003151d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003152d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140031515
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140031545
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140031532
sub eax, 3
jb 0x14003155f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140031596
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140031586
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140031584
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140031573
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400314d2
jmp 0x14003151d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1a200
mov dl, 4
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400315e6
cmp rsi, rcx
jae 0x1400315ee
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400315cd
cmp al, 0x8f
ja 0x1400315cd
cmp byte [rsi - 2], 0xf
je 0x1400315d3
sub al, 0xe8
cmp al, 1
ja 0x1400315b7
cmp rsi, rcx
jae 0x1400315ee
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400315bd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400315ee
lodsb al, byte [rsi]
jmp 0x1400315cd
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2f000]
mov eax, dword [rdi]
or eax, eax
je 0x14003164b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x31000]
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 0x1400315fb
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 0x140031645
mov qword [rbx], rax
add rbx, 8
jmp 0x14003161b
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 0x140031685
cmp al, 0xef
ja 0x140031677
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140031657
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140031666
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 + 0x1a7]
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
mov byte [fcn.140031704], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140031704
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400316f4
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140021ee0]
mov dword [rax], 1
mov rax, qword [0x140021ef0]
mov dword [rax], 1
mov rax, qword [0x140021f00]
mov dword [rax], 1
mov rax, qword [0x140021e90]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007d90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14002e0a0]
test rcx, rcx
je 0x140007de0
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007dc8
mov rcx, qword [0x14002e0a0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14002e0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007daf
add rsp, 0x28
ret

Function at 0x14000e450
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015ff0
sub rsp, rax
mov eax, dword [0x140037100]
mov rsi, rcx
test eax, eax
je 0x14000e4f0
xor ebx, ebx
lea rdi, [0x140035100]
test eax, eax
jg 0x14000e48c
jmp 0x14000e4a0
add rbx, 1
cmp dword [0x140037100], ebx
jle 0x14000e4a0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e480
jmp 0x14000e4d7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e4b5
cmp word [rsi + 2], 0x3a
je 0x14000e4d7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e540
movsxd rbx, dword [0x140037100]
cmp ebx, 0x3ff
jle 0x14000e558
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e57a
movsxd rbx, dword [0x140037100]
mov rcx, rdi
lea rdi, [0x140035100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140037100]
add eax, 1
mov dword [0x140037100], eax
jmp 0x14000e471
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e4c4
xor eax, eax
jmp 0x14000e4dc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140037100], 1
mov rdx, rax
lea rax, [0x140035100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e4d7
mov rcx, rbx
call fcn.140007cd0
nop
nop word cs:[rax + rax]
nop
Function at 0x140014cd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001bc20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001bc20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400159a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140037228]
test eax, eax
je 0x140015a3a
lea rax, [0x140037200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140037230]
mov qword [rbp - 8], rax
jmp 0x140015a1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015a12
cmp qword [rbp - 0x10], 0
je 0x140015a12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400159d8
lea rax, [0x140037200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140015a3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015b40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015b68
mov eax, 0
jmp 0x140015bb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140015b91
mov eax, 0
jmp 0x140015bb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140015bb1
mov eax, 0
jmp 0x140015bb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140015bbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015c3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015c31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015c31
mov rax, qword [rbp - 8]
jmp 0x140015c4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015c04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3930
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d4332
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d43ca
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d43ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d43a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d43a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4368
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d43cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d44d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d44f8
mov eax, 0
jmp 0x2fc4d4546
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4521
mov eax, 0
jmp 0x2fc4d4546
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4541
mov eax, 0
jmp 0x2fc4d4546
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d454c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d45ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d45c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d45c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d45df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4594
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006980
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
mov eax, 0x1060
call fcn.140022210
sub rsp, rax
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x48], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r14b
mov dword [rsp + 0x48], 1
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
je 0x140006b64
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x140006b64
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
je 0x140006b64
mov dword [rsp + 0x4c], 0x3300
lea r9d, [r14 + 4]
lea r8, [rsp + 0x4c]
lea edx, [r14 + 0x1f]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140006b64
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140006b64
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140006b64
nop word [rax + rax]
mov dword [rsp + 0x44], r14d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x60]
call fcn.140023e80
lea rdx, [rsp + 0x44]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x44]
cmp eax, 0x1000
mov r8d, 0x1000
ja 0x140006ae9
mov r8d, eax
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov esi, dword [rsp + 0x50]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140006b41
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140006b27
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400237e0
mov byte [rbx + rsi], 0
jmp 0x140006b59
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400064b0
cmp dword [rsp + 0x44], 0
ja 0x140006ab0
mov rax, rdi
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140008b60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140008b94
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140008b80
ret
Function at 0x140017080
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400170d7
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140017119
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400170b0
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.140023e80
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x14001712a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140017100
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140017119
mov rcx, rdi
cmp eax, 1
je 0x140017145
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140017090
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x140018920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
xor edi, edi
mov rbx, r9
lea ecx, [rdi + 0x20]
call fcn.1400218f8
mov rsi, rax
lea r8, [0x1400171b0]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rax + 9], edi
mov word [rax + 0xd], di
mov byte [rax + 0xf], dil
mov qword [rax], rbp
mov qword [rax + 0x10], rbx
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov byte [rsi + 8], 1
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x1400189ca
cmp byte [rsp + 0x78], dil
je 0x1400189df
lea rcx, [rbp + 0xa0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1400189bb
mov eax, dword [rsp + 0x80]
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x1400189df
lea r8, [rsp + 0x80]
call fcn.140018a80
jmp 0x1400189df
mov edx, 0x20
mov rcx, rsi
call fcn.140021934
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140018c10
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x140018c2e
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140018c77
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140018cb9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018c50
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.140023e80
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x140018ccc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140018ca0
xor eax, eax
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.140003950
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x140019730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400198c9
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400198c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400198c9
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400198c9
mov r14d, eax
mov ecx, eax
call fcn.14002193c
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.1400237e0
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.14002193c
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.140023e80
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.1400237e0
mov rdx, rsi
mov rcx, rbx
call fcn.140019ab0
mov rcx, rsi
test al, al
jne 0x14001981a
call fcn.140021934
mov rcx, rdi
call fcn.140021934
xor al, al
jmp 0x1400198c9
call fcn.140021934
mov r14d, dword [rdi]
add r14, 4
add r14, rdi
movzx eax, byte [r14]
mov qword [rbx + 0x28], rax
movzx eax, byte [r14]
test al, al
je 0x1400198a8
mov esi, eax
lea rcx, [rax + 1]
call fcn.14002193c
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.140023e80
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.1400237e0
movzx eax, byte [r14]
add r14, rax
mov eax, dword [r14 + 1]
mov qword [rbx + 0x38], rax
mov r15d, dword [r14 + 1]
mov ecx, r15d
call fcn.14002193c
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140023e80
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.1400237e0
mov rcx, rdi
call fcn.140021934
mov rcx, qword [rbx + 0x18]
call fcn.140019260
mov rcx, qword [rbx + 0x20]
call fcn.140019260
nop
mov al, 1
jmp 0x1400198c9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret