joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e67c0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x4e6866
push edi
mov ecx, 0x5a
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x4000
mov dword [esi + 4], 0x4000
call fcn.00501032
push 0x1000
mov dword [esi], eax
mov dword [esi + 0x18], 0x400
call fcn.00501032
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
shl eax, 3
push eax
call fcn.00501032
mov dword [esi + 0x14], eax
mov eax, dword [0x5e43d0]
add esp, 0xc
test eax, eax
jne 0x4e685a
xor edx, edx
mov ecx, 0x5e3fd0
mov eax, edx
mov edi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x4e683d
add eax, eax
xor eax, 0x4c11db7
jmp 0x4e683f
shl eax, 1
dec edi
jne 0x4e682d
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x5e43d0
jl 0x4e6823
mov dword [0x5e43d0], 0
mov dword [esi + 0x150], ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret

Function at 0x4e68c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor eax, eax
mov edi, dword [esi + 4]
xor edx, edx
test edi, edi
jle 0x4e68f0
mov ebp, dword [esi]
xor ecx, ecx
mov ebx, eax
mov cl, byte [edx + ebp]
shr ebx, 0x18
xor ecx, ebx
shl eax, 8
mov ecx, dword [ecx*4 + 0x5e3fd0]
xor eax, ecx
inc edx
cmp edx, edi
jl 0x4e68d3
mov edi, dword [esi + 0xc]
xor edx, edx
test edi, edi
jle 0x4e6919
mov ebp, dword [esi + 8]
xor ecx, ecx
mov ebx, eax
mov cl, byte [edx + ebp]
shr ebx, 0x18
xor ecx, ebx
shl eax, 8
mov ecx, dword [ecx*4 + 0x5e3fd0]
xor eax, ecx
inc edx
cmp edx, edi
jl 0x4e68fc
mov edx, dword [esi]
mov ecx, eax
shr ecx, 8
mov byte [edx + 0x16], al
mov edx, dword [esi]
pop edi
mov byte [edx + 0x17], cl
mov edx, dword [esi]
mov ecx, eax
shr ecx, 0x10
mov byte [edx + 0x18], cl
mov ecx, dword [esi]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret

Function at 0x4e6940
Capabilities:
Hash data using crc32b

Disassembly:
push edi
mov edi, ecx
test edi, edi
je 0x4e699d
mov ecx, 7
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x5e43d0]
test eax, eax
jne 0x4e699d
push esi
xor edx, edx
mov ecx, 0x5e3fd0
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x4e697b
add eax, eax
xor eax, 0x4c11db7
jmp 0x4e697d
shl eax, 1
dec esi
jne 0x4e696b
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x5e43d0
jl 0x4e6961
pop esi
mov dword [0x5e43d0], 0
xor eax, eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x4e69b0
Capabilities:
Hash data using crc32b

Disassembly:
push edi
mov edi, ecx
test edi, edi
je 0x4e6a1c
mov eax, dword [edi]
test eax, eax
je 0x4e69c6
push eax
call fcn.00502745
add esp, 4
mov ecx, 7
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x5e43d0]
test eax, eax
jne 0x4e6a1c
push esi
xor edx, edx
mov ecx, 0x5e3fd0
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x4e69fa
add eax, eax
xor eax, 0x4c11db7
jmp 0x4e69fc
shl eax, 1
dec esi
jne 0x4e69ea
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x5e43d0
jl 0x4e69e0
pop esi
mov dword [0x5e43d0], 0
xor eax, eax
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4e7ab0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xca
jne 0x4e7add
call fcn.004ebb00
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4e7ad6
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4e7b5d
mov eax, dword [esi + 0x1ac]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4e7b48
mov eax, dword [esi + 8]
test eax, eax
je 0x4e7aff
mov ecx, esi
call dword [eax]
mov edx, dword [esi + 0x1ac]
mov ecx, esi
call dword [edx]
test eax, eax
je 0x4e7b44
cmp eax, 2
je 0x4e7b48
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e7af4
cmp eax, 3
je 0x4e7b23
cmp eax, 1
jne 0x4e7af4
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4e7af4
mov edx, dword [esi + 0x138]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4e7af4
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x8c]
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.004e7b90
pop esi
ret
cmp eax, 0xcc
je 0x4e7b7b
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, esi
mov dword [edx + 0x18], eax
mov edx, dword [esi]
call dword [edx]
mov ecx, esi
call fcn.004e7b90
pop esi
ret
Function at 0x50a966
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x540d30
cmp edx, dword [eax]
je 0x50a988
add eax, 8
inc ecx
cmp eax, 0x540dc0
jl 0x50a979
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x540d30]
jne 0x50aab6
mov eax, dword [0x5e4480]
cmp eax, 1
je 0x50aa90
test eax, eax
jne 0x50a9b9
cmp dword [0x53e144], 1
je 0x50aa90
cmp edx, 0xfc
je 0x50aab6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x50a9f0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0050b400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00503320
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x50aa33
lea eax, [ebp - 0x1a4]
push eax
call fcn.00503320
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x522054
push edi
call fcn.00501c60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0050b400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0050b410
lea eax, [ebp - 0xa0]
push 0x5391f8
push eax
call fcn.0050b410
push dword [esi + 0x540d34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0050b410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0050c7e1
add esp, 0x2c
pop edi
jmp 0x50aab6
lea eax, [ebp + 8]
lea esi, [esi + 0x540d34]
push 0
push eax
push dword [esi]
call fcn.00503320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402a78
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40a008], 0x8088405
inc edx
mov dword [ebx + 0x40a008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 4
call fcn.0040fdc0
mov dword [esp], 0x4f2104
push 0x82
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4013f5
push esi
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4013ee
push esi
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4013ee
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0040fdd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push ecx
mov eax, esp
mov dword [eax], str.skin_define.xml
call fcn.00401bdb
mov ecx, eax
call fcn.00411670
pop edi
pop esi
ret

Function at 0x4015e6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40166b
lea ecx, [esp + 8]
call fcn.0049f543
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.0049fc07
sub esp, 0x18
mov ecx, esp
push str.SoftManager
call fcn.00401bb6
push 0
push dword [ebp + 8]
call fcn.00401674
mov ecx, eax
call fcn.004a0436
lea ecx, [esp + 8]
call fcn.0049f723
cmp eax, 1
jg 0x401652
push ecx
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040140f
pop ecx
pop ecx
jmp 0x401657
call fcn.00401507
call fcn.004017ba
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 8]
call fcn.0049f596
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4017ba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x500324]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401831
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401831
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1724
leave
ret
Function at 0x4021d8
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x2a8
mov eax, 0x4d2a9e
call fcn.004a2075
mov edi, ecx
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x2b4]
push edx
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov ecx, esi
push str.windowinit
mov dword [ebp - 4], ebx
call fcn.004158e0
test al, al
jne 0x4022c6
push str.click
mov ecx, esi
call fcn.004158e0
test al, al
je 0x4022c6
push str.sysclosebutton
lea ecx, [ebp - 0x2b4]
call fcn.00415dd0
test eax, eax
je 0x402410
push str.btn_ok
lea ecx, [ebp - 0x2b4]
call fcn.00415dd0
test eax, eax
je 0x402410
push str.btn_open_web
lea ecx, [ebp - 0x2b4]
call fcn.00415dd0
test eax, eax
jne 0x4022e1
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0xf0]
push eax
lea ecx, [ebp - 0x94]
call fcn.00415590
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00416240
test eax, eax
jle 0x4022b8
push 5
push ebx
push ebx
lea ecx, [ebp - 0x94]
call fcn.004159a0
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], bl
call fcn.00415770
push esi
mov ecx, edi
call fcn.00414250
lea ecx, [ebp - 0x2b4]
call fcn.00415770
call fcn.004a2030
ret 4
push str.soft_version
lea ecx, [ebp - 0x2b4]
call fcn.00415dd0
test eax, eax
jne 0x4023cd
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004b93a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004b8d7d
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], ebx
push eax
mov dword [ebp - 0x21c], 7
call fcn.00401b8f
push str.update.exe
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.0040196a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4023ba
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.00401991
jmp 0x4022c6
push str.btn_office_url
lea ecx, [ebp - 0x2b4]
call fcn.00415dd0
test eax, eax
jne 0x4023f1
push str.http:__xs_store.xsfaya.com_
call fcn.004a0ebe
pop ecx
jmp 0x4022c6
push str.btn_office_priurl
lea ecx, [ebp - 0x2b4]
call fcn.00415dd0
test eax, eax
jne 0x4022c6
push str.http:__xs_store.xsfaya.com_privacy
jmp 0x4023e6
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4022ce
Function at 0x40f5a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x40f5de
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x108]
je 0x40f5de
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x108]
jne 0x40f5f1
jmp 0x40f765
mov edx, dword [ebp - 4]
cmp dword [edx + 0x108], 0
je 0x40f683
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x14c]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40f676
push 0
push 0
push 0
push str.killfocus
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040f000
mov eax, dword [ebp - 4]
mov dword [eax + 0x108], 0
cmp dword [ebp + 8], 0
jne 0x40f68e
jmp 0x40f765
cmp dword [ebp + 8], 0
je 0x40f765
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x40f765
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
call eax
movzx ecx, al
test ecx, ecx
je 0x40f765
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x114]
call edx
movzx eax, al
test eax, eax
je 0x40f765
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x108], edx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x14c]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40f765
push 0
push 0
push 0
push str.setfocus
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.0040f000
mov esp, ebp
pop ebp
ret 8
Function at 0x411670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x500324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
je 0x4116f1
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3c
jne 0x4116ca
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00454890
movzx edx, al
test edx, edx
jne 0x4116c8
xor eax, eax
jmp 0x4117c9
jmp 0x4116ec
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00454910
movzx ecx, al
test ecx, ecx
jne 0x4116ec
xor eax, eax
jmp 0x4117c9
jmp 0x411798
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x41171b
xor eax, eax
jmp 0x4117c9
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x41174e
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4117c9
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00454fc0
movzx edx, al
test edx, edx
jne 0x41178b
xor eax, eax
jmp 0x4117c9
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x28
call fcn.00454710
sub esp, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
call fcn.00411130
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1724
mov esp, ebp
pop ebp
ret 8
Function at 0x417420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x500324]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x417454
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417454
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x417463
jmp 0x4175cc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x4174be
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x4174a1
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4174ad
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x417478
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x41754e
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.004b95f0
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x417517
jmp 0x41751c
call fcn.004a22ed
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00417420
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x41756a
jmp 0x41756f
call fcn.004a22ed
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x417598
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004be578
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.004be547
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4175cc
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1724
mov esp, ebp
pop ebp
ret
Function at 0x418310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x41832a
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x418334
mov eax, 0x1000000
jmp 0x41841e
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call fcn.004be4ca
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x418392
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x418392
push 0x4d9a20
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.004be547
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x4183d6
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4183ba
mov dword [ebp - 0x10], 1
jmp 0x4183c1
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x4183d6
mov eax, 0x2000000
jmp 0x41841e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041d4e0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4183fc
mov eax, dword [ebp - 0x1c]
jmp 0x41841e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041e1d0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x41841c
mov eax, 0x200
jmp 0x41841e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418d70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x4db1a8]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x4db1a8]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret

Function at 0x41d670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x41d6bf
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41d6b5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x41d719
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x41d6df
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b95f0
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret