joyce8/EMBER2024-capa huggingface dataset:
Function at 0x89dc20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x8eb660
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x906f0c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x906f0c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x89dc6f
mov eax, dword [edi]
jmp 0x89dc71
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x89dc91
push esi
push edi
push ebx
call fcn.0089bc90
add esp, 0xc
jmp 0x89ddc5
test eax, 0x400
je 0x89dd93
cmp dword [edi + 0x14], 8
jb 0x89dca6
mov edx, dword [edi]
jmp 0x89dca8
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov ebx, 7
mov eax, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x89dcc5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00857260
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x89dcf6
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x89dd2a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.008a0dc6
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x89dd5b
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.0089bc90
add esp, 0xc
mov eax, esi
jmp 0x89ddc7
push edi
call fcn.00899f20
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x89dd81
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x89ddc7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x89dda9
mov dword [esi], 0
call fcn.0089ffc0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x89ddc1
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.008a12ce
add esp, 0x3c
ret
Function at 0x89ddf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x89de01
mov eax, dword [edi]
jmp 0x89de03
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x89de2a
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push edi
push esi
call fcn.0089bc90
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x89de40
mov dword [esi], 0
call fcn.0089ffc0
mov dword [esi + 4], eax
test ebx, 0x400
je 0x89de75
push edi
call fcn.00899f20
add esp, 4
test al, al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
jne 0x89de69
mov dword [esp + 0x14], 9
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 3
test bl, 0x10
jne 0x89de8e
mov dword [esp + 0x14], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebx
ret

Function at 0x8a12ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x906f0c]
jne 0x8a12d8
repz ret
jmp fcn.008ab68c
Function at 0x8b95da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x906f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.008ab07c
and dword [ebp - 0x14], 0
cmp dword [0x9230e0], 0
mov dword [ebp - 0x18], eax
jne 0x8b968d
push 0x90e260
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x8b9735
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x90a6c0
push ebx
call edi
test eax, eax
je 0x8b9735
mov esi, dword [0x908360]
push eax
call esi
push 0x90e250
push ebx
mov dword [0x9230e0], eax
call edi
push eax
call esi
push 0x90e23c
push ebx
mov dword [0x9230e4], eax
call edi
push eax
call esi
push 0x90e220
push ebx
mov dword [0x9230e8], eax
call edi
push eax
call esi
mov dword [0x9230f0], eax
test eax, eax
je 0x8b968d
push 0x90e208
push ebx
call edi
push eax
call esi
mov dword [0x9230ec], eax
mov eax, dword [0x9230ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x908364]
cmp eax, ecx
je 0x8b96e6
cmp dword [0x9230f0], ecx
je 0x8b96e6
push eax
call esi
push dword [0x9230f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x8b96e6
test ebx, ebx
je 0x8b96e6
call edi
test eax, eax
je 0x8b96dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x8b96dd
test byte [ebp - 8], 1
jne 0x8b96e6
or dword [ebp + 0x10], 0x200000
jmp 0x8b9719
mov eax, dword [0x9230e4]
cmp eax, dword [ebp - 0x18]
je 0x8b9719
push eax
call esi
test eax, eax
je 0x8b9719
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x8b9719
mov eax, dword [0x9230e8]
cmp eax, dword [ebp - 0x18]
je 0x8b9719
push eax
call esi
test eax, eax
je 0x8b9719
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x9230e0]
call esi
test eax, eax
je 0x8b9735
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x8b9737
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.008a12ce
leave
ret
Function at 0x8c6b28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x8c6bad
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.008a16e0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x8c6b70
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x8c6b92
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x8c6c08
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.008c6878
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x8c6bf4
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x8c6c08
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x8c6b31
pop esi
pop ebx
leave
ret
Function at 0x4a9890
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
mov ebx, dword [0x4db86c]
xorps xmm0, xmm0
push ebp
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov eax, dword [ebx + 0x3c]
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x20], 0x44
movups xmmword [esp + 0x10], xmm0
mov ebp, dword [eax + ebx + 0x78]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
nop dword [eax + eax]
mov ecx, dword [esi]
mov edx, 0xdc85fc4a
add ecx, ebx
mov al, byte [ecx]
inc ecx
test al, al
je 0x4a992d
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x4a9910
cmp edx, 0xd481cdac
je 0x4a9933
inc edi
add esi, 4
jmp 0x4a9900
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + ebx + 0x24]
push 0
push 0
push 0
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [ebp + ebx + 0x1c]
push 0
push 0
push 0
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
push 0
push dword [esp + 0x38]
add eax, ebx
call eax
mov ebx, dword [0x4db86c]
xor edi, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3c]
mov ebp, dword [eax + ebx + 0x78]
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
mov ecx, dword [esi]
mov edx, 0xeb37a4dc
add ecx, ebx
mov al, byte [ecx]
inc ecx
test al, al
je 0x4a99b2
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x4a9995
cmp edx, 0xaa0439e6
je 0x4a99b8
inc edi
add esi, 4
jmp 0x4a9985
mov eax, dword [ebp + ebx + 0x24]
push dword [esp + 0x18]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [ebp + ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
call eax
mov ebx, dword [0x4db86c]
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov ebp, dword [eax + ebx + 0x78]
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
nop word [eax + eax]
mov eax, dword [esi]
mov edx, 0xd0c51fd0
add eax, ebx
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4a9a1d
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x4a9a00
cmp edx, 0xcad14e1a
je 0x4a9a23
inc edi
add esi, 4
jmp 0x4a99f0
mov ecx, dword [ebp + ebx + 0x24]
push dword [esp + 0x1c]
lea ecx, [ecx + edi*2]
movzx edx, word [ecx + ebx]
mov ecx, dword [ebp + ebx + 0x1c]
lea ecx, [ecx + edx*4]
mov ecx, dword [ecx + ebx]
add ecx, ebx
call ecx
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cadd9
add esp, 0x6c
ret
Function at 0x4b6cb0
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 0x4b6cdc
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 0x4b6d04
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4b6d0a
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 0x4b6d72
jg 0x4b6d21
test esi, esi
je 0x4b6d72
test ecx, ecx
jl 0x4b6d6d
jg 0x4b6d2b
test eax, eax
je 0x4b6d6d
cmp edi, ecx
jg 0x4b6d3f
jl 0x4b6d35
cmp esi, eax
jae 0x4b6d3f
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 0x4b6d75
mov ecx, dword [ebp + 8]
jmp 0x4b6d7f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4b6d99
jg 0x4b6d7f
test esi, esi
je 0x4b6d99
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4b6d99
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 0x4b6db0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
jg 0x4b6ddb
jl 0x4b6dce
test esi, esi
jne 0x4b6ddb
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
add esp, 8
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4b6df3
push eax
push esi
push ebp
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 ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4b6e37
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x4b6e3e
mov edi, dword [esp + 0x20]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x4b6e3e
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x4b6eab
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4b6e68
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 [esp + 0x10]
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 0x4b6e99
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4b6eab
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4b6e75
test edi, edi
je 0x4b6eab
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x24]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4b7210
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4b7240
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cadd9
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4b7271
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4b7271
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cadd9
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4b7357
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4b729a
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 0x4b72a6
movsx eax, bl
jmp 0x4b72e6
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
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 0x4b7311
sub eax, 1
je 0x4b7311
sub eax, 2
jne 0x4b7357
movsx eax, byte [esp + 0x17]
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 [esp + 0x2c]
xor ecx, esp
call fcn.004cadd9
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x4b7331
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 0x4b7357
lea ecx, [esp + 0x17]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cadd9
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cadd9
add esp, 0x30
ret 4
Function at 0x4b7940
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4b7a02
cmp byte [esi + 0x3d], 0
je 0x4b7a02
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4b79ef
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
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 0x4b79b3
sub eax, 1
je 0x4b79b7
sub eax, 2
jne 0x4b79ef
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cadd9
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x4b79d7
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 0x4b79ef
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cadd9
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cadd9
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.004cadd9
add esp, 0x28
ret

Function at 0x4b8d30
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 4
mov esi, ecx
call fcn.004cadec
mov edx, dword [esp + 0x10]
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4b8e00
push 0
push 0
mov dword [eax], edx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
jne 0x4b8d6a
push 6
mov dword [edi], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
pop edi
pop esi
ret 4
Function at 0x4c2010
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push ebp
xor eax, eax
push esi
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
push edi
test edx, edx
jne 0x4c2047
mov dword [ebx + 0x10], edx
mov word [ebx + edx*2], ax
jmp 0x4c2076
cmp edx, 7
ja 0x4c2066
xor eax, eax
mov dword [ebx + 0x10], edx
mov ecx, edx
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebx + edx*2], ax
jmp 0x4c2076
push ecx
push edx
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
push edx
call fcn.004c8330
mov ebp, dword [0x4db86c]
xor edi, edi
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + ebp + 0x78]
add eax, ebp
mov dword [esp + 0x14], eax
mov esi, dword [eax + 0x20]
add esi, ebp
mov eax, dword [esi]
mov edx, 0xba673bfe
add eax, ebp
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4c20bd
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x4c20a0
cmp edx, 0xacb169b3
je 0x4c20c3
inc edi
add esi, 4
jmp 0x4c2090
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebp]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, ebx
mov edx, dword [eax + ebp]
add edx, ebp
cmp dword [ebx + 0x14], 8
jb 0x4c20e6
mov ecx, dword [ebx]
push dword [esp + 0x18]
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
push ecx
cmovae eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
push 0
push 0
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x4c213a
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2130
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c2130
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cb06d
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x4c24a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x20
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4c24f5
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4cd469
mov dword [esi + 0x14], 0
call fcn.004b8710
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004cadd9
add esp, 0x20
ret
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4c24bf
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
xorps xmm0, xmm0
test edx, edx
je 0x4c24c2
mov ecx, edx
mov dword [esp + 0x1c], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2530
sub ecx, ebx
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004b8710
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
movups xmm0, xmmword [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x18]
movq qword [esi + 0x10], xmm0
pop esi
pop ebx
xor ecx, esp
call fcn.004cadd9
add esp, 0x20
ret