joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x148
mov byte [rsp + 0x2f], 1
movzx eax, byte [rsp + 0x2f]
mov rbx, rcx
mov qword [rsp + 0x168], rdx
test al, al
jne 0x409a40
add rsp, 0x148
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.00413fa0]
mov rdx, qword [rsp + 0x168]
mov rcx, rbx
mov rsi, rax
mov r9, rax
mov r8, rdx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_fflush
jmp 0x409a32

Function at 0x40f340
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00413fa0]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x40f420
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, [0x00488b78]
lea rdx, [0x00488b79]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x00488b79]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x40f3ba
cmp byte [rsi + rax + 0x10], 0
jne 0x40f400
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40f3ba
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x40f39a
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x00488b7c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40f3ba
add ebx, eax
jmp 0x40f392
lea r8, [0x00488b78]
mov rcx, rax
lea rdx, [0x00488b79]
call sub.msvcrt.dll_fprintf
lea rsi, [0x00488b79]
mov ebx, eax
nop
test ebx, ebx
jns 0x40f3ba
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x40f479
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40f3ba
add ebx, 1
test ebx, ebx
jns 0x40f3ba
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x40f452
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40f3ba
add ebx, eax
jmp 0x40f440
Function at 0x412030
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edx, 0x69164308
mov rbx, rcx
lea rcx, [0x004894a0]
call fcn.00402520
lea rdi, [rbx + 2]
mov edx, 0x4683dc18
mov rcx, rax
call fcn.004022b0
movzx r9d, word [rbx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop dword [rax + rax]
mov rax, qword [r8 + 0x50]
test r9w, r9w
movzx r10d, word [rax]
je 0x4120dd
test r10w, r10w
je 0x4120e3
mov r12, rdi
mov edx, r9d
sub r12, rax
jmp 0x4120a6
cmp word [rax], 0
je 0x4120dd
movzx ecx, word [rax]
lea esi, [rdx - 0x41]
lea r11d, [rdx + 0x20]
cmp si, 0x1a
cmovb edx, r11d
lea esi, [rcx - 0x41]
lea r11d, [rcx + 0x20]
cmp si, 0x1a
cmovb ecx, r11d
cmp dx, cx
jne 0x4120e3
mov rdx, rax
add rax, 2
movzx edx, word [r12 + rdx]
test dx, dx
jne 0x4120a0
cmp r10w, r9w
je 0x412160
mov r8, qword [r8]
cmp rbp, r8
jne 0x412080
lea rcx, [0x00489440]
mov edx, 0x6a9298d8
call fcn.00402520
lea rsi, [rsp + 0x30]
mov edx, 0x7a596b88
mov rcx, rax
call fcn.004022b0
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x0048e5a8]
xor edx, edx
xor ecx, ecx
mov r8, rsi
lea r9, [rsp + 0x28]
call qword [0x0048e5a0]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x412164
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [r8 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x412f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004a33c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4130a8
mov rax, qword [0x004a33c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x412f6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x412ff5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x412f50
mov rcx, rbx
call fcn.00413bc0
test rax, rax
mov r12, rax
je 0x4130dd
mov rax, qword [0x004a33c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00413cf0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004a33c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4130c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x412fee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x413050
add dword [0x004a33c4], 1
cmp edi, 8
jae 0x413023
test dil, 4
jne 0x413094
test edi, edi
je 0x413018
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4130af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x413018
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x41303c
jmp 0x413018
add rsi, qword [0x004a33c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x412fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00418570
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x413018
xor esi, esi
jmp 0x412f77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x413018
mov rax, qword [0x004a33c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00418570
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00418570
nop
nop dword [rax]

Function at 0x413830
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a36a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a3680]
test rbx, rbx
je 0x413884
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41387b
test rsi, rsi
je 0x41387b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x413860
lea rcx, [0x004a36a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x413bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0048ada0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x413c2d
mov rcx, r8
call fcn.00413aa0
test eax, eax
je 0x413c2d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x413c2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x413c24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x413c2f
add rax, 0x28
cmp rax, r9
jne 0x413c10
xor eax, eax
add rsp, 0x28
ret

Function at 0x418570
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00413fa0
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.00413fa0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400037b0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.140048f90
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.140009640
xor bl, bl
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.1400057a0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004b872
mov eax, dword [0x1400f04c0]
test eax, eax
je 0x14004b894
mov r15d, 1
lea rcx, [0x1400f2230]
cmp eax, r15d
je 0x14004b8a0
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400f04c0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400f04e8]
call fcn.140003f04
test al, al
je 0x14004b8c4
mov al, byte [0x1400f2230]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400f04e8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f2231]
mov edx, 0x7fff
mov byte [0x1400f04c4], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400f04a0]
call fcn.140007cf4
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400f04c0]
lea rdx, [0x1400f04e8]
call fcn.140003f9c
test eax, eax
jne 0x14004b8d0
cmp dil, r15b
je 0x14004b8f3
call fcn.140003b84
call fcn.140003cbc
cmp byte [0x1400f04c4], 0
jne 0x1400038ef
lea rcx, [0x1400f0e60]
call fcn.140006258
mov edx, r15d
lea rcx, [0x1400f0510]
call fcn.1400125f0
cmp byte [0x1400f04c4], 0
jne 0x140003913
lea rcx, [0x1400f0e60]
call fcn.140005d88
lea rcx, [0x1400f2230]
call fcn.1400039e4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.14000a07c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400dc23c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x14000392a
or dword [0x1400f03b0], 0xffffffff
jmp 0x14000391f
mov r8, qword [0x1400f04c8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.14000e278
mov al, byte [0x1400f03b8]
mov byte [0x1400f2232], al
jmp 0x1400038ac
mov dword [0x1400f03b0], r15d
jmp 0x14000391f
lea rcx, [0x1400f2230]
call fcn.1400039e4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400f03b0], r15d
jmp 0x14000392a
call fcn.14006d540
test al, al
jne 0x1400038d0
cmp byte [rbp + 0x1ffb0], al
jne 0x1400038d0
lea rcx, [rsp + 0x50]
call fcn.140005680
lea rdx, [0x1400d8704]
lea rcx, [rsp + 0x30]
call fcn.14000ec00
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004b95b
lea rdx, [0x1400dc270]
call fcn.1400071f8
lea rdx, [0x1400f04e8]
lea rcx, [rsp + 0x30]
call fcn.140007c24
lea rdx, [0x1400dc270]
lea rcx, [rsp + 0x30]
jmp 0x14004b95e
mov rdx, rsi
call fcn.1400071f8
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x50]
lea rdx, [0x1400dc278]
mov rcx, rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.14000a07c
nop
jmp 0x140003913
Function at 0x140003da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003db9
shr eax, 4
and al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x140003dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003dd9
shr eax, 4
and al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x140003de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003dfa
test al, 0x10
jne 0x140003dfa
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1400069d0
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.1400221d0
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 0x140006bb4
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x140006bb4
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 0x140006bb4
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 0x140006bb4
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 0x140006bb4
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140006bb4
nop word [rax + rax]
mov dword [rsp + 0x44], r14d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x60]
call fcn.1400243b0
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 0x140006b39
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 0x140006b91
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140006b77
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140023d10
mov byte [rbx + rsi], 0
jmp 0x140006ba9
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.140006500
cmp dword [rsp + 0x44], 0
ja 0x140006b00
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 0x140008bb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140008be4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140008bd0
ret
Function at 0x14000c810
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000c8dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000c8dc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000c8f5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000c8cc
cmp byte [rax], 0x5c
jne 0x14000c8c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000c8c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000c8b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000c8c3
test r8b, 0x10
jne 0x14000c8c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000c8c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400095c0
test edi, edi
jne 0x14000c830
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400095b0
int3
Function at 0x1400170d0
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 0x140017127
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140017169
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 0x140017100
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.1400243b0
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 0x14001717a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140017150
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140017169
mov rcx, rdi
cmp eax, 1
je 0x140017195
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400170e0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x140018970
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.140021e28
mov rsi, rax
lea r8, [0x140017200]
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 0x140018a1a
cmp byte [rsp + 0x78], dil
je 0x140018a2f
lea rcx, [rbp + 0xa0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140018a0b
mov eax, dword [rsp + 0x80]
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x140018a2f
lea r8, [rsp + 0x80]
call fcn.140018ad0
jmp 0x140018a2f
mov edx, 0x20
mov rcx, rsi
call fcn.140021e64
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 0x140018c60
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x140018c7e
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 0x140018cc7
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140018d09
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 0x140018ca0
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.1400243b0
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 0x140018d1c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140018cf0
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 0x140019780
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 0x140019919
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140019919
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140019919
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140019919
mov r14d, eax
mov ecx, eax
call fcn.140021e6c
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.140023d10
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.140021e6c
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.1400243b0
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.140023d10
mov rdx, rsi
mov rcx, rbx
call fcn.140019b00
mov rcx, rsi
test al, al
jne 0x14001986a
call fcn.140021e64
mov rcx, rdi
call fcn.140021e64
xor al, al
jmp 0x140019919
call fcn.140021e64
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 0x1400198f8
mov esi, eax
lea rcx, [rax + 1]
call fcn.140021e6c
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.1400243b0
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.140023d10
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.140021e6c
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1400243b0
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.140023d10
mov rcx, rdi
call fcn.140021e64
mov rcx, qword [rbx + 0x18]
call fcn.1400192b0
mov rcx, qword [rbx + 0x20]
call fcn.1400192b0
nop
mov al, 1
jmp 0x140019919
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
Function at 0x14001a6a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x14001a7dd
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001a6f7
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001a7c6
lea rdx, [rsp + 0x90]
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x140056f48]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001a731
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001a777
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001a787
add ebx, dword [rsp + 0x30]
jmp 0x14001a792
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001a798
cmp ebx, edi
je 0x14001a79d
jmp 0x14001a750
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001a7b8
mov rcx, r13
call fcn.140021e64
test r14, r14
je 0x14001a7c6
mov rcx, r14
call fcn.140021e64
nop
jmp 0x14001a7d4
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret