joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800affd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call fcn.1800d4600
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800af280
mov edx, 0x104
lea rax, [rsp + 0xc0]
mov r9, rdi
lea rcx, [rsp + 0xc0]
mov r8d, edx
sub r9, rax
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1800b0060
movzx eax, byte [r9 + rcx]
test al, al
je 0x1800b0060
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1800b0040
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov rcx, rdx
mov byte [rax], 0
lea rax, [rsp + 0xc0]
nop dword [rax]
cmp byte [rax], 0
je 0x1800b008e
inc rax
sub rcx, 1
jne 0x1800b0080
xor r8d, r8d
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x1800b00ef
lea rcx, [rsp + 0xc0]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x1800b00e1
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, [rsp + 0x40]
sub r9, rcx
test rax, rax
je 0x1800b00e1
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x1800b00e1
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x1800b00c3
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x100
lea rcx, [rsp + 0x1d0]
call fcn.1800d4600
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x1d0]
mov rcx, 0xffffffff80000002
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x1800b01bd
lea rax, [rsp + 0x1d0]
sub rdi, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1800b0173
inc rax
test ecx, ecx
jne 0x1800b0161
test edx, edx
je 0x1800b01bd
lea rcx, [rsp + 0x1d0]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1800b0182
mov dword [rsp + 0x28], eax
lea r8, str.mid64_old
lea rax, [rsp + 0x1d0]
mov r9d, 1
lea rdx, str.SoftwareWow6432NodeComMaster
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea rax, [rsp + 0xc0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800b01c5
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], ebx
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.mid64
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2e0
pop rdi
ret
Function at 0x1800b1810
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov r9, rcx
test edx, edx
je 0x1800b18f4
mov r10d, edx
movzx edx, byte [r9]
lea r9, [r9 + 1]
xor dl, al
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx edx, al
and r8b, 1
cmove edx, ecx
movzx eax, dl
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
movzx r8d, al
and dl, 1
cmove r8d, ecx
movzx eax, r8b
shr al, 1
movzx ecx, al
movzx eax, cl
xor al, 0x8c
and r8b, 1
movzx eax, al
cmove eax, ecx
sub r10, 1
jne 0x1800b1820
ret
Function at 0x1800b33b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov r15, rcx
xor esi, esi
mov dword [rdx], esi
mov qword [rbp - 0x71], rsi
mov dword [rbp - 0x69], esi
mov qword [rbp - 0x61], rsi
mov r9d, 0x201
mov r8, qword [0x180168970]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x71]
call fcn.180044a60
test eax, eax
jne 0x1800b3572
xor edx, edx
lea r8d, [rsi + 0x64]
lea rcx, [rbp - 0x49]
call fcn.1800d4600
mov dword [rsp + 0x30], 0x64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, [0x18012a8bc]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b3572
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x1800b3572
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1800b3498
test cl, 1
jne 0x1800b3572
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x4b], si
je 0x1800b349c
jmp 0x1800b3572
mov word [rbp - 0x49], si
shr ecx, 1
cmp ecx, 0x2d
jne 0x1800b3572
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x1800b35a6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x79], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x79]
call fcn.1800b13e0
mov dword [rsp + 0x34], esi
lea r8, [rsp + 0x34]
lea rdx, [0x18012a8c4]
lea rcx, [rbp + 0xb]
call fcn.1800b3640
mov edx, 0x2a
mov rbx, qword [rbp - 0x79]
mov rcx, rbx
call fcn.1800b1810
movzx ecx, al
cmp dword [rsp + 0x34], ecx
jne 0x1800b3553
lea rcx, [rbp - 0x49]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800b3514
mov r8d, eax
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.180009210
mov r8d, dword [0x180168980]
mov rdx, qword [str.ffffffff]
lea rcx, [rbp - 0x49]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov esi, 1
test eax, eax
jne 0x1800b3551
mov dword [r14], esi
jmp 0x1800b355a
mov rdi, 0xffffffffffffffff
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1800b3572
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1800b3581
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x1800b6ce0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800b6cf3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800b7300
lea rdx, [0x1801629b8]
lea rcx, [rsp + 0x20]
call fcn.1800d4790
int3

Function at 0x1800c2a50
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18017ad98]
xor edx, edx
jmp fcn.1800b6ce0

Function at 0x1800c33e8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18017ad98]
jmp fcn.1800b6ce0

Function at 0x1800cefc4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800cf080]
mov r9, qword [r9 + 8]
jmp fcn.1800bef24

Function at 0x1800cf058
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800cf090]
mov r9, qword [r9 + 8]
jmp fcn.1800bef24
Function at 0x1800d2c10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov r14, rdx
mov rsi, rcx
lea rbp, [rcx + 0x28]
xor edx, edx
mov r8d, 0x20000
mov rcx, rbp
call fcn.1800d4600
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9, [rsi + 0x20028]
mov r8d, 0x20000
mov rdx, rbp
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800d2dee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
call fcn.18007dd60
mov r8, qword [rax]
lea edx, [r13 + 1]
mov rcx, rax
call qword [r8 + 0x10]
cmp al, 1
jne 0x1800d2dd3
movdqa xmm0, xmmword [0x1801106e0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], r13b
lea r8d, [r13 + 0x61]
lea rdx, str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea rcx, [rsp + 0x58]
call fcn.18000a3d0
nop
movdqa xmm0, xmmword [0x1801106e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], r13b
lea r8d, [r13 + 3]
lea rdx, [0x180112978]
lea rcx, [rsp + 0x38]
call fcn.18000a3d0
nop
call fcn.18007dd60
mov rdi, rax
lea r9d, [r13 + 0x58]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.18000dda0
mov rbx, rax
lea rdx, str.RecvData_failed__error_code_:
mov rcx, rax
call fcn.18000f150
mov edx, r15d
mov rcx, rbx
call fcn.18000edd0
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [r8 + 0x38]
nop
lea rcx, [rsp + 0x80]
call fcn.18000f5c0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1800d2d87
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d2d82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d2e41
call fcn.1800a4c5c
movdqa xmm0, xmmword [0x1801106e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1800d2dd3
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d2dce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d2e3b
call fcn.1800a4c5c
mov dword [rsi + 0x18], 6
cmp r15d, 0xe8
jne 0x1800d2dee
mov dword [rsi + 0x18], 7
mov qword [rsi + 0x20], r13
lea rcx, [r14 + 8]
mov rax, qword [rcx]
mov qword [rcx + 8], rax
mov dword [r14 + 0x20], r13d
movsxd r9, dword [rsi + 0x20028]
add r9, rbp
mov rdx, qword [rcx + 8]
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
mov r8, rbp
call fcn.18008f7d0
mov dword [r14 + 0x20], r13d
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800d79f8
nop
call fcn.1800d79f8
nop
int3
Function at 0x1800d2e50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x20], 0
jne 0x1800d2e9b
mov dword [rcx + 0x18], 8
jmp 0x1800d30a2
mov rax, qword [rdx + 0x10]
sub rax, qword [rdx + 8]
movsxd rdi, eax
lea rcx, [rdi + 1]
call fcn.1800a5058
mov r14, rax
xor r15d, r15d
test rax, rax
je 0x1800d2ecd
lea r8, [rdi + 1]
xor edx, edx
mov rcx, rax
call fcn.1800d4600
mov byte [r14], r15b
jmp 0x1800d2ed0
mov r14, r15
mov dword [rsp + 0x160], r15d
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
sub rax, rdx
movsxd r8, eax
mov rcx, r14
call fcn.1800d4190
mov r8, qword [rbx + 0x10]
sub r8, qword [rbx + 8]
inc r8d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x160]
mov rdx, r14
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800d3091
mov dword [rsi + 0x18], 5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.18007dd60
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8 + 0x10]
cmp al, 1
jne 0x1800d307c
movdqa xmm0, xmmword [0x1801106e0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], r15b
mov r8d, 0x61
lea rdx, str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea rcx, [rsp + 0x50]
call fcn.18000a3d0
nop
movdqa xmm0, xmmword [0x1801106e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov r8d, 3
lea rdx, [0x180112978]
lea rcx, [rsp + 0x30]
call fcn.18000a3d0
nop
call fcn.18007dd60
mov rdi, rax
mov r9d, 0x48
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.18000dda0
mov rbx, rax
lea rdx, str.send_failed__error_code_:
mov rcx, rax
call fcn.18000f150
mov edx, ebp
mov rcx, rbx
call fcn.18000edd0
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [r8 + 0x38]
nop
lea rcx, [rsp + 0x78]
call fcn.18000f5c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1800d3030
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d302b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d30cf
call fcn.1800a4c5c
movdqa xmm0, xmmword [0x1801106e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1800d307c
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d3077
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d30c9
call fcn.1800a4c5c
cmp ebp, 0xe8
jne 0x1800d3095
mov dword [rsi + 0x18], 7
mov qword [rsi + 0x20], r15
jmp 0x1800d3095
mov dword [rsi + 0x18], r15d
mov edx, 1
mov rcx, r14
call fcn.1800a4c5c
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1800d79f8
nop
call fcn.1800d79f8
nop
int3
Function at 0x1800e56f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800e56e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800d7d94
or eax, 0xffffffff
jmp 0x1800e56ea
xor eax, eax
add rsp, 0x28
ret
jmp 0x1800e56c8

Function at 0x1800f4994
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800f4834
call fcn.1800d7e04
mov dword [rax], 0x16
call fcn.1800d79d8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800f481c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800f481c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800f4866
lock or dword [rax + 0x14], 0x10
jmp 0x1800f481c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800f4883
mov rcx, qword [rbp + 0x10]
call fcn.1800f6b7c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800f06b0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800f65fc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800f48da
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800f481c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800f4946
mov rcx, qword [rbp + 0x10]
call fcn.1800f06b0
cmp eax, 0xffffffff
je 0x1800f492d
mov rcx, qword [rbp + 0x10]
call fcn.1800f06b0
cmp eax, 0xfffffffe
je 0x1800f492d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800f06b0
movsxd rdi, eax
lea rsi, [0x18017b5f0]
mov rcx, rbx
sar rdi, 6
call fcn.1800f06b0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800f4934
lea rax, [0x180168e20]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800f4946
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800f497c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800f4978
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800f4978
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800f481f
jmp 0x1800f47ec
Function at 0x401820
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rsi
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x401865
mov rcx, rbx
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, rsi
mov rsi, qword [rsp + 0x30]
mov rdx, rbx
mov rbx, qword [rsp + 0x28]
add rsp, 0x38
jmp rdx
lea rcx, str.Resuming_thread_failed:__u_n
call fcn.004017b0
jmp 0x401843

Function at 0x402810
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x1e8
mov r8d, 0x40
mov qword [rsp + 0x1c0], rbp
mov rbp, rdx
lea rdx, [rsp + 0x130]
mov r9, rbp
mov qword [rsp + 0x1a8], rbx
mov qword [rsp + 0x1b0], rsi
mov qword [rsp + 0x1b8], rdi
mov qword [rsp + 0x1c8], r12
mov rbx, rcx
mov qword [rsp + 0x1d0], r13
mov qword [rsp + 0x1d8], r14
mov qword [rsp + 0x1e0], r15
call fcn.00402e10
test eax, eax
je 0x402990
cmp word [rsp + 0x130], 0x5a4d
je 0x4028e0
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b0]
mov rdi, qword [rsp + 0x1b8]
mov rbp, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1c8]
mov r13, qword [rsp + 0x1d0]
mov r14, qword [rsp + 0x1d8]
mov r15, qword [rsp + 0x1e0]
add rsp, 0x1e8
ret
movsxd rax, dword [rsp + 0x16c]
lea rdx, [rsp + 0x20]
mov r8d, 0x108
mov rcx, rbx
add rbp, rax
mov r9, rbp
call fcn.00402e10
test eax, eax
je 0x402990
cmp dword [rsp + 0x20], 0x4550
jne 0x402887
cmp word [rsp + 0x38], 0x20b
nop
jne 0x402887
movzx eax, word [rsp + 0x34]
cmp word [rsp + 0x26], 0
lea r13, [rbp + rax + 0x18]
je 0x4029a0
xor ebp, ebp
lea r12, [rsp + 0x170]
lea r14, str..rsrc
mov r15d, 5
jmp 0x402968
mov rsi, r12
mov rdi, r14
mov rcx, r15
repe cmpsb byte [rsi], byte [rdi]
je 0x4029b2
add ebp, 1
cmp word [rsp + 0x26], bp
jbe 0x4029a0
movzx eax, bp
mov r8d, 0x28
mov rdx, r12
lea rax, [rax + rax*4]
mov rcx, rbx
lea r9, [r13 + rax*8]
call fcn.00402e10
test eax, eax
jne 0x402951
nop dword [rax]
xor eax, eax
jmp 0x402894
mov ecx, 0x490
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x402894
mov eax, dword [rsp + 0x17c]
jmp 0x402894

Function at 0x402a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
mov r8d, 2
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rsi
mov rbx, rdx
mov qword [rsp + 0x30], rdi
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov rsi, rax
jne 0x402ad5
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rdi, rax
je 0x402abf
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov dword [rbx], eax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
jmp rax
Function at 0x403180
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x78
test r8, r8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, r8
mov qword [rsp + 0x70], rdi
mov rsi, rcx
mov rdi, rdx
jne 0x4031b5
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x78
ret
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40322f
mov eax, dword [rsp + 0x44]
cmp eax, 4
je 0x4031f4
cmp eax, 0x40
je 0x4031f4
lea r9, [rsp + 0x5c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x44]
cmp eax, 4
je 0x4031a1
cmp eax, 0x40
je 0x4031a1
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4031a1
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rsi
mov edx, 0x30
call fcn.00403120
nop word cs:[rax + rax]
Function at 0x4039f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov eax, dword [0x004078e0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbp
test eax, eax
jne 0x403a30
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407928]
test rbx, rbx
je 0x403a84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x403a7b
test rbp, rbp
je 0x403a7b
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403a60
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x28]
lea rcx, [0x00407900]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
jmp rax

Function at 0x403cf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 8
cmp word [0x00400000], 0x5a4d
je 0x403d10
xor eax, eax
add rsp, 8
ret
movsxd rdx, dword [0x0040003c]
lea rax, [0x00400000]
lea rax, [rdx + rax]
cmp dword [rax], 0x4550
jne 0x403cff
cmp word [rax + 0x18], 0x20b
jne 0x403cff
movzx r8d, word [rax + 6]
movzx edx, word [rax + 0x14]
test r8d, r8d
je 0x403cff
movzx edx, dx
lea rax, [rax + rdx + 0x18]
xor edx, edx
jmp 0x403d54
add rax, 0x28
test byte [rax + 0x27], 0x20
je 0x403d63
test rcx, rcx
je 0x403d01
sub rcx, 1
add edx, 1
cmp edx, r8d
jb 0x403d50
jmp 0x403cff

Function at 0x403d70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 8
cmp word [0x00400000], 0x5a4d
lea rax, [0x00400000]
je 0x403d90
xor eax, eax
add rsp, 8
ret
movsxd rdx, dword [0x0040003c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x403d86
cmp word [rdx + 0x18], 0x20b
jne 0x403d86
jmp 0x403d88

Function at 0x403e50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rbx
mov rsi, rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbp
call sub.msvcrt.dll_strlen
cmp rax, 8
jbe 0x403e94
xor ebx, ebx
mov rax, rbx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
cmp word [0x00400000], 0x5a4d
jne 0x403e76
movsxd rdx, dword [0x0040003c]
lea rax, [0x00400000]
lea rax, [rdx + rax]
cmp dword [rax], 0x4550
jne 0x403e76
cmp word [rax + 0x18], 0x20b
jne 0x403e76
movzx ebp, word [rax + 6]
movzx edx, word [rax + 0x14]
test ebp, ebp
je 0x403e76
movzx edx, dx
xor edi, edi
lea rbx, [rax + rdx + 0x18]
jmp 0x403ee4
add rbx, 0x28
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x403e78
add edi, 1
cmp edi, ebp
jb 0x403ee0
jmp 0x403e76