joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x1400053e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001bd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002f30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400028a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000293a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000291e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002912
cmp qword [rbp - 0x10], 0
je 0x140002912
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400028d8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000293b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002a40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002a68
mov eax, 0
jmp 0x140002ab6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002a91
mov eax, 0
jmp 0x140002ab6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002ab1
mov eax, 0
jmp 0x140002ab6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002abc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002b3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002b31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002b31
mov rax, qword [rbp - 8]
jmp 0x140002b4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002b04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18000fc50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18000a590
sub rsp, rax
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001afcc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000fc9f
mov rax, rbp
jmp 0x18000fda7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6d1600]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001b25c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6d1600]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000fda3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000fda3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001b25c
test rax, rax
js 0x18000fda3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000fda3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000fd95
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000fd95
cmp byte [rcx], 0xd
jne 0x18000fd7b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000fd8a
cmp byte [rcx + 1], 0xa
jne 0x18000fd8a
inc rcx
jmp 0x18000fd8a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000fd5d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000fda7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180009c60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180019ffc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001a06b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001a06b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001a06b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001a06b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001a06b
cmp dword [rcx + 0x84], 0xe
jbe 0x18001a06b
cmp dword [rcx + 0xf8], 0
je 0x18001a06b
mov ecx, ebx
call fcn.18001a11c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180019ef8
nop
cmp dword [rbp + 0x20], 0
je 0x18001a0b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001a0c4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180019ffc
Function at 0x18001d2a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1806d1600]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18001d2fb
cmp word [rdx], r13w
jne 0x18001d2fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001d300
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001d425
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001d446
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001d339
mov rdx, r9
mov word [rbx], cx
jmp 0x18001d360
cmp r9, r8
jae 0x18001d370
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18001d31a
jmp 0x18001d425
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001d41a
cmp dword [rsp + 0x80], esi
je 0x18001d41a
lea r8, [0x1806d1600]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001d3f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001d3c2
mov word [rbx], r13w
jmp 0x18001d422
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18001d3cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001d422
cmp word [rsp + 0x70], r13w
jne 0x18001d3ff
cmp rbx, r14
je 0x18001d3bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001b264
cmp word [rsp + 0x70], r13w
je 0x18001d425
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1806d1600]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001d41f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001d425
Function at 0x140008690
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor ebx, ebx
mov qword [rbp + 8], rbx
call fcn.1400506b0
mov rcx, rax
movabs rax, 0xd6bf94d5e57a42bd
imul rcx
add rdx, rcx
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], eax
lea rdx, [rbp]
lea rcx, [rsp + 0x20]
call fcn.140060258
mov rdx, qword [rsp + 0x30]
mov rax, rdx
shr rax, 0x20
imul ecx, eax, 0x64
lea eax, [rdx + 0x2e631]
add eax, ecx
imul ecx, eax, 0x64
mov rax, qword [rsp + 0x28]
shr rax, 0x20
add ecx, eax
movsxd r8, ecx
movabs rax, 0x47ae147ae147ae15
mul r8
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 6
mov qword [rsp + 0x48], r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], 0x67452301
mov dword [rbp - 0x1c], 0xefcdab89
mov dword [rbp - 0x18], 0x98badcfe
mov dword [rbp - 0x14], 0x10325476
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], ebx
mov byte [rbp - 4], bl
mov r8d, 8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140001aa0
cmp byte [rbp - 4], bl
jne 0x140008861
mov r9d, dword [rbp - 8]
mov r8, qword [rbp - 0x10]
add r8, r9
mov qword [rbp - 0x10], r8
mov eax, 0x38
sub eax, r9d
lea ebx, [rax + 0x40]
test eax, eax
cmovg ebx, eax
test ebx, ebx
jle 0x140008808
mov byte [rsp + r9 + 0x60], 0x80
cmp ebx, 1
jle 0x1400087f9
lea eax, [rbx - 1]
movsxd r8, eax
mov ecx, dword [rbp - 8]
inc ecx
lea rax, [rsp + 0x60]
add rcx, rax
xor edx, edx
call fcn.140078480
mov r9d, dword [rbp - 8]
add r9d, ebx
mov dword [rbp - 8], r9d
mov r8, qword [rbp - 0x10]
mov rdx, r8
shr rdx, 0x20
lea ecx, [r8*8]
mov dword [rsp + r9 + 0x60], ecx
mov eax, dword [rbp - 8]
add eax, 4
mov dword [rbp - 8], eax
mov ecx, eax
shr r8d, 0x1d
lea eax, [rdx*8]
or r8d, eax
mov dword [rsp + rcx + 0x60], r8d
add dword [rbp - 8], 4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140001bd0
cmp dword [rbp - 8], 0x40
jbe 0x140008861
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140001bd0
mov eax, dword [rbp - 0x20]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp - 0x1c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp - 0x14]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x48]
xor rax, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14004dcc0
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rbp
ret
Function at 0x1400131a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400131e4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400131d0
ret
Function at 0x140017a80
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140017b63
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140017b63
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140017b81
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140017b53
cmp word [rcx], 0x5c
jne 0x140017b4c
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x140017b4c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140017b37
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x140017b49
test r8b, 0x10
jne 0x140017b4c
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x140017b4c
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140013d70
test edi, edi
jne 0x140017ab0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140013d60
int3
Function at 0x140024350
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x4f]
sub rsp, 0xd8
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rbp + 0x37], rax
xorps xmm1, xmm1
mov dword [rbp + 0x17], 0x67452301
xor eax, eax
mov dword [rbp + 0x1b], 0xefcdab89
xorps xmm0, xmm0
mov dword [rbp + 0x1f], 0x98badcfe
movups xmmword [rcx], xmm0
mov rdi, rcx
mov dword [rbp + 0x23], 0x10325476
lea rcx, [rbp - 0x69]
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x69], xmm1
mov dword [rbp + 0x2f], eax
movups xmmword [rbp - 0x59], xmm1
mov byte [rbp + 0x33], al
movups xmmword [rbp - 0x49], xmm1
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm1
movups xmmword [rbp - 9], xmm1
movups xmmword [rbp + 7], xmm1
call fcn.140001aa0
cmp byte [rbp + 0x33], 0
jne 0x140024490
mov r8d, dword [rbp + 0x2f]
mov eax, 0x38
mov r9, qword [rbp + 0x27]
sub eax, r8d
add r9, r8
mov qword [rsp + 0xd0], rbx
test eax, eax
mov qword [rbp + 0x27], r9
lea ebx, [rax + 0x40]
cmovg ebx, eax
test ebx, ebx
jle 0x140024432
mov byte [rbp + r8 - 0x69], 0x80
cmp ebx, 1
jle 0x140024423
mov ecx, dword [rbp + 0x2f]
lea eax, [rbx - 1]
movsxd r8, eax
inc ecx
lea rax, [rbp - 0x69]
xor edx, edx
add rcx, rax
call fcn.140078480
mov r8d, dword [rbp + 0x2f]
mov r9, qword [rbp + 0x27]
add r8d, ebx
mov dword [rbp + 0x2f], r8d
lea ecx, [r9*8]
mov rdx, r9
mov dword [rbp + r8 - 0x69], ecx
mov eax, dword [rbp + 0x2f]
add eax, 4
shr rdx, 0x20
mov dword [rbp + 0x2f], eax
mov ecx, eax
shr r9d, 0x1d
lea eax, [rdx*8]
or r9d, eax
lea rdx, [rbp - 0x69]
mov dword [rbp + rcx - 0x69], r9d
lea rcx, [rbp - 0x69]
add dword [rbp + 0x2f], 4
call fcn.140001bd0
cmp dword [rbp + 0x2f], 0x40
mov rbx, qword [rsp + 0xd0]
jbe 0x140024490
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.140001bd0
mov ecx, dword [rbp + 0x17]
mov rax, rdi
mov dword [rdi], ecx
mov ecx, dword [rbp + 0x1b]
mov dword [rdi + 4], ecx
mov ecx, dword [rbp + 0x1f]
mov dword [rdi + 8], ecx
mov ecx, dword [rbp + 0x23]
mov dword [rdi + 0xc], ecx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14004dcc0
add rsp, 0xd8
pop rdi
pop rbp
ret
Function at 0x140037760
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140037782
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
je 0x140037816
mov rdi, rbp
mov qword [rsp + 0x50], r15
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400377e3
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400377e3
cmp rdi, rcx
mov r15, rdi
cmovge r15, rcx
mov rcx, r14
mov r8, r15
call fcn.140078840
mov rax, qword [rsi]
sub rdi, r15
sub dword [rax], r15d
mov rcx, qword [rbx + 0x38]
movsxd rax, r15d
add qword [rcx], rax
jmp 0x140037801
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140037809
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov r15d, 1
add r14, r15
test rdi, rdi
jg 0x1400377a3
mov r15, qword [rsp + 0x50]
sub rbp, rdi
jmp 0x1400378ff
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003782d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003782f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140037861
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140078840
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400378fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003789c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400378dd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400569ac
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400378fc
cmp rsi, rax
ja 0x1400378b0
test rsi, rsi
je 0x1400378fc
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400569ac
sub rsi, rax
sub rbp, rsi
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x14003c100
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rbp + 0x47], rax
cmp qword [rdx + 0x18], 7
mov rbx, rcx
mov rax, rdx
jbe 0x14003c130
mov rax, qword [rdx]
mov r8, qword [rdx + 0x10]
xorps xmm1, xmm1
xorps xmm0, xmm0
mov dword [rbp + 0x27], 0x67452301
movups xmmword [rcx], xmm0
xor ecx, ecx
mov dword [rbp + 0x2b], 0xefcdab89
mov qword [rbp + 0x37], rcx
add r8, r8
mov dword [rbp + 0x3f], ecx
mov rdx, rax
mov byte [rbp + 0x43], cl
lea rcx, [rbp - 0x59]
movups xmmword [rbp - 0x59], xmm1
mov dword [rbp + 0x2f], 0x98badcfe
movups xmmword [rbp - 0x49], xmm1
mov dword [rbp + 0x33], 0x10325476
movups xmmword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm1
movups xmmword [rbp - 9], xmm1
movups xmmword [rbp + 7], xmm1
movups xmmword [rbp + 0x17], xmm1
call fcn.140001aa0
cmp byte [rbp + 0x43], 0
jne 0x14003c25a
mov r8d, dword [rbp + 0x3f]
mov eax, 0x38
mov r9, qword [rbp + 0x37]
sub eax, r8d
add r9, r8
mov qword [rsp + 0xf0], rdi
test eax, eax
mov qword [rbp + 0x37], r9
lea edi, [rax + 0x40]
cmovg edi, eax
test edi, edi
jle 0x14003c1fc
mov byte [rbp + r8 - 0x59], 0x80
cmp edi, 1
jle 0x14003c1ed
mov ecx, dword [rbp + 0x3f]
lea eax, [rdi - 1]
movsxd r8, eax
inc ecx
lea rax, [rbp - 0x59]
xor edx, edx
add rcx, rax
call fcn.140078480
mov r8d, dword [rbp + 0x3f]
mov r9, qword [rbp + 0x37]
add r8d, edi
mov dword [rbp + 0x3f], r8d
lea ecx, [r9*8]
mov rdx, r9
mov dword [rbp + r8 - 0x59], ecx
mov eax, dword [rbp + 0x3f]
add eax, 4
shr rdx, 0x20
mov dword [rbp + 0x3f], eax
mov ecx, eax
shr r9d, 0x1d
lea eax, [rdx*8]
or r9d, eax
lea rdx, [rbp - 0x59]
mov dword [rbp + rcx - 0x59], r9d
lea rcx, [rbp - 0x59]
add dword [rbp + 0x3f], 4
call fcn.140001bd0
cmp dword [rbp + 0x3f], 0x40
mov rdi, qword [rsp + 0xf0]
jbe 0x14003c25a
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x59]
call fcn.140001bd0
mov ecx, dword [rbp + 0x27]
mov rax, rbx
mov dword [rbx], ecx
mov ecx, dword [rbp + 0x2b]
mov dword [rbx + 4], ecx
mov ecx, dword [rbp + 0x2f]
mov dword [rbx + 8], ecx
mov ecx, dword [rbp + 0x33]
mov dword [rbx + 0xc], ecx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14004dcc0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop rbp
ret
Function at 0x14004ec34
Capabilities:
Parse pe header

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

Function at 0x140050b88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140050bc2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140050bc7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140050c10
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140083f30]
cmp byte [rcx + rax], 0
je 0x140050c10
dec r8
sub rdx, 1
jne 0x140050bf6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret