joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a850
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140074d60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140074d40]
test rbx, rbx
je 0x14005a8ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14005a8a3
test rsi, rsi
je 0x14005a8a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14005a888
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14005aac0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.Lf_a_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14005aaf8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14005ab00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14005aad0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.Lf_a_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14005aaf8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14005ab00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14005aae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.Lf_a_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14005aaf8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14005ab00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14005ac00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14006ab30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14005ac20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14005ac28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14005ac20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14005ac7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14005ac74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14005ac20
add rax, 0x28
cmp rax, r9
jne 0x14005ac60
xor eax, eax
ret

Function at 0x14005ac80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14006ab30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14005ac9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14005aca8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14005ac9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14005ad40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14006ab30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14005ad5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14005ad68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
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
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
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
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
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]
pop r8
pop r8
pop rsi
add rax, rdx
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 0x140006950
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.140022f30
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 0x140006b34
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x140006b34
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 0x140006b34
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 0x140006b34
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 0x140006b34
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140006b34
nop word [rax + rax]
mov dword [rsp + 0x44], r14d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x60]
call fcn.140024ba0
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 0x140006ab9
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 0x140006b11
lea rax, [rcx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140006af7
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8, rsi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140024500
mov byte [rbx + rsi], 0
jmp 0x140006b29
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 0x140006a80
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 0x140008b30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140008b64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140008b50
ret
Function at 0x14000c790
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 0x14000c85c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000c85c
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 0x14000c875
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 0x14000c84c
cmp byte [rax], 0x5c
jne 0x14000c846
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000c846
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000c832
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000c843
test r8b, 0x10
jne 0x14000c846
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000c846
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140009540
test edi, edi
jne 0x14000c7b0
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.140009530
int3
Function at 0x140010fb0
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 0x140011030
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 0x1400110e0
ret
Function at 0x140017780
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 0x1400177d7
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140017819
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 0x1400177b0
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.140024ba0
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 0x14001782a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140017800
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140017819
mov rcx, rdi
cmp eax, 1
je 0x140017845
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140017790
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x140019020
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.140022608
mov rsi, rax
lea r8, [0x1400178b0]
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 0x1400190ca
cmp byte [rsp + 0x78], dil
je 0x1400190df
lea rcx, [rbp + 0xa0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1400190bb
mov eax, dword [rsp + 0x80]
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x1400190df
lea r8, [rsp + 0x80]
call fcn.140019180
jmp 0x1400190df
mov edx, 0x20
mov rcx, rsi
call fcn.140022644
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 0x140019310
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x14001932e
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 0x140019377
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1400193b9
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 0x140019350
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.140024ba0
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 0x1400193cc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400193a0
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 0x140019e30
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 0x140019fc9
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140019fc9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140019fc9
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140019fc9
mov r14d, eax
mov ecx, eax
call fcn.14002264c
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.140024500
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.14002264c
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.140024ba0
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.140024500
mov rdx, rsi
mov rcx, rbx
call fcn.14001a1b0
mov rcx, rsi
test al, al
jne 0x140019f1a
call fcn.140022644
mov rcx, rdi
call fcn.140022644
xor al, al
jmp 0x140019fc9
call fcn.140022644
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 0x140019fa8
mov esi, eax
lea rcx, [rax + 1]
call fcn.14002264c
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.140024ba0
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.140024500
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.14002264c
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140024ba0
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.140024500
mov rcx, rdi
call fcn.140022644
mov rcx, qword [rbx + 0x18]
call fcn.140019960
mov rcx, qword [rbx + 0x20]
call fcn.140019960
nop
mov al, 1
jmp 0x140019fc9
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 0x14001ad50
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 0x14001ae8d
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001ada7
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001ae76
lea rdx, [rsp + 0x90]
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x140057d68]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001ade1
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 0x14001ae27
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001ae37
add ebx, dword [rsp + 0x30]
jmp 0x14001ae42
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001ae48
cmp ebx, edi
je 0x14001ae4d
jmp 0x14001ae00
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001ae68
mov rcx, r13
call fcn.140022644
test r14, r14
je 0x14001ae76
mov rcx, r14
call fcn.140022644
nop
jmp 0x14001ae84
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 0x14001aea0
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 0x14001afbb
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001aef5
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001afa4
lea rdx, [rsp + 0x90]
call fcn.1400037b0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001af20
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 0x14001af67
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001af77
add ebx, dword [rsp + 0x30]
jmp 0x14001af82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001af88
cmp ebx, edi
je 0x14001af8d
jmp 0x14001af40
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.140022644
nop
jmp 0x14001afb2
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
Function at 0x14001afd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x14001b0fa
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001b026
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x140057d68]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001b050
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 + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001b097
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001b0a7
add ebx, dword [rsp + 0x78]
jmp 0x14001b0b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001b0b8
cmp ebx, edi
je 0x14001b0bd
jmp 0x14001b070
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001b0d8
mov rcx, r13
call fcn.140022644
test r14, r14
je 0x14001b0e6
mov rcx, r14
call fcn.140022644
nop
jmp 0x14001b0f1
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14001b120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x14001b218
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001b170
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400037b0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001b185
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001b1c7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001b1d7
add ebx, dword [rsp + 0x78]
jmp 0x14001b1e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001b1e8
cmp ebx, edi
je 0x14001b1ed
jmp 0x14001b1a0
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.140022644
nop
jmp 0x14001b20f
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400230f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002313a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002313a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002313a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002313a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002313a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002313c
xor al, al
add rsp, 0x28
ret

Function at 0x140034ae8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400348e4