joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d73c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.00508bc0
mov eax, dword [0x5b1fe4]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x1c], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
cmp ebx, edi
jae 0x4d742a
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.00448d10
add esp, 0xc
cmp edi, 0x40
jbe 0x4d7446
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.00448d10
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x20], ecx
cmp ebx, edx
jbe 0x4d7470
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x14], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.005205c0
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
cmp ecx, dword [esp + 0xc4]
jae 0x4d7550
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0xc]
shr edx, 0x1f
sub ecx, ebx
sub ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
jmp 0x4d74e8
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add ebx, ecx
shr ebx, 0x1f
xor bl, dl
mov eax, ebp
shr eax, 0x1f
xor dl, al
or bl, dl
mov dl, byte [esp + 0x2c]
xor bl, al
dec bl
mov byte [esp + 0x13], bl
mov ebx, ecx
shr ebx, 0x1f
xor bl, dl
xor dl, al
or bl, dl
mov edx, dword [esp + 0x18]
mov dl, byte [edx + ebp]
xor al, bl
dec al
not al
and al, dl
and al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
or byte [esi + edx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ebx, esi
xor ebx, edi
or eax, ebx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
inc ecx
cmp ebp, dword [esp + 0xc4]
jb 0x4d74e0
mov ebx, dword [esp + 0x24]
jmp 0x4d7554
mov edx, dword [esp + 0x20]
xor esi, esi
test edi, edi
je 0x4d758d
lea ebx, [ebx]
mov ecx, ebx
xor ecx, 0x20
mov al, byte [ecx + edx]
mov cl, byte [ebx + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + esi], cl
inc ebx
mov ecx, ebx
sub ecx, edi
xor ecx, edi
mov eax, ebx
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
inc esi
and ebx, ecx
cmp esi, edi
jb 0x4d7560
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050804f
add esp, 0xa4
ret
Function at 0x4eddc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546c77
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b1fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 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
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4ede74
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x68]
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
call fcn.004edac0
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
test ecx, ecx
jns 0x4edeb2
mov eax, ecx
neg eax
je 0x4edeb2
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x4edeba
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.004efa70
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x4edee9
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4f5360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.00401110
mov esi, eax
test esi, esi
je 0x4f5507
push 0x54c150
push dword [ebp + 0xc]
call fcn.0052b0e9
mov edi, eax
add esp, 8
test edi, edi
je 0x4f5507
push ebx
push dword [ebp + 8]
push 0x2712
push esi
call fcn.00401150
push 0
push 0x40
push esi
call fcn.00401150
push 0
push 0x51
push esi
call fcn.00401150
push edi
push 0x2711
push esi
call fcn.00401150
push 0x4f5520
push 0x4e2b
push esi
call fcn.00401150
mov ebx, dword [ebp + 0x10]
add esp, 0x3c
test ebx, ebx
je 0x4f5400
push 0
push 0x2b
push esi
call fcn.00401150
push dword [ebp + 0x14]
push 0x2749
push esi
call fcn.00401150
push ebx
push 0x4e58
push esi
call fcn.00401150
add esp, 0x24
jmp 0x4f540d
push 1
push 0x2b
push esi
call fcn.00401150
add esp, 0xc
push esi
call fcn.00401350
mov ebx, dword [ebp + 0x14]
add esp, 4
mov dword [ebp + 0x10], eax
lea esi, [ebx + 0x4c]
test eax, eax
jne 0x4f5440
call fcn.004fa0f0
push 0x29
push str.bool___thiscall_CurlRequest::DownloadFile_const_char__const_char__int____cdecl___void__double_double_double_double__void__
push str.C:gitlab_builds_aCoD4X3k0_flowproducts_repairtool_srccurl_request.cpp
push str.10:18:33
push 0x54c230
jmp 0x4f545b
call fcn.004fa110
push 0x2c
push str.bool___thiscall_CurlRequest::DownloadFile_const_char__const_char__int____cdecl___void__double_double_double_double__void__
push str.C:gitlab_builds_aCoD4X3k0_flowproducts_repairtool_srccurl_request.cpp
push str.10:18:33
push str.warning
call fcn.004f9e00
add esp, 0x14
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x4f546d
mov eax, dword [esi]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.curl_easy_perform_url:__s__res:__d__finished_callback_name:__s
call fcn.004f9f50
call fcn.004fa0b0
push 0x100
call fcn.0050817f
push 0x100
push 0
push eax
mov dword [ebp + 0x14], eax
call fcn.005205c0
add esp, 0x20
cmp dword [esi + 0x14], 0x10
jb 0x4f54a8
mov esi, dword [esi]
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
push eax
push esi
mov esi, dword [ebp + 0x14]
push str._s__d_
push esi
call fcn.004f5550
add esp, 0x10
push 0
push esi
push 0x7e9
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageW]
push 2
push 0
push edi
call fcn.0052b41c
push edi
call fcn.0052ba15
push edi
mov esi, eax
call fcn.0052aec5
add esp, 0x14
pop ebx
test esi, esi
jne 0x4f54fe
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
pop edi
setg al
pop esi
pop ebp
ret 0x10
pop edi
xor al, al
pop esi
pop ebp
ret 0x10
Function at 0x4f72c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547679
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b1fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
push 0x54a532
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.004e7660
mov esi, dword [ebp + 0xc]
push 0
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4f73c2
push ebx
call fcn.0050817f
mov esi, eax
add esp, 4
test esi, esi
je 0x4f7342
push esi
push ebx
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4f73b4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x54c4e0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4f73b4
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x54c4e4
push esi
call fcn.004f5550
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f73a2
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.004e7660
push 1
push esi
call fcn.00508041
mov esi, dword [ebp + 0xc]
add esp, 8
call fcn.004fa0f0
push 0x33
push str.class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char______cdecl_FileHelper::GetVersion_const_char__
push str.C:gitlab_builds_aCoD4X3k0_flowproducts_repairtool_src_file_helper.cpp
push str.10:18:35
push 0x54c230
call fcn.004f9e00
add esp, 0x14
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x4f73ef
mov eax, dword [edi]
push eax
push esi
push 0x54c5cc
call fcn.004f9f50
add esp, 0xc
call fcn.004fa0b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f74d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x54c150
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0052b100
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
jne 0x4f74f5
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push edi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f7500
push edx
sub ecx, edi
push 1
push ecx
push dword [ebp + 0xc]
call fcn.0052bc58
push dword [ebp - 4]
call fcn.0052aec5
add esp, 0x14
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4f7530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5b1fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4f75d3
cmp byte [esi + 0x3d], 0
je 0x4f75d3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4f7589
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x4f759b
sub eax, 1
je 0x4f759f
sub eax, 2
je 0x4f75d3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050804f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4f75bc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052bc58
add esp, 0x10
cmp edi, eax
jne 0x4f7589
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050804f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0050804f
mov esp, ebp
pop ebp
ret
Function at 0x4f7c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b1fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4f7c30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050804f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4f7c6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4f7c6c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050804f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4f7d53
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4f7c94
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 0x4f7cc7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0052c232
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.0050804f
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
test eax, eax
js 0x4f7d53
cmp eax, 1
jle 0x4f7d26
cmp eax, 3
jne 0x4f7d53
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004f5f60
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.0050804f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4f7d43
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052bc58
add esp, 0x10
cmp edi, eax
jne 0x4f7d53
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4f7c57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050804f
mov esp, ebp
pop ebp
ret 4
Function at 0x4f8490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x4f8564
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x4f8553
jg 0x4f84c8
test edx, edx
je 0x4f8553
call fcn.004f75f0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x4f8518
jg 0x4f84de
test esi, esi
je 0x4f8518
cmp ebx, eax
jg 0x4f84ed
jl 0x4f84e8
cmp edi, esi
jae 0x4f84ed
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.0051fac0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x4f853a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4f854d
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x4f84c8
jl 0x4f854d
test edi, edi
jne 0x4f84c8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4f8583
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x4f8585
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x4f862d
jg 0x4f859f
test esi, esi
je 0x4f862d
test eax, eax
jl 0x4f85de
jg 0x4f85a9
test ebx, ebx
je 0x4f85de
cmp edi, eax
jg 0x4f85b8
jl 0x4f85b3
cmp esi, ebx
jae 0x4f85b8
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0051fac0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x4f85e4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x4f862d
jg 0x4f85ee
test esi, esi
je 0x4f862d
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x4f862d
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x4f8619
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.0052c502
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 0x4f8710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x4f87de
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x4f87cd
jg 0x4f8748
test edx, edx
je 0x4f87cd
call fcn.004f7760
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x4f8796
jg 0x4f875e
test esi, esi
je 0x4f8796
cmp ebx, eax
jg 0x4f876d
jl 0x4f8768
cmp edi, esi
jae 0x4f876d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0051fac0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4f87ba
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4f87c7
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x4f8748
jl 0x4f87c7
test edi, edi
jne 0x4f8748
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4f87fd
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4f87ff
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x4f8878
jg 0x4f8811
test esi, esi
je 0x4f8878
test eax, eax
jl 0x4f8852
jg 0x4f881b
test ebx, ebx
je 0x4f8852
cmp edi, eax
jg 0x4f882a
jl 0x4f8825
cmp esi, ebx
jae 0x4f882a
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0051fac0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4f8855
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4f8878
jg 0x4f885f
test esi, esi
je 0x4f8878
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4f8878
push eax
push esi
push 1
push edx
call fcn.0052bc58
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 0x4f89b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], 0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
cmp byte [ebp + 0x14], 0
je 0x4f8a43
test al, al
je 0x4f8a43
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
movzx eax, al
dec eax
mov esp, ebp
pop ebp
ret
Function at 0x4f9040
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5477a2
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x5b1fe4]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x410]
push 0x400
push 0
mov dword [ebp - 0x420], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x414], 0
call fcn.005205c0
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.ntoskrnl.exe
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 0xf
push 0x54a532
mov byte [edi], 0
call fcn.004e7660
push 0
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x414], 1
mov dword [ebp - 0x418], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4f91bc
push ebx
call fcn.0050817f
mov esi, eax
add esp, 4
test esi, esi
je 0x4f9114
push esi
push ebx
push 0
lea eax, [ebp - 0x410]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4f91b1
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x54c4e0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4f91b1
mov ecx, dword [ebp - 0x41c]
movzx eax, word [ecx + 0xa]
movzx edx, word [ecx + 8]
cmp eax, 0xa
jb 0x4f9184
mov eax, 0x55f0
cmp word [ecx + 0xe], ax
mov ecx, edi
push 5
jb 0x4f917d
push str.win11
jmp 0x4f91ac
push str.win10
jmp 0x4f91ac
mov ecx, edi
cmp eax, 6
jb 0x4f91a5
mov eax, 2
push 4
cmp ax, dx
jne 0x4f919e
push str.win8
jmp 0x4f91ac
push str.win7
jmp 0x4f91ac
push 2
push 0x54c6a0
call fcn.004e7660
push 1
push esi
call fcn.00508041
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.0050804f
mov esp, ebp
pop ebp
ret

Function at 0x4f91e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 0
mov eax, 0x40
mov ecx, 0x20
cmove eax, ecx
mov esp, ebp
pop ebp
ret