joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002470
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400024bc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1400024b3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1400024be
add rax, 0x28
cmp rax, r9
jne 0x1400024a0
xor eax, eax
ret

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002550
mov rdx, qword [0x14001be00]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000253e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000253e
cmp word [rax + 0x18], 0x20b
jne 0x14000253e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002550
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002529
add r12, 0x28
cmp r12, rsi
je 0x140002550
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002520
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x14001be00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002580
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400025d5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002580
add rax, 0x28
cmp rax, r9
jne 0x1400025b8
xor eax, eax
ret

Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001be00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002600
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002608
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002600
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002620
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001be00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002640
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002648
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002640
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002688
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000267f
test rcx, rcx
je 0x140002640
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002670
xor eax, eax
ret
Function at 0x140002690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001be00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400026b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400026b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x14001be00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400026f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400026f8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026f0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400026f0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002734
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002748
add rax, 0x28
cmp r9, rax
jne 0x140002720
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x14001be00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002782
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002790
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002782
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002782
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002782
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400027dd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027f0
add rdx, 0x28
cmp r10, rdx
jne 0x1400027c8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027ff
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000280f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027e6
test ecx, ecx
jg 0x1400027f8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003e80
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [str._x__]
mov rax, qword [rsi]
test rax, rax
je 0x140003f10
cmp qword [rax + 0x30], 0
jne 0x140003f30
lea rbx, [0x14001a078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003ee0
cmp qword [rax + 0x30], 0
jne 0x140003f00
lea rdx, [0x14001a078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003ec2
test rax, rax
jne 0x140003f00
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003ed0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003ea0
test rax, rax
jne 0x140003f30
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003eab
Function at 0x140003f40
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140004052
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000402a
add rax, 1
cmp rax, 0x6b
je 0x140004047
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140004020
cmp edx, 0x6a
je 0x140004047
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000403b
Function at 0x140007b00
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [str._x__]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007bd0
cmp qword [rax + 0x60], 0
jne 0x140007bf0
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007c00
cmp qword [rax + 0x1d8], r12
jne 0x140007c00
test byte [rax + 0x40], 0xc
jne 0x140007c00
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007c00
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007c00
mov rax, qword [rbx]
test rax, rax
je 0x140007c60
cmp qword [rax + 0x60], 0
jne 0x140007c80
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007c90
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007c98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140007b2b
test rax, rax
jne 0x140007bf0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007b36
mov rax, qword [rbx]
test rax, rax
je 0x140007c30
cmp qword [rax + 0x60], 0
jne 0x140007c50
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140007c0f
test rax, rax
jne 0x140007c50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007c1a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140007b9a
test rax, rax
jne 0x140007c80
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007ba5
xor eax, eax
jmp 0x140007c24
mov eax, 0x16
jmp 0x140007c24
Function at 0x140007f10
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140008179
test rdi, rdi
je 0x140007f4a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140007fb7
add ebx, 1
cmp ebx, 1
je 0x1400080c0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140007f85
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400081bf
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140008162
xor edx, edx
test rsi, rsi
je 0x14000802f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140008190
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008120
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400080f0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x1400080d0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140007f85
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000809f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140008075
mov edx, 0xf
cmp eax, 0xe
jg 0x140008075
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140008075
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140008130
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400081bf
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x14000816e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x1400081b0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x14000802f
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x14000817e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140008c00
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008c20
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008c68
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008c14
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008c55

Function at 0x140008c90
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1402078e0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008d48
mov rdx, qword [0x140207820]
lea rcx, [0x140207820]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008d18
cmp rdx, rcx
jne 0x140008cfa
mov qword [rdx], rax
cmp rax, rcx
je 0x140008cff
nop dword [rax]
test rax, rax
je 0x140008d2a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008ce8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008d2a
mov rdx, rax
jmp 0x140008cf6
lea rcx, [0x140207920]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008d66
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008d2a
Function at 0x1407610b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140761237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407610e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407610c7
add dl, dl
jne 0x1407610ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076114e
xor eax, eax
add dl, dl
jne 0x1407610fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140761205
add dl, dl
jne 0x14076110e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076111b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140761128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140761135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140761142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407610d6
mov eax, 1
add dl, dl
jne 0x14076115e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076116b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140761153
sub eax, ebx
mov ebx, 1
jne 0x1407611a4
mov ecx, 1
add dl, dl
jne 0x140761186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140761193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076117b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407610d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407611c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407611cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407611b5
cmp eax, 0x7d00
jae 0x1407611f3
cmp eax, 0x500
jb 0x1407611ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407610d6
cmp eax, 0x7f
ja 0x1407611f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407610d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14076122a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407610d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x407420
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub rsp, 0x28
xor rcx, rcx
call fcn.00739bf8
mov qword [0x009500a0], rax
call fcn.00719050
call fcn.00718f40
call fcn.00719160
lea rax, [section..data]
lea rcx, [0x00414910]
mov qword [rax + 0x30], rcx
lea rcx, section..text
mov qword [rax], rcx
lea rcx, [0x00404354]
mov qword [rax + 8], rcx
lea rcx, [0x00404354]
mov qword [rax + 0x10], rcx
lea rcx, [entry0]
mov qword [rax + 0x18], rcx
lea rcx, [0x0072af20]
mov qword [rax + 0x68], rcx
lea rcx, [0x0072b320]
mov qword [rax + 0x70], rcx
lea rcx, [0x0072b350]
mov qword [rax + 0x78], rcx
lea rcx, [0x0072b900]
mov qword [rax + 0x80], rcx
lea rcx, [0x0096a5a0]
mov qword [rax + 0x50], rcx
mov dword [rax + 0x20], 1
mov rcx, rax
push 0
jmp 0x72c930
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, r9
mov r14d, r8d
mov ebx, edx
mov edi, ecx
call fcn.0072c8d0
test edi, edi
je 0x72acc5
test ebx, ebx
jne 0x72acdc
test edi, edi
jne 0x72acb6
call qword [0x0096b208]
call qword [0x0096b210]
call fcn.0072c8f0
mov ecx, r14d
call fcn.0072c680
jmp 0x72acdc
mov rcx, rsi
call fcn.0072aa70
call fcn.0072c7a0
call qword [0x0096b200]
test ebx, ebx
je 0x72aca6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.0072c8f0
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov eax, dword [rsi + 0x20]
and eax, 1
mov dword [0x0096b260], eax
mov rcx, qword [rsi + 0x50]
call fcn.0071b8c0
mov rcx, qword [rsi + 0x88]
call fcn.0071b8d0
mov dword [0x00999040], 1
lea rdi, [0x00999040]
mov qword [0x00999048], rsi
call fcn.00739b80
mov qword [0x00998fe8], rax
call fcn.00739b40
mov qword [0x00998ff8], rax
mov rcx, qword [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
mov r8, qword [rsi + 0x78]
mov r9, qword [rsi + 0x80]
call fcn.0072aef0
xor edx, edx
mov rcx, rdi
call fcn.0072c6a0
test byte [rsi + 0x20], 1
jne 0x72c9f4
mov ecx, dword [0x0099900c]
mov rdx, qword [0x00999020]
mov r8, qword [0x00999028]
call qword [rsi + 0x30]
xor ecx, ecx
xor edx, edx
mov r9, 0xffffffffffffffff
mov r8d, eax
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
jmp 0x72ac80
mov rax, qword [0x00998ff8]
nop dword [rax + rax]
add rax, 2
movzx ecx, word [rax - 2]
cmp ecx, 9
je 0x72ca00
movzx edx, cx
cmp edx, 0x20
je 0x72ca00
cmp edx, 0x22
jne 0x72ca24
mov cx, word [rax]
mov edx, 0x22
jmp 0x72ca2d
add rax, 0xfffffffffffffffe
mov edx, 0x20
movzx edi, cx
cmp edx, edi
je 0x72ca59
nop word cs:[rax + rax]
test cx, cx
je 0x72ca59
movzx edi, cx
cmp edi, 9
je 0x72ca59
movzx ecx, word [rax + 2]
add rax, 2
cmp edx, ecx
jne 0x72ca40
movzx ecx, cx
lea rdi, [rax + 2]
cmp ecx, 0x22
cmovne rdi, rax
jmp 0x72ca74
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x72ca70
movzx eax, ax
cmp eax, 9
je 0x72ca70
mov rbx, qword [rsi + 0x30]
xor ecx, ecx
call fcn.00739bf8
mov rsi, rax
lea rcx, [rbp - 0x60]
call fcn.00739c28
mov eax, dword [rbp - 0x24]
test al, 1
movzx eax, word [rbp - 0x20]
mov r9d, 0xa
cmovne r9d, eax
xor edx, edx
mov rcx, rsi
mov r8, rdi
call rbx
xor ecx, ecx
xor edx, edx
mov r9, 0xffffffffffffffff
mov r8d, eax
call 0x72ac80
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x40a890
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rdi, rdx
mov rsi, rcx
mov dword [rbp + 4], 0
lea r15, [rdi + 8]
cmp qword [rdi + 0x20], 0xf
mov rcx, qword [rdi + 8]
cmovbe rcx, r15
mov edx, dword [rdi + 0x18]
lea r12, [rbp + 4]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov r8d, 1
xor r9d, r9d
call fcn.0073aca0
test eax, eax
je 0x40a91a
mov ebx, dword [rbp + 4]
test rbx, rbx
je 0x40a937
cmp ebx, 0x1000
jb 0x40a93f
lea rcx, [rbx + 0x27]
call fcn.00715590
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x40a94a
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
jmp 0x40a9d7
xor r13d, r13d
xor r14d, r14d
jmp 0x40a95b
mov rcx, rbx
call fcn.00715590
mov r14, rax
lea r13, [r14 + rbx]
xor edx, edx
mov rcx, r14
mov r8, rbx
call fcn.00719ae0
cmp qword [rdi + 0x20], 0xf
cmova r15, qword [rdi + 8]
mov edx, dword [rdi + 0x18]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov r8d, 1
mov rcx, r15
mov r9, r14
call fcn.0073aca0
test eax, eax
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
je 0x40a9ba
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
jmp 0x40a9d7
test r14, r14
je 0x40a9d7
sub r13, r14
cmp r13, 0x1000
jb 0x40a9cf
mov r14, qword [r14 - 8]
mov rcx, r14
call fcn.00712d50
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x40aa20
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rdi, rdx
mov rsi, rcx
mov dword [rbp + 4], 0
lea r15, [rdi + 8]
cmp qword [rdi + 0x20], 7
mov rcx, qword [rdi + 8]
cmovbe rcx, r15
mov edx, dword [rdi + 0x18]
lea r12, [rbp + 4]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov r8d, 1
xor r9d, r9d
call fcn.0073aca8
test eax, eax
je 0x40aaaa
mov ebx, dword [rbp + 4]
test rbx, rbx
je 0x40aac7
cmp ebx, 0x1000
jb 0x40aacf
lea rcx, [rbx + 0x27]
call fcn.00715590
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x40aada
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
jmp 0x40ab67
xor r13d, r13d
xor r14d, r14d
jmp 0x40aaeb
mov rcx, rbx
call fcn.00715590
mov r14, rax
lea r13, [r14 + rbx]
xor edx, edx
mov rcx, r14
mov r8, rbx
call fcn.00719ae0
cmp qword [rdi + 0x20], 7
cmova r15, qword [rdi + 8]
mov edx, dword [rdi + 0x18]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov r8d, 1
mov rcx, r15
mov r9, r14
call fcn.0073aca8
test eax, eax
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
je 0x40ab4a
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
jmp 0x40ab67
test r14, r14
je 0x40ab67
sub r13, r14
cmp r13, 0x1000
jb 0x40ab5f
mov r14, qword [r14 - 8]
mov rcx, r14
call fcn.00712d50
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x4144f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov al, byte [0x00973110]
test al, al
jne 0x414576
lea rcx, [0x00973110]
call fcn.0072f610
test eax, eax
je 0x414576
xor ecx, ecx
call fcn.0072dcf0
mov dword [0x0097310c], 0xffffffff
mov dword [0x00971d8c], eax
mov ecx, 2
lea rdx, [0x00971d88]
nop dword [rax + rax]
mov esi, eax
shr esi, 0x1e
xor esi, eax
imul eax, esi, 0x6c078965
lea eax, [rcx + rax - 1]
mov dword [rdx + rcx*4], eax
inc rcx
cmp rcx, 0x271
jne 0x414540
mov dword [0x00971d88], 0x270
lea rcx, [0x00973110]
call fcn.0072f660
movabs rax, 0x7fffffff80000000
mov qword [rbp], rax
lea rdx, [0x00971d88]
mov rcx, rbp
mov r8d, 0x80000000
mov r9d, 0x7fffffff
call fcn.00423150
nop
add rsp, 0x28
pop rsi
pop rbp
ret