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

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x14006271f
lea r8, [0x140000000]
cdqe
mov edx, dword [r8 + rax*4 + 0x62774]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret

Function at 0x1400627e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
movzx r9d, byte [rcx]
mov r11, rdx
mov r10, rcx
test r9b, r9b
je 0x1400628d3
mov qword [rsp + 0x20], rbx
lea rbx, [0x140000000]
movzx edx, byte [r11]
test dl, dl
je 0x1400628ce
movsx eax, r9b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x14006282b
cdqe
mov ecx, dword [rbx + rax*4 + 0x628f8]
add rcx, rbx
jmp rcx
mov r9b, 0x41
jmp case.default.0x14006282b
mov r9b, 0x42
jmp case.default.0x14006282b
mov r9b, 0x43
jmp case.default.0x14006282b
mov r9b, 0x44
jmp case.default.0x14006282b
mov r9b, 0x45
jmp case.default.0x14006282b
mov r9b, 0x46
jmp case.default.0x14006282b
mov r9b, 0x47
jmp case.default.0x14006282b
mov r9b, 0x48
jmp case.default.0x14006282b
mov r9b, 0x49
jmp case.default.0x14006282b
mov r9b, 0x4a
jmp case.default.0x14006282b
mov r9b, 0x4b
jmp case.default.0x14006282b
mov r9b, 0x4c
jmp case.default.0x14006282b
mov r9b, 0x4d
jmp case.default.0x14006282b
mov r9b, 0x4e
jmp case.default.0x14006282b
mov r9b, 0x4f
jmp case.default.0x14006282b
mov r9b, 0x50
jmp case.default.0x14006282b
mov r9b, 0x51
jmp case.default.0x14006282b
mov r9b, 0x52
jmp case.default.0x14006282b
mov r9b, 0x53
jmp case.default.0x14006282b
mov r9b, 0x54
jmp case.default.0x14006282b
mov r9b, 0x55
jmp case.default.0x14006282b
mov r9b, 0x56
jmp case.default.0x14006282b
mov r9b, 0x57
jmp case.default.0x14006282b
mov r9b, 0x58
jmp case.default.0x14006282b
mov r9b, 0x59
jmp case.default.0x14006282b
mov r9b, 0x5a
movzx ecx, dl
call fcn.140062700
cmp r9b, al
jne 0x1400628ce
movzx r9d, byte [r10 + 1]
inc r10
inc r11
test r9b, r9b
jne 0x140062803
mov rbx, qword [rsp + 0x20]
movzx ecx, byte [r10]
call fcn.140062700
movzx ecx, byte [r11]
movzx r9d, al
call fcn.140062700
xor ecx, ecx
cmp r9b, al
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140062960
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r9d, byte [rcx]
mov r11, r8
mov rbx, rdx
mov r10, rcx
test r9b, r9b
je 0x140062a66
lea rdi, [0x140000000]
nop word [rax + rax]
movzx edx, byte [rbx]
test dl, dl
je 0x140062a66
test r11, r11
je 0x140062a6b
movsx eax, r9b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400629c0
cdqe
mov ecx, dword [rdi + rax*4 + 0x62aa8]
add rcx, rdi
jmp rcx
mov r9b, 0x41
jmp case.default.0x1400629c0
mov r9b, 0x42
jmp case.default.0x1400629c0
mov r9b, 0x43
jmp case.default.0x1400629c0
mov r9b, 0x44
jmp case.default.0x1400629c0
mov r9b, 0x45
jmp case.default.0x1400629c0
mov r9b, 0x46
jmp case.default.0x1400629c0
mov r9b, 0x47
jmp case.default.0x1400629c0
mov r9b, 0x48
jmp case.default.0x1400629c0
mov r9b, 0x49
jmp case.default.0x1400629c0
mov r9b, 0x4a
jmp case.default.0x1400629c0
mov r9b, 0x4b
jmp case.default.0x1400629c0
mov r9b, 0x4c
jmp case.default.0x1400629c0
mov r9b, 0x4d
jmp case.default.0x1400629c0
mov r9b, 0x4e
jmp case.default.0x1400629c0
mov r9b, 0x4f
jmp case.default.0x1400629c0
mov r9b, 0x50
jmp case.default.0x1400629c0
mov r9b, 0x51
jmp case.default.0x1400629c0
mov r9b, 0x52
jmp case.default.0x1400629c0
mov r9b, 0x53
jmp case.default.0x1400629c0
mov r9b, 0x54
jmp case.default.0x1400629c0
mov r9b, 0x55
jmp case.default.0x1400629c0
mov r9b, 0x56
jmp case.default.0x1400629c0
mov r9b, 0x57
jmp case.default.0x1400629c0
mov r9b, 0x58
jmp case.default.0x1400629c0
mov r9b, 0x59
jmp case.default.0x1400629c0
mov r9b, 0x5a
movzx ecx, dl
call fcn.140062700
cmp r9b, al
jne 0x140062a66
movzx r9d, byte [r10 + 1]
inc r10
dec r11
inc rbx
test r9b, r9b
jne 0x140062990
test r11, r11
jne 0x140062a7b
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx ecx, byte [r10]
call fcn.140062700
movzx ecx, byte [rbx]
movzx r9d, al
call fcn.140062700
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
cmp r9b, al
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x140062b10
Capabilities:
Parse pe header

Disassembly:
mov r10, rcx
lea r11, [0x140000000]
sub r10, rdx
nop dword [rax]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x140062b3e
cdqe
mov ecx, dword [r11 + rax*4 + 0x62bd8]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x140062b3e
mov r9b, 0x42
jmp case.default.0x140062b3e
mov r9b, 0x43
jmp case.default.0x140062b3e
mov r9b, 0x44
jmp case.default.0x140062b3e
mov r9b, 0x45
jmp case.default.0x140062b3e
mov r9b, 0x46
jmp case.default.0x140062b3e
mov r9b, 0x47
jmp case.default.0x140062b3e
mov r9b, 0x48
jmp case.default.0x140062b3e
mov r9b, 0x49
jmp case.default.0x140062b3e
mov r9b, 0x4a
jmp case.default.0x140062b3e
mov r9b, 0x4b
jmp case.default.0x140062b3e
mov r9b, 0x4c
jmp case.default.0x140062b3e
mov r9b, 0x4d
jmp case.default.0x140062b3e
mov r9b, 0x4e
jmp case.default.0x140062b3e
mov r9b, 0x4f
jmp case.default.0x140062b3e
mov r9b, 0x50
jmp case.default.0x140062b3e
mov r9b, 0x51
jmp case.default.0x140062b3e
mov r9b, 0x52
jmp case.default.0x140062b3e
mov r9b, 0x53
jmp case.default.0x140062b3e
mov r9b, 0x54
jmp case.default.0x140062b3e
mov r9b, 0x55
jmp case.default.0x140062b3e
mov r9b, 0x56
jmp case.default.0x140062b3e
mov r9b, 0x57
jmp case.default.0x140062b3e
mov r9b, 0x58
jmp case.default.0x140062b3e
mov r9b, 0x59
jmp case.default.0x140062b3e
mov r9b, 0x5a
mov byte [r10 + rdx], r9b
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x140062bd7
dec r8
jne 0x140062b20
ret
Function at 0x1400652c0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14006548e
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x14006546e
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14006531d
lea ebp, [rax + 0xe]
jmp 0x140065329
cmp eax, 0x17
jne 0x1400653d1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400653d1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400653d1
cmp rax, rbp
jb 0x1400653d1
mov ecx, 0x30
call qword [0x140177978]
mov rdi, rax
test rax, rax
je 0x14006540c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [0x140177978]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400653fb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.MSVCR120.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400653be
call qword [case.0x140054204.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400653e0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400653ce
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140065310
jmp 0x140065412
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [case.0x140054204.2]
mov rcx, rdi
call qword [case.0x140054204.2]
jmp 0x140065412
mov rcx, rdi
mov r14d, 8
call qword [case.0x140054204.2]
jmp 0x140065412
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140065427
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x140065469
test rbx, rbx
je 0x140065464
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140065440
call qword [case.0x140054204.2]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006544f
call qword [case.0x140054204.2]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [case.0x140054204.2]
mov rbx, rdi
test rdi, rdi
jne 0x140065431
mov rbx, r13
jmp 0x14006547d
test rbx, rbx
jne 0x14006547d
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x14006c640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x14006c68a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14006c67a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x14006c6d4
cmp qword [rbx + 0x10], 0
jne 0x14006c6bf
mov rcx, qword [rcx + 0x10]
lea rdx, [0x14017a4c4]
call qword [sym.imp.MSVCR120.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14006c6bf
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_fread]
mov rdi, rax
test rax, rax
jne 0x14006c6f8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14006c6ef
call qword [sym.imp.MSVCR120.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14006ccd0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x20]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14006cd30
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rbx
call fcn.140072700
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140072830
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140129b50
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14006ee90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r10, dword [rdx + 8]
lea rbx, [rcx - 1]
movsxd rcx, dword [r8 + 8]
xor rcx, r10
shr rbx, 0x3f
movsxd rsi, r9d
dec rbx
lea eax, [rsi - 1]
mov r11, r8
and rcx, rbx
mov rdi, rdx
xor r10d, ecx
mov dword [rdx + 8], r10d
xor dword [r8 + 8], ecx
cmp eax, 9
ja case.default.0x14006eee7
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x6f090]
add rcx, rdx
jmp rcx
mov r9d, 0xa
cmp r9, rsi
jge case.0x14006eee7.10
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi]
mov rcx, qword [rax + r9*8]
lea rdx, [rax + r9*8]
mov rax, qword [r11]
inc r9
mov r8, qword [rax + r9*8 - 8]
xor r8, rcx
and r8, rbx
xor rcx, r8
mov qword [rdx], rcx
mov rax, qword [r11]
xor qword [rax + r9*8 - 8], r8
cmp r9, rsi
jl 0x14006ef00
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x48]
mov rdx, qword [rax + 0x48]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x48], rcx
mov rax, qword [r11]
xor qword [rax + 0x48], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x40]
mov rdx, qword [rax + 0x40]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x40], rcx
mov rax, qword [r11]
xor qword [rax + 0x40], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x38]
mov rdx, qword [rax + 0x38]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x38], rcx
mov rax, qword [r11]
xor qword [rax + 0x38], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x30]
mov rdx, qword [rax + 0x30]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x30], rcx
mov rax, qword [r11]
xor qword [rax + 0x30], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x28]
mov rdx, qword [rax + 0x28]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x28], rcx
mov rax, qword [r11]
xor qword [rax + 0x28], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x20]
mov rdx, qword [rax + 0x20]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x20], rcx
mov rax, qword [r11]
xor qword [rax + 0x20], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x18]
mov rdx, qword [rax + 0x18]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x18], rcx
mov rax, qword [r11]
xor qword [rax + 0x18], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 0x10]
mov rdx, qword [rax + 0x10]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 0x10], rcx
mov rax, qword [r11]
xor qword [rax + 0x10], rdx
mov rax, qword [r11]
mov r8, qword [rdi]
mov rcx, qword [r8 + 8]
mov rdx, qword [rax + 8]
xor rdx, rcx
and rdx, rbx
xor rcx, rdx
mov qword [r8 + 8], rcx
mov rax, qword [r11]
xor qword [rax + 8], rdx
mov r8, qword [rdi]
mov rax, qword [r11]
mov rsi, qword [rsp + 0x10]
mov rdx, qword [r8]
mov rcx, qword [rax]
mov rdi, qword [rsp + 0x18]
xor rcx, rdx
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rdx, rcx
mov qword [r8], rdx
mov rax, qword [r11]
xor qword [rax], rcx
ret
Function at 0x140081c30
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, str.OPENSSL_CONF
call qword [sym.imp.MSVCR120.dll_getenv]
xor ebx, ebx
test rax, rax
je 0x140081c76
mov rcx, rax
cmp byte [rax], bl
je 0x140081c63
cmp ebx, 0x80000000
jae 0x140081c63
inc rcx
inc ebx
cmp byte [rcx], 0
jne 0x140081c51
mov edx, ebx
mov rcx, rax
btr edx, 0x1f
add rsp, 0x30
pop rbx
jmp fcn.14008e860
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [0x14017e55c]
mov eax, ebx
mov rcx, rdi
cmp byte [reloc.WS2_32.dll_WSAStartup], al
je 0x140081ca4
cmp eax, 0x80000000
jae 0x140081ca4
inc rcx
inc eax
cmp byte [rcx], bl
jne 0x140081c94
btr eax, 0x1f
mov ecx, ebx
lea rdx, [0x140185990]
inc eax
cmp byte [reloc.WS2_32.dll_WSAGetLastError], cl
je 0x140081cd1
nop dword [rax + rax]
cmp ecx, 0x80000000
jae 0x140081cd1
inc rdx
inc ecx
cmp byte [rdx], bl
jne 0x140081cc0
btr ecx, 0x1f
mov qword [rsp + 0x40], rbp
lea esi, [rcx + rax]
inc esi
test esi, esi
jle 0x140081e6e
mov rax, qword [0x1401f2978]
mov dword [0x14017bd2c], ebx
test rax, rax
je 0x140081d16
lea r8, [0x1401859a0]
mov r9d, 0x231
mov edx, esi
xor ecx, ecx
mov dword [0x14017bd84], ebx
mov dword [rsp + 0x20], ebx
call rax
lea rdx, [0x1401859a0]
movsxd rcx, esi
mov r8d, 0x231
call qword [0x14013ac78]
mov r10, qword [0x1401f2978]
mov rbp, rax
test r10, r10
je 0x140081d58
lea r8, [0x1401859a0]
mov r9d, 0x231
mov edx, esi
mov rcx, rax
mov dword [rsp + 0x20], 1
call r10
test rbp, rbp
je 0x140081e6e
movsxd rdx, esi
mov rcx, rbp
mov rax, rdx
cmp rdx, 1
jbe 0x140081d8b
movzx r8d, byte [rdi]
test r8b, r8b
je 0x140081d8b
dec rax
mov byte [rcx], r8b
inc rcx
inc rdi
cmp rax, 1
ja 0x140081d70
test rax, rax
je 0x140081d92
mov byte [rcx], bl
mov eax, ebx
cmp byte [rdi], al
je 0x140081da8
cmp eax, 0x80000000
jae 0x140081da8
inc rdi
inc eax
cmp byte [rdi], bl
jne 0x140081d98
mov rax, rdx
mov rcx, rbp
test esi, esi
je 0x140081dbe
cmp byte [rcx], bl
je 0x140081dbe
inc rcx
dec rax
jne 0x140081db2
lea r8, [0x14017b824]
cmp rax, 1
jbe 0x140081deb
nop dword [rax + rax]
movzx r9d, byte [r8]
test r9b, r9b
je 0x140081deb
dec rax
mov byte [rcx], r9b
inc rcx
inc r8
cmp rax, 1
ja 0x140081dd0
test rax, rax
je 0x140081df2
mov byte [rcx], bl
mov eax, ebx
cmp byte [r8], al
je 0x140081e11
nop dword [rax]
cmp eax, 0x80000000
jae 0x140081e11
inc r8
inc eax
cmp byte [r8], bl
jne 0x140081e00
mov rcx, rbp
test esi, esi
je 0x140081e24
cmp byte [rcx], bl
je 0x140081e24
inc rcx
dec rdx
jne 0x140081e18
lea rax, str.openssl.cnf
cmp rdx, 1
jbe 0x140081e4c
movzx r8d, byte [rax]
test r8b, r8b
je 0x140081e4c
dec rdx
mov byte [rcx], r8b
inc rcx
inc rax
cmp rdx, 1
ja 0x140081e31
test rdx, rdx
je 0x140081e53
mov byte [rcx], bl
cmp byte [rax], bl
je 0x140081e69
cmp ebx, 0x80000000
jae 0x140081e69
inc rax
inc ebx
cmp byte [rax], 0
jne 0x140081e57
mov rax, rbp
jmp 0x140081e70
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x1400824c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x460
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov rdi, rcx
mov ebx, 0x400
test rcx, rcx
jne 0x1400824f3
xor eax, eax
jmp 0x1400825f7
xor eax, eax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.MSVCR120.dll__stat64i32]
test eax, eax
js 0x1400824ec
mov qword [rsp + 0x490], r14
call fcn.14006f600
test rax, rax
je 0x14008254d
mov r8, qword [rax + 0x18]
test r8, r8
je 0x14008254d
xorps xmm2, xmm2
lea rcx, [rsp + 0x20]
mov edx, 0x30
call r8
lea rdx, [0x14017b88c]
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_fopen]
mov r14, rax
test rax, rax
je 0x1400825ed
mov qword [rsp + 0x488], rsi
mov edi, 0x400
test ebx, ebx
jle 0x14008257f
cmp ebx, edi
cmovl edi, ebx
lea rcx, [rsp + 0x50]
movsxd r8, edi
mov r9, r14
mov edx, 1
call qword [sym.imp.MSVCR120.dll_fread]
mov rsi, rax
test eax, eax
jle 0x1400825cd
call fcn.14006f600
test rax, rax
je 0x1400825c1
mov r8, qword [rax + 0x18]
test r8, r8
je 0x1400825c1
movd xmm2, esi
lea rcx, [rsp + 0x50]
mov edx, esi
cvtdq2pd xmm2, xmm2
call r8
add ebp, esi
test ebx, ebx
jle 0x140082571
sub ebx, edi
test ebx, ebx
jg 0x140082571
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_fclose]
lea rcx, [rsp + 0x50]
mov edx, 0x400
call fcn.140011160
mov rsi, qword [rsp + 0x488]
mov r14, qword [rsp + 0x490]
mov eax, ebp
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140129b50
add rsp, 0x460
pop rdi
pop rbp
pop rbx
ret
Function at 0x140082620
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, str.RANDFILE
call qword [sym.imp.MSVCR120.dll_getenv]
xor edi, edi
mov ebx, 0x4000
test rax, rax
je 0x14008269a
cmp byte [rax], dil
je 0x14008269a
mov rdx, rax
mov ecx, edi
cmp ecx, 0x80000000
jae 0x140082667
inc rdx
inc ecx
cmp byte [rdx], dil
jne 0x140082655
btr ecx, 0x1f
inc ecx
cmp ecx, ebx
jae 0x14008269a
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14008ea60
cmp rax, rbx
jb 0x1400827ed
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, str.HOME
call qword [sym.imp.MSVCR120.dll_getenv]
lea rdx, [0x14017b91c]
test rax, rax
cmovne rdx, rax
cmp byte [rdx], dil
je 0x1400827ea
mov rcx, rdx
mov eax, edi
cmp eax, 0x80000000
jae 0x1400826d4
inc rcx
inc eax
cmp byte [rcx], dil
jne 0x1400826c3
mov ecx, edi
lea r8, [0x140185bdc]
cmp byte [0x140185bdc], cl
je 0x1400826f7
cmp ecx, 0x80000000
jae 0x1400826f7
inc r8
inc ecx
cmp byte [r8], dil
jne 0x1400826e5
btr eax, 0x1f
btr ecx, 0x1f
add eax, 2
add eax, ecx
cmp eax, ebx
jae 0x1400827ea
mov r8, rbx
mov rcx, rsi
call fcn.14008ea60
mov r11, rbx
mov rcx, rsi
nop dword [rax]
cmp byte [rcx], dil
je 0x14008272d
inc rcx
dec r11
jne 0x140082720
lea rax, [0x14017b93c]
cmp r11, 1
jbe 0x140082758
nop word [rax + rax]
movzx edx, byte [rax]
test dl, dl
je 0x140082758
dec r11
mov byte [rcx], dl
inc rcx
inc rax
cmp r11, 1
ja 0x140082740
test r11, r11
je 0x140082760
mov byte [rcx], dil
mov ecx, edi
cmp byte [rax], cl
je 0x140082778
cmp ecx, 0x80000000
jae 0x140082778
inc rax
inc ecx
cmp byte [rax], dil
jne 0x140082766
mov rcx, rsi
nop dword [rax + rax]
cmp byte [rcx], dil
je 0x14008278d
inc rcx
dec rbx
jne 0x140082780
lea rax, str..rnd
cmp rbx, 1
jbe 0x1400827b8
nop word [rax + rax]
movzx edx, byte [rax]
test dl, dl
je 0x1400827b8
dec rbx
mov byte [rcx], dl
inc rcx
inc rax
cmp rbx, 1
ja 0x1400827a0
test rbx, rbx
je 0x1400827c0
mov byte [rcx], dil
cmp byte [rax], dil
je 0x1400827ed
cmp edi, 0x80000000
jae 0x1400827ed
inc rax
inc edi
cmp byte [rax], 0
jne 0x1400827c5
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rsi], dil
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008e7d0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov r9, rcx
test rcx, rcx
je 0x14008e82a
movzx eax, byte [rcx]
test al, al
je 0x14008e82a
mov r10d, 0x100
nop word [rax + rax]
movsx r8d, al
lea r9, [r9 + 1]
or r8d, r10d
add r10d, 0x100
mov eax, r8d
shr eax, 2
xor eax, r8d
and eax, 0xf
movzx ecx, al
movzx eax, byte [r9]
imul r8d, r8d
rol edx, cl
xor edx, r8d
test al, al
jne 0x14008e7f0
mov eax, edx
shr eax, 0x10
xor eax, edx
ret
xor eax, eax
ret

Function at 0x140090900
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1401f29b4], 0
jne 0x1400909bb
lea rcx, str.OPENSSL_ia32cap
mov dword [0x1401f29b4], 1
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x14009099d
mov qword [rsp + 0x38], rbx
xor ebx, ebx
cmp byte [rax], 0x7e
sete bl
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x30]
movsxd rdi, ebx
lea rdx, str._I64i
add rdi, rax
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_sscanf]
test eax, eax
jne 0x140090975
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_strtoul]
mov edx, eax
mov qword [rsp + 0x30], rdx
jmp 0x14009097a
mov rdx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x1400909a5
call fcn.140010ff0
mov rdx, rax
mov rax, qword [rsp + 0x30]
not rax
and rdx, rax
jmp 0x1400909a5
call fcn.140010ff0
mov rdx, rax
mov ecx, edx
bts ecx, 0xa
shr rdx, 0x20
mov dword [0x1401f4f04], edx
mov dword [0x1401f4f00], ecx
add rsp, 0x28
ret

Function at 0x140090b40
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x170
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x140090bb3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x140090bb3
lea rbx, [rsp + 0x188]
call qword [sym.imp.MSVCR120.dll___iob_func]
mov rdx, qword [rsp + 0x180]
lea rcx, [rax + 0x60]
mov r8, rbx
call qword [sym.imp.MSVCR120.dll_vfprintf]
jmp 0x140090c5b
mov r8, qword [rsp + 0x180]
lea r9, [rsp + 0x188]
lea rcx, [rsp + 0x60]
mov edx, 0xff
call qword [sym.imp.MSVCR120.dll__vsnprintf]
mov byte [rsp + 0x15f], 0
call fcn.1400909c0
xor ecx, ecx
test eax, eax
jle 0x140090c43
lea rdx, str.OPENSSL
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
xor ecx, ecx
mov r9d, 1
mov qword [rsp + 0x40], rcx
mov rbx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov edx, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x140090c5b
lea r8, str.OpenSSL:_FATAL
lea rdx, [rsp + 0x60]
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140129b50
add rsp, 0x170
pop rbx
ret