joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400401f3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400b93f0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400df300]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400e24e0]
xor r11d, r11d
lea rdi, [0x1400c9654]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400b9460
mov rax, 0xfffffffffffffffe
jmp 0x1400b95ad
cmp word [r10 + 6], r11w
jne 0x1400b94cf
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400b948a
test r14, r14
je 0x1400b947b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400b95ad
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400b9498
mov r8b, 2
jmp 0x1400b94b6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400b94a6
mov r8b, 3
jmp 0x1400b94b6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400b95a2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400b94f8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400b95a2
cmp bl, bpl
jb 0x1400b95a2
cmp bl, r8b
jae 0x1400b95a2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400b9525
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400b95a2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400b9507
cmp r9, rbp
jae 0x1400b9551
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400b9454
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400b95a2
cmp edx, 0x110000
jae 0x1400b95a2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400b95a2
test r14, r14
je 0x1400b9590
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140041b0c
jmp 0x1400b95ad
mov rdx, rsi
mov rcx, r10
call fcn.140042174
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140040680
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x14004f564
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14004f5f1
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14004f5f1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004f5f1
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14004f5d8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14004f5d2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14004f5da
add rdx, 0x28
jmp 0x14004f5b7
xor edx, edx
test rdx, rdx
jne 0x14004f5e3
xor al, al
jmp 0x14004f5f7
cmp dword [rdx + 0x24], 0
jge 0x14004f5ed
xor al, al
jmp 0x14004f5f7
mov al, 1
jmp 0x14004f5f7
xor al, al
jmp 0x14004f5f7
add rsp, 0x18
ret
Function at 0x1400407d4
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14005d6f4
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400ca618]
mov ecx, 2
lea r8, [0x1400ca610]
lea rdx, str.FlsGetValue
call fcn.14005d1c4
mov ecx, ebx
test rax, rax
je 0x14005d72e
add rsp, 0x20
pop rbx
jmp qword [0x1400ec020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14004091e
Capabilities:
Query environment variable

Disassembly:
jmp 0x14009ee50
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14009ee80
xor eax, eax
jmp 0x14009ef43
mov rbp, rbx
cmp word [rax], si
je 0x14009eea5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009ee8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009ee88
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400412c4
movsxd r14, eax
test eax, eax
jne 0x14009eee3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009ee79
mov rcx, r14
call fcn.14003f037
mov rdi, rax
test rax, rax
jne 0x14009eefc
xor ecx, ecx
call fcn.14003f172
jmp 0x14009eed8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400412c4
test eax, eax
jne 0x14009ef2d
mov rcx, rdi
call fcn.14003f172
jmp 0x14009ef37
xor ecx, ecx
call fcn.14003f172
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140040928
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14005d644
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400ca5d8]
xor ecx, ecx
lea r8, [0x1400ca5d0]
lea rdx, str.FlsAlloc
call fcn.14005d1c4
test rax, rax
je 0x14005d67d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400ec020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400409a5
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400a7804
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400ce138]
mov rbp, rcx
lea r8, [0x1400ce130]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400a6d24
test rax, rax
je 0x1400a7864
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400ec030]
jmp 0x1400a787e
xor edx, edx
mov rcx, rbp
call fcn.140040293
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400409b4
Capabilities:
Terminate process

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

Function at 0x140040aea
Capabilities:
Parse pe header

Disassembly:
jmp 0x140065ee0
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140065c3c
Function at 0x14004143b
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14005d74c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400ca638]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400ca630]
call fcn.14005d1c4
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14005d78c
call qword [0x1400ec020]
jmp 0x14005d792
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140041c92
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400ae1d4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400401c6
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ae25e
cmp byte [rbp - 0x21], r15b
je 0x1400ae259
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ae294
call fcn.14004205c
test eax, eax
jne 0x1400ae280
cmp byte [rbp - 0x21], r15b
je 0x1400ae278
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ae294
cmp byte [rbp - 0x21], r15b
je 0x1400ae291
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140042241
test eax, eax
jne 0x1400ae334
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400401c6
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ae2d3
cmp byte [rbp - 0x21], r15b
je 0x1400ae308
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ae308
call fcn.14004205c
test eax, eax
jne 0x1400ae2f4
cmp byte [rbp - 0x21], r15b
je 0x1400ae2ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ae308
cmp byte [rbp - 0x21], r15b
je 0x1400ae305
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140042241
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ae334
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ae337
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ae345
mov rcx, rdi
call fcn.14003f172
cmp byte [rbp + 0x3f], r15b
je 0x1400ae354
mov rcx, qword [rbp + 0x27]
call fcn.14003f172
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x40e740
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004464a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00446598]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x40e7c1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00446598]
jmp 0x40e7dd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00446598], r11
mov qword [0x00446538], rax
mov rax, qword [0x00445028]
mov qword [0x00446410], r11
mov qword [0x00446520], rdi
mov dword [0x00446400], 0xc0000409
mov dword [0x00446404], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00445020]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00437288]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00445028]
jne 0x435189
rol rcx, 0x10
test cx, 0xffff
jne 0x435185
ret
ror rcx, 0x10
jmp 0x40e740
Function at 0x40eef0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
sub rsp, 0x1b8
mov rax, qword [0x00445028]
mov qword [rsp + 0x190], rax
mov rax, qword [0x004372a8]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, rcx
lea rcx, [rsp + 0x60]
mov qword [r11 + 0x20], rsi
mov qword [rcx], rax
mov rax, qword [str.z5p6i7ea8p9n0]
mov qword [r11 - 8], rdi
mov qword [rcx + 8], rax
mov eax, dword [0x004372b8]
mov edx, 0x16
mov dword [rcx + 0x10], eax
movzx eax, word [0x004372bc]
mov qword [r11 - 0x10], r12
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x60]
call fcn.004052a0
lea rdx, [rsp + 0x80]
mov r8d, 0x104
mov esi, dword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r12d, r12d
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.0041a900
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x1c8]
sub edi, dword [rax + 0x10]
lea rax, [0x004366a8]
mov qword [rsp + 0x48], r12
sub edi, esi
mov rsi, qword [rsp + 0x1d8]
mov dword [rsp + 0x50], r12d
sub edi, 0x10
test rcx, rcx
mov dword [rsp + 0x58], r12d
mov r12, qword [rsp + 0x1a8]
mov dword [rbp + 0xa8], edi
mov rdi, qword [rsp + 0x1b0]
mov rbp, qword [rsp + 0x1d0]
mov qword [rsp + 0x40], rax
je 0x40f02b
call fcn.00421200
mov rcx, qword [rsp + 0x190]
call fcn.00435170
add rsp, 0x1b8
ret
Function at 0x41a6d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x218
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov rax, qword [0x00445028]
mov qword [rsp + 0x1f0], rax
mov r13d, ecx
lea rcx, [r11 - 0x168]
call fcn.0041a900
add r13d, dword [rax + 0x10]
lea rax, [0x004366a8]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb8]
xor r12d, r12d
mov qword [rsp + 0xb8], r12
mov dword [rsp + 0xc0], r12d
mov dword [rsp + 0xc8], r12d
test rcx, rcx
je 0x41a759
call fcn.00421200
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
sub ebx, r13d
sub ebx, 0x10
lea rcx, [rsp + 0x50]
call fcn.00433ff0
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.00434050
movsxd rbx, ebx
lea rdx, [rbx + rdi + 0x10]
mov r8d, r13d
lea rcx, [rsp + 0x50]
call fcn.00434050
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.00434120
lea r11, [rsp + 0xb0]
mov rax, qword [rbx + rdi]
mov qword [r11], rax
mov rax, qword [rbx + rdi + 8]
mov qword [r11 + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xb0]
lea rax, [rsp + 0xd0]
mov rcx, qword [r11]
cmp rcx, qword [rax]
jne 0x41a885
mov rcx, qword [r11 + 8]
cmp rcx, qword [rax + 8]
je 0x41a88d
sbb eax, eax
sbb eax, 0xffffffff
mov r12d, eax
test r12d, r12d
jne 0x41a899
lea eax, [r12 + 1]
jmp 0x41a89b
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
call fcn.00435170
mov rbx, qword [rsp + 0x220]
mov rbp, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
mov r12, qword [rsp + 0x210]
mov r13, qword [rsp + 0x208]
add rsp, 0x218
ret
Function at 0x41b8e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x00445028]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x108], rbx
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41b926
cmp dword [rsp + 0x50], 2
jne 0x41b926
cmp dword [rsp + 0x44], 6
jae 0x41b938
test rbx, rbx
je 0x41b931
mov dword [rbx], 1
xor eax, eax
jmp 0x41b9d2
mov qword [rsp + 0x110], rsi
xor esi, esi
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x38], rsi
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b9c0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9d, [rsi + 4]
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x14]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41b9b5
mov ecx, dword [rsp + 0x30]
mov edi, esi
test ecx, ecx
sete dil
test rbx, rbx
je 0x41b9b5
test ecx, ecx
setne sil
mov dword [rbx], esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x110]
mov eax, edi
mov rdi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xe0]
call fcn.00435170
add rsp, 0xf8
ret

Function at 0x41bf00
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov eax, dword [0x00446a98]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
test al, 1
mov qword [rsp + 0x68], rdi
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x41bf4a
or eax, 1
mov dword [0x00446a98], eax
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, rax
mov qword [0x00446a90], rax
mov eax, dword [0x00446a98]
jmp 0x41bf51
mov rdx, qword [0x00446a90]
test al, 2
jne 0x41bf84
or eax, 2
lea r9, [0x00436a64]
lea r8, [0x00437acc]
mov dword [0x00446a98], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x2f0]
mov r8, rax
mov qword [0x00446a88], rax
jmp 0x41bf8b
mov r8, qword [0x00446a88]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x328]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, rax
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x420ea0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x420ed7
mov eax, 0xff
jmp 0x421109
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x420f08
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x421109
mov eax, dword [rbx + 0x10]
mov dword [0x00446aec], eax
mov eax, dword [rbx + 4]
mov dword [0x00446af8], eax
mov eax, dword [rbx + 8]
mov dword [0x00446afc], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x00446af0], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x00446aec], 2
je 0x420f56
bts dword [0x00446af0], 0xf
mov eax, dword [0x00446af8]
shl eax, 8
add eax, dword [0x00446afc]
mov dword [0x00446af4], eax
cmp word [0x00400000], 0x5a4d
je 0x420f7e
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x420ffa
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x420f9f
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x420ffa
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x420fdd
cmp ecx, 0x20b
je 0x420fbb
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x420ffa
cmp dword [rax + 0x84], 0xe
ja 0x420fcc
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x420ffa
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
jmp 0x420ffa
cmp dword [rax + 0x74], 0xe
ja 0x420feb
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x420ffa
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x40], ebx
mov ecx, 1
call fcn.004273f0
test eax, eax
jne 0x42102a
cmp dword [0x00446ab8], 2
je 0x421016
call fcn.004261c0
mov ecx, 0x1c
call fcn.00425f90
mov ecx, 0xff
call fcn.00423760
call fcn.00427270
test eax, eax
jne 0x421056
cmp dword [0x00446ab8], 2
je 0x421041
call fcn.004261c0
mov ecx, 0x10
call fcn.00425f90
mov ecx, 0xff
call fcn.00423760
nop
call fcn.00426c20
test eax, eax
jns 0x421069
mov ecx, 0x1b
call fcn.00420e70
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x004488a8], rax
call fcn.00426a30
mov qword [0x00446aa8], rax
call fcn.00426930
test eax, eax
jns 0x421095
mov ecx, 8
call fcn.00420e70
call fcn.004265d0
test eax, eax
jns 0x4210a8
mov ecx, 9
call fcn.00420e70
call fcn.00423810
test eax, eax
je 0x4210b8
mov ecx, eax
call fcn.00420e70
mov r8, qword [0x00446b18]
mov qword [0x00446b20], r8
mov rdx, qword [0x00446b08]
mov ecx, dword [0x00446b00]
call fcn.0040cbc0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x4210e9
mov ecx, eax
call fcn.004239b0
call fcn.004239d0
jmp 0x421107
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x4231f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x40], r12
xor ebx, ebx
test r8, r8
mov qword [rsp + 0x38], r13
mov rbp, r9
mov rsi, r8
mov r13, rcx
mov r12d, edx
jne 0x423232
call fcn.004296e0
mov dword [rax], 0x16
xor eax, eax
jmp 0x4232d0
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x48], rdi
call fcn.0042a930
test rax, rax
mov rdi, rax
je 0x4232b6
mov rcx, rax
call fcn.00426f40
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0x90]
test rcx, rcx
lea r8, [rsp + 0x80]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x00423110]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x4232cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00421200
test ebx, ebx
je 0x4232c9
mov ecx, ebx
call fcn.00429740
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x4254f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
xor ebx, ebx
test rcx, rcx
mov qword [rsp + 0x30], r12
mov rbp, r8
mov rsi, rcx
mov r12d, edx
jne 0x42552c
call fcn.004296e0
mov dword [rax], 0x16
lea rax, [rsi - 1]
jmp 0x4255d0
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x58], rdi
call fcn.0042a930
test rax, rax
mov rdi, rax
je 0x4255ac
mov rcx, rax
call fcn.00426f40
lea r8, [0x00425420]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x425596
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4255ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4255c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00421200
test ebx, ebx
je 0x4255bf
mov ecx, ebx
call fcn.00429740
mov rax, 0xffffffffffffffff
jmp 0x4255cb
mov rax, rbx
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret