joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005dbe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005dc75
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005dcd6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400384e0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140070d80
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005dd91
sub ecx, 1
je 0x14005de04
sub ecx, 1
je 0x14005dd40
cmp ecx, 1
je 0x14005dd23
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007db40]
call fcn.1400384e0
jmp 0x14005de04
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005d910
test eax, eax
je 0x14005de04
jmp 0x14005dcaa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005de04
sub rax, rsi
cmp rax, rbp
jae 0x14005de04
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140038660
jmp 0x14005de04
cmp r8d, 4
jle 0x14005de04
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005de04
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140038400
mov esi, eax
test eax, eax
je 0x14005dde3
mov edx, 5
mov rcx, rbx
call fcn.14005e8d0
mov eax, esi
jmp 0x14005dcaa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140046d00
mov rcx, r14
call fcn.140046fe0
test eax, eax
je 0x14005dca8
mov edx, 5
mov rcx, rbx
call fcn.14005e8d0
mov eax, Ordinal_46
jmp 0x14005dcaa
Function at 0x140070ba0
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140070be2
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 0x140070c29
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 0x140070c82
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 0x140070c40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140070cc3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400832ca]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400832cb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140070c90
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 0x140071b9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140071be6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140071be6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140071be6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140071be6
cmp dword [rcx + 0x84], 0xe
jbe 0x140071be6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140071be8
xor al, al
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x28], 0
mov r8d, 0x40600
lea rdx, section..data
lea rcx, [rsp + 0x20]
call fcn.180002650
mov qword [rsp + 0x28], rax
lea r8, [0x180003078]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1800026b0
mov qword [rsp + 0x30], rax
call qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0xba4540
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xba454d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xba455d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xba4545
lea eax, [rcx + 1]
jmp 0xba456b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xba457e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xba4564
sub eax, 3
jb 0xba459e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xba45ed
sar eax, 1
movsxd rbp, eax
jb 0xba45d4
jmp 0xba45ac
add ebx, ebx
jne 0xba45aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xba45d4
inc ecx
add ebx, ebx
jne 0xba45ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xba45d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xba45cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xba45bc
add ecx, 2
jmp 0xba45d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00ba4502
jmp 0xba454d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x235e00
mov dl, 0x36
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xba4639
cmp rsi, rcx
jae 0xba4641
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xba4620
cmp al, 0x8f
ja 0xba4620
cmp byte [rsi - 2], 0xf
je 0xba4626
sub al, 0xe8
cmp al, 1
ja 0xba460a
cmp rsi, rcx
jae 0xba4641
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xba4610
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xba4641
lodsb al, byte [rsi]
jmp 0xba4620
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x79d000]
mov eax, dword [rdi]
or eax, eax
je 0xba469e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7a4000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xba464e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xba4698
mov qword [rbx], rax
add rbx, 8
jmp 0xba466e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xba46e2
cmp al, 0xef
ja 0xba46ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xba46aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xba46b9
mov eax, dword [rdi]
add rdi, 4
jmp 0xba46b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xba4736
sub rsp, 0xffffffffffffff80
jmp 0x46d160
Function at 0x1400015eb
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400a9400
xor r8d, r8d
xor edx, edx
jmp 0x1400a90f0

Function at 0x140001bb8
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400c65e8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x1400c6634
test rbx, rbx
je 0x1400c6623
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001dcf
cmp eax, 1
je 0x1400c6634
mov eax, 4
jmp 0x1400c6677
call fcn.140005844
cmp eax, 2
jne 0x1400c6670
call fcn.140001e5b
test al, al
je 0x1400c6670
call fcn.140003ed1
test al, al
jne 0x1400c6666
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.140005894
jmp 0x1400c6677
call fcn.140005650
mov rcx, rax
jmp 0x1400c6656
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002b1c
Capabilities:
Get geographical location

Disassembly:
jmp 0x14006507c
sub rsp, 0x28
call fcn.140003d41
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x1400650ce
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x1400650ce
sub ecx, 1
je 0x1400650c7
cmp ecx, 1
je 0x1400650c0
xor eax, eax
jmp 0x1400650d3
mov eax, 3
jmp 0x1400650d3
mov eax, 1
jmp 0x1400650d3
mov eax, 2
add rsp, 0x28
ret

Function at 0x140002d47
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400d6b5c
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14011c100]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1401208c8]
xor r11d, r11d
lea rdi, [0x1400f7d3e]
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 0x1400d6bcc
mov rax, 0xfffffffffffffffe
jmp 0x1400d6d19
cmp word [r10 + 6], r11w
jne 0x1400d6c3b
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400d6bf6
test r14, r14
je 0x1400d6be7
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400d6d19
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400d6c04
mov r8b, 2
jmp 0x1400d6c22
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400d6c12
mov r8b, 3
jmp 0x1400d6c22
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400d6d0e
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 0x1400d6c64
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400d6d0e
cmp bl, bpl
jb 0x1400d6d0e
cmp bl, r8b
jae 0x1400d6d0e
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400d6c91
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400d6d0e
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 0x1400d6c73
cmp r9, rbp
jae 0x1400d6cbd
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400d6bc0
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400d6d0e
cmp edx, 0x110000
jae 0x1400d6d0e
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 0x1400d6d0e
test r14, r14
je 0x1400d6cfc
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14000588f
jmp 0x1400d6d19
mov rdx, rsi
mov rcx, r10
call fcn.14000640b
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000355d
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002dbf
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14001b628
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001b6b5
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14001b6b5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b6b5
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 0x14001b69c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14001b696
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001b69e
add rdx, 0x28
jmp 0x14001b67b
xor edx, edx
test rdx, rdx
jne 0x14001b6a7
xor al, al
jmp 0x14001b6bb
cmp dword [rdx + 0x24], 0
jge 0x14001b6b1
xor al, al
jmp 0x14001b6bb
mov al, 1
jmp 0x14001b6bb
xor al, al
jmp 0x14001b6bb
add rsp, 0x18
ret

Function at 0x1400032d3
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400ca1d8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ca25f
mov rsi, rbx
cmp word [rax], bp
je 0x1400ca21e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ca208
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ca204
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001064
mov rdi, rax
test rax, rax
je 0x1400ca24c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003585
mov rbp, rdi
xor ecx, ecx
call fcn.140001258
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400035a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14000e13a
mov eax, 0x84222325
sub r8, rdx
je 0x14000e15d
xor ecx, ecx
movzx r9d, byte [rdx + rcx]
xor r9d, eax
imul eax, r9d, 0x1b3
inc rcx
cmp r8, rcx
jne 0x14000e146
ret

Function at 0x1400037b5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140079820
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400fca18]
mov ecx, 2
lea r8, [0x1400fca10]
lea rdx, str.FlsGetValue
call fcn.1400792f0
mov ecx, ebx
test rax, rax
je 0x14007985a
add rsp, 0x20
pop rbx
jmp qword [0x14012d020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140003a08
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400ca084
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 0x1400ca0b4
xor eax, eax
jmp 0x1400ca177
mov rbp, rbx
cmp word [rax], si
je 0x1400ca0d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ca0c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ca0bc
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.140004ad4
movsxd r14, eax
test eax, eax
jne 0x1400ca117
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ca0ad
mov rcx, r14
call fcn.140001064
mov rdi, rax
test rax, rax
jne 0x1400ca130
xor ecx, ecx
call fcn.140001258
jmp 0x1400ca10c
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.140004ad4
test eax, eax
jne 0x1400ca161
mov rcx, rdi
call fcn.140001258
jmp 0x1400ca16b
xor ecx, ecx
call fcn.140001258
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 0x140003a1c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140079770
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400fc9d8]
xor ecx, ecx
lea r8, [0x1400fc9d0]
lea rdx, str.FlsAlloc
call fcn.1400792f0
test rax, rax
je 0x1400797a9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x14012d020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140003adf
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400d09fc
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, [0x140101338]
mov rbp, rcx
lea r8, [0x140101330]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400cff1c
test rax, rax
je 0x1400d0a5c
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x14012d030]
jmp 0x1400d0a76
xor edx, edx
mov rcx, rbp
call fcn.140002e28
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 0x140003aee
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1400a9394
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400a90f0

Function at 0x140004020
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e7d30
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e7d58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e7d58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004561
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001bbd8
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bc22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bc22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bc22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bc22
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bc22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001bc24
xor al, al
add rsp, 0x28
ret

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

Disassembly:
jmp 0x1400389f8
jmp 0x1400568c4
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140038a2a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140038a0d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140001181
Function at 0x1400049d0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400e7c70
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x1400e7cb1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x1400e7ca5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x1400e7cb3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x1400e7c93
xor eax, eax
ret

Function at 0x140004d5e
Capabilities:
Terminate process

Disassembly:
jmp 0x14007a570
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14007a58a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400058ad
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 0x140005a38
Capabilities:
Parse credit card information

Disassembly:
jmp 0x1400105d2
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, edx
mov rsi, rcx
mov edi, 1
cmp edx, 0x3a
je 0x140010601
xor edi, edi
cmp ebp, 0x3d
je 0x140010601
xor eax, eax
cmp ebp, 0x2e
mov edi, 0xe
cmove edi, eax
mov rbx, qword [rsi]
xor r14d, r14d
movabs r15, 0x4800800000000001
mov eax, dword [rsi + 0x7c]
lea ecx, [rax + 1]
cmp ecx, 0x3e
ja 0x140010622
bt r15, rcx
jb 0x14001062f
mov rcx, rsi
call fcn.140004cc3
inc r14
jmp 0x140010611
cmp eax, ebp
jne 0x1400106de
cmp ebp, 0x3a
jne 0x140010675
mov r8, qword [rsi]
mov rcx, qword [rsi + 0x68]
mov r9d, dword [rsi + 0x70]
shr r9d, 8
and r9d, 1
mov rdx, rbx
call fcn.1400061bd
test ax, ax
je 0x1400106e5
lea rcx, [rsi + 0x40]
mov rdx, qword [rsi + 0x48]
mov r8d, eax
xor r9d, r9d
call fcn.14000218f
jmp 0x1400106bc
cmp ebp, 0x2e
je 0x140010698
cmp ebp, 0x3d
jne 0x1400106bc
mov r8, qword [rsi]
cmp rbx, r8
je 0x1400106ef
lea rcx, [rsi + 0x40]
mov rdx, rbx
mov r9, r14
call fcn.140003535
jmp 0x1400106bc
mov r8, qword [rsi]
cmp rbx, r8
je 0x1400106ef
lea rcx, [rsi + 0x40]
mov rax, qword [rsi + 0x48]
add rax, 0x20
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r9, r14
call fcn.140005fbf
mov rcx, rsi
call fcn.140004cc3
cmp dword [rsi + 0x7c], 0x5d
jne 0x1400106de
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140004cc3
mov ecx, edi
call fcn.140005182
mov ecx, 1
call fcn.140005182
xor ecx, ecx
call fcn.140005182
int3

Function at 0x140005a65
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140079878
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400fca38]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400fca30]
call fcn.1400792f0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400798b8
call qword [0x14012d020]
jmp 0x1400798be
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret