joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140077a80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140077b4a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.140004720
xorps xmm15, xmm15
mov r14, qword [0x1401d9a40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x140077b2f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x1400b1080]
xor ebx, ebx
mov rcx, rdx
call fcn.140050320
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.1400781c0
inc rbx
cmp rcx, rbx
jae 0x140077b1e
mov edi, 1
lea rsi, [0x1400b1080]
call fcn.1400503e0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x1400d7f78]
lea rsi, [0x1400d78e8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140068be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140077a80
Function at 0x14008b9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14008bc15
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x70], rax
xor ecx, ecx
xor edx, edx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x14008ba20
dec rbx
mov r10, rbx
neg r10
sar r10, 0x3f
and r10d, 1
add rax, r10
mov rcx, r9
nop dword [rax + rax]
test rbx, rbx
je 0x14008bbfa
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x46], r8b
mov qword [rsp + 0x50], rbx
movzx r9d, byte [rax]
mov byte [rsp + 0x47], r9b
cmp r9b, 0x20
jbe 0x14008bb56
cmp r9b, 0x22
je 0x14008ba62
cmp r9b, 0x5c
jne 0x14008bb6b
lea r9, [rcx + 1]
nop
jmp 0x14008ba04
mov qword [rsp + 0x48], rcx
mov r8, rcx
shr rcx, 0x3f
lea r9, [rcx + r8]
sar r9, 1
mov rax, rdi
mov rbx, rsi
mov rcx, rdx
mov rdi, r9
call fcn.14008b940
mov rdx, qword [rsp + 0x48]
bt edx, 0
jb 0x14008bb0a
movzx edx, byte [rsp + 0x46]
test dl, dl
je 0x14008bafb
mov r8, qword [rsp + 0x50]
nop
cmp r8, 1
jle 0x14008baf1
mov r9, qword [rsp + 0x58]
cmp byte [r9 + 1], 0x22
jne 0x14008bae9
inc rbx
cmp rcx, rbx
jae 0x14008bada
mov edi, 1
lea rsi, [0x1400b1000]
call fcn.1400503e0
movzx edx, byte [rsp + 0x46]
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov byte [rbx + rax - 1], 0x22
lea rsi, [r8 - 1]
lea r8, [r9 + 1]
jmp 0x14008bb05
mov rsi, r8
mov r8, r9
jmp 0x14008bb05
mov rsi, r8
mov r8, qword [rsp + 0x58]
jmp 0x14008bb05
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
xor edx, 1
jmp 0x14008bb39
inc rbx
cmp rcx, rbx
jae 0x14008bb25
mov edi, 1
lea rsi, [0x1400b1000]
nop
call fcn.1400503e0
mov byte [rbx + rax - 1], 0x22
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
movzx edx, byte [rsp + 0x46]
xor r9d, r9d
mov rdi, rax
mov rax, r8
mov r8d, edx
mov rdx, rcx
mov r10, rbx
mov rbx, rsi
mov rsi, r10
jmp 0x14008ba04
cmp r9b, 9
je 0x14008bb66
nop dword [rax]
cmp r9b, 0x20
jne 0x14008bb6b
test r8b, r8b
je 0x14008bbc5
mov rax, rdi
mov rbx, rsi
mov rdi, rcx
mov rcx, rdx
call fcn.14008b940
inc rbx
nop
cmp rcx, rbx
jae 0x14008bb96
mov edi, 1
lea rsi, [0x1400b1000]
call fcn.1400503e0
movzx r10d, byte [rsp + 0x47]
mov byte [rbx + rax - 1], r10b
mov rdx, rcx
mov rsi, rbx
xor r9d, r9d
mov rdi, rax
movzx r8d, byte [rsp + 0x46]
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
nop dword [rax]
jmp 0x14008ba04
mov rax, rdi
mov rbx, rsi
mov rdi, rcx
mov rcx, rdx
call fcn.14008b940
mov rsi, qword [rsp + 0x50]
dec rsi
mov rdx, rsi
neg rdx
sar rdx, 0x3f
and edx, 1
mov r8, qword [rsp + 0x58]
lea rdi, [rdx + r8]
add rsp, 0x60
pop rbp
ret
mov rax, rdi
mov rbx, rsi
mov rdi, rcx
mov rcx, rdx
call fcn.14008b940
xor edi, edi
xor esi, esi
add rsp, 0x60
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.140068be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14008b9e0

Function at 0x1400935c0
Capabilities:
Hash data using fnv

Disassembly:
movzx ecx, bl
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
ret

Function at 0x1400935e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
xor edx, edx
jmp 0x140093601
movzx esi, byte [rbx + rdx]
xor rax, rsi
inc rdx
movabs rsi, 0x100000001b3
imul rax, rsi
cmp rcx, rdx
jg 0x1400935e9
ret
Function at 0x140093620
Capabilities:
Hash data using fnv

Disassembly:
xor ecx, ecx
jmp 0x140093640
movzx edx, bl
xor rax, rdx
inc rcx
shr rbx, 8
movabs rdx, 0x100000001b3
imul rax, rdx
nop
cmp rcx, 8
jl 0x140093624
ret

Function at 0x140093660
Capabilities:
Hash data using fnv

Disassembly:
xor ecx, ecx
jmp 0x140093680
movzx edx, bl
xor rax, rdx
inc rcx
shr ebx, 8
movabs rdx, 0x100000001b3
imul rax, rdx
nop
cmp rcx, 4
jl 0x140093664
ret

Function at 0x140095520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400955f2
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
lea rcx, [rbx + 1]
nop dword [rax + rax]
test rcx, rcx
jle 0x1400955de
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rcx
nop dword [rax]
call fcn.1400956c0
xorps xmm15, xmm15
mov r14, qword [0x1401d9a40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
cmp rbx, rcx
cmovl rcx, rbx
mov rsi, qword [rsp + 0x58]
cmp rsi, rdx
je 0x1400955d4
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdx
mov rax, rdx
mov rbx, rsi
nop dword [rax + rax]
call fcn.14006b720
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov byte [rdx + rbx], 0
add rsp, 0x48
pop rbp
ret
lea rax, [0x1400b0f80]
lea rbx, [0x1400d7a20]
call fcn.14003b960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop dword [rax]
call fcn.140068be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140095520

Function at 0x14009afc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14009c0a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14009c0a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14009b030
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401ddf54]
mov rbx, rcx
test esi, esi
jle 0x14009b160
mov rax, qword [0x1401ddf58]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009b07b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009b105
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009b060
mov rcx, rbx
call fcn.14009baa0
mov rdi, rax
test rax, rax
je 0x14009b182
mov rax, qword [0x1401ddf58]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14009bbe0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401ddf58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009b167
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009b0fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009b110
add dword [0x1401ddf54], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401ddf58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009b0fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009afc0
nop dword [rax]
xor esi, esi
jmp 0x14009b088
mov rax, qword [0x1401ddf58]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009afc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14009afc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009b710
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401ddfc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401ddfa0]
test rbx, rbx
je 0x14009b76c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14009b763
test eax, eax
jne 0x14009b763
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009b748
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009baa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14014a150]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009bac0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009bac8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009bac0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009bb1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009bb14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009bac0
add rax, 0x28
cmp rax, r9
jne 0x14009bb00
xor eax, eax
ret

Function at 0x14009bb20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14014a150]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009bb3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009bb48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009bb3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14009bbe0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14014a150]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009bbff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009bc08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400110e1
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001b340
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14004f0f2]
call fcn.140011825
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001b397
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001b4a3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001b43c
cmp qword [rbp + 0x28], 0
jle 0x14001b43c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001b3dc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117b2
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001b492
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001b492
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001149c
Capabilities:
Terminate process

Disassembly:
jmp 0x14001de60
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 0x14001180c
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016ee0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140048040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14004f0f2]
call fcn.140011825
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140016f46
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016f4d
mov al, 1
jmp 0x14001709d
call fcn.14001125d
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001125d
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011681
movzx eax, al
test eax, eax
je 0x140016f9e
xor al, al
jmp 0x14001709d
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140017003
cmp dword [rbp + 0x154], 1
je 0x14001700e
cmp dword [rbp + 0x154], 3
je 0x14001708c
jmp 0x14001709b
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001705e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001705e
xor al, al
jmp 0x14001709d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140017079
mov dword [rbp + 0x154], 1
jmp 0x140017083
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001709d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001709d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400266d0]
call fcn.1400116d1
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x40e790
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040e780
mov ebx, eax
test ebx, ebx
je 0x40e7db
cmp dword [0x00445530], 0xffffffff
jne 0x40e7b4
mov ecx, 0xe2
call fcn.00409f30
mov ecx, ebx
call fcn.0040e760
test rax, rax
jne 0x40e7cd
mov ecx, 0xe2
call fcn.00409f30
jmp 0x40e7db
mov ecx, dword [0x00445530]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40e7f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0044ed54], 0
je 0x40e82b
mov ecx, dword [0x00445530]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40e83f
call fcn.0040e790
mov ecx, dword [0x00445530]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40e83f
mov rax, qword [0x0044ed88]
jmp 0x40e83f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00445530]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41ded0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00405a30
movsd xmm0, qword [0x0041df90]
comisd xmm0, xmm6
jbe 0x41df09
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.004053f0
call fcn.004053d0
mov rcx, rax
xor r8, r8
jmp 0x41df71
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x41df7c
cmp r8d, 9
jl 0x41df1f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x41ed00
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 0x41ed27
movzx rax, word [rbp + 0x2c]
jmp 0x41ed29
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x4202a0
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.00420040
mov ebx, eax
mov rax, qword [0x004498e0]
cmp byte [rax], 0
je 0x4203d8
mov rcx, qword [0x004494b0]
call fcn.00405980
call fcn.00404e20
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 [0x00420260]
mov r8d, 1
movsxd r9, esi
call fcn.0040c1d0
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, [0x00420478]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42041e
mov rcx, qword [0x0044ed58]
call fcn.0040c340
mov rcx, rax
mov rax, qword [0x00449438]
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 [0x00420260]
call fcn.0040c210
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x421d70
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.0040a810
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.0040e470
mov esi, eax
cmp esi, 0x104
jbe 0x421dcd
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404ae0
mov rdi, rax
jmp 0x421dd1
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.0040e470
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 0x421e27
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 0x421e0b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x421e39
mov rcx, rdi
call fcn.00404b10
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x42b840
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
call sub.kernel32.dll_GetEnvironmentStringsW
mov rbx, rax
xor rsi, rsi
test rbx, rbx
je 0x42b89a
mov rcx, rbx
call fcn.0042bc40
mov edi, eax
movsxd rcx, edi
call fcn.00404ae0
mov r13, rax
mov rcx, r13
movsxd rdx, edi
xor r8, r8
call fcn.00405a30
mov rsi, r13
test r13, r13
je 0x42b892
mov rcx, rbx
mov rdx, r13
movsxd r8, edi
call fcn.00404eb0
mov rcx, rbx
call sub.kernel32.dll_FreeEnvironmentStringsW
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x42b900
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
mov rcx, rbx
lea rdx, [0x00462b70]
mov r8d, 0x2001
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x42b932
lea rsi, [0x00462b70]
jmp 0x42bad5
mov rax, qword [0x00449430]
cmp byte [rax], 0
je 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bae0]
call fcn.0041b7b0
test eax, eax
jne 0x42b970
lea rcx, [0x00462b70]
xor rdx, rdx
call fcn.0042ddf0
lea rsi, [0x00462b70]
jmp 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bae6]
call fcn.0041b7b0
test eax, eax
jne 0x42b9ab
mov rax, qword [0x00449858]
mov ecx, dword [rax]
lea rdx, [0x00462b70]
mov r8d, 0xa
call sub.msvcrt.dll__ltow
lea rsi, [0x00462b70]
jmp 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bafc]
call fcn.0041b7b0
test eax, eax
jne 0x42b9e3
mov ecx, 2
lea rdx, [0x00462b70]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x00462b70]
jmp 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bb18]
call fcn.0041b7b0
test eax, eax
jne 0x42ba03
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
jmp 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bb2e]
call fcn.0041b7b0
test eax, eax
jne 0x42ba4e
xor rcx, rcx
mov edx, 1
lea r8, [0x00462b70]
mov r9d, 0x2001
call fcn.004269e0
lea rcx, [0x00462b70]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x00462b70]
jmp 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bb38]
call fcn.0041b7b0
test eax, eax
jne 0x42ba96
xor rcx, rcx
mov edx, 1
lea r8, [0x00462b70]
mov r9d, 0x2001
call fcn.00427030
lea rcx, [0x00462b70]
movsxd rax, eax
mov word [rcx + rax*2], 0
lea rsi, [0x00462b70]
jmp 0x42bad5
mov rcx, rbx
lea rdx, [0x0042bb42]
call fcn.0041b7b0
test eax, eax
jne 0x42bad5
call fcn.004051d0
mov ecx, 0x7fff
call fcn.00405200
mov ecx, eax
lea rdx, [0x00462b70]
mov r8d, 0xa
call sub.msvcrt.dll__ultow
lea rsi, [0x00462b70]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x42bc10
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call sub.kernel32.dll_SetEnvironmentStringsW
mov rcx, qword [0x00462b50]
call fcn.00404b10
call fcn.0042b840
mov qword [0x00462b50], rax
add rsp, 0x28
ret