joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bcd0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x46be78
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x46bd35
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x46bd35
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x46bd35
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x46bd6c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x46bdc2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x46bdc2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x46bdc2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x46bdc2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x46bdc2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.0046b780
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x46be24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.00447d10
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.0046bb50
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46be70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.00447d10
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x46d5e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x004a6080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x46d675
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x46d6d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.00447d10
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.00480f00
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x46d791
sub ecx, 1
je 0x46d804
sub ecx, 1
je 0x46d740
cmp ecx, 1
je 0x46d723
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x0048ed10]
call fcn.00447d10
jmp 0x46d804
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.0046d310
test eax, eax
je 0x46d804
jmp 0x46d6aa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x46d804
sub rax, rsi
cmp rax, rbp
jae 0x46d804
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.00447e90
jmp 0x46d804
cmp r8d, 4
jle 0x46d804
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x46d804
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.00447c30
mov esi, eax
test eax, eax
je 0x46d7e3
mov edx, 5
mov rcx, rbx
call fcn.0046e2d0
mov eax, esi
jmp 0x46d6aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.00456700
mov rcx, r14
call fcn.004569e0
test eax, eax
je 0x46d6a8
mov edx, 5
mov rcx, rbx
call fcn.0046e2d0
mov eax, Ordinal_45
jmp 0x46d6aa
Function at 0x4805a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x4805e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x480629
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x480682
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x480640
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x4806c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x0049448a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x0049448b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x480690
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x4806dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x480760
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x480760
dec r8
sub rdx, 1
jne 0x480746
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x481d2c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x5c], 0
mov rbx, rcx
jne 0x180003d35
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x180003d27
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [rbx + 0x58]
mov word [rbx + 0x5c], 1
call fcn.18000f80c
add rsp, 0x20
pop rbx
ret

Function at 0x180005d9c
Capabilities:
Terminate process
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x5c], 0
mov rbx, rcx
jne 0x180005ddc
mov rcx, qword [rcx + 0xc8]
xor edx, edx
test rcx, rcx
je 0x180005dc5
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0xc0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [rbx + 0x58]
mov dl, 1
call fcn.18000f94c
add rsp, 0x20
pop rbx
ret
Function at 0x18001939c
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x18005b1b8]
call fcn.18001a5a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x18001942f
lea rcx, [0x18005b1c8]
call fcn.18001a5a0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18001942f
lea r9, [rsp + 0x20]
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001942f
mov dword [rbx], 0x70057b8
lea r9, [rsp + 0x20]
mov word [rbx + 4], 0xc380
mov edx, 0x1000
mov r8d, dword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180025b10
add rsp, 0x30
pop rbx
ret
Function at 0x18001c574
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x48], rcx
mov qword [r11 - 0x40], rdx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + 0x10]
jmp 0x18001c5dc
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18001c5cc
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0x60]
call fcn.1800350b8
test eax, eax
je 0x18001c5e5
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
jne 0x18001c5bf
jmp 0x18001c5ee
mov r8, qword [rsi + 0x30]
test r8, r8
jne 0x18001c65b
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x18001c5fb
mov rcx, qword [rdi]
call fcn.18001a970
mov r8, rax
test rax, rax
jne 0x18001c65b
mov rcx, rdi
call fcn.1800026d8
nop
mov rdx, qword [rbx + 0x18]
mov esi, reloc.OLEAUT32.dll_SafeArrayDestroy
cmp rdx, rsi
jbe 0x18001c64f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001c64a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c7a0
mov rcx, r8
call fcn.180025b6c
and qword [rbx + 0x10], 0
xor eax, eax
jmp 0x18001c729
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
add rcx, r8
mov ebp, dword [rcx + 0x20]
add rbp, r8
mov r14d, dword [rcx + 0x24]
add r14, r8
mov r15d, dword [rcx + 0x1c]
add r15, r8
xor edx, edx
mov r12d, dword [rcx + 0x18]
lea esi, [rdx + 0xf]
test r12d, r12d
je 0x18001c6c8
mov eax, dword [rbp + rdx*4]
add rax, r8
mov rcx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x18001c69f
mov rcx, qword [rbx]
sub rcx, rax
movzx r9d, byte [rax]
movzx r10d, byte [rax + rcx]
sub r9d, r10d
jne 0x18001c6b8
inc rax
test r10d, r10d
jne 0x18001c6a2
test r9d, r9d
je 0x18001c756
inc edx
cmp edx, r12d
jb 0x18001c68c
mov rdx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x18001c6d4
mov rdx, qword [rbx]
mov rcx, r8
call fcn.18001aac0
mov rbp, rax
mov rcx, rdi
call fcn.1800026d8
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x18001c721
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001c71c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c7a0
mov rcx, r8
call fcn.180025b6c
mov rax, rbp
and qword [rbx + 0x10], 0
mov byte [rbx], 0
mov qword [rbx + 0x18], rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180025b10
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [r14 + rdx*2]
mov ebp, dword [r15 + rax*4]
add rbp, r8
mov rcx, rdi
call fcn.1800026d8
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x18001c721
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001c71c
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x18001c7a0
mov rcx, rax
jmp 0x18001c71c
call fcn.18002d044
int3
Function at 0x18001ed70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001edba
cmp dword [rsp + 0x30], ebx
jne 0x18001edba
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x18001edbc
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180025b10
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180020eb4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov rbp, rcx
and qword [rax + 0x20], 0
and dword [rax + 0x18], 0
lea r8, [rax + 0x18]
lea rdx, [rax + 0x20]
mov rcx, qword [rdi]
call fcn.18000c59c
test al, al
je 0x180020f6e
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x180020f09
mov rax, qword [rsp + 0x78]
mov ecx, ebx
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x180020efd
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9b, byte [rbp + 0x10]
mov r8d, ebx
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rbp + 0x30]
call fcn.18001f200
mov r14, rax
test ebx, ebx
je 0x180020f42
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
xor byte [rdx], 0x55
inc rdx
sub rcx, 1
jne 0x180020f36
mov rcx, qword [rsp + 0x78]
call fcn.180025b6c
test r14, r14
je 0x180020f6e
mov r9b, byte [rbp + 0x11]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x30]
call fcn.18001f2b4
mov qword [rbp + 0x28], rax
test rax, rax
jne 0x180020fa5
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x180020fa1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x180020fa1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x180020fa1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor al, al
jmp 0x180020fda
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x180020fd8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x180020fd8
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov edx, ebx
lock xadd dword [rdi + 0xc], edx
add edx, ebx
jne 0x180020fd8
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1800216f4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea r8, [rax + 8]
mov rcx, qword [rcx + 0x18]
lea rdx, [rax + 0x10]
call fcn.18000c59c
test al, al
je 0x1800217b0
mov edi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
test edi, edi
je 0x18002173e
mov rax, rbx
mov ecx, edi
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x180021732
lea rcx, [rbx + 0x1289]
mov edx, dword [rcx]
add rcx, 4
cmp byte [rcx], 0x4d
jne 0x180021774
cmp byte [rcx + 1], 0x5a
jne 0x180021774
call fcn.180019444
test al, al
je 0x180021774
test edi, edi
je 0x1800217b0
mov rax, rdi
xor byte [rbx], 0x55
inc rbx
sub rax, 1
jne 0x180021766
jmp 0x1800217b0
cmp dword [0x180067c98], 0
je 0x18002178d
cmp byte [rbx + 0x575], 3
jne 0x18002178d
mov byte [rbx + 0x575], 1
mov r8b, byte [rsi + 0x10]
mov edx, edi
mov rcx, rbx
call fcn.18001edd4
test edi, edi
je 0x1800217ae
mov rcx, rdi
xor byte [rbx], 0x55
inc rbx
sub rcx, 1
jne 0x1800217a2
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180022d20
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x50
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [0x18005c298]
mov r14d, 0x68
mov edx, r14d
mov rcx, qword [0x18006aa28]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x180022ed7
mov rdx, rax
mov rcx, qword [0x18006aa28]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180022ed7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x180022ed7
mov rdx, rbx
mov rcx, qword [0x18006aa28]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov ecx, eax
shr rcx, 1
call fcn.180025ba0
mov rbp, rax
xor r10d, r10d
test edi, edi
je 0x180022df0
mov r9d, r10d
mov r8b, byte [r10 + rsi]
sub r8b, 0x41
lea ecx, [r10 + 1]
mov al, byte [rcx + rsi]
sub al, 0x41
shl r8b, 4
or r8b, al
shr r9, 1
mov byte [r9 + rbp], r8b
add r10d, 2
cmp r10d, edi
jb 0x180022dc5
shr edi, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rcx, r14
call fcn.180025b30
mov rbx, rax
mov qword [rsp + 0x30], rax
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.18004ae20
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call fcn.180007d40
mov rbx, rax
mov qword [rsp + 0x30], rax
mov ecx, SafeArrayCopy
call fcn.180025b30
mov rdi, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov esi, 1
mov dword [rax + 8], esi
mov dword [rax + 0xc], esi
lea rax, vtable._MDEZTEFDTZ::ZMMLQIJLZKOT.0
mov qword [rdi], rax
mov qword [rdi + 0x10], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
movdqu xmmword [rsp + 0x20], xmm0
lock add dword [rdi + 8], esi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x20]
call fcn.18000efe4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
je 0x180022ea8
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x180022ed2
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov ecx, ebx
lock xadd dword [rdi + 0xc], ecx
add ecx, ebx
jne 0x180022ed2
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov al, sil
jmp 0x180022ed9
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180025b10
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x180023188
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov qword [0x18006aa28], rcx
cmp edx, 1
jne 0x1800231b7
and qword [rsp + 0x28], 0
lea r8, [0x180023030]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180024ac0
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180024aee
xor eax, eax
jmp 0x180024bd4
cmp qword [rcx + 0x68], 0
je 0x180024aff
call fcn.1800159fc
jmp 0x180024bd4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180024b16
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180024b18
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180024b4a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18004a780
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180024bce
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180024b81
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180024baa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180035fac
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180024bce
cmp rsi, rbx
ja 0x180024b88
test rsi, rsi
je 0x180024bce
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180035fac
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18002c97c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x18002c9b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18003740c
call fcn.180037498
mov eax, dword [rax]
jmp 0x18002ca2e
cmp rdi, qword [rbx + 0x18]
ja 0x18002c9c3
mov qword [rbx + 0x20], rdi
jmp 0x18002ca2c
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x18002c9da
mov rcx, qword [rbx + 0x10]
call fcn.1800390dc
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.180039118
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x18002ca2e
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x18002c9a1
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18002d79c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18002d7d3
call fcn.180037498
mov dword [rax], SafeArrayCopy
call fcn.18002d024
xor eax, eax
jmp 0x18002d861
mov rdx, r9
mov rcx, r8
call fcn.18002d738
mov rbx, rax
test rax, rax
je 0x18002d85e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18002d664]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18002d84b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18003740c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18002d832
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18002d841
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800390dc
jmp 0x18002d85e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18002d85b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18003be7c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18003bec6
call fcn.180037478
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.180037498
mov dword [rax], SafeArrayGetDim
call fcn.18002d024
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180025b10
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18003bed1
lea eax, [rbx + 1]
jmp 0x18003beb3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x18003beb1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18003beb3