joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015f00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10093400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10096e94]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
cmp dword [eax], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x10015fd9
cmp byte [0x100949aa], 0
jne 0x10015fd9
mov esi, dword [0x10096d50]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
add esi, 0xfffffffe
mov byte [0x100949aa], 1
push esi
call ebx
push 1
call edi
push 1
call edi
mov eax, 0xe084
push 1
mov word [esi], ax
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call ebx
mov esi, dword [0x10096b74]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov esi, dword [0x10096b70]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x10096e94]
mov eax, dword [eax]
test eax, eax
jne 0x10015ff2
cmp byte [0x100949aa], 1
jne 0x10015ff2
mov byte [0x100949aa], al
cmp dword [0x10095070], 0
je 0x100160e8
cmp eax, 1
jne 0x10016091
cmp byte [0x100949a9], 0
jne 0x10016048
mov esi, dword [0x10096b64]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x100949a9], 1
cmp dword [0x10094aa4], 0
je 0x10016091
cmp byte [0x10094fa9], 0
jne 0x10016091
mov esi, dword [0x10096b64]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x10094fa9], 1
mov eax, dword [0x10096e94]
cmp dword [eax], 4
jne 0x100160cb
mov esi, dword [0x10096b64]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x10096e94]
cmp dword [eax], 0
jne 0x10016128
mov byte [0x10094fa9], 0
mov dword [0x10094aa4], 0
jmp 0x10016121
cmp byte [0x100949a9], 1
jne 0x10016128
mov esi, dword [0x10096b64]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x100949a9], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10074adb
mov esp, ebp
pop ebp
ret
Function at 0x10017490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10096e94]
inc dword [0x10093ce0]
cmp dword [eax], 1
jne 0x1001759d
mov eax, dword [0x10094df4]
cmp dword [eax], 0
je 0x1001759d
cmp dword [0x10094d50], 0
je 0x1001759d
mov ecx, dword [0x10094b2c]
sub ecx, dword [0x10096b54]
add ecx, dword [0x10096c80]
mov eax, dword [0x10096d28]
mov ecx, dword [ecx + eax]
call fcn.10008040
test eax, eax
jle 0x10017507
mov eax, dword [0x10094df4]
mov ecx, dword [eax]
add ecx, dword [0x10096b40]
call fcn.10018720
mov ecx, dword [0x10096b60]
add ecx, eax
call fcn.10018760
jmp 0x1001750a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001759d
mov eax, dword [0x10094df4]
push edi
push 1
mov edi, dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10017595
cmp byte [0x100976a8], 0
je 0x10017552
cmp dword [0x100976ac], 0
je 0x1001759c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x100976ac]
add ecx, 0x96
cmp ecx, eax
ja 0x1001759c
mov byte [0x100976a8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x100976ac], eax
mov eax, dword [0x10093ce0]
cmp eax, dword [0x10094a7c]
jl 0x1001759c
push 0
push 2
mov ecx, edi
call dword [0x10096b80]
push 0
push 0
mov ecx, edi
call dword [0x10096b80]
mov dword [0x10093ce0], 0
jmp 0x1001759c
mov byte [0x100976a8], 0
pop edi
mov eax, dword [0x100940e4]
test eax, eax
jne 0x100175af
mov dword [0x10094a7c], eax
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100175c2
mov dword [0x10094a7c], 0xa
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100175d5
mov dword [0x10094a7c], 0x14
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x100175e8
mov dword [0x10094a7c], 0x1e
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x100175fb
mov dword [0x10094a7c], 0x28
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x1001760e
mov dword [0x10094a7c], 0x32
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10017621
mov dword [0x10094a7c], 0x3c
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x10017634
mov dword [0x10094a7c], 0x46
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x10017647
mov dword [0x10094a7c], 0x50
mov esp, ebp
pop ebp
ret
cmp eax, 9
jne 0x1001765a
mov dword [0x10094a7c], 0x5a
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x1001766d
mov dword [0x10094a7c], 0x64
mov esp, ebp
pop ebp
ret
cmp eax, 0xb
jne 0x10017680
mov dword [0x10094a7c], 0x6e
mov esp, ebp
pop ebp
ret
cmp eax, 0xc
jne 0x1001768f
mov dword [0x10094a7c], 0x78
mov esp, ebp
pop ebp
ret
Function at 0x100180a0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10096e94]
sub esp, 0xc
cmp dword [eax], 1
push edi
jne 0x100181a6
mov eax, dword [0x10094df4]
cmp dword [eax], 0
je 0x10018103
mov ecx, dword [0x10094b2c]
sub ecx, dword [0x10096b54]
add ecx, dword [0x10096c80]
mov eax, dword [0x10096d28]
mov ecx, dword [ecx + eax]
call fcn.10008040
test eax, eax
jle 0x10018103
mov eax, dword [0x10094df4]
mov ecx, dword [eax]
add ecx, dword [0x10096b40]
call fcn.10018720
mov ecx, dword [0x10096b60]
add ecx, eax
call fcn.10018760
jmp 0x10018106
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100181a6
cmp dword [0x100949b0], eax
je 0x100181a6
mov eax, dword [0x10096c7c]
lea edx, [ebp - 0xc]
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x10096bc0]
mov ecx, esp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push ecx
push eax
push edx
call fcn.10019a60
mov ecx, dword [0x10096d60]
call fcn.100059d0
add esp, 0xc
mov edi, eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
shr ecx, 0x10
test ecx, ecx
je 0x1001819f
cmp byte [0x100976a8], 0
je 0x10018182
cmp dword [0x100976ac], 0
je 0x100181a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x100976ac]
inc ecx
cmp ecx, eax
ja 0x100181a6
mov byte [0x100976a8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x100976ac], eax
mov dword [edi], 5
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x100976a8], 0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10018210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10094d5c]
mov ebx, ecx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x100182a2
push edi
push 0x28
call fcn.10074ce9
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 8], esi
push 0x190
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0x433c0000
mov dword [esi + 0x14], 0x41900000
mov dword [esi + 4], 1
call ebx
add esp, 8
mov dword [esi + 8], eax
xor edi, edi
nop word [eax + eax]
push 0x14
call ebx
mov ecx, dword [esi + 8]
add esp, 4
mov dword [edi + ecx], eax
add edi, 4
cmp edi, 0x190
jl 0x10018280
mov ebx, dword [ebp - 4]
pop edi
mov dword [0x10094d5c], esi
cmp dword [esi], 0
jne 0x100182b4
mov ecx, ebx
call fcn.1000bd10
mov esi, dword [0x10094d5c]
movss xmm2, dword [0x1008db68]
mov ecx, esi
movss xmm1, dword [0x1008db4c]
push ebx
call fcn.1000b4c0
call fcn.1000b8f0
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1001833e
cmp byte [0x10097ba0], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1001830e
cmp dword [0x10097ba4], 0
je 0x10018345
call esi
mov ecx, dword [0x10097ba4]
add ecx, 0xc8
cmp ecx, eax
ja 0x10018345
mov byte [0x10097ba0], 1
call esi
cmp byte [0x10094a1b], 0
pop esi
sete byte [0x10094a1b]
mov dword [0x10097ba4], eax
cmp byte [0x10094bd7], 0
pop ebx
sete byte [0x10094bd7]
mov esp, ebp
pop ebp
ret
mov byte [0x10097ba0], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018b00
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10093400]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x10018c0b
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x10018950
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push esi
push 0x10018ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10018ba2
push edi
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 8]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10018b77
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x10018ba1
lea eax, [ebp - 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10018ba1
push 0xf8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
pop edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10018c0b
cmp ecx, esi
jne 0x10018c02
mov edx, dword [eax + 4]
test edx, edx
je 0x10018bc4
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x10018bd0
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x10018bdf
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10018be9
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x10018bf5
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x10018c02
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10018bb5
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10074adb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1001912c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10019154
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1001915a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x100191c2
jg 0x10019171
test esi, esi
je 0x100191c2
test ecx, ecx
jl 0x100191bd
jg 0x1001917b
test eax, eax
je 0x100191bd
cmp edi, ecx
jg 0x1001918f
jl 0x10019185
cmp esi, eax
jae 0x1001918f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x100191c5
mov ecx, dword [ebp + 8]
jmp 0x100191cf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x100191e9
jg 0x100191cf
test esi, esi
je 0x100191e9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100191e9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1001922c
jl 0x10019220
test ecx, ecx
jne 0x1001922c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10019245
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10019293
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10019299
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10019299
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10019306
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100192c2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x100192f4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10019306
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100192d0
test edi, edi
je 0x10019306
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10093400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100196b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100196ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100196ec
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100197c3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10019714
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10019720
movsx eax, bl
jmp 0x10019758
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10019782
sub eax, 1
je 0x10019782
sub eax, 2
jne 0x100197c3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100197a0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100197c3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10074adb
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10093400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001a7ec
cmp byte [esi + 0x3d], 0
je 0x1001a7ec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001a7da
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1001a7a1
sub eax, 1
je 0x1001a7a5
sub eax, 2
jne 0x1001a7da
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001a7c3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001a7da
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10074adb
mov esp, ebp
pop ebp
ret
Function at 0x1001c4d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10093400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1001c370
cmp byte [ebp - 0x84], 0
jne 0x1001c621
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x1001c565
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x10094138
call fcn.1001c370
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1001c370
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x1001c5d4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1001c420
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1001c663
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001c659
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001c659
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007514b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10074adb
mov esp, ebp
pop ebp
ret
Function at 0x10027970
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10027a1f
push esi
call fcn.1003d100
add esp, 4
test al, al
jne 0x10027a1f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10027997
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.10046250
add esp, 0xc
test eax, eax
je 0x100279cb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.10046250
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100279cd
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x100279fe
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.1003acc0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x100279e0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret