joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x808], eax
cmp dword [0x541a08], 0
push ebx
mov ebx, dword [esp + 0x818]
push edi
mov edi, dword [esp + 0x818]
je 0x4bc237
push esi
push 0x7f6
push 0x54e608
push 0
mov dword [esp + 0x1c], 0x7f6
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x54e608
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x10]
call fcn.0043a930
mov esi, dword [esp + 0xc]
push str.360safe.exe
push esi
call fcn.004d7575
add esp, 8
test eax, eax
jne 0x4bc1e4
push 0x54e608
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4bc210
lea eax, [esp + 0x10]
push eax
push 0x54e608
lea ecx, [esp + 0x14]
push ecx
push 0x515d38
push 0x515cb8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esi - 0x10]
mov dword [0x541a08], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop esi
test ecx, ecx
jg 0x4bc237
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4bc287
xor ecx, ecx
cmp cx, word [ebx]
je 0x4bc287
push 0x800
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004d86e0
add esp, 0xc
xor eax, eax
jmp 0x4bc260
movzx ecx, word [eax + 0x54e608]
mov word [esp + eax + 0x10], cx
add eax, 2
test cx, cx
jne 0x4bc260
push ebx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x10]
push ecx
jmp 0x4bc28c
push 0x54e608
mov ecx, edi
call fcn.0043a930
mov ecx, dword [esp + 0x810]
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x80c
ret
Function at 0x4bf400
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push esi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x4bf4f2
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], esi
test eax, eax
je 0x4bf4eb
push edi
mov edi, dword [ebx + 0x10]
cmp edi, 8
jbe 0x4bf4ea
mov cl, byte [0x5212dc]
push 0xff
lea esi, [eax + 8]
mov eax, dword [str._r_n_r_n]
lea edx, [esp + 0x1d]
push 0
push edx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], cl
call fcn.004d86e0
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf490
sub eax, edx
push ebp
xor ecx, ecx
mov ebp, eax
xor edx, edx
mov al, byte [esi]
cmp al, byte [esp + ecx + 0x18]
jne 0x4bf4b4
lea eax, [ebp - 1]
cmp ecx, eax
jg 0x4bf4b4
inc esi
inc ecx
inc edx
jmp 0x4bf4a0
cmp ecx, ebp
jge 0x4bf4be
xor ecx, ecx
inc esi
inc edx
jmp 0x4bf4a0
push 0
sub edi, edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
sub edi, 8
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 0x10]
xor eax, eax
cmp ecx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sete al
pop ebp
mov esi, eax
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x110
ret 4
Function at 0x4c01a0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 1
call fcn.004bfbb0
mov eax, dword [eax + 0xa4]
cmp eax, ebx
je 0x4c01e3
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 8
cmp dword [esp + 0x10], ebx
je 0x4c034d
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov esi, eax
sub esi, dword [esp + 0x20]
push ebp
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4c033e
cmp esi, dword [esp + 0x338]
ja 0x4c033e
push 0x104
lea edx, [esp + 0x234]
push ebx
push edx
call fcn.004d86e0
push 0x104
lea eax, [esp + 0x13c]
push ebx
push eax
call fcn.004d86e0
push 0x104
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.004d86e0
mov esi, dword [edi + 4]
add esp, 0x24
mov dword [esp + 0x230], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebp
call fcn.004bfbb0
mov eax, dword [eax + 0x98]
cmp eax, ebx
je 0x4c029e
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0x23c]
push ecx
push esi
call eax
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x4c02cd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [edi + 4]
call fcn.004bfbb0
mov eax, dword [eax + 0xa4]
cmp eax, ebx
je 0x4c0323
lea edx, [esp + 0x10]
push edx
push esi
call eax
add esp, 8
jmp 0x4c0323
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x23c]
push edx
inc eax
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x186a0
call sub.WS2_32.dll_select
cmp eax, ebp
je 0x4c0323
mov esi, dword [edi + 4]
call fcn.004bfbb0
mov eax, dword [eax + 0xa4]
cmp eax, ebx
je 0x4c031b
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 8
mov dword [esp + 0x18], 1
cmp dword [esp + 0x10], ebx
jne 0x4c01f0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x324
ret 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x324
ret 4
Function at 0x4c13a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, dword [esp + 0x220]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004d86e0
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x206
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c146d
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x5217f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1441
sub eax, edx
sar eax, 1
mov dword [esp + 8], eax
cmp eax, 3
jbe 0x4c146d
lea eax, [esp + eax*2 + 0x10]
mov edx, 0x5c
cmp dx, word [eax - 2]
je 0x4c146d
mov ecx, edx
mov word [eax], cx
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0043a930
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004d7eb0
add esp, 0x218
ret
Function at 0x4c15e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x10], ebx
push esi
cmp ax, word [0x54fb48]
jne 0x4c176a
mov esi, dword [esp + 0x20]
push 0x104
push 0x54fb48
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x54fb48
call fcn.004d9a4d
add esp, 8
test eax, eax
je 0x4c1628
xor ecx, ecx
mov word [eax + 2], cx
push str.360sd.exe
lea ecx, [esp + 0x10]
call fcn.0043a930
test esi, esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x4c1669
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push 0x54fb48
push eax
mov ebx, 1
call fcn.0048d600
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
mov byte [esp + 0xb], bl
test eax, eax
je 0x4c166e
mov byte [esp + 0xb], 0
test bl, 1
je 0x4c1696
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c1696
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xb], 0
je 0x4c174a
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.004c13a0
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
add esp, 4
test eax, eax
jle 0x4c16e9
cmp eax, 0x104
jge 0x4c16e9
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
or ebx, 2
call fcn.004577c0
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
mov byte [esp + 0xf], 1
test eax, eax
jne 0x4c16ee
mov byte [esp + 0xf], 0
test bl, 2
je 0x4c1713
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c1713
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x4c172d
push 0x103
push edi
push 0x54fb48
call fcn.004da81f
add esp, 0xc
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x4c174a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c176a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push 0x54fb48
mov ecx, esi
call fcn.0043a930
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4c1860
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
call fcn.004bfbb0
mov ebp, eax
test ebp, ebp
jne 0x4c1896
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x210
ret
cmp dword [ebp + 0x18], 0
je 0x4c18b7
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004d7eb0
add esp, 0x210
ret
push ebx
push edi
push 0x208
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004d86e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x521890
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
jne 0x4c19de
lea edx, [esp + 0xc]
push esi
push edx
call fcn.004c1810
mov edx, dword [eax]
add esp, 4
mov esi, 0x104
lea eax, [esp + 0x14]
jmp 0x4c1930
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4c1952
movzx ecx, word [edx]
test cx, cx
je 0x4c1952
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x4c1930
jmp 0x4c1956
test esi, esi
jne 0x4c1959
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c197e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
jne 0x4c19dd
lea edx, [esp + 0x10]
push str.360NetBase.dll
push edx
call fcn.004c1570
mov edx, dword [eax]
add esp, 8
mov esi, 0x104
lea eax, [esp + 0x14]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4c19c8
movzx ecx, word [edx]
test cx, cx
je 0x4c19c8
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x4c19a6
jmp 0x4c19cc
test esi, esi
jne 0x4c19cf
sub eax, 2
xor edx, edx
lea ecx, [esp + 0x10]
mov word [eax], dx
call fcn.00439d40
pop esi
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.004bfc10
test eax, eax
je 0x4c19f8
cmp dword [ebp + 0x18], ebx
je 0x4c19f8
mov ebx, 1
mov ecx, dword [esp + 0x218]
pop edi
mov eax, ebx
pop ebx
pop ebp
xor ecx, esp
call fcn.004d7eb0
add esp, 0x210
ret
Function at 0x4ce530
Capabilities:
Read file on windows

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push edi
mov word [esi + 0x14], ax
mov eax, dword [esp + 0xc]
push 0x521160
push eax
call fcn.004dcab6
mov edi, eax
add esp, 8
test edi, edi
jne 0x4ce56a
pop edi
or eax, 0xffffffff
pop esi
ret 8
push ebx
push 2
push 0
push edi
call fcn.004da24f
push edi
call fcn.004da157
mov ebx, eax
push 0
lea ecx, [ebx - 0x16]
push ecx
push edi
call fcn.004da24f
push edi
push 1
push 0x16
push esi
call fcn.004d9f9d
add esp, 0x2c
cmp dword [esi], 0x6054b50
jne 0x4ce5b0
push edi
call fcn.004d9c64
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
ret 8
cmp ebx, 0x10015
jbe 0x4ce5bd
mov ebx, 0x10015
push ebp
push ebx
call fcn.004d45ee
mov edx, ebx
push 2
neg edx
push edx
push edi
mov ebp, eax
call fcn.004da24f
push edi
push 1
push ebx
push ebp
call fcn.004d9f9d
lea ecx, [ebx + ebp - 0x16]
add esp, 0x20
mov eax, ebp
cmp ebp, ecx
ja 0x4ce62f
mov dl, 6
lea esp, [esp]
mov ebx, dword [eax]
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [eax + 8]
mov dword [esi + 8], ebx
mov ebx, dword [eax + 0xc]
mov dword [esi + 0xc], ebx
mov ebx, dword [eax + 0x10]
mov dword [esi + 0x10], ebx
mov bx, word [eax + 0x14]
mov word [esi + 0x14], bx
cmp byte [eax], 0x50
jne 0x4ce62a
cmp byte [eax + 1], 0x4b
jne 0x4ce62a
cmp byte [eax + 2], 5
jne 0x4ce62a
cmp byte [eax + 3], dl
je 0x4ce648
inc eax
cmp eax, ecx
jbe 0x4ce5f0
push ebp
call fcn.004d7e25
push edi
call fcn.004d9c64
add esp, 8
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov dx, word [eax + 0x14]
push ebp
mov word [esi + 0x14], dx
call fcn.004d7e25
push edi
call fcn.004d9c64
add esp, 8
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x4ce690
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x521160
push eax
mov esi, ecx
call fcn.004dcab6
mov edi, eax
add esp, 8
test edi, edi
je 0x4ce747
mov ecx, dword [esi + 0x2c0]
push 0
push ecx
push edi
call fcn.004da24f
mov eax, dword [esi + 0x2d4]
add esp, 0xc
test eax, eax
je 0x4ce6df
push eax
call fcn.004d72b6
add esp, 4
mov dword [esi + 0x2d4], 0
mov eax, dword [esi + 0x2bc]
test eax, eax
ja 0x4ce6fa
push edi
call fcn.004d9c64
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret 4
push eax
call fcn.004d45ee
mov edx, dword [esi + 0x2bc]
push edi
push 1
push edx
push eax
mov dword [esi + 0x2d4], eax
call fcn.004d9f9d
push edi
call fcn.004d9c64
mov eax, dword [esi + 0x2d4]
add esp, 0x18
cmp dword [eax], 0x2014b50
jne 0x4ce734
pop edi
xor eax, eax
pop esi
ret 4
push eax
call fcn.004d72b6
mov dword [esi + 0x2d4], 0
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret 4
Function at 0x4cec80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0xa00c
call fcn.004d96e0
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0xa008], eax
push ebx
push esi
mov esi, dword [esp + 0xa018]
push edi
push esi
call fcn.004da157
mov eax, dword [esp + 0xa028]
mov ebx, dword [esp + 0xa024]
push 2
push 0
push esi
mov dword [esp + 0x1c], eax
call fcn.004da24f
push esi
call fcn.004da157
push 0
mov edi, eax
push ebx
push esi
mov dword [esp + 0x30], edi
call fcn.004da24f
add esp, 0x20
cmp ebx, edi
jae 0x4ced3e
push ebp
push esi
push 0xa000
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.004d9f9d
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4ced3d
push esi
add ebx, edi
call fcn.004da157
mov edx, dword [esp + 0x14]
push 0
push edx
push esi
mov ebp, eax
call fcn.004da24f
push esi
push 1
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004dc2b5
push esi
call fcn.004da157
push 0
push ebp
push esi
mov dword [esp + 0x40], eax
call fcn.004da24f
add esp, 0x30
cmp ebx, dword [esp + 0x14]
jb 0x4cece1
pop ebp
mov ecx, dword [esp + 0xa014]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0xa00c
ret 0xc

Function at 0x4ceda0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x521bec
push ebx
mov esi, ecx
call fcn.004dcab6
mov edi, eax
add esp, 8
test edi, edi
jne 0x4cedc6
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
lea eax, [esi + 0x2b0]
xor ecx, ecx
mov dword [eax + 4], ecx
push edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push 1
mov dword [eax + 0x10], ecx
push 0x16
mov word [eax + 0x14], cx
push eax
mov dword [eax], 0x6054b50
call fcn.004dc2b5
push edi
call fcn.004d9c64
mov edi, dword [esp + 0x28]
add esp, 0x14
test edi, edi
jne 0x4cee08
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
push ebx
lea eax, [esi + 0xc]
push 0x521be8
push eax
call fcn.004dd4e4
push 0x521160
push edi
call fcn.004dcab6
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4cedbd
push edi
lea ecx, [esi + 0x138]
push 0x521be8
push ecx
call fcn.004dd4e4
push ebx
call fcn.004d9c64
add esp, 0x10
push 0
push edi
mov ecx, esi
call fcn.004ce780
movzx eax, al
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
dec eax
pop ebx
ret 8
Function at 0x4ceeb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x130
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x134]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004dd4e4
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.004ddee0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cef3c
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ebx, [ebx]
lea edx, [esp + 0x138]
cmp esi, edx
jae 0x4cef3c
lea eax, [esp + 0xc]
push eax
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
jne 0x4cef27
push 0
lea ecx, [esp + 0x10]
push ecx
call ebx
test eax, eax
je 0x4cef5b
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.004ddee0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4cef00
mov eax, 1
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x130
ret 4
xor eax, eax
jmp 0x4cef41
Function at 0x4cf250
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x14040
call fcn.004d96e0
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x1403c], eax
mov eax, dword [esp + 0x14048]
push ebx
mov ebx, dword [esp + 0x14048]
push esi
mov esi, dword [esp + 0x14058]
push edi
push 0
push eax
push ebx
mov dword [esp + 0x18], esi
call fcn.004da24f
push 0x521bec
push esi
call fcn.004dcab6
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4cf2a8
xor al, al
jmp 0x4cf41b
push ebp
push 0x38
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004d86e0
push 0x38
push str.1.2.3
lea edx, [esp + 0x28]
push 0xfffffffffffffff1
push edx
mov dword [esp + 0x54], 0x4ce770
mov dword [esp + 0x50], 0x4ce750
call fcn.0040d750
mov esi, dword [esp + 0x14078]
add esp, 0x1c
mov ebp, 0xa000
test esi, esi
jbe 0x4cf3a9
push ebx
cmp esi, ebp
jbe 0x4cf303
push ebp
push 1
lea eax, [esp + 0xa058]
push eax
jmp 0x4cf30e
push esi
push 1
lea ecx, [esp + 0xa058]
push ecx
call fcn.004d9f9d
lea ecx, [esp + 0x5c]
mov dword [esp + 0x30], ecx
xor ecx, ecx
add esp, 0x10
sub esi, eax
lea edx, [esp + 0xa04c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], ecx
cmp eax, ecx
jbe 0x4cf388
cmp dword [esp + 0x24], 0
jne 0x4cf365
push edi
push ebp
lea edx, [esp + 0x54]
push 1
push edx
call fcn.004dc2b5
lea eax, [esp + 0x5c]
add esp, 0x10
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0040d950
add esp, 8
test eax, eax
jl 0x4cf435
cmp eax, 1
je 0x4cf388
cmp dword [esp + 0x18], 0
ja 0x4cf341
mov eax, ebp
sub eax, dword [esp + 0x24]
je 0x4cf3a1
push edi
push 1
push eax
lea edx, [esp + 0x58]
push edx
call fcn.004dc2b5
add esp, 0x10
test esi, esi
ja 0x4cf2f1
lea edx, [esp + 0x4c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
cmp dword [esp + 0x24], 0
jne 0x4cf3d9
push edi
push ebp
lea eax, [esp + 0x54]
push 1
push eax
call fcn.004dc2b5
lea ecx, [esp + 0x5c]
add esp, 0x10
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x14]
push 4
push edx
call fcn.0040d950
add esp, 8
test eax, eax
je 0x4cf3b5
mov eax, ebp
sub eax, dword [esp + 0x24]
je 0x4cf405
push edi
push 1
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004dc2b5
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call fcn.0040ee50
push edi
call fcn.004d9c64
add esp, 8
mov al, 1
pop ebp
mov ecx, dword [esp + 0x14048]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x14040
ret 0x10
lea eax, [esp + 0x14]
push eax
call fcn.0040ee50
push edi
call fcn.004d9c64
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4cf41a
Function at 0x4cfad0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4014
call fcn.004d96e0
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x4010], eax
mov eax, dword [esp + 0x4028]
push ebx
mov ebx, dword [esp + 0x4024]
push ebp
mov ebp, dword [esp + 0x402c]
push esi
mov esi, dword [esp + 0x4024]
push edi
mov edi, dword [esp + 0x402c]
xor ecx, ecx
push 0x3ffe
push ecx
lea edx, [esp + 0x2a]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x2c], cx
call fcn.004d86e0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4cfb9e
cmp eax, 0x3fff
ja 0x4cfb9e
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4cfb9e
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0x517394
lea ecx, [esp + 0x2c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4cfb9e
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 0xa]
mov word [edi], dx
mov cx, word [eax + 8]
mov word [ebx], cx
movzx edx, word [eax + 0xe]
mov ecx, dword [esp + 0x14]
mov word [ebp], dx
mov ax, word [eax + 0xc]
mov word [ecx], ax
mov eax, 1
jmp 0x4cfba0
xor eax, eax
mov ecx, dword [esp + 0x4020]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x4014
ret

Function at 0x4cfbc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4cfc47
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cfc46
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov dword [esp + 8], 0
neg ecx
or ecx, eax
push ecx
call fcn.004d45ee
add esp, 4
mov dword [0x5449bc], eax
test eax, eax
je 0x4cfc3f
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x5449bc]
xor edx, edx
mov word [eax + esi*2], dx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret