joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f65b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400a2077
cmp word [rdx], r13w
jne 0x1400a2077
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a207c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a21a1
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a21c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a20b5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a20dc
cmp r9, r8
jae 0x1400a20ec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400a2096
jmp 0x1400a21a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a2196
cmp dword [rsp + 0x80], esi
je 0x1400a2196
lea r8, [0x1400f65b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a216e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a213e
mov word [rbx], r13w
jmp 0x1400a219e
mov ecx, SafeArrayDestroy
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400a214b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a219e
cmp word [rsp + 0x70], r13w
jne 0x1400a217b
cmp rbx, r14
je 0x1400a2138
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a2c88
cmp word [rsp + 0x70], r13w
je 0x1400a21a1
mov ecx, SafeArrayDestroy
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f65b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a219b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a21a1
Function at 0x1400a7a94
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009d9b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a7b35
cmp ebx, dword [rsp + 0x30]
je 0x1400a7b2e
test esi, esi
je 0x1400a7b2e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a7b09
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a7b16
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a7af3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a7b1a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a7b37
mov eax, 1
jmp 0x1400a7b37
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8bc8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a8c4f
mov rsi, rbx
cmp word [rax], bp
je 0x1400a8c0e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a8bf8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a8bf4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009e3f8
mov rdi, rax
test rax, rax
je 0x1400a8c3c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400adc70
mov rbp, rdi
xor ecx, ecx
call fcn.14009e1b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400acec0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a2c88
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a2c88
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ad010
cmp rax, 0xffffffffffffffff
je 0x1400ad010
xor edi, edi
test rbp, rbp
jle 0x1400acfbb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009f984
mov rbx, rax
test rax, rax
jne 0x1400acf48
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400acfb1
mov edx, 0x8000
mov ecx, r14d
call fcn.14009d2ac
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400a13d8
cmp eax, 0xffffffff
je 0x1400acf91
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400acf58
mov edx, r15d
mov ecx, r14d
call fcn.14009d2ac
jmp 0x1400acfb1
cmp byte [rsi + 0x38], dil
je 0x1400acfa8
cmp dword [rsi + 0x34], 5
jne 0x1400acfa8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400acfb1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009e1b8
jmp 0x1400ad024
jns 0x1400ad024
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a2c88
cmp rax, 0xffffffffffffffff
jne 0x1400acfdc
cmp byte [rsi + 0x30], dil
je 0x1400ad024
mov edi, dword [rsi + 0x2c]
jmp 0x1400ad024
mov ecx, r14d
call fcn.1400a9214
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ad024
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400ad024
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ad01d
mov eax, dword [rsi + 0x2c]
jmp 0x1400ad022
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a2c88
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400ad7a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ad7c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ad7c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002982c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002aa80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000250a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000250a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000250a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000250a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000250a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000250c
xor al, al
add rsp, 0x28
ret
Function at 0x1800012b0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rcx]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x28], edx
xor edi, edi
mov rcx, rsi
mov dword [rsp + 0x20], edi
mov edx, 0x8004667e
mov ebx, 4
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x28]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001326
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001300
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180001b10
Capabilities:
Delete directory
Delete file
Get file attributes
Send data
Send data on socket
Set file attributes
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbp, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rbx
cmp eax, 0x10
jne 0x180001c0f
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test eax, eax
jne 0x180001baf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rbp]
lea r8, [rsp + 0x20]
xor edi, edi
mov dword [rsp + 0x28], eax
mov rcx, rbp
mov dword [rsp + 0x20], edi
mov edx, 0x8004667e
lea ebx, [rsi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
movsxd rax, edi
lea rdx, [rsp + 0x28]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001cd6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001b80
jmp 0x180001cd6
mov rbp, qword [rbp]
lea r8, [rsp + 0x28]
xor edi, edi
mov edx, 0x8004667e
mov rcx, rbp
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], edi
lea ebx, [rdi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x20]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001cd6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001be0
jmp 0x180001cd6
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test eax, eax
jne 0x180001c88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rbp]
lea r8, [rsp + 0x28]
xor edi, edi
mov dword [rsp + 0x20], eax
mov rcx, rbp
mov dword [rsp + 0x28], edi
mov edx, 0x8004667e
lea ebx, [rsi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x20]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001cd6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001c60
jmp 0x180001cd6
mov rbp, qword [rbp]
lea r8, [rsp + 0x28]
xor edi, edi
mov edx, 0x8004667e
mov rcx, rbp
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], edi
lea ebx, [rdi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
movsxd rax, edi
lea rdx, [rsp + 0x20]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180001cd6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180001cb0
mov eax, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001d00
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov rax, qword [rcx]
movzx r14d, r8b
mov r13, qword [rbp + 0x560]
mov rsi, rdx
mov qword [rbp + 0x1b8], rax
lea rdx, [rbp + 0x1b0]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x1b0], 1
mov r15, rcx
mov qword [rsp + 0x20], rax
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x180001dd8
mov rcx, qword [r15]
lea r9d, [rdi + 2]
lea r8d, [rdi + 6]
lea rdx, [rbp + 0x3c0]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180001dce
cmp eax, 6
jne 0x180001dd8
lea rdx, str.ABOR_r_n
lea rcx, [rbp + 0x3c0]
call fcn.18001ba2c
test eax, eax
jne 0x180001dd8
mov rcx, qword [r15]
lea r8d, [rdi + 6]
xor r9d, r9d
lea rdx, [rbp + 0x3c0]
call qword [sym.imp.WS2_32.dll_recv]
mov eax, 0xffffffff
jmp 0x180001f96
lea rax, [0x1800459b4]
test r14b, r14b
lea rdx, str._s_s.
mov r9, rsi
cmove rdx, rax
lea r8, [r15 + 0x10]
lea rcx, [r15 + 0x114]
call fcn.1800029c0
lea rdx, [rbp + 0x3e0]
lea rcx, [r15 + 0x114]
call fcn.180004250
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x180001e40
xor eax, eax
jmp 0x180001f96
lea rdx, [0x1800459a4]
lea rcx, [rsp + 0x6c]
call fcn.18001ba2c
test eax, eax
je 0x180001f75
lea rdx, [0x1800459bc]
lea rcx, [rsp + 0x6c]
call fcn.18001ba2c
test eax, eax
je 0x180001f75
mov eax, dword [rsp + 0x40]
mov r9, rsi
mov ecx, dword [rsp + 0x5c]
mov edx, 0x104
mov dword [rbp + 0x80], eax
mov rax, qword [rsp + 0x44]
mov qword [rbp + 0x84], rax
mov rax, qword [rsp + 0x4c]
shl rcx, 0x20
mov qword [rbp + 0x8c], rax
mov rax, qword [rsp + 0x54]
mov qword [rbp + 0x94], rax
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rbp + 0xa0], rcx
lea rcx, [rbp + 0xa8]
test r14b, r14b
je 0x180001ee2
lea rax, [rsp + 0x6c]
lea r8, [0x1800459b4]
mov qword [rsp + 0x20], rax
call fcn.180001250
jmp 0x180001eee
lea r8, [0x180045950]
call fcn.180001250
lea ebx, [rax + 0x2d]
mov rcx, r13
mov r8d, ebx
lea rdx, [rbp + 0x80]
call fcn.18000ca70
cmp eax, ebx
jne 0x180001f8b
inc edi
test byte [rbp + 0x80], 0x10
je 0x180001f75
lea rcx, [rbp + 0x3e0]
mov r8, rsi
test r14b, r14b
je 0x180001f38
lea r9, [rsp + 0x6c]
lea rdx, [0x1800459b4]
call fcn.1800029c0
jmp 0x180001f44
lea rdx, [0x180045950]
call fcn.1800029c0
mov dword [rsp + 0x28], 1
lea r9, [0x180001fc0]
mov r8b, 1
mov qword [rsp + 0x20], r13
lea rdx, [rbp + 0x3e0]
mov rcx, r15
call fcn.180001d00
cmp eax, 0xffffffff
je 0x180001dce
add edi, eax
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180001e40
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x650]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002a20
Capabilities:
Copy file
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rcx
mov esi, 0x104
mov edx, esi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str.cmd.exe
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.18001c248
lea rdx, [rsp + 0x170]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r8, str.wdm.exe
mov edx, esi
lea rcx, [rsp + 0x170]
call fcn.18001c248
xor r8d, r8d
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x180002ac3
lea r8, [rsp + 0x170]
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.18001ac84
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov rdi, qword [r14 + 8]
mov rbx, 0xffffffffffffffff
mov rcx, rbx
nop
inc rcx
cmp byte [rdi + rcx], 0
jne 0x180002ae0
inc rcx
call fcn.180011164
mov rbp, rax
mov qword [rsp + 0x30], rax
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rdi + rbx], 0
jne 0x180002b00
lea rdx, [rbx + 1]
mov r8, rdi
mov rcx, rbp
call fcn.18001ac84
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.180002fa0
mov rdi, rax
mov qword [rsp + 0x40], rax
mov ebx, dword [r14]
mov edx, 5
mov ecx, ebx
call fcn.180003cd0
mov rbp, rax
test rax, rax
jne 0x180002b5f
lea rdx, [0x180045a28]
mov ecx, ebx
call fcn.18000caf0
jmp 0x180002bd4
mov ecx, 0x110
call fcn.180011120
mov rbx, rax
lea rcx, [rax + 8]
xor edx, edx
mov r8d, 0x108
call fcn.1800388f0
mov qword [rbx], rbp
lea rcx, [rbx + 8]
cmp dword [rsp + 0x38], 2
lea r8, [rsp + 0x60]
jl 0x180002b94
mov r8, qword [rdi + 8]
mov r9, rsi
mov rdx, rsi
call fcn.18001c158
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180002c20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180002bd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x48]
call fcn.18001115c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180011100
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180002fa0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rcx, 0xffffffffffffffff
mov rbx, rcx
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180002fd0
inc ebx
mov eax, 2
movsxd rdi, ebx
add rdi, rdi
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.180011164
mov r8, rdi
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.1800388f0
mov r8, qword [rsi]
lea ecx, [rbx + rbx]
mov dword [rsp + 0x28], ecx
mov r9d, ebx
xor ecx, ecx
mov qword [rsp + 0x20], r12
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
mov eax, dword [rsp + 0x48]
mov dword [rsi + 8], eax
test r15, r15
je 0x180003113
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], r13
xor r13d, r13d
mov ebp, r13d
test eax, eax
jle 0x180003103
mov qword [rsp + 0xa8], r14
lea r12, [r13 - 1]
mov r14, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [rax*2 + 2]
mov eax, 2
movsxd rbx, esi
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.180011164
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1800388f0
mov rdx, qword [r14]
mov r8, rbx
mov rcx, rdi
call fcn.180038250
mov rcx, qword [r14]
mov r9d, esi
mov qword [rsp + 0x38], r13
mov r8, rdi
mov qword [rsp + 0x30], r13
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call fcn.18001115c
inc ebp
lea r14, [r14 + 8]
cmp ebp, dword [rsp + 0x48]
jl 0x180003077
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa0]
mov rcx, r12
call fcn.18001115c
mov rax, r15
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180011100
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180003140
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor ebp, ebp
movzx ecx, byte [rcx + 8]
mov esi, r8d
mov rdi, rdx
cmp cl, 0xb0
jae 0x1800031c7
test cl, cl
jne 0x180003192
cmp byte [rdx], 5
jne 0x18000318b
movsx eax, byte [rdx + 1]
add eax, 2
cmp r8d, eax
jne 0x18000318b
inc cl
mov byte [rbx + 8], cl
jmp 0x1800031c7
mov cl, 0xff
mov byte [rbx + 8], cl
jmp 0x1800031c7
cmp cl, 1
jne 0x1800031d4
movzx eax, byte [rdx]
cmp al, cl
jne 0x1800031a5
inc cl
mov byte [rbx + 8], cl
jmp 0x1800031c7
cmp al, 5
jne 0x1800031c3
cmp byte [rdx + 1], 3
jne 0x1800031c3
cmp byte [rdx + 2], bpl
jne 0x1800031c3
movzx eax, byte [rdx + 3]
cmp al, 1
jne 0x1800031de
cmp r8d, 0xa
je 0x1800031ee
mov byte [rbx + 8], 0xff
cmp byte [rbx + 9], 1
jne 0x180003232
mov eax, 1
jmp 0x180003249
cmp cl, 2
jne 0x1800031c7
cmp byte [rdx], 5
jmp 0x1800031a7
cmp al, 3
jne 0x1800031c3
movsx eax, byte [rdx + 4]
add eax, 7
cmp r8d, eax
jne 0x1800031c3
mov byte [rbx + 8], 0xc1
mov esi, 0xa
mov byte [rdx + 3], 1
cmp qword [rbx + 0x30], rbp
je 0x18000322e
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x18000d3a0]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000322e
mov qword [rbx + 0x10], rax
jmp 0x1800031c7
xor eax, eax
jmp 0x180003249
mov rcx, qword [rbx + 0x20]
mov r8d, esi
mov rdx, rdi
call fcn.18000ca70
cmp eax, esi
sete bpl
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret