joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011b0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140006748]
lea rdx, str.InitConverter32
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.UninitConverter
mov qword [0x140006730], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.IsFormatCorrect32
mov qword [0x140006738], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.RegisterApp
mov qword [0x140006710], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.ForeignToRtf32
mov qword [0x140006720], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.RtfToForeign32
mov qword [0x140006700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.SetAppVer
mov qword [0x140006708], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140006748]
lea rdx, str.BiffToMetro
mov qword [0x140006718], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140006730], 0
mov qword [0x140006728], rax
je 0x1400012d2
cmp qword [0x140006738], 0
je 0x1400012d2
cmp qword [0x140006710], 0
je 0x1400012d2
cmp qword [0x140006720], 0
je 0x1400012d2
cmp qword [0x140006700], 0
je 0x1400012d2
cmp qword [0x140006708], 0
je 0x1400012d2
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002480
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edx, edx
mov r8d, 0x404
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400021c0
mov ecx, dword [rsp + 0x20]
test cl, 6
jne 0x1400024da
and ecx, 1
call fcn.140001ec0
jmp 0x14000261a
mov edi, 0xffffffff
xor edx, edx
mov r8d, 0x1000
lea rcx, str.wordcnv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14000253e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000253e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000253e
xor r8d, r8d
xor edx, edx
lea rcx, str.wordcnv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
mov qword [0x140006748], rbx
test rbx, rbx
je 0x1400025e1
call fcn.1400011b0
test eax, eax
je 0x1400025e1
cmp qword [0x140006728], 0
je 0x1400025e1
test byte [rsp + 0x20], 8
lea rax, str.MSWRINGER
lea rdx, str.MSWORD
cmovne rdx, rax
xor ecx, ecx
mov rax, qword [0x140006730]
call qword [0x1400042b0]
mov dword [0x140006764], eax
cmp eax, 1
jne 0x1400025e1
mov rax, qword [0x140006718]
test rax, rax
je 0x1400025ad
mov ecx, 0xc
call qword [0x1400042b0]
test byte [rsp + 0x20], 2
lea rax, str.MEWord12
lea r8, str.Word12
cmovne r8, rax
lea rdx, [rsp + 0x224]
lea rcx, [rsp + 0x24]
mov rax, qword [0x140006728]
call qword [0x1400042b0]
movsx edi, ax
cmp dword [0x140006764], 0
je 0x1400025f7
mov rax, qword [0x140006738]
call qword [0x1400042b0]
mov rcx, qword [0x140006748]
test rcx, rcx
je 0x140002609
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [0x140006764], eax
mov qword [0x140006748], rax
mov eax, edi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400029d0
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret

Function at 0x1400031c4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140003a2c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140003a2c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140003a2c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140003a20
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140003a3e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140003a0e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140003a2e
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012ea0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014210
xor al, al
jmp 0x140014291
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014223
xor al, al
jmp 0x140014291
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001424d
xor al, al
jmp 0x140014291
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014261
xor al, al
jmp 0x140014291
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014273
xor al, al
jmp 0x140014291
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001428f
xor al, al
jmp 0x140014291
mov al, 1
add rsp, 0x38
ret
Function at 0x1400120d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001139d
movzx eax, al
test eax, eax
jne 0x1400120f0
mov ecx, 7
call fcn.14001131b
nop
mov byte [rsp + 0x20], 0
call fcn.14001132f
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012114
mov ecx, 7
call fcn.14001131b
nop
jmp 0x14001216c
cmp dword [0x14001d868], 0
jne 0x140012167
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119a
test eax, eax
je 0x140012148
mov eax, 0xff
jmp 0x140012271
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011325
mov dword [0x14001d868], 2
jmp 0x14001216c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011302
call fcn.140011299
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400121c9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400121c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112cb
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400121fd
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400121fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001135c
nop
call fcn.140012320
mov dword [rsp + 0x28], eax
call fcn.140011271
movzx eax, al
test eax, eax
jne 0x14001221c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001222b
call fcn.140011366
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012271
add rsp, 0x68
ret
Function at 0x180001e30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov dword [rsp + 0x2c], ecx
mov eax, dword [rsp + 0x2c]
and eax, 0xffffffff
mov dword [0x18007db20], eax
mov dword [0x18007cd08], 1
cmp dword [0x18007cd08], 0x270
jge 0x180001f11
mov ecx, dword [0x18007cd08]
sub ecx, 0x6868e199
call fcn.1800253e0
add eax, 0x6868e199
cdqe
lea rcx, [0x18007db20]
mov esi, dword [rcx + rax*4]
mov eax, dword [0x18007cd08]
sub eax, 1
cdqe
lea rcx, [0x18007db20]
mov edi, dword [rcx + rax*4]
shr edi, 0x1e
mov ecx, esi
call fcn.180011790
mov ebx, edi
and ebx, eax
mov ecx, edi
call fcn.180011790
and esi, eax
or ebx, esi
imul eax, ebx, 0x6c078965
add eax, dword [0x18007cd08]
movsxd rcx, dword [0x18007cd08]
lea rdx, [0x18007db20]
mov dword [rdx + rcx*4], eax
movsxd rax, dword [0x18007cd08]
lea rcx, [0x18007db20]
mov ebx, dword [rcx + rax*4]
mov edx, 0xffffffff
xor edx, 0xffffffff
mov ecx, ebx
xor ecx, edx
and ecx, ebx
lea rdx, [0x18007db20]
mov dword [rdx + rax*4], ecx
mov ecx, dword [0x18007cd08]
call fcn.18004d5c0
mov dword [0x18007cd08], eax
jmp 0x180001e52
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x180026480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x78], rcx
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x88]
call fcn.18004f320
mov rax, qword [rsp + 0x28]
cmp rax, qword [rsp + 0x58]
jae 0x180026584
lea rcx, [rsp + 0xa0]
call fcn.180050230
mov r8, qword [rsp + 0x58]
sub r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x80]
add rdx, qword [rsp + 0x28]
lea r9, [rsp + 0xa0]
mov rcx, rsi
call fcn.180023b20
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
movabs rcx, 0x8a6786d9a5863d3
call fcn.18003cf50
mov rcx, rax
call fcn.18001f6a0
mov rdi, rax
mov rcx, rdi
call fcn.18005c8d0
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.180050e40
lea rcx, [rsp + 0x68]
call fcn.18004ec10
lea rdx, [rsp + 0xa0]
mov rcx, rax
call fcn.1800502b0
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x68]
call fcn.180058b10
lea rcx, [rsp + 0x68]
call fcn.180052a10
lea rcx, [rsp + 0xa0]
call fcn.1800501f0
jmp 0x1800264b6
call fcn.180050570
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.180031930
mov dword [rsp + 0x40], eax
cmp eax, 0
jge 0x1800265b7
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 1
jmp 0x180026694
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.18004ee80
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call fcn.180051b80
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x60]
call fcn.18004f410
test al, 1
jne 0x1800265fa
jmp 0x180026683
lea rcx, [rsp + 0x30]
call fcn.18004ec10
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.18004ec10
add rax, 0x18
mov rcx, rax
call fcn.180052790
test al, 1
jne 0x180026625
jmp 0x180026637
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x24], 1
jmp 0x180026694
mov rcx, qword [rsp + 0x48]
call fcn.18004ec10
add rax, 0x18
mov rcx, rax
xor edx, edx
call fcn.180058850
mov eax, dword [rax + 1]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x8080808
je 0x180026672
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x24], 1
jmp 0x180026694
jmp 0x180026674
lea rcx, [rsp + 0x30]
call fcn.18004f680
jmp 0x1800265e2
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x88]
call fcn.18005c750
mov eax, dword [rsp + 0x20]
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x1800266b0
Capabilities:
Set file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0x4b8
and dl, 1
mov byte [rsp + 0x2f], dl
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
lea rcx, [0x18006c495]
lea rdx, [rsp + 0x44]
call fcn.18002af60
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.18003ef20
test al, 1
jne 0x1800266fa
jmp 0x180026823
lea rsi, [rsp + 0x60]
xor ecx, ecx
mov edx, 0x3c81c163
call fcn.180044f80
lea rdx, [rsp + 0x268]
mov rcx, rsi
call rax
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x180026823
jmp 0x18002672f
lea rcx, [rsp + 0x268]
add rcx, 0x2c
call fcn.180042b80
test al, 1
jne 0x1800267e4
lea r8, [rsp + 0x268]
add r8, 0x2c
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.18003ef20
test al, 1
jne 0x180026769
jmp 0x1800267e4
mov eax, dword [rsp + 0x268]
and eax, 0x10
cmp eax, 0
je 0x180026786
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.1800266b0
jmp 0x1800267e2
mov al, byte [rsp + 0x2f]
mov byte [rsp + 0x2e], 0
test al, 1
je 0x1800267b5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.18005b5e0
mov byte [rsp + 0x2e], 1
lea rcx, [rsp + 0x48]
call fcn.180020bc0
mov bl, al
jmp 0x1800267c1
lea rcx, [rsp + 0x60]
call fcn.180041630
mov bl, al
xor bl, 0xff
test byte [rsp + 0x2e], 1
jne 0x1800267cd
jmp 0x1800267d7
lea rcx, [rsp + 0x48]
call fcn.1800501f0
test bl, 1
jne 0x1800267de
jmp 0x1800267e0
jmp 0x1800267e0
jmp 0x1800267e2
jmp 0x1800267e4
jmp 0x1800267e6
mov rsi, qword [rsp + 0x38]
xor ecx, ecx
mov edx, 0x3f4bf9a3
call fcn.180044f80
lea rdx, [rsp + 0x268]
mov rcx, rsi
call rax
cmp eax, 0
jne 0x18002672f
mov rsi, qword [rsp + 0x38]
xor ecx, ecx
mov edx, 0x39bac59d
call fcn.180044f80
mov rcx, rsi
call rax
mov rsi, qword [rsp + 0x30]
mov ecx, 0x9a58636b
call fcn.18002ced0
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rsi, qword [rsp + 0x30]
mov ecx, 0xaf5e74b8
call fcn.18002ced0
xor ecx, ecx
mov edx, eax
call fcn.180044f80
mov rcx, rsi
call rax
cmp eax, 0
setne al
and al, 1
movzx eax, al
add rsp, 0x4b8
pop rbx
pop rsi
ret
Function at 0x180029750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x50
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x48], rcx
cmp qword [rsp + 0x38], 0
jne 0x180029770
jmp 0x180029893
mov rax, qword [rsp + 0x38]
mov al, byte [rax + 0x100]
mov byte [rsp + 0x29], al
mov rax, qword [rsp + 0x38]
mov al, byte [rax + 0x101]
mov byte [rsp + 0x2a], al
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x44]
jae 0x180029875
movzx esi, byte [rsp + 0x29]
mov ecx, 0x9a5863ea
call fcn.18002ced0
add esi, eax
and esi, 0xff
mov byte [rsp + 0x29], sil
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x29]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0x2a]
add eax, ecx
and eax, 0xff
mov byte [rsp + 0x2a], al
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x29]
mov al, byte [rax + rcx]
mov byte [rsp + 0x2b], al
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x2a]
mov al, byte [rax + rcx]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x29]
mov byte [rcx + rdx], al
mov al, byte [rsp + 0x2b]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x2a]
mov byte [rcx + rdx], al
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x29]
movzx ecx, byte [rax + rcx]
mov rax, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x2a]
movzx eax, byte [rax + rdx]
add ecx, eax
call fcn.180039c00
cdqe
movzx eax, byte [rsi + rax]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x2c]
movzx esi, byte [rcx + rdx]
xor esi, eax
mov byte [rcx + rdx], sil
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x1800297a0
mov al, byte [rsp + 0x29]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 0x100], al
mov al, byte [rsp + 0x2a]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 0x101], al
add rsp, 0x50
pop rsi
ret

Function at 0x180033710
Capabilities:
Generate random numbers using a mersenne twister
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x30
mov dword [0x18007cd08], 0
movabs rcx, 0x8a6786d9a586a2b
call fcn.18003cf50
lea rcx, [0x18007db20]
mov rdx, rax
call fcn.1800196e0
lea rcx, [0x18007cd50]
mov edx, 0x400
call fcn.1800196e0
mov dword [0x18007e60c], 0
mov dword [0x18007b540], 0
mov dword [0x18007b544], 0x9908b0df
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0x100
jge 0x180033804
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x2c], 8
cmp dword [rsp + 0x2c], 0
jle 0x1800337e1
mov eax, dword [rsp + 0x24]
and eax, 1
cmp eax, 0
je 0x1800337c7
mov esi, dword [rsp + 0x24]
mov ecx, 0x9a5863ea
call fcn.18002ced0
mov ecx, eax
shr esi, cl
xor esi, 0xedb88320
mov dword [rsp + 0x24], esi
jmp 0x1800337d2
mov eax, dword [rsp + 0x24]
shr eax, 1
mov dword [rsp + 0x24], eax
jmp 0x1800337d4
mov eax, dword [rsp + 0x2c]
add eax, 0xffffffff
mov dword [rsp + 0x2c], eax
jmp 0x180033796
mov eax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x28]
lea rdx, [0x18007cd50]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
jmp 0x18003377c
add rsp, 0x30
pop rsi
ret
Function at 0x180041bb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x48
mov ecx, 0xae4633b8
call fcn.18002ced0
xor ecx, ecx
mov edx, eax
call fcn.180044f80
xor ecx, ecx
call rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180041c23
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180041c21
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x28]
add rax, rcx
mov qword [rsp + 0x40], rax
call qword [rsp + 0x40]
mov dword [rsp + 0x2c], eax
jmp 0x180041c2b
jmp 0x180041c23
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
add rsp, 0x48
ret

Function at 0x18004a9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x44], 0xffffffff
mov rax, qword [rsp + 0xb0]
mov qword [rax], 0
mov ecx, 0x9a5863ea
call fcn.18002ced0
mov dword [rsp + 0x40], eax
mov rcx, 0xffffffffffffffff
call fcn.180031cd0
test al, 1
jne 0x18004aa1a
jmp 0x18004aa38
mov esi, dword [rsp + 0x40]
mov edi, esi
and edi, 0x100
mov ecx, 0x9a5862eb
call fcn.18002ced0
xor esi, eax
or edi, esi
mov dword [rsp + 0x40], edi
mov esi, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x48]
mov ecx, 9
mov edx, 0x3f851603
call fcn.180044f80
lea r10, [rsp + 0x48]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, esi
mov qword [rsp + 0x20], r10
call rax
cmp eax, 0
jne 0x18004ab71
mov dword [rsp + 0x3c], 0
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov ecx, 9
mov edx, 0x38a7f563
call fcn.180044f80
lea r10, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rsi
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], r10
call rax
cmp eax, 0
jne 0x18004ab48
cmp dword [rsp + 0x3c], 0
jne 0x18004aad7
mov dword [rsp + 0x44], 0
jmp 0x18004ab46
mov ecx, dword [rsp + 0x3c]
call fcn.180019bc0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18004ab44
mov rax, qword [rsp + 0x50]
mov r9, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
lea rbx, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0
jne 0x18004ab38
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x44], eax
jmp 0x18004ab42
mov rcx, qword [rsp + 0x50]
call fcn.1800345e0
jmp 0x18004ab44
jmp 0x18004ab46
jmp 0x18004ab48
mov rsi, qword [rsp + 0x48]
mov ecx, 0x9a5863e2
call fcn.18002ced0
mov edi, eax
mov ecx, 0xa274d42a
call fcn.18002ced0
mov ecx, edi
mov edx, eax
call fcn.180044f80
mov rcx, rsi
call rax
mov eax, dword [rsp + 0x44]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x18004dfd0
Capabilities:
Check for software breakpoints

Disassembly:
sub rsp, 0x18
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
cmp eax, 0
je 0x18004e012
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
cmp eax, 0x90
je 0x18004e012
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
cmp eax, 0xcc
je 0x18004e012
mov dword [rsp + 4], 0
jmp 0x18004e059
mov dword [rsp], 1
mov eax, dword [rsp]
cmp eax, dword [rsp + 0x14]
jae 0x18004e051
mov rax, qword [rsp + 8]
mov ecx, dword [rsp]
movzx eax, byte [rax + rcx]
mov rcx, qword [rsp + 8]
movzx ecx, byte [rcx]
cmp eax, ecx
je 0x18004e044
mov dword [rsp + 4], 0
jmp 0x18004e059
jmp 0x18004e046
mov eax, dword [rsp]
add eax, 1
mov dword [rsp], eax
jmp 0x18004e019
mov dword [rsp + 4], 1
mov eax, dword [rsp + 4]
add rsp, 0x18
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14008fe60]
mov rdi, qword [sym.imp.kernel32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x14008fe70]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140095008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14008fdd0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14003b6f0
mov rcx, qword [0x14008fef0]
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14008fe50]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14003b500
mov ebx, dword [0x140095028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140095020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140095020], rbp
call fcn.14003b300
mov rax, qword [0x14008fde0]
mov r8, qword [0x140095018]
mov ecx, dword [0x140095028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140095020]
call fcn.1400027c0
mov ecx, dword [0x14009500c]
mov dword [0x140095010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140095008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14008fe70]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.14003aff0
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x14008fe90]
mov rcx, qword [0x14008fe80]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140095010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14008feb0]
mov rcx, qword [0x14008fea0]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x14008fe00]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret