joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00413078], 0
je 0x40688e
cmp word [0x00413388], 0xd7b2
jne 0x406823
cmp dword [0x00413390], 0
jbe 0x406823
lea rcx, [0x00413380]
call qword [0x004133a8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, str.Runtime_error_____at_0000000000000000
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x004068c4]
call fcn.00407430
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4068b0
cmp byte [0x0041002a], 0
jne 0x4068b0
xor rcx, rcx
lea rdx, str.Runtime_error_____at_0000000000000000
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x4080d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00417c60]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00417c88], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00417c58], al
cmp byte [0x00417c58], 0
je 0x40816f
lea rcx, [0x00408174]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040818e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00417c40], rax
lea rcx, [0x00408174]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004081ac]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00417c48], rax
lea rcx, [0x00408174]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004081ca]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00417c50], rax
add rsp, 0x28
ret
Function at 0x4083f0
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00406bf0
movzx rax, word [rbp + 0x4e]
cmp word [0x00411468], ax
ja 0x4084d8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00411868]
mov word [rbp + 0x4e], ax
ja 0x4084d8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x4084d7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00411468]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x408491
mov ecx, eax
sub ecx, 1
jmp 0x4084d2
lea rdx, [0x00411468]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x4084b3
mov r8d, eax
add r8d, 1
jmp 0x4084d2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00411470]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00408290
jmp 0x4084d7
cmp ecx, r8d
jae 0x408460
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x4085ba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4085ba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00407710
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00407710
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00407710
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00408614]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00408624]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00407a60
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00406c90
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x408830
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00417c60]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00417c88], ax
jne 0x40889b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00417c8a]
mov r8d, 0x55
call fcn.00407710
lea rcx, [0x00417c60]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4089a7
lea rcx, [0x00417c60]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00406bf0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408960
cmp byte [0x00417c58], 0
je 0x4088f4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.004086c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00406f70
jmp 0x408960
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004083f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00406f70
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x408960
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40893f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004089f4]
call fcn.00407860
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004083f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00407860
lea rcx, [0x00417c60]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00417c88], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00407660
lea rcx, [0x00417c8a]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00417c60]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00406c90
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x409380
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.00406d40
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00407710
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00407930
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004091b0
test al, al
jne 0x40944e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00407710
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00407930
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004091b0
test al, al
jne 0x40944e
mov rcx, qword [rbp + 0x20]
call fcn.00406bf0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00406c90
lea rcx, [rbp + 0x70]
call fcn.00406bf0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4094b0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00406d40
mov rcx, qword [rbp + 0x90]
call fcn.00406d40
nop
mov rcx, qword [rbp + 0x28]
call fcn.00406bf0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00406ff0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x409553
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40958d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x409586
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00407a90
jmp 0x40958d
sub eax, 1
test eax, eax
jne 0x409558
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.004090c0
cmp qword [rbp + 0x68], 0
je 0x4095cb
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00409250
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00406f70
jmp 0x409667
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00408830
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00409250
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00406f70
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x409640
cmp byte [0x00417c58], 0
jne 0x409640
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00408830
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00409250
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00406f70
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x409667
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00409380
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00406f70
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00406c90
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00406c90
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x409ca0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x409cc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x409ce4
cmp eax, 1
jae 0x409ce9
cmp ecx, 5
jbe 0x409cf5
mov dword [0x00413980], 0x7f
jmp 0x409cff
mov dword [0x00413980], 0x409
add rsp, 0x28
ret
Function at 0x409f60
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00409f50
mov ebx, eax
test ebx, ebx
je 0x409fab
cmp dword [0x00411c2c], 0xffffffff
jne 0x409f84
mov ecx, 0xe2
call fcn.00406a90
mov ecx, ebx
call fcn.00409f30
test rax, rax
jne 0x409f9d
mov ecx, 0xe2
call fcn.00406a90
jmp 0x409fab
mov ecx, dword [0x00411c2c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x409fc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00417d34], 0
je 0x409ffb
mov ecx, dword [0x00411c2c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40a00f
call fcn.00409f60
mov ecx, dword [0x00411c2c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40a00f
mov rax, qword [0x00417d68]
jmp 0x40a00f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00411c2c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x40b660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.00407660
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b67e
test eax, 0x10
je 0x40b683
xor rax, rax
jmp 0x40b685
mov al, 1
add rsp, 0x28
ret

Function at 0x40b7f0
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
mov edx, 0xff
call fcn.00407780
mov rax, qword [rbx]
xor rdi, rdi
test rax, rax
je 0x40b81b
mov edi, dword [rax - 4]
mov rcx, rsi
call fcn.00407660
mov r13, rax
mov rcx, qword [rbx]
call fcn.00407660
mov rcx, r13
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jne 0x40b84a
mov rcx, rbx
call fcn.00406bf0
jmp 0x40b858
mov rcx, rbx
mov edx, eax
call fcn.0040bac0
test al, al
je 0x40b80d
nop
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x40b930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.00407660
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x40baf0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.kernel32.dll_GetCommandLineW_1
xor rcx, rcx
movzx rdx, word [rax]
sub dx, 1
cmp dx, 0xffff
je 0x40bb30
cmp dx, 0x20
jb 0x40bb1f
sub dx, 0x21
test dx, dx
jne 0x40bb2a
jmp 0x40bb25
test cl, cl
je 0x40bb30
jmp 0x40bb2a
test cl, cl
sete cl
add rax, 2
jmp 0x40bb00
nop
jmp 0x40bb37
add rax, 2
movzx rcx, word [rax]
cmp cx, 0x3f
ja 0x40bb61
mov edx, 1
movzx rcx, cx
and rcx, 0x7f
shl rdx, cl
mov rcx, qword [0x0040bb7c]
test rdx, rcx
setne cl
jmp 0x40bb64
xor rcx, rcx
test cl, cl
jne 0x40bb33
mov rcx, rbx
mov rdx, rax
call fcn.004076e0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x40bd70
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00417e50]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00404b30
mov dword [0x00417d94], 0xb7e15163
mov ebx, 1
lea rax, [0x00417d94]
movsxd rcx, ebx
lea rdx, [0x00417d90]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x40bda3
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x00417d94]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0040bbb0
mov r13d, eax
lea rax, [0x00417d94]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0040bbb0
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x40bddf
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x40bee0
Capabilities:
Encode data using xor

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov eax, dword [0x00417e40]
sub dword [rbx + 8], eax
mov eax, dword [0x00417e3c]
sub dword [rbx], eax
mov esi, 0x14
mov eax, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov dword [rbx + 0xc], ecx
mov ecx, dword [rbx + 4]
mov dword [rbx + 8], ecx
mov ecx, dword [rbx]
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov eax, dword [rbx + 0xc]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 0xc]
imul ecx, eax
mov edx, 5
call fcn.0040bbb0
mov r13d, eax
mov eax, dword [rbx + 4]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 4]
imul ecx, eax
mov edx, 5
call fcn.0040bbb0
mov edi, eax
lea rax, [0x00417d98]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx + 8]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, edi
call fcn.0040bbd0
xor eax, r13d
mov dword [rbx + 8], eax
lea rax, [0x00417d94]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, r13d
call fcn.0040bbd0
xor eax, edi
mov dword [rbx], eax
sub esi, 1
test esi, esi
jne 0x40bf03
nop
lea rax, [rbx + 0xc]
mov ecx, dword [0x00417d98]
sub dword [rax], ecx
lea rax, [rbx + 4]
mov ecx, dword [0x00417d94]
sub dword [rax], ecx
mov al, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x40c1b0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x108
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], 0
nop
lea rcx, [rbp + 0xe0]
mov edx, 0x18
xor r8, r8
call fcn.00404dd0
lea rcx, [rbp + 0x78]
mov edx, 0x68
xor r8, r8
call fcn.00404dd0
mov dword [rbp + 0xe0], 0x18
mov qword [rbp + 0xe8], 0
mov dword [rbp + 0x78], 0x68
mov dword [rbp + 0xb4], 1
mov word [rbp + 0xb8], 0
mov dword [rbp + 0xf0], 0xffffffff
mov bl, 1
mov rcx, qword [rbp + 0x50]
call fcn.00407660
xor rcx, rcx
mov rdx, rax
lea r8, [rbp + 0xe0]
lea r9, [rbp + 0xe0]
test bl, bl
setne al
movzx rax, al
neg eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40c2c0
lea rcx, [rbp + 0x58]
lea rdx, [0x0040c070]
call fcn.00409bf0
mov rcx, qword [rbp + 0x58]
call fcn.00407660
xor rcx, rcx
mov rdx, rax
lea r8, [0x0040c330]
mov r9d, 0x30
call sub.user32.dll_MessageBoxW
jmp 0x40c2ee
mov rcx, qword [rbp + 0x60]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0x60]
lea rdx, [rbp + 0xfc]
call sub.kernel32.dll_GetExitCodeProcess
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
mov rcx, qword [rbp + 0x60]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x58]
call fcn.00406bf0
mov eax, dword [rbp + 0xfc]
lea rsp, [rbp + 0x108]
pop rbx
pop rbp
ret

Function at 0x40c340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
lea rcx, [0x0040c478]
call fcn.0040be70
call fcn.0040bd70
mov rcx, qword [0x00417ea8]
call sub.kernel32.dll_LockResource
mov qword [0x00417eb0], rax
mov rcx, qword [0x00417d38]
mov rdx, qword [0x00417ea0]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov qword [0x00417ee8], rax
mov rcx, qword [0x00417ee8]
call fcn.004047e0
mov qword [0x00417eb8], rax
mov rax, qword [0x00417eb0]
mov qword [0x00417ec0], rax
mov rax, qword [0x00417eb8]
mov qword [0x00417ec8], rax
mov qword [0x00417ee0], 0
jmp 0x40c418
mov rcx, qword [0x00417ec0]
lea rdx, [0x00417ed0]
mov r8d, 0x10
call fcn.00404b30
lea rcx, [0x00417ed0]
call fcn.0040bee0
lea rcx, [0x00417ed0]
mov rdx, qword [0x00417ec8]
mov r8d, 0x10
call fcn.00404b30
add qword [0x00417ee0], 0x10
add qword [0x00417ec0], 0x10
add qword [0x00417ec8], 0x10
mov rax, qword [0x00417ee8]
sub rax, qword [0x00417ee0]
cmp rax, 0x10
jge 0x40c3c0
call fcn.0040bec0
mov rax, qword [0x00417eb8]
add rax, qword [0x00417ee8]
sub rax, 1
mov qword [0x00417ec0], rax
mov rax, qword [0x00417ec0]
movzx rax, byte [rax]
mov byte [0x00417ef8], al
mov rcx, qword [0x00417ea8]
call sub.kernel32.dll_FreeResource
add rsp, 0x28
ret
Function at 0x14001115e
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140011b60
push rbp
push rdi
mov eax, 0x2938
call fcn.1400110b9
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8c6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x2908], rax
lea rcx, [0x1400240a3]
call fcn.1400113ac
mov dword [rbp + 0x2024], 0
mov dword [rbp + 0x2044], 0
mov dword [rbp + 0x2064], 0
mov qword [rbp + 0x2088], 0
mov qword [rbp + 0x20a8], 0
lea r8, [rbp + 0x2024]
mov edx, 0x2000
lea rcx, [rbp + 0x10]
call fcn.140011181
test eax, eax
jne 0x140011c0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____EnumProcesses_Failed_With_Error_:__d__n
call fcn.1400111bd
xor eax, eax
jmp 0x140011d69
mov eax, dword [rbp + 0x2024]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rbp + 0x2064], eax
mov edx, dword [rbp + 0x2064]
lea rcx, str._i__Number_Of_Processes_Detected_:__d__n
call fcn.1400111bd
mov dword [rbp + 0x22f4], 0
jmp 0x140011c4d
mov eax, dword [rbp + 0x22f4]
inc eax
mov dword [rbp + 0x22f4], eax
mov eax, dword [rbp + 0x2064]
cmp dword [rbp + 0x22f4], eax
jae 0x140011d64
movsxd rax, dword [rbp + 0x22f4]
mov eax, dword [rbp + rax*4 + 0x10]
test rax, rax
je 0x140011d5f
movsxd rax, dword [rbp + 0x22f4]
mov r8d, dword [rbp + rax*4 + 0x10]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x2088], rax
cmp qword [rbp + 0x2088], 0
je 0x140011d5f
lea r9, [rbp + 0x2044]
mov r8d, 8
lea rdx, [rbp + 0x20a8]
mov rcx, qword [rbp + 0x2088]
call fcn.14001106e
test eax, eax
jne 0x140011ce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd rcx, dword [rbp + 0x22f4]
mov r8d, eax
mov edx, dword [rbp + rcx*4 + 0x10]
lea rcx, str.____EnumProcessModules_Failed___At_Pid:__d___With_Error_:__d__n
call fcn.1400111bd
jmp 0x140011d52
mov r9d, 0x104
lea r8, [rbp + 0x20d0]
mov rdx, qword [rbp + 0x20a8]
mov rcx, qword [rbp + 0x2088]
call fcn.1400113e3
test eax, eax
jne 0x140011d2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd rcx, dword [rbp + 0x22f4]
mov r8d, eax
mov edx, dword [rbp + rcx*4 + 0x10]
lea rcx, str.____GetModuleBaseName_Failed___At_Pid:__d___With_Error_:__d__n
call fcn.1400111bd
jmp 0x140011d52
movsxd rax, dword [rbp + 0x22f4]
mov r9d, dword [rbp + rax*4 + 0x10]
lea r8, [rbp + 0x20d0]
mov edx, dword [rbp + 0x22f4]
lea rcx, str.__0.3d__Process___s____Of_Pid_:__d__n
call fcn.14001102d
mov rcx, qword [rbp + 0x2088]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011c3f
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001b010]
call fcn.14001133e
mov rax, rdi
mov rcx, qword [rbp + 0x2908]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0x2918]
pop rdi
pop rbp
ret

Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013710
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]
add rsp, 0x28
ret
Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014a60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014a80
xor al, al
jmp 0x140014b01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014a93
xor al, al
jmp 0x140014b01
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 0x140014abd
xor al, al
jmp 0x140014b01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ad1
xor al, al
jmp 0x140014b01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ae3
xor al, al
jmp 0x140014b01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014aff
xor al, al
jmp 0x140014b01
mov al, 1
add rsp, 0x38
ret
Function at 0x140f5ca18
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5ca22
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5ca4b
pop rbp
sub rbp, 0x33
sub rbp, 0xf5ca18
sub rsp, 0x20
jmp 0x140f5ca6a
mov rax, 0xf5ca18
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff802fbe9
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5ca89
jmp 0x140f5caa0
movabs eax, dword [0xe9e9e9d560620060]
movabs eax, dword [0xe8a1e9e9e8e12868]
add byte [rcx - 0x161ed6d2], ah
jmp 0x16c246ca6