joyce8/EMBER2024-capa huggingface dataset:
Function at 0x629130d0
Capabilities:
Get storage device properties

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
lea rbx, [rsp + 0x70]
mov rdi, rdx
mov ebp, ecx
xor edx, edx
mov rcx, rdi
mov rsi, r8
call fcn.62981c18
mov rcx, rbx
mov r8d, ebp
lea rdx, str..PhysicalDrive_d
call qword [0x629a4558]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [0x629a4270]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x629131bc
lea r12, [0x6299b240]
xor edx, edx
mov r8d, 0x2710
mov dword [rsp + 0x60], 0
lea r13, [rsp + 0x64]
mov qword [rsp + 0x64], 0
mov rcx, r12
mov dword [rsp + 0x6c], 0
call fcn.62981c18
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x2710
mov qword [rsp + 0x20], r12
mov r9d, 0xc
mov r8, r13
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov rcx, rbx
call qword [0x629a4288]
test eax, eax
jne 0x629131e4
mov rcx, rbx
call qword [0x629a4268]
cmp rsi, 0x13
jbe 0x62913390
mov rdx, rdi
mov ecx, ebp
call fcn.62912d20
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x6299b258]
test eax, eax
je 0x629131b3
add rax, r12
mov r15, qword [0x629a44a8]
mov r13d, 0x64
mov qword [rsp + 0x58], rax
mov r12, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov r14, rax
test r13d, r13d
movzx edx, byte [r12]
je 0x629132c0
test dl, dl
je 0x629132c0
movsx ecx, dl
mov byte [rsp + 0x4e], dl
call r15
test eax, eax
je 0x62913360
movzx edx, byte [rsp + 0x4e]
cmp dl, 0x39
jg 0x62913340
sub edx, 0x30
movsx ecx, byte [r12 + 1]
shl edx, 4
mov byte [rsp + 0x4e], dl
mov byte [rsp + 0x4f], cl
call r15
test eax, eax
je 0x62913360
movzx edx, byte [rsp + 0x4f]
cmp dl, 0x39
jg 0x62913350
sub edx, 0x30
or dl, byte [rsp + 0x4e]
add r12, 2
movzx ecx, dl
mov byte [rsp + 0x4e], dl
call qword [0x629a44a0]
test eax, eax
je 0x62913360
movzx edx, byte [rsp + 0x4e]
cmp dl, 0x20
je 0x62913216
sub r13d, 1
mov byte [r14], dl
add r14, 1
test r13d, r13d
movzx edx, byte [r12]
jne 0x62913224
mov r8, qword [rsp + 0x50]
mov byte [r14], 0
mov edx, dword [r8]
add r8, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x629132c9
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [r8 + 2]
mov ecx, eax
cmove r8, rdx
add cl, al
sbb r8, 3
sub r8, qword [rsp + 0x50]
cmp r8d, esi
mov r12d, r8d
jae 0x629131b3
mov rdx, qword [rsp + 0x50]
add r8, 1
mov rcx, rdi
call fcn.62981c28
mov rcx, rbx
call qword [0x629a4268]
test r12d, r12d
je 0x629131bc
xor eax, eax
jmp 0x629131d0
and edx, 0xffffffdf
sub edx, 0x37
jmp 0x6291324f
and edx, 0xffffffdf
sub edx, 0x37
jmp 0x6291327c
mov rcx, qword [rsp + 0x58]
call fcn.62981bd0
cmp eax, esi
mov r12d, eax
jae 0x629131b3
mov rdx, qword [rsp + 0x58]
lea r8, [rax + 1]
mov rcx, rdi
call fcn.62981c28
jmp 0x62913320
mov eax, 0xffffffff
jmp 0x629131d0
Function at 0x62913600
Capabilities:
Get storage device properties

Disassembly:
sub rsp, 0x28
test r9, r9
mov eax, ecx
mov rcx, rdx
jne 0x62913632
test eax, eax
je 0x62913650
cmp eax, 1
je 0x62913670
cmp eax, 2
je 0x62913680
cmp eax, 3
je 0x62913690
cmp eax, 4
jne 0x6291369a
mov edx, r8d
add rsp, 0x28
jmp fcn.62912fd0
test eax, eax
je 0x62913660
cmp eax, 1
jne 0x629136b9
cmp byte [r9], 0x2a
mov edx, r8d
jne 0x62913690
add rsp, 0x28
jmp fcn.62912850
mov edx, r8d
add rsp, 0x28
jmp fcn.629133a0
mov r8d, r8d
mov rcx, r9
add rsp, 0x28
jmp fcn.62913490
mov edx, r8d
add rsp, 0x28
jmp fcn.62912a40
mov edx, r8d
add rsp, 0x28
jmp fcn.62912bd0
mov eax, 0xffffffff
add rsp, 0x28
ret
lea r8, str.Unsupported_hardware_type
lea rcx, str..._src_hdinfo.c
mov edx, 0x82
call fcn.629041f0
mov eax, 0xffffffff
jmp 0x62913695
lea r8, str.Unsupported_hardware_type_with_name
lea rcx, str..._src_hdinfo.c
mov edx, 0x6d
call fcn.629041f0
mov eax, 0xffffffff
jmp 0x62913695
Function at 0x62918ef0
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x62918f2a
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0
mov qword [rcx], 0
add rsp, 0x28
ret
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6298e291]
mov r8d, 0xe9
call fcn.6291de90
nop
nop
nop word cs:[rax + rax]
Function at 0x62918f50
Capabilities:
Hash data with md5

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
mov rsi, rdx
je 0x62919160
test rdx, rdx
je 0x62919179
mov edx, dword [rcx + 0x18]
mov eax, 0x10
cmp edx, 0x3f
jbe 0x62918f84
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea r8d, [rdx*8]
add r8, qword [rcx]
mov eax, edx
mov qword [rcx], r8
lea ecx, [rdx + 1]
cmp ecx, 0x38
mov dword [rbx + 0x18], ecx
mov byte [rbx + rax + 0x1c], pe_nt_image_headers64
ja 0x629190e0
cmp ecx, 0x38
lea rdi, [rbx + 0x1c]
je 0x629190a9
mov edx, ecx
lea r9d, [rcx + 1]
mov eax, ecx
not edx
mov byte [rbx + rax + 0x1c], 0
and edx, 7
cmp r9d, 0x38
je 0x629190a2
test edx, edx
je 0x6291904d
cmp edx, 1
je 0x6291903b
cmp edx, 2
je 0x6291902f
cmp edx, 3
je 0x62919023
cmp edx, 4
je 0x62919016
cmp edx, 5
je 0x62919009
cmp edx, 6
je 0x62918ffd
mov byte [rbx + r9 + 0x1c], 0
lea r9d, [rcx + 2]
mov ecx, r9d
add r9d, 1
mov byte [rbx + rcx + 0x1c], 0
mov r10d, r9d
add r9d, 1
mov byte [rbx + r10 + 0x1c], 0
mov r11d, r9d
add r9d, 1
mov byte [rbx + r11 + 0x1c], 0
mov edx, r9d
add r9d, 1
mov byte [rbx + rdx + 0x1c], 0
mov eax, r9d
add r9d, 1
mov byte [rbx + rax + 0x1c], 0
mov ecx, r9d
add r9d, 1
cmp r9d, 0x38
mov byte [rbx + rcx + 0x1c], 0
je 0x629190a2
lea r11d, [r9 + 1]
lea edx, [r9 + 2]
mov r10d, r9d
mov byte [rbx + r10 + 0x1c], 0
lea eax, [r9 + 3]
lea ecx, [r9 + 4]
mov byte [rbx + r11 + 0x1c], 0
lea r10d, [r9 + 5]
mov byte [rbx + rdx + 0x1c], 0
lea r11d, [r9 + 6]
lea edx, [r9 + 7]
add r9d, 8
cmp r9d, 0x38
mov byte [rbx + rax + 0x1c], 0
mov byte [rbx + rcx + 0x1c], 0
mov byte [rbx + r10 + 0x1c], 0
mov byte [rbx + r11 + 0x1c], 0
mov byte [rbx + rdx + 0x1c], 0
jne 0x6291904d
mov dword [rbx + 0x18], 0x38
mov qword [rbx + 0x54], r8
mov rdx, rdi
mov rcx, rbx
call fcn.629186b0
mov r9d, dword [rbx + 8]
xor eax, eax
mov dword [rsi], r9d
mov edi, dword [rbx + 0xc]
mov dword [rsi + 4], edi
mov r8d, dword [rbx + 0x10]
mov dword [rsi + 8], r8d
mov ebx, dword [rbx + 0x14]
mov dword [rsi + 0xc], ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp ecx, 0x40
je 0x62919147
lea edi, [rdx + 2]
mov byte [rbx + rcx + 0x1c], 0
cmp edi, 0x40
je 0x62919140
lea r8d, [rdx + 3]
mov byte [rbx + rdi + 0x1c], 0
cmp r8d, 0x40
je 0x62919140
lea r9d, [rdx + 4]
mov byte [rbx + r8 + 0x1c], 0
cmp r9d, 0x40
je 0x62919140
lea r10d, [rdx + 5]
mov byte [rbx + r9 + 0x1c], 0
cmp r10d, 0x40
je 0x62919140
lea r11d, [rdx + 6]
mov byte [rbx + r10 + 0x1c], 0
cmp r11d, 0x40
je 0x62919140
cmp edx, 0x38
mov byte [rbx + r11 + 0x1c], 0
jne 0x62919140
mov byte [rbx + 0x5b], 0
mov dword [rbx + 0x18], 0x40
lea rdi, [rbx + 0x1c]
mov rcx, rbx
mov rdx, rdi
call fcn.629186b0
mov r8, qword [rbx]
xor ecx, ecx
jmp 0x62918fb5
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6298e291]
mov r8d, 0x106
call fcn.6291de90
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6298e29c]
mov r8d, 0x107
call fcn.6291de90
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x629612d0
Capabilities:
Check for software breakpoints

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test r8d, r8d
mov rbp, rcx
je 0x62961310
mov rcx, qword [rdx + 0x10]
cmp dword [rcx + 8], 0xcd
je 0x62961302
test byte [rcx + 0xd], 0x10
jne 0x62961302
cmp qword [rdx + 0x28], 0
jne 0x62961302
cmp qword [rcx + 0x28], rdx
je 0x62961313
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rdx
mov rsi, qword [rdx + 0x18]
mov rbx, qword [rcx]
mov rdi, qword [rdx + 0x20]
and esi, 0x7fff
test rbx, rbx
je 0x62961302
mov edx, dword [rbx + 8]
movsxd r12, esi
cmp edx, 0x5c
je 0x62961393
ja 0x629613b0
lea eax, [rdx - 7]
cmp eax, 1
jbe 0x62961302
mov rcx, rbp
call fcn.62960ec0
test al, 4
jne 0x62961302
mov edx, eax
and edx, 3
cmp edx, 3
je 0x62961430
mov edx, eax
and edx, 0x300
cmp edx, 0x300
je 0x62961460
and eax, 0x30000
mov rcx, rbx
cmp eax, 0x30000
je 0x62961486
mov rbx, qword [rcx]
test rbx, rbx
je 0x62961302
mov edx, dword [rbx + 8]
cmp edx, 0x5c
jne 0x62961334
mov rax, qword [rbx + 0x10]
and eax, 0x7fff
cmp r12, rax
je 0x629613c3
mov rcx, rbx
jmp 0x6296137f
cmp edx, 0xcd
jne 0x6296133e
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp word [rbx + 0xc], 0
jne 0x62961302
cmp qword [rbx + 0x18], rdi
jne 0x62961302
cmp rcx, rbx
mov rax, qword [rbx]
je 0x629614c0
mov qword [rcx], rax
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0x100]
mov qword [rbx], rdx
mov qword [rax + 0x100], rbx
jmp 0x6296137f
test al, 8
je 0x629614a0
mov edx, dword [rbx + 0x10]
and edx, 0x7fff
cmp edx, esi
je 0x62961302
mov edx, dword [rbx + 0x14]
and edx, 0x7fff
cmp edx, esi
jne 0x62961358
jmp 0x62961302
mov rdx, qword [rbx + 0x18]
and edx, 0x7fff
cmp r12, rdx
je 0x62961302
and eax, 0x30000
mov rcx, rbx
cmp eax, 0x30000
jne 0x6296137f
mov rax, qword [rbx + 0x20]
and eax, 0x7fff
cmp r12, rax
jne 0x6296137f
jmp 0x62961302
mov rdx, qword [rbx + 0x10]
and edx, 0x7fff
cmp r12, rdx
jne 0x62961358
jmp 0x62961302
mov rdx, qword [rbp + 0x38]
mov qword [rdx], rax
jmp 0x629613e7
Function at 0x6297f7f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
cmp dword [rcx + 0x244], 0x10
ja 0x6297f870
mov rbx, rcx
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov edi, r8d
call fcn.6291ded0
test eax, eax
mov r14d, eax
jne 0x6297f876
mov eax, dword [rbx + 0x240]
test eax, eax
jne 0x6297f861
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
jne 0x6297f890
cmp qword [rbx + 0x248], 0
je 0x6297fa80
lea r13, [rbx + 0x228]
lea r12, [rbx + 0x1f8]
jmp 0x6297f90a
cmp eax, 1
je 0x6297fa90
nop word [rax + rax]
mov r14d, 0x10
lea rsp, [rbp - 0x38]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbx + 0x23c]
lea r13, [rbx + 0x228]
test eax, eax
jne 0x6297f8d0
cmp ecx, 0xc
jne 0x6297f8d0
mov rax, qword [rbx + 0x228]
mov qword [rbx + 0x208], rax
mov eax, dword [r13 + 8]
mov dword [rbx + 0x214], 0x1000000
mov dword [rbx + 0x210], eax
jmp 0x6297f975
lea eax, [rcx - 1]
lea r12, [rbx + 0x1f8]
lea r8, [rbx + rax + 0x1f9]
mov rdx, r12
movzx eax, byte [rdx + 0x30]
xor byte [rdx], al
add rdx, 1
cmp rdx, r8
jne 0x6297f8e5
shl rcx, 3
add qword [rbx + 0x248], rcx
mov rdx, r12
mov rcx, rbx
call fcn.62917ff0
mov edx, 8
mov rcx, r13
call fcn.6291e9d0
mov rax, qword [rbx + 0x248]
mov rdx, r12
bswap rax
mov qword [rbx + 0x230], rax
lea rax, [rbx + 0x208]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rax, rdx
jne 0x6297f932
mov rdx, r12
mov rcx, rbx
call fcn.62917ff0
mov rdx, qword [rbx + 0x200]
mov rax, qword [rbx + 0x1f8]
mov rcx, r12
mov qword [rbx + 0x210], rdx
mov qword [rbx + 0x208], rax
mov edx, 0x10
call fcn.6291e9d0
mov rdx, qword [rbx + 0x210]
mov rax, qword [rbx + 0x208]
mov rcx, r13
mov qword [rbx + 0x220], rdx
mov qword [rbx + 0x218], rax
mov edx, 0x10
call fcn.6291e9d0
mov qword [rbx + 0x240], 1
mov qword [rbx + 0x248], 0
mov r13d, edi
and r13d, 0xfffffff0
je 0x6297fab0
lea r15, [rbx + 0x1f8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, r12d
mov rdx, r15
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [r12 + 8]
add r12d, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.62917ff0
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12d, r13d
jb 0x6297f9d0
mov eax, r12d
add rsi, rax
cmp edi, r12d
jbe 0x6297f876
sub edi, 1
sub edi, r12d
lea r12, [rsi + rdi + 1]
lea rdi, [rbx + 0x1f8]
jmp 0x6297fa39
cmp rsi, r12
je 0x6297f876
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
movzx ecx, byte [rsi - 1]
lea eax, [rdx + 1]
mov dword [rbx + 0x244], eax
xor byte [rbx + rdx + 0x1f8], cl
cmp eax, 0x10
jne 0x6297fa30
mov rdx, rdi
mov rcx, rbx
call fcn.62917ff0
mov dword [rbx + 0x244], 0
sub qword [rbx + 0x248], 0xffffffffffffff80
jmp 0x6297fa30
mov r14d, 1
jmp 0x6297f876
mov eax, dword [rbx + 0x244]
cmp eax, 0xf
jg 0x6297f870
xor r12d, r12d
test eax, eax
jne 0x6297fa10
jmp 0x6297f9b4
xor r12d, r12d
jmp 0x6297fa10
Function at 0x6297fee0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
mov ebp, 0x10
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x240]
test eax, eax
jne 0x62980021
cmp dword [rcx + 0x244], 0xf
mov rbx, rcx
ja 0x62980021
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov r12d, r8d
call fcn.6291ded0
test eax, eax
mov ebp, eax
jne 0x62980021
mov eax, dword [rbx + 0x244]
lea edx, [rax + r12]
cmp edx, 0xc
jbe 0x6297ff42
or dword [rbx + 0x23c], 1
xor edi, edi
test eax, eax
jne 0x6297ff9b
mov r13d, r12d
and r13d, 0xfffffff0
je 0x62980032
lea r14, [rbx + 0x1f8]
nop dword [rax]
mov eax, edi
mov rdx, r14
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [rdi + 8]
add edi, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.62917ff0
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp edi, r13d
jb 0x6297ff60
mov eax, edi
add rsi, rax
cmp r12d, edi
jbe 0x62980021
sub r12d, 1
lea r13, [rbx + 0x1f8]
sub r12d, edi
lea rdi, [rbx + 0x208]
lea r12, [rsi + r12 + 1]
jmp 0x6297ffc5
cmp r12, rsi
je 0x62980021
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
lea ecx, [rdx + 1]
mov dword [rbx + 0x244], ecx
movzx eax, byte [rsi - 1]
cmp ecx, 0x10
mov byte [rbx + rdx + 0x228], al
jne 0x6297ffc0
mov rdx, r13
nop dword [rax]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rdi, rdx
jne 0x6297fff0
mov rdx, r13
mov rcx, rbx
call fcn.62917ff0
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12, rsi
mov dword [rbx + 0x244], 0
jne 0x6297ffc5
add rsp, 0x20
mov eax, ebp
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, eax
jmp 0x6297ff9b
Function at 0x630e7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.630e71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x630e7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x630e706f
add dl, dl
jne 0x630e7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x630e70f6
xor eax, eax
add dl, dl
jne 0x630e70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x630e71ad
add dl, dl
jne 0x630e70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x630e70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x630e70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x630e70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x630e70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x630e707e
mov eax, 1
add dl, dl
jne 0x630e7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x630e7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x630e70fb
sub eax, ebx
mov ebx, 1
jne 0x630e714c
mov ecx, 1
add dl, dl
jne 0x630e712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x630e713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x630e7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x630e707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x630e7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x630e7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x630e715d
cmp eax, 0x7d00
jae 0x630e719b
cmp eax, 0x500
jb 0x630e7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x630e707e
cmp eax, 0x7f
ja 0x630e719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x630e707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x630e71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x630e707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1800010a3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800010e6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1800010e1
cmp rbx, r11
jae 0x1800010e6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1800010d0
cmp rbx, r11
jb 0x1800010ea
xor eax, eax
jmp 0x1800010f6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800011b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov rdi, r8
mov r8d, dword [r9]
mov rbx, r9
mov r10d, edx
mov r11, rcx
test r8d, r8d
jne 0x1800011d3
xor al, al
mov rbx, qword [rsp + 0x18]
pop rdi
ret
lea ecx, [rdx + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [rdx*4 + 1]
cmp r8d, eax
jb 0x1800011ca
mov eax, 0xaaaaaaab
mov qword [rsp + 0x10], rsi
mov r8, rdi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r10d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x18000128a
dec ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
mov r9d, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [r11]
add r8, 4
add r11, 3
shr rax, 2
movzx eax, byte [rax + rsi]
mov byte [r8 - 4], al
movzx ecx, byte [r11 - 3]
movzx eax, byte [r11 - 2]
shr rax, 4
and ecx, 3
shl rcx, 4
add rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r8 - 3], al
movzx ecx, byte [r11 - 2]
movzx eax, byte [r11 - 1]
shr rax, 6
and ecx, 0xf
lea rcx, [rax + rcx*4]
movzx eax, byte [rcx + rsi]
mov byte [r8 - 2], al
movzx eax, byte [r11 - 1]
and eax, 0x3f
dec r9
movzx eax, byte [rax + rsi]
mov byte [r8 - 1], al
jne 0x180001220
cmp edx, r10d
jae 0x1800012ef
movzx ecx, byte [r11]
lea r9d, [rdx + 1]
cmp r9d, r10d
jae 0x1800012a3
movzx edx, byte [r11 + 1]
jmp 0x1800012a5
xor dl, dl
movzx eax, cl
movzx ecx, cl
shr rax, 2
and ecx, 3
movzx eax, byte [rax + rsi]
shl rcx, 4
mov byte [r8], al
movzx eax, dl
shr rax, 4
add rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r8 + 1], al
cmp r9d, r10d
jae 0x1800012e0
movzx eax, dl
and eax, 0xf
movzx ecx, byte [rsi + rax*4]
jmp 0x1800012e2
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov rsi, qword [rsp + 0x10]
mov byte [r8], 0
sub r8d, edi
mov dword [rbx], r8d
mov rbx, qword [rsp + 0x18]
mov al, 1
pop rdi
ret
Function at 0x180002a60
Capabilities:
Set current directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov r13d, edx
mov rbx, rcx
xor ebp, ebp
lea rdx, [0x18004e288]
call fcn.18003073c
mov rsi, rax
test rax, rax
je 0x180002c46
mov edi, eax
sub edi, ebx
lea eax, [rdi + 1]
movsxd rcx, eax
call fcn.18002f604
mov r12, rax
movsxd r8, edi
mov byte [r8 + rax], bpl
mov rdx, rbx
mov rcx, rax
call fcn.18002fb80
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
or rbx, 0xffffffffffffffff
test r12, r12
je 0x180002b1e
test r12, 0xffffffffffff0000
jne 0x180002b0c
movzx edi, r12w
mov ecx, edi
call fcn.180001110
test rax, rax
je 0x180002b31
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180001a00
jmp 0x180002b31
xor eax, eax
mov rcx, rbx
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
jmp 0x180002b20
mov ecx, ebp
mov r8d, ecx
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.180001b40
nop
mov rcx, r12
call fcn.18002f934
lea rcx, [rsp + 0x70]
call fcn.180003e60
lea rdx, [0x18004e28c]
mov rcx, qword [rsp + 0x70]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x180002c29
inc rsi
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180002c24
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
cmp byte [rsi], 0x5c
je 0x180002bbb
xor edx, edx
xor ecx, ecx
call fcn.1800413a8
mov r8, rax
mov r9, rsi
lea rdx, [0x18004e290]
lea rcx, [rsp + 0x78]
call fcn.180002980
jmp 0x180002bd9
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.180001b40
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call fcn.1800413ec
lea rcx, [rdi - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8b, 0x18
mov edx, r13d
lea rcx, [rsp + 0x20]
call fcn.180002d60
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x180002c24
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebp, 1
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180002c46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, ebp
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002e90
Capabilities:
Set current directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov ebp, edx
mov rbx, rcx
xor edx, edx
call fcn.180030814
test eax, eax
jne 0x180002f95
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rdx, [0x18004e29c]
test rdx, 0xffffffffffff0000
jne 0x180002f0b
movzx edi, dx
mov ecx, edi
call fcn.180001110
test rax, rax
je 0x180002f1f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180001a00
jmp 0x180002f1f
mov r8d, 1
lea rcx, [rsp + 0x80]
call fcn.180001b40
nop
mov rcx, rbx
call fcn.180021110
test eax, eax
je 0x180002f45
mov r8d, 1
lea rdx, [0x18004e26c]
lea rcx, [rsp + 0x80]
call fcn.180001b40
mov rdi, qword [rsp + 0x80]
lea rcx, [rdi - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x88], rax
mov r8b, 0x18
mov edx, ebp
lea rcx, [rsp + 0x88]
call fcn.180002d60
nop
or rsi, 0xffffffffffffffff
lock xadd dword [rdi - 8], esi
dec esi
test esi, esi
jg 0x180003072
mov rcx, qword [rdi - 0x18]
lea rdx, [rdi - 0x18]
jmp 0x18000306c
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 2
je 0x180002fc3
mov rcx, rsi
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 3
jne 0x180003009
cmp byte [rbx + 1], 0x3a
jne 0x180003009
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 3
jne 0x180002fe5
cmp byte [rbx + 2], 0x5c
jne 0x180003009
mov rcx, rbx
call fcn.1800413ec
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180001580
mov r8b, 0x18
mov edx, ebp
mov rcx, rax
call fcn.180002d60
jmp 0x180003072
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180001580
mov edx, ebp
mov rcx, rax
call fcn.180002c60
test eax, eax
jne 0x180003072
mov edx, ebp
mov rcx, rbx
call fcn.180002a60
test eax, eax
jne 0x180003072
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180001580
mov r9d, ebp
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1800037d0
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180003072
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret