joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cb00
Capabilities:
Change the wallpaper
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
mov edi, ecx
call fcn.00501660
add esp, 0xc
cmp dword [0xa14580], 0
jne 0x42cb44
test edi, edi
je 0x42cd4c
push esi
cmp edi, 1
jne 0x42cca3
lea eax, [ebp - 0x110]
mov ecx, 0x912530
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
call fcn.0042f710
push eax
push 0
push str.Control_PanelDesktop
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x91f410
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
cmp byte [0x635516], 0
je 0x42cc36
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42cbb5
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Wallpaper
push dword [ebp - 0x10c]
call esi
push 2
push 0x617e58
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 0x10c]
call esi
push 2
push 0x617e6c
push 1
push 0
push str.TileWallpaper
push dword [ebp - 0x10c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.WallpaperOriginX
push dword [ebp - 0x10c]
call esi
push str.WallpaperOriginY
push dword [ebp - 0x10c]
call esi
push 3
push 0
jmp 0x42cc75
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push 0x617ea8
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 0x10c]
call esi
push 2
push 0x617e58
push 1
push 0
push str.TileWallpaper
push dword [ebp - 0x10c]
call esi
push 3
lea eax, [ebp - 0x108]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov dword [0xa14580], edi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
push 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
push str.BackupWPPath
call fcn.0042d6f0
add esp, 0x14
lea eax, [ebp - 0x110]
mov ecx, 0x912530
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
call fcn.0042f710
push eax
push 0
push str.Control_PanelDesktop
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.WallpaperOriginX
push dword [ebp - 0x10c]
call esi
push str.WallpaperOriginY
push dword [ebp - 0x10c]
call esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
lea eax, [ebp - 0x108]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [0xa14580], edi
test edi, edi
jne 0x42cd4b
push 1
push edi
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
Function at 0x42d2a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x42d2be
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d2b5
sub eax, edx
or ebx, 0xffffffff
test eax, eax
je 0x42d2df
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
xor ebx, dword [edx*4 + 0x910170]
sub eax, 1
jne 0x42d2c5
not ebx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x42d490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00509970
add esp, 0x10
cmp byte [ebp - 0x20c], 0
je 0x42d5a6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d4d3
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ebx, [ebp - 0x20c]
sub ecx, edx
lea eax, [ebp - 0x20c]
add ebx, ecx
push eax
mov esi, ebx
call edi
cmp eax, 0xffffffff
jne 0x42d56f
nop dword [eax]
test esi, esi
je 0x42d52c
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00500f30
mov esi, eax
add esp, 8
test esi, esi
je 0x42d51e
mov byte [esi], 0
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x42d500
cmp esi, ebx
jae 0x42d56f
test esi, esi
je 0x42d539
mov byte [esi], 0x5c
jmp 0x42d548
cmp byte [ebp - 0x20c], 0
lea esi, [ebp - 0x20c]
je 0x42d54e
inc esi
cmp byte [esi], 0
jne 0x42d548
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x42d582
cmp esi, ebx
jb 0x42d530
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x42d590
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
Function at 0x42d850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x42d887
cmp dword [ebp + 0x1c], 1
mov eax, 0x911838
mov ecx, 0x911734
cmovne eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00509970
add esp, 0x10
test ebx, ebx
je 0x42d8cd
push 0x5a174c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
add esp, 0x18
test esi, esi
je 0x42d8fc
push 0x5a1750
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push closesocket
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d932
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10c], 0
push 0
test edi, edi
jne 0x42d951
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10c], eax
jmp 0x42d963
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ff23c
mov esp, ebp
pop ebp
ret

Function at 0x42e010
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop word [eax + eax]
xor eax, eax
test cl, 1
je 0x42e02b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x42e036
bts eax, 6
shr ecx, 1
test cl, 1
je 0x42e041
bts eax, 5
shr ecx, 1
test cl, 1
je 0x42e04c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x42e057
bts eax, 3
shr ecx, 1
test cl, 1
je 0x42e062
bts eax, 2
shr ecx, 1
test cl, 1
je 0x42e06d
bts eax, 1
test cl, 2
je 0x42e076
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x42e10f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x42e100
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x910170], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x42e020
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e2a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e2cb
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0
test eax, eax
jne 0x42e2f4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42e9b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push 0
setne bl
push 0x80
lea ebx, [ebx*2 + 2]
push ebx
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ea3e
push 0x5c
push edi
call fcn.00500f30
mov esi, eax
add esp, 8
test esi, esi
je 0x42ea16
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ea13
push 1
push edi
call fcn.0042d490
add esp, 8
mov byte [esi], 0x5c
push 0
push 0x80
push ebx
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ea3e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 1
jne 0x42ea51
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ea80
Capabilities:
Check if file exists
Get file attributes
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
cmp ecx, 0xffffffff
je 0x42eac1
push ecx
push eax
push str._s_d
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00407c20
add esp, 0x14
jmp 0x42ead8
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00509970
add esp, 0x10
cmp dword [ebp + 0x18], 1
mov ecx, 0x911838
push 0xffffffffffffffff
mov eax, 0x911734
cmove eax, ecx
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00509970
push 0x5a174c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
push 0x5a1750
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
push 0x5a1764
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
add esp, 0x40
lea eax, [ebp - 0x108]
push eax
push str._s_tmp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00407c20
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ec0d
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00500f30
mov esi, eax
add esp, 8
test esi, esi
je 0x42ebe3
lea eax, [ebp - 0x20c]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ebe0
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0042d490
add esp, 8
mov byte [esi], 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42ec0d
xor eax, eax
jmp 0x42ec36
push 0
lea eax, [ebp - 0x314]
mov dword [ebp - 0x314], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x314]
cmp eax, edi
je 0x42ec4d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
push 9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
and eax, edi
pop edi
pop esi
pop ebx
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
Function at 0x42f880
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
and ecx, 1
push 0
push 0x80
mov dword [ebp + 0xc], ecx
lea eax, [ecx + 3]
push eax
push 0
lea eax, [ecx + 2]
push 3
shl eax, 0x1e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
lea ebx, [edi + 0x10]
mov dword [ebx], ecx
cmp ecx, 0xffffffff
jne 0x42f8cb
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
or eax, esi
jne 0x42f90f
lea eax, [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 8]
xor edx, edx
add edx, eax
mov ecx, esi
mov dword [edi + 8], edx
adc ecx, 0
or edx, ecx
mov dword [edi + 0xc], ecx
jne 0x42f91b
mov eax, ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 2
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
push 0
push eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, ebx
lea eax, [esi*2 + 2]
or eax, 0x8000000
push eax
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [edi + 0x14], ecx
test ecx, ecx
jne 0x42f95e
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 3
pop ebx
pop ebp
ret 0x10
push 0
push 0
push 0
lea eax, [esi*2 + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
test eax, eax
jne 0x42f9a1
push dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx]
call esi
mov dword [edi + 0x14], 0
mov eax, 4
pop edi
pop esi
mov dword [ebx], 0
pop ebx
pop ebp
ret 0x10
mov dword [edi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x42fb80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42fbb4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42fbb4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [ebx]
test cl, cl
je 0x42fc69
push esi
mov esi, ebx
mov eax, ebx
cmp cl, 0x2f
je 0x42fbcd
cmp byte [eax], 0x5c
jne 0x42fbcf
mov esi, eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42fbc3
cmp esi, ebx
je 0x42fc12
sub esi, ebx
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.005010e0
add esp, 0xc
cmp esi, 0x104
jae 0x42fc79
lea eax, [ebp - 0x20c]
mov byte [ebp + esi - 0x20c], 0
push eax
push edi
call fcn.0042fb80
add esp, 8
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x42fc33
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00511c6f
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42fc69
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ff23c
mov esp, ebp
pop ebp
ret
call fcn.004ff6cf
int3
Function at 0x430510
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 0x4306b5
cmp dword [ebx + 4], 0xffffffff
jne 0x4306b5
push esi
lea esi, [ebx + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430547
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x430572
cmp al, 0x2f
je 0x430572
push 0x5a174c
push 0x104
push esi
call fcn.00511c6f
add esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x43059d
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4305b8
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x4305b5
cmp edi, 3
je 0x4305b5
pop edi
pop esi
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 - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x4305fe
cmp edi, 2
jne 0x43061a
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 0x4305f8
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x430604
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.004ff7ac
add esp, 4
mov esi, eax
cmp edi, 1
je 0x430655
cmp edi, 2
je 0x430655
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 0x430686
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
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 0x430686
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
xor eax, eax
test esi, esi
je 0x430594
push esi
call fcn.00433ac0
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4334ce
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4334c2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
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 + 8]
call fcn.005010e0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x433500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43350e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4335cd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
sub edi, 1
jne 0x433526
pop edi
test esi, esi
je 0x4335eb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5a38f8]
sub esi, 1
jne 0x4335d1
not eax
pop esi
pop ebp
ret
Function at 0x4338f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x433aa9
cmp dword [edi + 0x18], 0
je 0x433aa9
cmp dword [edi + 0x7c], 0
je 0x43391b
push edi
call fcn.004335f0
add esp, 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.00433f80
add esp, 0x10
test eax, eax
je 0x43393e
mov eax, 0xffffff99
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.0050491e
mov esi, eax
add esp, 4
test esi, esi
je 0x433981
push 0x4000
call fcn.0050491e
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x43398c
push esi
call fcn.00504903
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x4339e8
lea eax, [esi + 4]
mov dword [esi + 0x24], 0
push eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00431990
add esp, 4
test eax, eax
jne 0x4339e8
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x433a0c
mov al, byte [edi + 0x39]
jmp 0x433a0f
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x7c], eax
test edx, edx
je 0x433a8b
mov al, byte [edx]
test al, al
je 0x433a8b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a38f8]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a38f8]
mov dword [esi + 0x78], ecx
add edx, 1
jne 0x433a40
mov eax, dword [ebp - 8]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff9a
pop edi
mov esp, ebp
pop ebp
ret