joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007e9b0
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.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009f780], rbx
je 0x14007ea17
cmp rax, rbx
jne 0x14007ea0a
mov ebx, 1
mov esi, ebx
jmp 0x14007ea1c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007e9ef
mov ebx, 1
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007ea34
mov edi, 0x1f
mov ecx, edi
call fcn.140133000
jmp 0x14007eaa0
mov eax, dword [0x14009f788]
test eax, eax
jne 0x14007ea95
mov dword [0x14009f788], ebx
lea r15, [0x1400878e0]
lea rdi, [0x1400878c8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14007ea87
test eax, eax
jne 0x14007ea8b
cmp qword [rdi], r14
je 0x14007ea7c
mov rax, qword [rdi]
mov rcx, qword [0x1400878a0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14007ea5e
test eax, eax
je 0x14007ea9b
mov eax, 0xff
jmp 0x14007ebf6
mov dword [0x14009ea14], ebx
mov edi, 0x1f
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007eac7
lea rdx, [0x1400878c0]
lea rcx, [0x1400878a8]
call sub.msvcrt.dll__initterm
mov dword [0x14009f788], 2
test esi, esi
jne 0x14007ead5
mov rax, r14
xchg qword [0x14009f780], rax
cmp qword [0x14009f790], r14
je 0x14007eb08
lea rcx, [0x14009f790]
call fcn.14007f500
test eax, eax
je 0x14007eb08
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009f790]
mov r9, qword [0x1400878a0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14007eb21
mov eax, 0xff
jmp 0x14007ebf6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14007eba7
test ax, ax
je 0x14007eb3c
test edx, edx
jne 0x14007eba7
sub ax, bx
cmp ax, di
ja 0x14007eb52
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14007eb3c
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.140022e4c
mov dword [0x14009ea10], eax
cmp dword [0x14009ea30], r14d
jne 0x14007eb90
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009ea14], r14d
jne 0x14007eba5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009ea10]
jmp 0x14007ebf6
cmp ax, 0x22
jne 0x14007ebbb
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 0x14007eb2a
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.14007f594
add rsp, 0x28
jmp 0x14007e9b0
Function at 0x14007efe8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007eff4
push rbx
sub rsp, 0x540
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14007f071
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14007f091
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x540
pop rbx
ret

Function at 0x14007eff4
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007eff4
push rbx
sub rsp, 0x540
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14007f071
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14007f091
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x540
pop rbx
ret

Function at 0x14007f3ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14007f438
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007f430
cmp dword [rcx + 0x3c], edx
jl 0x14007f430
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14007f430
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 0x14007f438
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180003570
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.18001c8d0
test al, al
jne 0x180003594
nop dword [rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.18001c8d0
test al, al
je 0x180003580
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800035a0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x20a
call fcn.180021074
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rbx, rax
call fcn.180023790
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.mstsc
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x180003614
call fcn.18001c8d0
test al, al
jne 0x180003614
nop dword [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.18001c8d0
test al, al
je 0x180003600
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x18000c6b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18000c6e4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18000c6d0
ret
Function at 0x1800102a0
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 0x18001036c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18001036c
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 0x180010385
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 0x18001035c
cmp byte [rax], 0x5c
jne 0x180010356
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180010356
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180010342
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180010353
test r8b, 0x10
jne 0x180010356
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180010356
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18000cda0
test edi, edi
jne 0x1800102c0
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.18000cd90
int3
Function at 0x180014770
Capabilities:
Encode data using xor

Disassembly:
movzx r10d, byte [rdx]
mov r11, rdx
mov r9, qword [rcx + 0x18]
movzx r8d, r10b
movzx eax, byte [r9 + 0x1d]
xor r8b, byte [rax + rcx + 0x71]
xor byte [r9], r8b
mov r9, qword [rcx + 0x18]
movzx eax, byte [r9 + 0x1e]
movzx r8d, byte [rax + rcx + 0x71]
xor byte [r9 + 1], r8b
mov r9d, 5
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0x1f]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 2], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0x1c]
movzx edx, byte [rax + rcx + 0x71]
movzx eax, r10b
xor byte [r8 + 3], dl
add r10b, r10b
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor dl, r10b
mov r10b, 4
mov byte [r11], dl
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rcx + 0x18]
movzx eax, r10b
add r10b, 4
lea r8, [rdx + r9]
movzx edx, byte [rax + rdx - 4]
xor byte [r8 - 1], dl
mov rax, qword [rcx + 0x18]
lea rdx, [rax + r9]
movzx eax, byte [rax + r9 - 4]
xor byte [rdx], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 3]
xor byte [rdx + 1], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 2]
xor byte [rdx + 2], al
lea r9, [r9 + 4]
cmp r10b, 0x10
jb 0x1800147f0
mov r8, qword [rcx + 0x18]
mov r10b, 0x14
mov r9d, 0x15
movzx eax, byte [r8 + 0xc]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x10], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xd]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x11], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xe]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x12], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xf]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x13], dl
nop word [rax + rax]
mov rdx, qword [rcx + 0x18]
movzx eax, r10b
add r10b, 4
lea r8, [rdx + r9]
movzx edx, byte [rax + rdx - 4]
xor byte [r8 - 1], dl
mov rax, qword [rcx + 0x18]
lea rdx, [rax + r9]
movzx eax, byte [rax + r9 - 4]
xor byte [rdx], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 3]
xor byte [rdx + 1], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 2]
xor byte [rdx + 2], al
lea r9, [r9 + 4]
cmp r10b, 0x20
jb 0x1800148a0
ret
Function at 0x180015020
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.1800217f0
sub rsp, rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x44], 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 + 0x44], 1
mov word [rsp + 0x1088], r14w
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x1088]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
je 0x180015207
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x180015207
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rsi
lea rdx, [0x180054690]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
je 0x180015207
mov dword [rsp + 0x48], 0x3300
lea r9d, [r14 + 4]
lea r8, [rsp + 0x48]
lea edx, [r14 + 0x1f]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x180015207
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 0x180015207
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180015207
mov dword [rsp + 0x40], r14d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call fcn.180023790
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x40]
cmp eax, 0x1000
mov r8d, 0x1000
ja 0x18001518c
mov r8d, eax
lea r9, [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov esi, dword [rsp + 0x4c]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1800151e4
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800151ca
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180023010
mov byte [rbx + rsi], 0
jmp 0x1800151fc
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1800099a0
cmp dword [rsp + 0x40], 0
ja 0x180015153
mov rax, rdi
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800154c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x60], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x60], 1
test r8b, 3
jne 0x180015619
lea rbp, [r8 - 1]
test rbp, rbp
je 0x180015619
lea rsi, [rdx + 1]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rsi - 1]
cmp al, 0x3d
je 0x180015619
movzx r8d, byte [rsi]
cmp r8b, 0x3d
je 0x180015619
xor cl, cl
mov edx, eax
movsx rax, cl
movsx eax, byte [rax + r14]
cmp edx, eax
je 0x18001555b
inc cl
cmp cl, 0x40
jae 0x180015619
jmp 0x180015541
cmp cl, 0xff
je 0x180015619
xor r9b, r9b
nop word [rax + rax]
movsx rax, r9b
movsx eax, byte [rax + r14]
cmp r8d, eax
je 0x18001558d
inc r9b
cmp r9b, 0x40
jae 0x180015619
jmp 0x180015570
cmp r9b, 0xff
je 0x180015619
mov rax, rdi
and eax, 3
je 0x1800155c1
sub rax, 1
je 0x1800155b4
cmp rax, 1
jne 0x18001560a
and r9b, 0x3f
shl cl, 6
jmp 0x1800155cc
shr r9b, 2
and r9b, 0xf
shl cl, 4
jmp 0x1800155cc
shr r9b, 4
and r9b, 3
shl cl, 2
add r9b, cl
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x1800155fb
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800155f0
mov rax, qword [rbx]
mov byte [rax + rcx + 1], 0
mov byte [rax + rcx], r9b
jmp 0x18001560a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180009610
inc rdi
inc rsi
cmp rdi, rbp
jb 0x180015523
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18001b9f0
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 0x18001ba47
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x18001ba89
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 0x18001ba20
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.180023790
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 0x18001ba9a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x18001ba70
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18001ba89
mov rcx, rdi
cmp eax, 1
je 0x18001bab5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x18001ba00
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x18001d530
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x18001d54e
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 0x18001d597
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x18001d5d9
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 0x18001d570
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.180023790
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 0x18001d5ec
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x18001d5c0
xor eax, eax
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.180014ed0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x18001dd90
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 0x18001df29
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001df29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x18001df29
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x18001df29
mov r14d, eax
mov ecx, eax
call fcn.180021074
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.180023010
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.180021074
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.180023790
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.180023010
mov rdx, rsi
mov rcx, rbx
call fcn.18001df50
mov rcx, rsi
test al, al
jne 0x18001de7a
call fcn.180020be0
mov rcx, rdi
call fcn.180020be0
xor al, al
jmp 0x18001df29
call fcn.180020be0
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 0x18001df08
mov esi, eax
lea rcx, [rax + 1]
call fcn.180021074
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.180023790
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.180023010
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.180021074
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.180023790
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.180023010
mov rcx, rdi
call fcn.180020be0
mov rcx, qword [rbx + 0x18]
call fcn.18001d8c0
mov rcx, qword [rbx + 0x20]
call fcn.18001d8c0
nop
mov al, 1
jmp 0x18001df29
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 0x18001eda0
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 0x18001eedd
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18001edf7
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18001eec6
lea rdx, [rsp + 0x90]
call fcn.180014c60
mov r13, rax
mov rdx, rax
lea rcx, [0x180055d80]
call fcn.180014b60
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x18001ee31
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 0x18001ee77
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001ee87
add ebx, dword [rsp + 0x30]
jmp 0x18001ee92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x18001ee98
cmp ebx, edi
je 0x18001ee9d
jmp 0x18001ee50
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x18001eeb8
mov rcx, r13
call fcn.180020be0
test r14, r14
je 0x18001eec6
mov rcx, r14
call fcn.180020be0
nop
jmp 0x18001eed4
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
Function at 0x18001eef0
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 r14
push r15
sub rsp, 0x48
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x18001f00b
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18001ef45
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18001eff4
lea rdx, [rsp + 0x90]
call fcn.180014d30
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x18001ef70
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 0x18001efb7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001efc7
add ebx, dword [rsp + 0x30]
jmp 0x18001efd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x18001efd8
cmp ebx, edi
je 0x18001efdd
jmp 0x18001ef90
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.180020be0
nop
jmp 0x18001f002
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret