joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4728a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ecx*4 + 2]
mul ecx
mov ebx, dword [edi + 4]
mov ecx, ebx
mov esi, edx
mov edx, dword [edi]
shr esi, 1
sub ecx, edx
cmp esi, ecx
jae 0x4728d0
lea eax, [edx + esi]
jmp 0x4728fa
jbe 0x4728fd
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4728e9
lea eax, [ebp + 0x13]
mov ecx, edi
push eax
push esi
call fcn.0041ff90
jmp 0x4728fd
sub esi, ecx
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov edx, dword [edi]
mov esi, 8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, edi
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], ecx
mov bl, byte [edi]
cmp edi, ecx
jae 0x472991
mov al, bl
cmp esi, 6
jbe 0x472929
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x47295d
inc edi
cmp edi, ecx
jae 0x472932
mov bl, byte [edi]
jmp 0x472934
xor bl, bl
mov ecx, 6
sub ecx, esi
mov dword [ebp + 8], ecx
je 0x472957
mov dl, byte [ecx*4 + 0x526c4c]
mov ecx, esi
and dl, bl
shl dl, cl
mov cl, byte [ebp + 8]
or al, dl
mov edx, dword [ebp + 0x10]
shr bl, cl
mov ecx, dword [ebp + 0xc]
add esi, 2
cmp al, 0xa
jae 0x472965
add al, 0x30
jmp 0x472987
cmp al, 0x24
jae 0x47296d
add al, 0x37
jmp 0x472987
cmp al, 0x3e
jae 0x472975
add al, 0x3d
jmp 0x472987
mov eax, 0x2d
mov ecx, 0x5f
cmove ecx, eax
mov al, cl
mov ecx, dword [ebp + 0xc]
mov byte [edx], al
inc edx
mov dword [ebp + 0x10], edx
cmp edi, ecx
jb 0x472918
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x476310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50750d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2c], 0x39
mov byte [ebp - 0x2b], 0x28
mov byte [ebp - 0x2a], 0x3a
mov byte [ebp - 0x29], 0x57
mov byte [ebp - 0x28], 0x7c
mov byte [ebp - 0x27], 0xd
mov byte [ebp - 0x26], 0xd
mov byte [ebp - 0x25], 0x28
mov byte [ebp - 0x24], 0x4f
mov byte [ebp - 0x23], 0x50
mov byte [ebp - 0x22], 0x5e
mov edi, dword [ebp + 8]
mov byte [ebp - 0x21], 0x2c
mov byte [ebp - 0x20], 0x54
mov byte [ebp - 0x1f], 7
mov byte [ebp - 0x1e], 7
mov byte [ebp - 0x1d], 0x3c
mov byte [ebp - 0x1c], 0x3c
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0x3a
mov byte [ebp - 0x19], 0x27
mov byte [ebp - 0x18], 0x3a
mov byte [ebp - 0x17], 0x50
mov byte [ebp - 0x16], 0x1f
mov byte [ebp - 0x15], 0x1f
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x13], 0
cmp byte [ebp - 0x13], 0
mov dword [ebp - 0x48], edi
jne 0x4763e0
xor ecx, ecx
mov byte [ebp - 0x13], 1
lea esi, [ecx + 0x7f]
jmp 0x4763c0
mov al, byte [ebp + ecx - 0x2c]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x2c], dl
inc ecx
cmp ecx, 0x18
jb 0x4763c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476400
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0041a800
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], eax
call fcn.004edbc0
lea ebx, [eax + 1]
push ebx
call fcn.004c6f7d
mov esi, eax
add esp, 8
test esi, esi
je 0x476449
push ebx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x47644b
xor esi, esi
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push esi
cmovae eax, dword [ebp - 0x44]
push dword [ebp - 0x48]
push eax
call fcn.004edc00
mov ecx, esi
add esp, 0xc
mov byte [eax + esi], 0
mov dword [edi], 0
lea edx, [ecx + 1]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476483
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.0041a800
push esi
call fcn.004c6f86
mov edx, dword [ebp - 0x30]
add esp, 4
cmp edx, 0x10
jb 0x4764d4
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4764ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4764ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
Function at 0x48dc10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502be0
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00417670
add esp, 8
mov eax, esi
mov dword [ebp - 4], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48dc90
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
push esi
call fcn.004038f0
push 4
push 0x52a1ec
lea ecx, [ebp - 0x230]
call fcn.004038f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0
push 0
push eax
push str.taskbarunpin
push 0
call fcn.004e7da0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00416280
mov edx, dword [ebp - 0x21c]
add esp, 0x20
neg eax
sbb esi, esi
cmp edx, 8
jb 0x48dd4a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48dd40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48dd40
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x490200
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x14]
mov byte [edi], 0
push eax
push 0x2001f
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x49031f
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49031f
mov eax, dword fs:[0x2c]
mov ecx, dword [0x56d69c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x56d07c]
cmp eax, dword [ecx + 4]
jg 0x490331
cmp dword [0x56d078], 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push ecx
mov eax, 0x56d064
mov dword [ebp - 0x20], 4
cmovae eax, dword [0x56d064]
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49031f
cmp dword [ebp - 0x18], eax
jne 0x49030d
cmp dword [ebp - 0x1c], 4
jne 0x49030d
push 4
lea ecx, [ebp - 0x24]
mov byte [edi], 1
cmp dword [0x56d078], 8
mov eax, 0x56d064
push ecx
cmovae eax, dword [0x56d064]
push 4
push 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0xa8
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
push 0x56d07c
call fcn.004c7345
add esp, 4
cmp dword [0x56d07c], 0xffffffff
jne 0x49028d
push str.SecureProtocols
mov ecx, 0x56d064
mov dword [ebp - 4], 0
call fcn.004050b0
push 0x5119e0
call fcn.004c71fd
push 0x56d07c
call fcn.004c72fb
add esp, 8
jmp 0x49028d
Function at 0x490380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509c10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ecx], 0
je 0x49047f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0x20006
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0xf
push str.SecureProtocols
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00403a70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push 4
push ecx
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x49047f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x490475
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x490475
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret

Function at 0x491570
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x49161f
cmp eax, 0xffffffff
je 0x49161f
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x491596
cmp dword [esi + 8], edi
jne 0x49159c
cmp dword [esi + 0xc], 0
jne 0x4915a7
pop edi
mov eax, 0x80004005
pop esi
pop ebp
ret 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4915e1
cmp edi, 1
jne 0x4915d1
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4915d1
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push 8
mov dword [esi + 8], 0xffffffff
mov dword [ebp + 8], 0
call fcn.004c6f3f
add esp, 4
lea ecx, [ebp + 8]
mov dword [eax], edi
push ecx
push 0
push eax
push 0x491630
push 0
push 0
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x493550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x49360c
cmp byte [esi + 0x3d], 0
je 0x49360c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4935fa
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 0x4935c1
sub eax, 1
je 0x4935c5
sub eax, 2
jne 0x4935fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4935e3
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 0x4935fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x493730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x493760
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x493790
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x493790
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 [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x49388b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4937b9
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 0x4937ed
push dword [esi + 0x4c]
movsx eax, bl
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
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
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 0x49384c
sub eax, 1
je 0x49384c
sub eax, 2
jne 0x49388b
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00493230
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x49386a
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 0x49388b
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x49388b
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
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.004c6f8b
mov esp, ebp
pop ebp
ret 4
Function at 0x4946c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x4946e4
jl 0x4946d8
test esi, esi
jne 0x4946e4
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4946fd
push eax
push esi
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__::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, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x49473b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x49473b
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x494741
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x4947c0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x49476a
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x4947ac
lea esp, [esp]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4947d3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x494780
test edx, edx
je 0x4947c0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4947f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x494815
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x494836
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x494838
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4948b6
jg 0x49484b
test esi, esi
je 0x4948b6
test ecx, ecx
jl 0x494899
jg 0x494855
test eax, eax
je 0x494899
cmp edi, ecx
jg 0x494867
jl 0x49485f
cmp esi, eax
jae 0x494867
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [ebp - 4]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x4948b6
jg 0x49489c
test esi, esi
je 0x4948b6
jmp 0x49489c
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4948b6
push eax
push esi
push 1
push edx
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 [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x499fb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov ecx, edx
mov ebx, 0x80004005
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499fd0
sub ecx, esi
lea esi, [edi + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403a70
cmp dword [esi + 0x14], 8
jb 0x499ff3
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x49a0b2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x49a0a9
mov eax, dword [edi + 0x28]
test eax, eax
je 0x49a03b
push eax
call fcn.004c6f86
add esp, 4
push esi
call fcn.004c6f7d
add esp, 4
mov dword [edi + 0x28], eax
lea ecx, [ebp - 4]
mov dword [edi + 0x2c], esi
push 0
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49a0a9
xor eax, eax
cmp dword [ebp - 4], eax
sete al
cmp eax, esi
je 0x49a0a9
mov esi, dword [edi + 0x28]
mov eax, dword [ebp - 8]
add eax, esi
mov dword [ebp - 0xc], eax
cmp esi, eax
jae 0x49a0a9
lea ebx, [ebx]
movzx eax, word [esi]
lea ecx, [esi + 4]
cmp eax, 4
ja 0x49a0de
je 0x49a0bd
sub eax, 1
je 0x49a09c
sub eax, 2
jne 0x49a0f0
mov dword [edi + 0xc], ecx
jmp 0x49a0f0
cmp dword [ecx], 0x29b
je 0x49a0f0
mov ebx, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 8]
je 0x49a0d0
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x49a0f0
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, edi
call fcn.00452970
jmp 0x49a0f0
cmp eax, 0xffff
jne 0x49a0f0
xor eax, eax
cmp dword [ecx], 0x29b
cmove ebx, eax
movzx eax, word [esi + 2]
add esi, 4
add esi, eax
cmp esi, dword [ebp - 0xc]
jb 0x49a080
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4