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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x108], bl
call fcn.0045e060
mov edi, eax
test edi, edi
je 0x4419c8
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.PackageComponents
push edi
call fcn.0045e550
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x4419c8
cmp byte [ebp - 0x108], bl
je 0x4419c8
lea eax, [ebp - 0x108]
push 0x4c9098
push eax
call fcn.00463f60
add esp, 8
test eax, eax
setne bl
test eax, eax
je 0x441acf
push 0
push str.SoftwareK7_ComputingK7TotalSecurityCommonInfoFeatureStatus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0
call fcn.0045e060
mov edi, eax
test edi, edi
je 0x441a42
push 0x3f7
lea eax, [ebp - 0x108]
push str.FSUpsInfo_08X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0045e500
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x441a42
cmp dword [ebp - 0x210], 0
je 0x441a42
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
push str.AMSI
push str.AntiVirus
push str.Products
push str.SoftwareK7_ComputingK7TotalSecurity
lea eax, [ebp - 0x20c]
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e060
mov esi, eax
test esi, esi
je 0x441acf
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push str.ProviderId
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x441ab0
cmp dword [ebp - 0x214], 0
mov eax, 1
cmovne ebx, eax
neg ebx
push esi
sbb ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
lea eax, [ebx + 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret

Function at 0x443ba0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], 0x47455456
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp byte [0x4d4c92], 0
mov ebx, eax
jne 0x443bdb
call fcn.00449ae0
mov esi, dword [0x4d5a08]
test esi, esi
jne 0x443bf2
push str._r_ngm_fpProcessIdToSessionId_IS_null
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x443c01
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
call dword [0x4b466c]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
mov edx, 0x10031
push 8
push eax
call fcn.00449e90
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444160
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffff9c
call fcn.0045ea80
test al, al
je 0x4441e3
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
call fcn.0045ee00
add esp, 4
cmp eax, 1
jne 0x44431f
mov al, byte [ebp - 1]
cmp al, 2
je 0x4441ec
cmp al, 1
je 0x4441ec
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x10]
mov edx, 1
mov dword [ebp - 0x24], eax
mov ecx, 0x1003f
lea eax, [ebp - 0xc]
push eax
jns 0x444329
lea eax, [ebp - 0x24]
push eax
call fcn.00455d80
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045eca0
test eax, eax
je 0x44419d
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x44431f
push 0
lea esi, [edi + 0x400]
push str.SoftwareK7_ComputingK7TotalSecurity
lea ebx, [esi + 0x400]
mov dword [ebp - 0xc], esi
push reloc.OLEAUT32.dll_SysReAllocString
add esi, 0x800
mov byte [ebx], 0
call fcn.0045e060
mov dword [ebp - 0x14], eax
test eax, eax
je 0x444254
push 0x104
push ebx
push str.DirProductBase
push eax
call fcn.0045e550
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.K7InetChk.dll
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44430f
mov eax, dword [ebp - 0xc]
push 0x400
push eax
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._rundll32.exe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44430f
push str.K7ChkInet
push ebx
push dword [ebp - 0xc]
push str._s___s___s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [esi], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ebx, [esi + 0x44]
push ebx
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4442e8
mov dword [ebp - 8], 0xffffffff
jmp 0x44430f
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00455a70
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
mov esi, ecx
push str._02X
push esi
call fcn.00444990
add esi, 2
add esp, 0xc
cmp byte [esi], 0
je 0x444b21
lea eax, [ebp - 8]
push eax
push str._02X
push esi
call fcn.00444990
imul eax, dword [ebp - 4], 0xcae7cae7
shr eax, 8
mov dword [ebp - 4], eax
xor eax, dword [ebp - 8]
movzx eax, al
push eax
push str._02X
push 2
push esi
mov dword [ebp - 8], eax
call fcn.004448f0
add esi, 2
add esp, 0x1c
cmp byte [esi], 0
jne 0x444ae3
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x8000
push 8
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x446c9b
push 0
call fcn.0048baa1
add esp, 4
mov ebx, eax
mov dword [esi], ebx
add esi, 4
mov dword [ebp - 4], esi
push 0x40
push dword [ebp - 0xc]
lea edi, [esi + 4]
mov dword [esi], 0x4b375249
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x50
push dword [ebp - 0x10]
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3c
push dword [ebp + 8]
lea eax, [edi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x28
push dword [ebp + 0xc]
lea eax, [edi + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esi + 0xfc]
xor ecx, ecx
cmp eax, esi
sbb eax, eax
and eax, 0xffffffc1
add eax, 0x3f
je 0x446c10
xor dword [esi], ebx
inc ecx
add ebx, 7
add esi, 4
cmp ecx, eax
jb 0x446c00
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 8]
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push str.HKLM
push str.__s_s__r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push str._UserInfo_hex:
lea edi, [esi + eax]
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov esi, 0x100
add edi, eax
movzx eax, byte [ebx]
push eax
push str._02X_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ebx, [ebx + 1]
add edi, eax
sub esi, 1
jne 0x446c42
push str._r_n_r_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
sub edi, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp - 4]
lea ecx, [eax + 1]
add ecx, edi
call fcn.004496e0
push dword [ebp - 8]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449ae0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Kernel32.dll
mov dword [0x4d5a08], 0
mov dword [0x4d5a14], 0
mov dword [0x4d5a10], 0
mov dword [0x4d5a0c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x449b3e
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x449b60
push 0x4c1010
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c1030
push esi
mov dword [0x4d5a14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d5a08], eax
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x449b82
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x449ba4
push str.WTSEnumerateSessionsA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c1074
push esi
mov dword [0x4d5a10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d5a0c], eax
mov dword [0x4d5a18], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
pop esi
test eax, eax
js 0x449c8b
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004644e0
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x449c03
cmp dword [ebp - 0x9c], 6
jb 0x449c03
mov dword [0x4d5a18], 1
jmp 0x449c6f
lea eax, [ebp - 0xa4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x449c66
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x449c66
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 4
push ecx
push 0x4d5a18
lea ecx, [ebp - 0xac]
push ecx
push 0
push str.AllowMultipleTSSessions
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4d5a18], 1
jne 0x449c8b
cmp dword [0x4d5a14], 0
je 0x449c81
cmp dword [0x4d5a10], 0
jne 0x449c8b
mov dword [0x4d5a18], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x4d4c92], 1
call fcn.004606ac
mov esp, ebp
pop ebp
ret
Function at 0x451f70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x451f7b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x452037
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
sub edi, 1
jne 0x451f90
pop edi
test esi, esi
je 0x45205a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
sub esi, 1
jne 0x452040
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x452070
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4bf5a0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bf5a0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x452b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x452ba8
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452b9a
mov byte [edi + 8], 1
mov eax, dword [ebp - 4]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.0046c5d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x452c1b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452c16
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x452c48
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x452c2c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0046c5d0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x452c5c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x452c53
cmp byte [esi + 8], 0
je 0x452c53
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x4544fa
cmp dword [ebx + 4], 0xffffffff
jne 0x4544fa
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454397
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x4543c3
cmp al, 0x2f
je 0x4543c3
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4543b0
mov ax, word [0x4c0ed8]
mov word [edi], ax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x4543ee
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x454409
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x454406
cmp edi, 3
je 0x454406
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 2], al
mov byte [ebp - 1], bl
cmp edi, 1
je 0x45444f
cmp edi, 2
jne 0x45446b
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x454449
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp - 1], 1
jmp 0x454455
mov ebx, esi
mov byte [ebp - 1], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 2], al
push 0x20
call fcn.004609df
add esp, 4
mov esi, eax
cmp edi, 1
je 0x4544a6
cmp edi, 2
je 0x4544a6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x4544d7
mov al, byte [ebp - 1]
mov byte [esi + 0x10], al
mov al, byte [ebp - 2]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x4544d7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.00452fe0
mov ecx, dword [ebp - 8]
mov edx, 0x200
pop esi
pop edi
pop ebx
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x454d00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x454d32
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x454d32
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x454df8
push edi
mov edi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x454d49
cmp al, 0x5c
jne 0x454d4b
mov edi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x454d41
cmp edi, ebx
je 0x454d8b
sub edi, ebx
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.0046c5d0
add esp, 0xc
cmp edi, 0x104
jae 0x454e08
lea edx, [ebp - 0x20c]
mov byte [ebp + edi - 0x20c], 0
mov ecx, esi
call fcn.00454d00
mov byte [ebp - 0x108], 0
test esi, esi
je 0x454dad
lea ecx, [ebp - 0x108]
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x454da0
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x454db0
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x454dc0
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x454df8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret
call fcn.004607de
int3
Function at 0x45d140
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x45d156
mov dword [esi], 0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x45d163
mov dword [ebx], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x45d1aa
lea ecx, [eax + 0x800]
push ecx
call fcn.00460a14
mov edi, eax
add esp, 4
test edi, edi
je 0x45d1aa
mov ecx, dword [ebp - 8]
push edi
push ecx
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
je 0x45d1b3
push 1
push edi
call fcn.004609d1
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4c0ed8
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45d200
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x45d1f7
mov eax, dword [ecx + 8]
mov dword [esi], eax
test ebx, ebx
je 0x45d200
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ebx, edi
test ecx, ecx
je 0x45d217
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x45d221
push 0x4e4
push 0x409
push str.StringFileInfo_04x_04x_
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
lea ecx, [ebx + eax]
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x14], esi
jle 0x45d286
mov eax, dword [ebp + 0x18]
push dword [eax + esi*8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 4], 0
je 0x45d27d
mov eax, dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [eax + esi*8 + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x45d244
push 1
push edi
call fcn.004609d1
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x410
mov dword [ebp - 0x64], eax
call fcn.00460a14
mov esi, eax
add esp, 4
test esi, esi
jne 0x45d560
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 8
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45d5d8
push 0
push 0
push 3
push 0
push 3
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45d5d8
push 0
push 0
push 3
push 0
push 7
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45d5d8
push 1
push esi
call fcn.004609d1
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x5c]
push eax
call fcn.0045d710
add esp, 4
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d63e
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x45d63e
push eax
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0045de20
add esp, 0xc
cmp dword [ebp - 0x60], 0x400
jb 0x45d63e
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d602
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
call fcn.0045d680
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
call fcn.004609d1
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret 8

Function at 0x45d710
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret