joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f910
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
lea r11, [0x140074a20]
mov rax, qword [rcx + 0x110]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x40f8], ebx
jne 0x14002f9a6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14003b5c0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14002f9b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x110]
lea r9, [0x140074a20]
movss xmm2, dword [rcx + 0x128]
movss xmm3, dword [rcx + 0x12c]
movsxd rcx, dword [rcx + 0x108]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x140033ea0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14008bce0]
mov edi, ecx
cmp byte [rbx + 0x4df5], 0
jne 0x140033f01
cmp byte [rbx + 0x4df6], 0
jne 0x140033f01
movsx r9d, word [rbx + 0x51f0]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140020a60
test dil, 2
je 0x14003403f
jmp 0x140033f9b
movss xmm0, dword [rbx + 0x3a08]
mov eax, dword [rbx + 0x4ac0]
movaps xmm1, xmm0
mulss xmm1, dword [0x14007b500]
mulss xmm0, dword [0x14007b4f4]
addss xmm1, dword [rbx + 0xe0]
addss xmm0, dword [rbx + 0xe4]
test al, 1
jne 0x140033f5c
xor ecx, ecx
movss dword [rbx + 0x4ad0], xmm1
mov qword [rbx + 0x4ad8], rcx
or eax, 1
movss dword [rbx + 0x4ad4], xmm0
mov dword [rbx + 0x4ac4], 1
movss xmm0, dword [rbx + 0x3a64]
lea r8, str.Tooltip__02d
mulss xmm0, dword [0x14007b43c]
lea rcx, [rsp + 0x20]
movsx r9d, word [rbx + 0x51f0]
or eax, 0x40
mov edx, 0x10
mov dword [rbx + 0x4ac0], eax
movss dword [rbx + 0x4b20], xmm0
call fcn.140020a60
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140033ff0
lea r11, [0x140074a20]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140033fd3
cmp byte [r8], r9b
jne 0x140033fd3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140033fc0
not ecx
call fcn.140029400
test rax, rax
je 0x14003403f
cmp byte [rax + 0xca], 0
je 0x14003403f
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x51f0]
movsx r9d, word [rbx + 0x51f0]
call fcn.140020a60
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14002c3f0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006d620
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140039e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5358], 0
lea rbx, [rcx + 0x5360]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140039eb7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140039e6a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14003c8b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140021840
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5358]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5368]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14008bcd1]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140039ebf
mov rcx, rbx
call fcn.140021840
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14003a1e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14008bce0]
xor ebp, ebp
cmp byte [rbx + 0x52a0], bpl
jne 0x14003a2bf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14003a2b8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140020ee0
mov rsi, rax
test rax, rax
je 0x14003a2b8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14003a244
mov rcx, rax
call fcn.14003a410
mov r8, qword [0x14008bce0]
test r8, r8
je 0x14003a2af
movsx rdx, word [r8 + 0x5438]
lea rcx, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14003a2a4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5438], cx
movsx rax, cx
lea rcx, [r8 + 0x543c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x5434]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x52a0], 1
movss xmm0, dword [rbx + 0x52a4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14003a34e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52a4], xmm0
jb 0x14003a34e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14003a341
mov rax, qword [0x14008bce0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52a4], ebp
call fcn.14003a670
lea rdx, [0x14007a4f4]
mov rcx, rdi
mov rsi, rax
call fcn.140020d30
mov rdi, rax
test rax, rax
je 0x14003a348
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14003a348
mov byte [rbx + 0xb4], 1
mov dword [rbx + 0x52a4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a370
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14008bce0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14003a3d3
mov qword [rsp], rbx
lea rbx, [0x140074a20]
nop dword [rax]
cmp r9b, 0x23
jne 0x14003a3b3
cmp byte [r8], r9b
jne 0x14003a3b3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14003a3a0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x52b8]
not eax
mov r8, qword [r10 + 0x52c0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14003a3ff
cmp dword [r8 + 8], eax
je 0x14003a406
add r8, 0x48
cmp r8, rcx
jne 0x14003a3f0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400504c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14008bce0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400506df
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400506df
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14008bce0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140050594
movsx rdx, word [r8 + 0x5438]
lea rax, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140050589
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5438], cx
movsx rax, cx
lea rax, [rax*8 + 0x543c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5430]
test rdi, rdi
je 0x1400505b1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400505b4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14007acd8]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400505f7
mov rsi, qword [r8 + 0x98]
jmp 0x1400505fa
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140050625
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14008bce0]
mov rcx, qword [rax + 0x4bd0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14005069f
inc rbx
cmp rbx, 5
jl 0x140050681
jmp 0x1400506cb
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400506e1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14006d620
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x1400691e0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14006926c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140069240
lea r11, [0x140074a20]
nop
cmp r9b, 0x23
jne 0x140069223
cmp byte [r8], r9b
jne 0x140069223
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140069210
mov rcx, qword [0x14008bce0]
not eax
cmp dword [rcx + 0x4114], eax
jne 0x140069257
mov dword [rcx + 0x4118], eax
cmp dword [rcx + 0x4144], eax
jne 0x1400692c9
mov byte [rcx + 0x4148], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x14008bce0]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x40a0]
movsxd rax, dword [rbx + 0x108]
mov r8, qword [rbx + 0x110]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140020c80
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x40f8], eax
jne 0x1400692c2
mov r8, rdi
mov edx, 0xc
mov ecx, eax
call fcn.14003b5c0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14006e148
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006e192
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006e192
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006e192
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006e192
cmp dword [rcx + 0x84], 0xe
jbe 0x14006e192
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006e194
xor al, al
add rsp, 0x28
ret
Function at 0x140001ffc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x248]
sub rsp, 0x340
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
xor r14d, r14d
mov dword [rsp + 0x30], 0xc8
lea rdx, str.open
mov qword [rsp + 0x38], r14
mov rdi, rcx
call fcn.140002198
test eax, eax
jne 0x140002159
lea rdx, str.edit
mov rcx, rdi
call fcn.140002198
test eax, eax
jne 0x140002159
lea ebx, [rax + 1]
mov rcx, rdi
test rdi, rdi
je 0x140002098
mov eax, r14d
cmp word [rdi], r14w
je 0x140002098
lea rcx, [rcx + 2]
add eax, ebx
cmp word [rcx], r14w
jne 0x14000207d
cmp eax, 0x104
jbe 0x140002098
mov ebx, r14d
jmp 0x14000215e
mov r8d, 0x10c
lea rcx, [rbp + 0x10]
mov rdx, rdi
call fcn.140002b94
mov r8d, 0x10c
lea rdx, [0x1400098c0]
lea rcx, [rbp + 0x10]
call fcn.140002b6c
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x10]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002090
movzx eax, byte [rsp + 0x40]
lea r9, [rsp + 0x34]
cmp dword [rsp + 0x34], ebx
mov rcx, qword [rsp + 0x38]
cmove eax, r14d
xor r8d, r8d
mov byte [rsp + 0x40], al
xor edx, edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002090
lea rdx, str.open
lea rcx, [rsp + 0x40]
call fcn.140002198
test eax, eax
jne 0x14000215e
lea rdx, str.edit
lea rcx, [rsp + 0x40]
call fcn.140002198
test eax, eax
jne 0x14000215e
jmp 0x140002090
mov ebx, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000216e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140006dd0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002804
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor esi, esi
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rsi
mov r9d, 0x20019
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ddeexecApplication
mov ebx, esi
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400028c6
movzx eax, byte [rsp + 0x50]
lea r9, [rsp + 0x34]
cmp dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x38]
cmove eax, esi
xor r8d, r8d
mov byte [rsp + 0x50], al
xor edx, edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400028c6
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140002c10
mov rbx, rax
test rax, rax
jne 0x14000299e
mov rdx, qword [0x14000c1f0]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x208
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000299e
movzx eax, byte [rsp + 0x50]
lea r9, [rsp + 0x34]
cmp dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x40]
cmove eax, esi
xor r8d, r8d
mov byte [rsp + 0x50], al
xor edx, edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000299e
lea rdx, str..exe
lea rcx, [rsp + 0x50]
call fcn.140002d80
test rax, rax
jne 0x14000296d
lea rax, [rsp + 0x50]
mov ecx, esi
cmp word [rsp + 0x50], si
je 0x140002966
lea rax, [rax + 2]
inc ecx
cmp word [rax], si
jne 0x14000295b
mov eax, ecx
lea rax, [rsp + rax*2 + 0x50]
lea rcx, [rbp + 0x158]
cmp rax, rcx
jae 0x14000299e
mov word [rax], si
lea rcx, [rsp + 0x50]
cmp rax, rcx
jbe 0x140002990
sub rax, 2
cmp word [rax], 0x5c
jne 0x14000297c
lea rcx, [rax + 2]
xor edx, edx
call fcn.140002c10
mov rbx, rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400029ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rsi
test rcx, rcx
je 0x1400029c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140006dd0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
xor r14d, r14d
lea rsi, [rcx + 0x10]
mov eax, dword [rsi]
xor edi, edi
mov rbx, rcx
lea r12d, [r14 + 1]
cmp dword [rcx + 0x14], eax
jne 0x1400030d4
mov edx, 0x802
xor ecx, ecx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400030e4
xor edx, edx
mov r8d, 0x802
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx + 0x30]
mov r9, rsi
mov r8d, 0x800
mov rdx, rdi
test rcx, rcx
jne 0x140002f9b
mov rcx, qword [rbx]
and qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400030d7
jmp 0x140002fa9
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400030d7
mov ecx, dword [rsi]
test ecx, ecx
je 0x1400030d7
cmp dword [rbx + 0x20], ebp
jne 0x140002ff1
mov al, byte [rdi]
cmp al, 0xff
jne 0x140002fc4
cmp byte [rdi + 1], 0xfe
je 0x140002fe6
cmp al, 0x3c
jne 0x140002fce
cmp byte [rdi + 1], bpl
je 0x140002fe6
cmp al, 0xfe
jne 0x140002fd8
cmp byte [rdi + 1], 0xff
je 0x140002fe2
test al, al
jne 0x140002fea
cmp byte [rdi + 1], 0x3c
jne 0x140002fea
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x24], r12d
mov ebp, r12d
mov dword [rbx + 0x20], r12d
cmp dword [rbx + 0x24], r14d
je 0x140002ffb
shr ecx, 1
mov dword [rsi], ecx
cmp dword [rbx + 0x28], r14d
je 0x14000302e
mov eax, dword [rsi]
xor r8d, r8d
lea r9d, [rax*2 - 2]
test r9d, r9d
je 0x14000302e
mov cl, byte [r8 + rdi]
mov al, byte [r8 + rdi + 1]
mov byte [r8 + rdi], al
mov byte [r8 + rdi + 1], cl
add r8d, 2
cmp r8d, r9d
jb 0x140003013
cmp dword [rbx + 0x24], r14d
je 0x140003045
mov rcx, qword [rbx + 0x18]
call fcn.140003310
mov qword [rbx + 0x18], rdi
xor edi, edi
jmp 0x1400030c0
mov ecx, dword [0x14000c3f0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14000c2d0], ecx
jle 0x140003095
lea rcx, [0x14000c2d0]
call fcn.140007270
cmp dword [0x14000c2d0], 0xffffffff
jne 0x140003095
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rcx, [0x14000c2d0]
mov dword [0x14000c2cc], eax
call fcn.140007214
mov rax, qword [rbx + 0x18]
mov r8, rdi
mov r9d, dword [rsi]
xor edx, edx
mov ecx, dword [0x14000c2cc]
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsi], eax
test eax, eax
je 0x1400030d7
test ebp, ebp
je 0x1400030cf
cmp dword [rbx + 0x24], r14d
je 0x1400030cf
mov eax, r12d
jmp 0x1400030d1
xor eax, eax
mov dword [rbx + 0x14], eax
mov r14d, r12d
test rdi, rdi
je 0x1400030e4
mov rcx, rdi
call fcn.140003310
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x140003324
Capabilities:
Download url
Parse url
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x4310]
mov eax, 0x4410
call fcn.1400073d0
sub rsp, rax
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0x4300], rax
xor ebx, ebx
mov rdi, rcx
xor edx, edx
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x48]
lea r8d, [rbx + 0x60]
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x1400034ba
cmp word [rdi], bx
je 0x1400034ba
lea r8d, [rbx + 7]
mov rdx, rdi
lea rcx, str.http:__
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400033cc
lea r8d, [rbx + 8]
mov rdx, rdi
lea rcx, str.https:__
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400033cc
lea r8d, [rbx + 6]
mov rdx, rdi
lea rcx, str.ftp:__
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400034ba
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rax], bx
je 0x1400033de
add rax, 2
lea r9, [rbp - 0x50]
mov dword [rsp + 0x20], ebx
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
test eax, eax
je 0x1400034ba
lea rax, [rbp + 0x1c0]
mov word [rbp + 0x1210], bx
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x1210]
mov word [rbp + 0x1c0], bx
mov qword [rbp - 0x78], rax
xor r8d, r8d
lea rax, [rbp + 0x2260]
mov word [rbp + 0x2260], bx
xor edx, edx
mov qword [rbp - 0x68], rax
mov rcx, rdi
mov dword [rsp + 0x40], 0x68
mov dword [rsp + 0x60], 0x825
mov dword [rbp - 0x70], 0x825
mov dword [rbp - 0x60], 0x825
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140003490
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x825
lea r8, [rbp + 0x32b0]
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
je 0x1400034ba
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rbp - 0x50]
xor ecx, ecx
lea rdx, [rbp + 0x32b0]
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1400034ba
lea rcx, [rbp - 0x50]
call fcn.140006548
mov rbx, rax
mov rax, rbx
mov rcx, qword [rbp + 0x4300]
xor rcx, rsp
call fcn.140006dd0
lea r11, [rsp + 0x4410]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret