joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aae60
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 0x1400aaea2
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 0x1400aaee9
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 0x1400aaf42
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 0x1400aaf00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400aaf83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400be2fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400be2fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400aaf50
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 0x1400ac1d8
Capabilities:
Parse pe header

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

Disassembly:
test rcx, rcx
je 0x140004ac0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140004abf
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004ac5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140004abf
mov eax, 0
jmp 0x140004abf

Function at 0x140005140
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400050f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000f320
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x143884cb0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000f38f
mov rcx, r9
call fcn.14000f1f0
test eax, eax
je 0x14000f38f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000f38d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000f384
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000f38f
add rdx, 0x28
cmp rdx, r9
jne 0x14000f370
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x18003f293
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1800b3fd8
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1800dea78]
xor r11d, r11d
lea rdi, [0x1800c6004]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1800b4048
mov rax, 0xfffffffffffffffe
jmp 0x1800b4195
cmp word [r10 + 6], r11w
jne 0x1800b40b7
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1800b4072
test r14, r14
je 0x1800b4063
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1800b4195
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1800b4080
mov r8b, 2
jmp 0x1800b409e
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1800b408e
mov r8b, 3
jmp 0x1800b409e
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1800b418a
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1800b40e0
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1800b418a
cmp bl, bpl
jb 0x1800b418a
cmp bl, r8b
jae 0x1800b418a
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1800b410d
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1800b418a
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1800b40ef
cmp r9, rbp
jae 0x1800b4139
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1800b403c
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1800b418a
cmp edx, 0x110000
jae 0x1800b418a
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1800b418a
test r14, r14
je 0x1800b4178
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.180040cba
jmp 0x1800b4195
mov rdx, rsi
mov rcx, r10
call fcn.180041386
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18003f775
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x180046830
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x1800468bd
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1800468bd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800468bd
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1800468a4
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18004689e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800468a6
add rdx, 0x28
jmp 0x180046883
xor edx, edx
test rdx, rdx
jne 0x1800468af
xor al, al
jmp 0x1800468c3
cmp dword [rdx + 0x24], 0
jge 0x1800468b9
xor al, al
jmp 0x1800468c3
mov al, 1
jmp 0x1800468c3
xor al, al
jmp 0x1800468c3
add rsp, 0x18
ret
Function at 0x18003f8e7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1800547c4
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800c6fc8]
mov ecx, 2
lea r8, [0x1800c6fc0]
lea rdx, str.FlsGetValue
call fcn.180054294
mov ecx, ebx
test rax, rax
je 0x1800547fe
add rsp, 0x20
pop rbx
jmp qword [0x1800ea020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x18003fa31
Capabilities:
Query environment variable

Disassembly:
jmp 0x18009c8e0
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18009c910
xor eax, eax
jmp 0x18009c9d3
mov rbp, rbx
cmp word [rax], si
je 0x18009c935
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009c91c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009c918
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18004044a
movsxd r14, eax
test eax, eax
jne 0x18009c973
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009c909
mov rcx, r14
call fcn.18003e041
mov rdi, rax
test rax, rax
jne 0x18009c98c
xor ecx, ecx
call fcn.18003e18b
jmp 0x18009c968
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18004044a
test eax, eax
jne 0x18009c9bd
mov rcx, rdi
call fcn.18003e18b
jmp 0x18009c9c7
xor ecx, ecx
call fcn.18003e18b
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18003fa40
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180054714
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800c6f88]
xor ecx, ecx
lea r8, [0x1800c6f80]
lea rdx, str.FlsAlloc
call fcn.180054294
test rax, rax
je 0x18005474d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800ea020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x18003fac2
Capabilities:
Get geographical location

Disassembly:
jmp 0x18009ed48
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1800c8ee8]
mov rbp, rcx
lea r8, [0x1800c8ee0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.18009e268
test rax, rax
je 0x18009eda8
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800ea030]
jmp 0x18009edc2
xor edx, edx
mov rcx, rbp
call fcn.18003f333
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003fad6
Capabilities:
Terminate process

Disassembly:
jmp 0x180045e5c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x18003fc16
Capabilities:
Parse pe header

Disassembly:
jmp 0x180087590
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1800872ec
Function at 0x1800405c6
Capabilities:
Terminate process

Disassembly:
jmp 0x18008d440
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18008d45a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180040cc4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180040db9
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18005481c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1800c6fe8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1800c6fe0]
call fcn.180054294
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x18005485c
call qword [0x1800ea020]
jmp 0x180054862
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180040e5e
Capabilities:
Set environment variable

Disassembly:
jmp 0x1800b0308
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18003f266
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800b0392
cmp byte [rbp - 0x21], r15b
je 0x1800b038d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800b03c8
call fcn.18004125a
test eax, eax
jne 0x1800b03b4
cmp byte [rbp - 0x21], r15b
je 0x1800b03ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800b03c8
cmp byte [rbp - 0x21], r15b
je 0x1800b03c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18004145d
test eax, eax
jne 0x1800b0468
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18003f266
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800b0407
cmp byte [rbp - 0x21], r15b
je 0x1800b043c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800b043c
call fcn.18004125a
test eax, eax
jne 0x1800b0428
cmp byte [rbp - 0x21], r15b
je 0x1800b0421
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800b043c
cmp byte [rbp - 0x21], r15b
je 0x1800b0439
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18004145d
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800b0468
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800b046b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800b0479
mov rcx, rdi
call fcn.18003e18b
cmp byte [rbp + 0x3f], r15b
je 0x1800b0488
mov rcx, qword [rbp + 0x27]
call fcn.18003e18b
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180040f58
Capabilities:
Parse pe header

Disassembly:
jmp 0x180087580
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18008735b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008735b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008735b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008735b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008735b
cmp dword [rcx + 0x84], 0xe
jbe 0x18008735b
cmp dword [rcx + 0xf8], 0
je 0x18008735b
mov ecx, ebx
call fcn.1800874c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180087038
nop
cmp dword [rbp + 0x20], 0
je 0x1800873a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800873e4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800872ec
Function at 0x30001028
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
xor edi, edi
mov dword [rsp + 0x20], edi
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp rax, rdi
mov r12, rax
jne 0x30001073
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, edi
cmovle ebx, eax
jmp 0x30001147
cmp dword [rsp + 0x20], 1
jle 0x3000112c
mov rdx, qword [rax + 8]
lea rcx, str._verb
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
cmp eax, edi
jne 0x3000112c
cmp dword [rsp + 0x20], 4
mov rbp, rdi
jl 0x3000112c
mov rdx, qword [r12 + 0x18]
mov r13, qword [r12 + 0x10]
lea rcx, str._genverb
mov ebx, 3
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
cmp eax, edi
jne 0x300010d6
cmp dword [rsp + 0x20], 6
jne 0x3000112c
mov rbp, qword [r12 + 0x20]
mov ebx, 5
lea eax, [rbx + 1]
cmp eax, dword [rsp + 0x20]
jne 0x3000112c
movsxd rcx, ebx
xor edx, edx
mov rcx, qword [r12 + rcx*8]
call fcn.300036b0
cmp rax, rdi
mov rsi, rax
jne 0x300010fc
mov ebx, 0x80004005
jmp 0x30001131
mov rcx, qword [rax]
lea rdx, [rax + 0x10]
call fcn.30004830
cmp qword [rsi + 0x10], rdi
jne 0x30001115
cmp rbp, rdi
cmovne r13, rbp
mov r9, qword [rsi + 0x10]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
mov r8, r13
call fcn.30007678
mov ebx, eax
jmp 0x30001131
mov ebx, 0x80070057
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp rsi, rdi
je 0x30001147
mov rcx, rsi
call fcn.300034f8
cmp ebx, edi
setl dil
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x30001228
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
test rcx, rcx
jne 0x30001235
xor eax, eax
jmp 0x30001285
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
add rsp, 0x58
ret
Function at 0x30002214
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x3000a228]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
lea rax, [rsp + 0x38]
lea rdx, str.ddeexecApplication
mov r9d, 0x20019
xor r8d, r8d
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rbx, rsi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x300022c5
movzx eax, byte [rsp + 0x50]
cmp dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x38]
cmove eax, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x300022c5
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.300018ac
cmp rax, rsi
mov rbx, rax
jne 0x30002398
mov rdx, qword [0x3000c0e0]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x30002398
movzx eax, byte [rsp + 0x50]
cmp dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x40]
cmove eax, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x30002398
lea rdx, str..exe
lea rcx, [rsp + 0x50]
call fcn.30001758
cmp rax, rsi
jne 0x3000236d
cmp word [rsp + 0x50], si
lea rax, [rsp + 0x50]
mov ecx, esi
je 0x30002366
add rax, 2
add ecx, 1
cmp word [rax], si
jne 0x3000235a
mov eax, ecx
lea rax, [rsp + rax*2 + 0x50]
cmp si, 0x5c
mov word [rax], si
je 0x3000238a
lea rcx, [rsp + 0x50]
cmp rax, rcx
jbe 0x3000238a
sub rax, 2
cmp word [rax], 0x5c
jne 0x30002376
lea rcx, [rax + 2]
xor edx, edx
call fcn.300018ac
mov rbx, rax
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x300023a8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rsi
cmp rcx, rsi
je 0x300023bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.30007ea0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x300023dc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x348
mov rax, qword [0x3000a228]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea rdx, str.open
xor esi, esi
mov rbx, rcx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], 0xc8
call fcn.300019d0
cmp eax, esi
jne 0x3000253a
lea rdx, str.edit
mov rcx, rbx
call fcn.300019d0
cmp eax, esi
jne 0x3000253a
cmp rbx, rsi
mov rcx, rbx
je 0x3000246e
cmp word [rbx], si
mov eax, esi
je 0x3000246e
add rcx, 2
add eax, 1
cmp word [rcx], si
jne 0x30002444
cmp eax, 0x104
jbe 0x3000246e
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x30002467
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x3000254f
lea rcx, [rsp + 0x110]
mov r8d, 0x10c
mov rdx, rbx
call fcn.300017e4
lea rdx, [0x30009b48]
lea rcx, [rsp + 0x110]
mov r8d, 0x10c
call fcn.30001870
lea r11, [rsp + 0x30]
lea rdx, [rsp + 0x110]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x30002457
movzx eax, byte [rsp + 0x40]
cmp dword [rsp + 0x3c], 1
mov rcx, qword [rsp + 0x30]
cmove eax, esi
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x30002457
lea rdx, str.open
lea rcx, [rsp + 0x40]
call fcn.300019d0
cmp eax, esi
jne 0x3000253a
lea rdx, str.edit
lea rcx, [rsp + 0x40]
call fcn.300019d0
cmp eax, esi
je 0x30002457
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x3000254a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.30007ea0
add rsp, 0x348
pop rsi
pop rbx
ret
Function at 0x300030cc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x38
mov eax, dword [rcx + 0x10]
xor ebp, ebp
xor edi, edi
cmp dword [rcx + 0x14], eax
mov rbx, rcx
lea r14d, [rbp + 1]
jne 0x30003242
mov edx, 0x802
xor ecx, ecx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rdi, rax
je 0x30003252
xor edx, edx
mov r8d, 0x802
mov rcx, rax
call sub.MSVCR80.dll_memset
mov rcx, qword [rbx + 0x30]
lea r9, [rbx + 0x10]
test rcx, rcx
mov r8d, 0x800
mov rdx, rdi
jne 0x3000314a
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30003245
jmp 0x30003158
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x30003245
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x30003245
cmp dword [rbx + 0x20], ebp
jne 0x3000318d
cmp byte [rdi], 0xff
jne 0x30003173
cmp byte [rdi + 1], 0xfe
je 0x30003182
cmp byte [rdi], 0xfe
jne 0x30003186
cmp byte [rdi + 1], 0xff
jne 0x30003186
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x24], r14d
mov r12d, r14d
mov dword [rbx + 0x20], r14d
cmp dword [rbx + 0x24], ebp
je 0x30003197
shr eax, 1
mov dword [rbx + 0x10], eax
cmp dword [rbx + 0x28], ebp
je 0x300031c7
mov eax, dword [rbx + 0x10]
lea eax, [rax + rax - 2]
test eax, eax
je 0x300031c7
add eax, 0xffffffff
lea rdx, [rdi + 1]
shr eax, 1
lea r8d, [r14 + rax]
mov cl, byte [rdx - 1]
mov al, byte [rdx]
mov byte [rdx - 1], al
mov byte [rdx], cl
add rdx, 2
sub r8, r14
jne 0x300031b4
cmp dword [rbx + 0x24], ebp
je 0x300031dd
mov rcx, qword [rbx + 0x18]
call fcn.300034e4
mov qword [rbx + 0x18], rdi
xor edi, edi
jmp 0x3000322e
mov eax, dword [0x3000c21c]
test r14b, al
jne 0x30003201
or eax, r14d
mov dword [0x3000c21c], eax
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov dword [0x3000c218], eax
jmp 0x30003207
mov ecx, dword [0x3000c218]
mov rax, qword [rbx + 0x18]
mov r9d, dword [rbx + 0x10]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [rbx + 0x10], eax
je 0x30003245
test r12d, r12d
je 0x3000323d
cmp dword [rbx + 0x24], ebp
je 0x3000323d
mov eax, r14d
jmp 0x3000323f
xor eax, eax
mov dword [rbx + 0x14], eax
mov ebp, r14d
test rdi, rdi
je 0x30003252
mov rcx, rdi
call fcn.300034e4
mov eax, ebp
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret