joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485280
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4859bf
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4852ad
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x485531
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48555d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00642f20]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x00551340]
lea rbx, [0x0063f6d0]
call fcn.00468f20
inc rax
cmp rax, r8
jge 0x485582
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4855b7
lea rdi, [0x005513c0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4852a3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x48559b
jmp 0x485570
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046eba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.00485280

Function at 0x485b60
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x485b77
inc rax
cmp rax, 4
jge 0x485b8f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x485b74
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x485ba0
inc rax
cmp rax, 4
jge 0x485bae
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x485bd7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x485bbb
jmp 0x485b9d
Function at 0x48b7a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48b86a
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.004037a0
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48b84f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00551440]
xor ebx, ebx
mov rcx, rdx
call fcn.0046a3c0
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.0048d200
inc rbx
cmp rcx, rbx
jae 0x48b83e
mov edi, 1
lea rsi, [0x00551440]
call fcn.0046a4a0
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, [0x0063fc20]
lea rsi, [0x0063ec38]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046eba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048b7a0
Function at 0x4a6fa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a704c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call fcn.004037a0
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x4a7013
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.004505e0
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x4a7026
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x4a7039
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x4a7023
mov byte [rax + rcx], dl
jmp 0x4a7023
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.0046ae00
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call fcn.0046eba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.004a6fa0

Function at 0x4c5ec0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c5ff0
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x80], rbx
mov rcx, qword [rax]
mov qword [rsp + 0x18], rcx
movups xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rax + 0x18]
movups xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x18]
call fcn.004c5be0
movups xmmword [rsp + 0x40], xmm15
movups xmmword [rsp + 0x48], xmm15
movups xmmword [rsp + 0x58], xmm15
mov rcx, qword [rsp + 0x18]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x80]
xor eax, eax
jmp 0x4c5f54
inc rax
mov rcx, rbx
cmp rax, 5
jge 0x4c5f97
mov rdx, qword [rsp + rax*8 + 0x40]
imul rsi, rax, 0x33
mov rdi, rsi
sar rsi, 0x3f
shr rsi, 0x3d
add rsi, rdi
mov r8, rsi
and rsi, 0xfffffffffffffff8
sub rdi, rsi
mov rbx, rcx
mov rcx, rdi
shl rdx, cl
cmp rcx, 0x40
sbb rsi, rsi
and rdx, rsi
mov qword [rsp + 0x10], rdx
xor ecx, ecx
jmp 0x4c5fc3
test byte [rcx], al
mov rax, rcx
mov ebx, 0x20
mov rcx, rbx
add rsp, 0x68
pop rbp
ret
test byte [rbx], al
movzx edi, byte [rbx + rsi]
movzx r9d, byte [rsp + rcx + 0x10]
or edi, r9d
mov byte [rbx + rsi], dil
inc rcx
mov r8, rdx
cmp rcx, 8
jge 0x4c5f4e
mov rdx, r8
sar r8, 3
lea rsi, [r8 + rcx]
cmp rsi, 0x20
jge 0x4c5f4e
nop
jb 0x4c5faa
mov rax, rsi
mov ecx, 0x20
call fcn.00470e80
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046eba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004c5ec0
Function at 0x4cbf80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cc0c6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rdi
nop dword [rax]
cmp rcx, r9
jb 0x4cc0b6
mov qword [rsp + 0x90], r9
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
mov qword [rsp], rax
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
call fcn.004d60c0
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x4cc09b
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
sar rbx, 1
lea rcx, [rsi + rbx]
mov rdx, qword [rsp + 0x70]
cmp rdx, rcx
jb 0x4cc0b1
cmp rsi, rcx
ja 0x4cc0a9
sub rdx, rsi
mov rdi, rdx
neg rdx
mov r8, rsi
shl rsi, 3
sar rdx, 0x3f
and rsi, rdx
mov rdx, qword [rsp + 0x60]
add rdx, rsi
mov rcx, qword [rsp + 0x68]
cmp rcx, r8
jb 0x4cc0a1
mov qword [rsp], rdx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], rdx
sub rcx, r8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rax
call fcn.004d6200
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x50
pop rbp
ret
mov rax, r8
call fcn.00470f40
mov rax, rsi
call fcn.00470f40
call fcn.00470f00
mov rdx, rcx
mov rcx, r9
nop dword [rax]
call fcn.00470f00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.0046eba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.004cbf80
Function at 0x4cc120
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cc266
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rdi
nop dword [rax]
cmp rcx, r9
jb 0x4cc256
mov qword [rsp + 0x90], r9
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
mov qword [rsp], rax
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
call fcn.004d6160
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x4cc23b
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
sar rbx, 1
lea rcx, [rsi + rbx]
mov rdx, qword [rsp + 0x70]
cmp rdx, rcx
jb 0x4cc251
cmp rsi, rcx
ja 0x4cc249
sub rdx, rsi
mov rdi, rdx
neg rdx
mov r8, rsi
shl rsi, 3
sar rdx, 0x3f
and rsi, rdx
mov rdx, qword [rsp + 0x60]
add rdx, rsi
mov rcx, qword [rsp + 0x68]
cmp rcx, r8
jb 0x4cc241
mov qword [rsp], rdx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], rdx
sub rcx, r8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rax
call fcn.004d62a0
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x50
pop rbp
ret
mov rax, r8
call fcn.00470f40
mov rax, rsi
call fcn.00470f40
call fcn.00470f00
mov rdx, rcx
mov rcx, r9
nop dword [rax]
call fcn.00470f00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.0046eba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.004cc120
Function at 0x4d69e0
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
mov rcx, qword [rax + 0xd0]
cmp rcx, 6
jne 0x4d6a65
movabs rcx, 0xcbbb9d5dc1059ed8
mov qword [rax], rcx
movabs rcx, 0x629a292a367cd507
mov qword [rax + 8], rcx
movabs rcx, 0x9159015a3070dd17
mov qword [rax + 0x10], rcx
movabs rcx, 0x152fecd8f70e5939
mov qword [rax + 0x18], rcx
movabs rcx, 0x67332667ffc00b31
mov qword [rax + 0x20], rcx
movabs rcx, 0x8eb44a8768581511
mov qword [rax + 0x28], rcx
movabs rcx, 0xdb0c2e0d64f98fa7
mov qword [rax + 0x30], rcx
movabs rcx, 0x47b5481dbefa4fa4
mov qword [rax + 0x38], rcx
nop dword [rax]
jmp 0x4d6bc6
cmp rcx, 0xe
jne 0x4d6ae0
movabs rcx, 0x8c3d37c819544da2
mov qword [rax], rcx
movabs rcx, 0x73e1996689dcd4d6
mov qword [rax + 8], rcx
movabs rcx, 0x1dfab7ae32ff9c82
mov qword [rax + 0x10], rcx
movabs rcx, 0x679dd514582f9fcf
mov qword [rax + 0x18], rcx
movabs rcx, 0xf6d2b697bd44da8
mov qword [rax + 0x20], rcx
movabs rcx, 0x77e36f7304c48942
mov qword [rax + 0x28], rcx
movabs rcx, 0x3f9d85a86a1d36c8
mov qword [rax + 0x30], rcx
movabs rcx, 0x1112e6ad91d692a1
mov qword [rax + 0x38], rcx
jmp 0x4d6bc6
cmp rcx, 0xf
jne 0x4d6b57
movabs rcx, 0x22312194fc2bf72c
mov qword [rax], rcx
movabs rcx, 0x9f555fa3c84c64c2
mov qword [rax + 8], rcx
movabs rcx, 0x2393b86b6f53b151
mov qword [rax + 0x10], rcx
movabs rcx, 0x963877195940eabd
mov qword [rax + 0x18], rcx
movabs rcx, 0x96283ee2a88effe3
mov qword [rax + 0x20], rcx
movabs rcx, 0xbe5e1e2553863992
mov qword [rax + 0x28], rcx
movabs rcx, 0x2b0199fc2c85b8aa
mov qword [rax + 0x30], rcx
movabs rcx, 0xeb72ddc81c52ca2
mov qword [rax + 0x38], rcx
jmp 0x4d6bc6
movabs rcx, 0x6a09e667f3bcc908
mov qword [rax], rcx
movabs rcx, 0xbb67ae8584caa73b
mov qword [rax + 8], rcx
movabs rcx, 0x3c6ef372fe94f82b
mov qword [rax + 0x10], rcx
movabs rcx, 0xa54ff53a5f1d36f1
mov qword [rax + 0x18], rcx
movabs rcx, 0x510e527fade682d1
mov qword [rax + 0x20], rcx
movabs rcx, 0x9b05688c2b3e6c1f
mov qword [rax + 0x28], rcx
movabs rcx, 0x1f83d9abfb41bd6b
mov qword [rax + 0x30], rcx
movabs rcx, 0x5be0cd19137e2179
mov qword [rax + 0x38], rcx
movups xmmword [rax + 0xc0], xmm15
ret
Function at 0x4f2a60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4f2b9e
push rbp
mov rbp, rsp
sub rsp, 0x68
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x0078a3c8]
call fcn.00485e00
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rbx
lea rcx, [0x004f2bc0]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call fcn.004037a0
xorps xmm15, xmm15
mov r14, qword [0x007db3f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4f2b62
mov rdx, qword [rsp + 0x20]
cmp rdx, rcx
jb 0x4f2b98
mov qword [rsp + 0x28], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x28]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x20]
nop dword [rax]
cmp rbx, rcx
jb 0x4f2b8d
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rdi
sar rdi, 0x3f
and rcx, rdi
mov rdi, qword [rsp + 0x38]
lea rax, [rdi + rcx]
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, rcx
mov rcx, rbx
call fcn.00470f40
call fcn.00470ec0
nop
nop
call fcn.0046eba0
jmp fcn.004f2a60
Function at 0x512240
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x512258
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x512258
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x512260
xor eax, eax
ret
cmp rbx, 3
je 0x51226c
cmp rbx, 4
jne 0x512299
cmp al, 0x2c
ja 0x512286
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x512296
cmp al, 0x24
je 0x512296
nop dword [rax]
cmp al, 0x26
jae 0x512296
jmp 0x512299
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x512296
cmp al, 0x5b
je 0x512296
cmp al, 0x5d
jne 0x512299
xor eax, eax
ret
cmp al, 0x2f
ja 0x5122d2
nop dword [rax]
cmp al, 0x26
ja 0x5122b1
cmp al, 0x24
je 0x5122f1
cmp al, 0x26
je 0x5122f1
jmp 0x51236b
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x5122f1
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x512368
cmp al, 0x2f
je 0x5122f1
jmp 0x51236b
cmp al, 0x3d
ja 0x5122e9
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x5122f1
nop
cmp al, 0x3d
je 0x5122f1
jmp 0x51236b
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x512360
cmp rbx, 2
jg 0x512327
cmp rbx, 1
je 0x512321
nop dword [rax]
cmp rbx, 2
jne 0x51236b
cmp al, 0x2f
je 0x512312
cmp al, 0x3b
je 0x512312
cmp al, 0x2c
jne 0x512319
mov ecx, 1
jmp 0x51231e
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x51234a
cmp al, 0x40
je 0x512339
cmp al, 0x2f
je 0x512339
cmp al, 0x3f
jne 0x512342
mov ecx, 1
nop
jmp 0x512347
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x512359
cmp rbx, 7
jne 0x51236b
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x512368
cmp al, 0x7e
jne 0x51236b
xor eax, eax
ret
cmp rbx, 7
jne 0x512381
cmp al, 0x21
je 0x51237d
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x512381
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x100401980
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call fcn.100513ed0
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call fcn.100513ed0
mov rax, qword [sym.bash.exe_rl_readline_state]
test byte [rax], 4
je 0x1004019c0
mov rax, qword [sym.bash.exe_rl_deprep_term_function]
mov rax, qword [rax]
test rax, rax
je 0x1004019c0
call rax
call sym.bash.exe_read_tty_modified
test eax, eax
jne 0x100401a39
xor ecx, ecx
call sym.bash.exe_signal_is_trapped
test eax, eax
jne 0x100401a30
call sym.bash.exe_unlink_all_fifos
mov rax, qword [sym.bash.exe_remember_on_history]
mov ecx, dword [rax]
test ecx, ecx
jne 0x100401a29
call sym.bash.exe_coproc_flush
mov edx, dword [sym.bash.exe_interactive_shell]
test edx, edx
je 0x1004019fe
cmp dword [sym.bash.exe_login_shell], 0
jne 0x100401a12
mov rax, qword [sym.bash.exe_subshell_environment]
mov eax, dword [rax]
test eax, eax
je 0x100401a22
mov ecx, ebx
call sub.msys_2.0.dll_exit
cmp dword [sym.bash.exe_hup_on_exit], 0
je 0x1004019fe
call sym.bash.exe_hangup_all_jobs
jmp 0x1004019fe
call sym.bash.exe_end_job_control
jmp 0x100401a0b
call sym.bash.exe_maybe_save_shell_history
jmp 0x1004019e6
call sym.bash.exe_run_exit_trap
mov ebx, eax
jmp 0x1004019d4
call sym.bash.exe_read_tty_cleanup
jmp 0x1004019c9

Function at 0x100401a40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.msys_2.0.dll_exit
nop
nop word [rax + rax]

Function at 0x100401a50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call fcn.100513ed0
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call fcn.100513ed0
mov rax, qword [sym.bash.exe_last_command_exit_value]
xor ecx, ecx
mov dword [rax], ebx
call sym.bash.exe_signal_is_trapped
test eax, eax
jne 0x100401a8e
mov ecx, ebx
call sub.msys_2.0.dll_exit
call sym.bash.exe_run_exit_trap
mov ebx, eax
jmp 0x100401a87
Function at 0x100401b10
Capabilities:
Get hostname

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x120
mov edx, dword [sym.bash.exe_shell_initialized]
test edx, edx
je 0x100401bed
call sym.bash.exe_initialize_shell_builtins
call sym.bash.exe_initialize_traps
xor ecx, ecx
call sym.bash.exe_initialize_signals
cmp qword [sym.bash.exe_current_host_name], 0
je 0x100401c18
mov eax, dword [sym.bash.exe_interactive_shell]
test eax, eax
je 0x100401b5f
cmp qword [0x100517050], 0
je 0x100401c0e
call sym.bash.exe_tilde_initialize
mov rcx, qword [sym.bash.exe_shell_name]
call sym.bash.exe_shell_is_restricted
mov rdi, qword [sym.bash.exe_privileged_mode]
mov rsi, qword [sym.bash.exe_restricted]
xor edx, edx
mov ebx, eax
mov rcx, qword [sym.bash.exe_shell_environment]
mov eax, dword [rdi]
or eax, dword [rsi]
or eax, dword [0x100656224]
or eax, ebx
setne dl
call sym.bash.exe_initialize_shell_variables
mov rax, qword [sym.bash.exe_jobs_m_flag]
mov ecx, dword [rax]
call sym.bash.exe_initialize_job_control
call sym.bash.exe_initialize_bash_input
call sym.bash.exe_initialize_flags
mov eax, dword [rdi]
or eax, dword [rsi]
xor ecx, ecx
or eax, dword [0x100656224]
or eax, ebx
setne cl
call sym.bash.exe_initialize_shell_options
mov eax, dword [rdi]
or eax, dword [rsi]
xor ecx, ecx
or eax, dword [0x100656224]
or eax, ebx
setne cl
call sym.bash.exe_initialize_bashopts
nop
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sym.bash.exe_sh_setlinebuf
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sym.bash.exe_sh_setlinebuf
jmp 0x100401b28
call fcn.100401750
jmp 0x100401b5f
lea rbx, [rsp + 0x20]
mov edx, 0xff
mov rcx, rbx
call sub.msys_2.0.dll_gethostname
test eax, eax
jns 0x100401c41
lea rax, str.__host__
mov qword [sym.bash.exe_current_host_name], rax
jmp 0x100401b47
mov rcx, rbx
call sub.msys_2.0.dll_strlen
lea rcx, [rax + 1]
call sym.bash.exe_xmalloc
mov rdx, rbx
mov rcx, rax
call fcn.100514770
mov qword [sym.bash.exe_current_host_name], rax
jmp 0x100401b47
Function at 0x10040ec40
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x120
mov rdi, rdx
mov rbx, r8
mov rsi, r9
test r8, r8
je 0x10040ec90
test rsi, rsi
je 0x10040ecb0
mov eax, dword [rsi]
cmp dword [rbx], eax
je 0x10040ec70
xor eax, eax
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rsi + 8]
cmp qword [rbx + 8], rax
sete al
movzx eax, al
add rsp, 0x120
pop rbx
pop rsi
pop rdi
ret
lea rbx, [rsp + 0x20]
mov rdx, rbx
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10040ec63
test rsi, rsi
jne 0x10040ec5d
nop word cs:[rax + rax]
lea rsi, [rsp + 0xa0]
mov rcx, rdi
mov rdx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
je 0x10040ec5d
jmp 0x10040ec63

Function at 0x10040ef20
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0xa8
lea rdx, [rsp + 0x20]
call sub.msys_2.0.dll_stat
test eax, eax
sete al
movzx eax, al
add rsp, 0xa8
ret

Function at 0x10040ef50
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0xa8
lea rdx, [rsp + 0x20]
call sub.msys_2.0.dll_stat
mov edx, eax
xor eax, eax
test edx, edx
jne 0x10040ef7d
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x4000
sete al
movzx eax, al
add rsp, 0xa8
ret

Function at 0x10040ef90
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0xa0
lea rdx, [rsp + 0x20]
mov rbx, rcx
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10040efb9
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x4000
je 0x10040efc8
xor eax, eax
add rsp, 0xa0
pop rbx
ret
mov edx, 2
mov rcx, rbx
call sym.bash.exe_sh_eaccess
test eax, eax
sete al
movzx eax, al
add rsp, 0xa0
pop rbx
ret
Function at 0x1004127f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [sym.bash.exe_xtrace_fp]
mov r12, qword [rsp + 0x70]
mov esi, ecx
mov edi, edx
mov rbp, r8
mov rbx, r9
test rax, rax
je 0x1004129a8
mov qword [sym.bash.exe_xtrace_fp], rax
mov dword [sym.bash.exe_command_string_index], 0
call sym.bash.exe_indirection_level_string
mov rdx, qword [sym.bash.exe_xtrace_fp]
mov rcx, rax
call sub.msys_2.0.dll_fputs
mov r8d, 3
mov r9, qword [sym.bash.exe_xtrace_fp]
mov edx, 1
lea rcx, [0x100523cd0]
call sub.msys_2.0.dll_fwrite
test edi, edi
jne 0x1004128a8
mov r9, qword [sym.bash.exe_xtrace_fp]
cmp esi, 3
je 0x1004128d2
cmp esi, 4
je 0x100412920
mov r8d, 4
mov edx, 1
lea rcx, [0x100523ce4]
call sub.msys_2.0.dll_fwrite
mov rcx, qword [sym.bash.exe_xtrace_fp]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.100513ed0
mov r9, qword [sym.bash.exe_xtrace_fp]
mov r8d, 2
mov edx, 1
lea rcx, [0x100523aa3]
call sub.msys_2.0.dll_fwrite
mov r9, qword [sym.bash.exe_xtrace_fp]
cmp esi, 3
jne 0x10041286c
mov r8, qword [rbp]
lea rdx, [0x100523cdb]
mov rcx, r9
call sub.msys_2.0.dll_fprintf
test rbx, rbx
je 0x100412998
cmp byte [rbx], 0
lea rax, [0x100523cd8]
cmove rbx, rax
mov rdx, qword [sym.bash.exe_xtrace_fp]
mov rcx, rbx
call sub.msys_2.0.dll_fputs
mov r9, qword [sym.bash.exe_xtrace_fp]
jmp 0x100412875
test rbx, rbx
je 0x100412988
cmp byte [rbx], 0
lea rax, [0x100523cd8]
cmove rbx, rax
mov rdx, r9
mov rcx, rbx
call sub.msys_2.0.dll_fputs
mov r8, qword [rbp]
mov rcx, qword [sym.bash.exe_xtrace_fp]
lea rdx, [0x100523cdf]
call sub.msys_2.0.dll_fprintf
test r12, r12
je 0x1004129c0
cmp byte [r12], 0
lea rax, [0x100523cd8]
cmove r12, rax
mov rdx, qword [sym.bash.exe_xtrace_fp]
mov rcx, r12
call sub.msys_2.0.dll_fputs
mov r9, qword [sym.bash.exe_xtrace_fp]
jmp 0x100412875
lea rbx, [0x100523cd8]
jmp 0x100412933
lea rbx, [0x100523cd8]
jmp 0x1004128fc
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
jmp 0x100412819
lea r12, [0x100523cd8]
jmp 0x10041296a

Function at 0x1004129d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [sym.bash.exe_xtrace_fp]
mov rbx, rcx
test rax, rax
je 0x100412aa0
mov qword [sym.bash.exe_xtrace_fp], rax
call sym.bash.exe_indirection_level_string
mov rdx, qword [sym.bash.exe_xtrace_fp]
mov rcx, rax
call sub.msys_2.0.dll_fputs
mov r8d, 3
mov r9, qword [sym.bash.exe_xtrace_fp]
mov edx, 1
lea rcx, [0x100523ce9]
call sub.msys_2.0.dll_fwrite
test rbx, rbx
je 0x100412a69
lea rbp, [0x100523b06]
lea rdi, [0x100523ad6]
lea rsi, [0x100523ab6]
nop
mov rax, qword [rbx + 8]
cmp qword [rbx], 0
mov r9, rsi
mov rdx, rbp
cmove r9, rdi
mov rcx, qword [sym.bash.exe_xtrace_fp]
mov r8, qword [rax]
call sub.msys_2.0.dll_fprintf
mov rbx, qword [rbx]
test rbx, rbx
jne 0x100412a40
mov r9, qword [sym.bash.exe_xtrace_fp]
mov r8d, 4
mov edx, 1
lea rcx, str.____n
call sub.msys_2.0.dll_fwrite
mov rcx, qword [sym.bash.exe_xtrace_fp]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.100513ed0
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
jmp 0x1004129eb