joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a15cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10200f68]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100a1611
cmp word [ebx], dx
jne 0x100a1611
or byte [eax + edi + 0x28], 4
jmp 0x100a1616
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100a1779
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100a1759
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100a1657
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100a168d
cmp eax, edx
jae 0x100a169b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100a1632
jmp 0x100a1779
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a1754
cmp dword [ebp - 0x18], 0
je 0x100a1754
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10200f68]
test byte [eax + edi + 0x28], 0x48
je 0x100a172a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100a16ee
mov word [esi], cx
jmp 0x100a1725
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10200f68]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10200f68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10200f68]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100a1779
pop eax
cmp word [ebp - 4], ax
jne 0x100a173a
cmp esi, ebx
jne 0x100a173a
mov word [esi], ax
jmp 0x100a1776
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100a23e2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100a1779
push 0xd
pop eax
jmp 0x100a1735
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10200f68]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100a1773
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100a1779
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a7c11
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a7cae
push ebx
push esi
call fcn.100a7bda
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100a6148
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a7c5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a7cad
push edi
push eax
call fcn.1009f9c4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a7c7b
call fcn.1009f98a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a7cac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a6148
add esp, 0x20
test eax, eax
jne 0x100a7c9a
push edi
call fcn.1009f98a
jmp 0x100a7ca2
push ebx
call fcn.1009f98a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100a7cb1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a7cc2
pop esi
ret
push ebx
push edi
push esi
call fcn.100a7bda
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1009f9c4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a7cea
push ebx
push esi
push edi
call fcn.100847e0
add esp, 0xc
push 0
call fcn.1009f98a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a8444
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a7f5f

Function at 0x100aa882
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1009d84a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100aa8f1
cmp esi, dword [ebp - 4]
je 0x100aa8ec
cmp dword [ebp + 0xc], 0
je 0x100aa8ec
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100aa8c9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100aa3d4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100aa8f3
xor eax, eax
inc eax
jmp 0x100aa8f3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100aa958
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101fc0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1009d84a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1009d84a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100aa9cf
cmp word [ecx], dx
je 0x100aa9cf
mov eax, dword [0x10199f54]
push edi
dec eax
push eax
push 0x10199e40
call fcn.100aa8f7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100aaa42
cmp word [eax], dx
je 0x100aaa42
mov eax, dword [edi]
test eax, eax
je 0x100aa9f3
cmp word [eax], dx
je 0x100aa9f3
lea eax, [ebp - 0x10]
push eax
call fcn.100aa2da
jmp 0x100aa9fc
lea eax, [ebp - 0x10]
push eax
call fcn.100aa375
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100aaa6c
mov eax, dword [0x10199e3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10199b30
call fcn.100aa8f7
add esp, 0xc
test al, al
je 0x100aaa6c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100aaa37
cmp word [eax], di
je 0x100aaa37
lea eax, [ebp - 0x10]
push eax
call fcn.100aa2da
pop ecx
jmp 0x100aaa6e
lea eax, [ebp - 0x10]
push eax
call fcn.100aa375
jmp 0x100aaa34
mov eax, dword [edi]
test eax, eax
je 0x100aaa59
cmp word [eax], dx
je 0x100aaa59
lea eax, [ebp - 0x10]
push eax
call fcn.100aa28f
pop ecx
jmp 0x100aaa6c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100aab37
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100aa77c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100aab37
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100aab37
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100aab37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100aaac4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1009f831
test ebx, ebx
je 0x100aab32
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1009f831
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100aab37
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100aab37
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1009522f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100aab39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10062e62
leave
ret
Function at 0x100af791
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100af70d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100af900
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100af900
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100af8b5
jg 0x100af7ed
test eax, eax
je 0x100af8ab
push 1
push 0x1000
call fcn.100a3ada
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100af810
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100af8a2
push 0x8000
push ebx
call fcn.100af63e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100af839
jg 0x100af834
cmp ecx, 0x1000
jb 0x100af839
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100a2d2a
add esp, 0x10
cmp eax, 0xffffffff
je 0x100af87e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100af834
jl 0x100af865
test ecx, ecx
jne 0x100af826
push dword [ebp - 0xc]
push ebx
call fcn.100af63e
push esi
call fcn.1009f98a
add esp, 0xc
xor ebx, ebx
jmp 0x100af90e
cmp byte [edi + 0x24], 0
je 0x100af895
cmp dword [edi + 0x20], 5
jne 0x100af895
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100af8a0
mov ebx, dword [edi + 0x18]
jmp 0x100af8a2
xor ebx, ebx
push esi
call fcn.1009f98a
pop ecx
jmp 0x100af90e
test ecx, ecx
jg 0x100af877
jl 0x100af8b5
test eax, eax
jae 0x100af877
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a23e2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100af8d5
cmp byte [edi + 0x1c], 0
je 0x100af877
jmp 0x100af906
push ebx
call fcn.100aca48
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100af877
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100af90e
cmp byte [edi + 0x1c], 0
je 0x100af90b
mov ebx, dword [edi + 0x18]
jmp 0x100af90e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100a23e2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100b0970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100b099d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b099d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100b0f10
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
push eax
call fcn.10084d60
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop esi
ret

Function at 0x100b1f90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ed70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10062e70
mov edi, eax
add esp, 4
test edi, edi
je 0x100b2030
push 1
mov dword [ebp - 4], 0
call fcn.10060c2f
add esp, 4
mov dword [edi + 4], eax
jmp 0x100b2032
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100533a0
mov eax, dword [esi + 0xc]
mov ecx, 0
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 0
mov edx, dword [ebp + 0xc]
test edx, 1
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, 0x48
cmovne eax, ecx
mov dword [esi], vtable.Poco::Base64EncoderBuf.0
mov ecx, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov dword [esi + 0x40], edx
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov dword [esi + 0x54], eax
mov eax, 0x1019fb50
cmove eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x58], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b2880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e9cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10062e70
mov esi, eax
add esp, 4
test esi, esi
je 0x100b2920
push 1
mov dword [ebp - 4], 0
call fcn.10060c2f
add esp, 4
mov dword [esi + 4], eax
jmp 0x100b2922
xor esi, esi
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100533a0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x38], 0xffffffff
mov byte [edi + 0x3c], 0
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [edi + 0x10]
mov dword [eax], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test esi, 1
mov dword [edi], vtable.Poco::Base64DecoderBuf.0
mov dword [edi + 0x40], esi
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov eax, dword [ecx]
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], 0x102014d8
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, 0x102012d0
mov dword [edi + 0x50], eax
mov eax, 0x102013d8
cmove eax, ecx
mov ecx, 0x102014d8
mov dword [edi + 0x54], eax
call fcn.1005f6d0
test esi, 1
je 0x100b2a15
cmp byte [0x102013d1], 0
jne 0x100b2a61
push 0x100
push 0xff
push 0x102013d8
call fcn.10084d60
add esp, 0xc
xor ecx, ecx
movzx eax, byte [ecx + 0x1019fb50]
mov byte [eax + 0x102013d8], cl
inc ecx
cmp ecx, 0x40
jb 0x100b29f2
mov byte [0x10201415], 0
mov byte [0x102013d1], 1
jmp 0x100b2a61
cmp byte [0x102013d0], 0
jne 0x100b2a61
push 0x100
push 0xff
push 0x102012d0
call fcn.10084d60
add esp, 0xc
xor eax, eax
nop word [eax + eax]
movzx ecx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 0x102012d0], al
inc eax
cmp eax, 0x40
jb 0x100b2a40
mov byte [0x1020130d], 0
mov byte [0x102013d0], 1
lea ecx, [ebp + 0xc]
call fcn.100764e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b3050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ed70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10062e70
mov edi, eax
add esp, 4
test edi, edi
je 0x100b30f0
push 1
mov dword [ebp - 4], 0
call fcn.10060c2f
add esp, 4
mov dword [edi + 4], eax
jmp 0x100b30f2
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100533a0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 0
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov dword [esi], vtable.Poco::HexBinaryEncoderBuf.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0x48
mov dword [esi + 0x48], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x4c], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100b35f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ed70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 8
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10062e70
mov edi, eax
add esp, 4
test edi, edi
je 0x100b3690
push 1
mov dword [ebp - 4], 0
call fcn.10060c2f
add esp, 4
mov dword [edi + 4], eax
jmp 0x100b3692
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100533a0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 0
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov dword [esi], vtable.Poco::HexBinaryDecoderBuf.0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b8c60
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.100d0f30
push 0x62
push edi
mov ebx, eax
call fcn.10086ca0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x100b8d00
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100b44a0
push 0x101a070c
push edi
push 0x101a0710
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.100b3a90
add esp, 0x2c
call fcn.1009a58d
cmp dword [eax], 2
je 0x100b8cdd
call fcn.1009a58d
cmp dword [eax], 6
je 0x100b8cdd
lea eax, [ebx + 2]
lea ecx, [ebx + 0x51]
jmp 0x100b8ce7
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.100b44a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x101a06b4
call fcn.100b9500
mov edi, eax
add esp, 4
test edi, edi
jne 0x100b8d22
push ebx
call fcn.10093d22
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.100b8e80
push ebx
push esi
push 0x6a
push edi
call fcn.100b8eb0
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100bd530
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x100bd657
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x100bd657
push esi
push edi
cmp ecx, 4
jb 0x100bd631
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x100bd5d0
cmp edi, edx
jae 0x100bd631
cmp esi, ebx
ja 0x100bd5d8
cmp edi, ebx
jae 0x100bd631
cmp esi, ebp
ja 0x100bd5e0
cmp edi, ebp
jae 0x100bd631
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x100bd5ee
cmp edi, ebx
jae 0x100bd631
cmp edx, ebp
ja 0x100bd5f6
cmp edi, ebp
jae 0x100bd631
mov edi, ecx
and edi, 0xfffffffc
nop dword [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x100bd600
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x100bd655
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x1c]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x100bd631
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100c1560
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
test esi, esi
je 0x100c15a6
mov al, byte [esi]
test al, al
je 0x100c15a6
push edi
mov edi, 0x100
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor cl, al
imul eax, eax
and cl, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x100c1577
mov eax, edx
pop edi
shr eax, 0x10
xor eax, edx
pop esi
ret
xor eax, eax
pop esi
ret