joyce8/EMBER2024-capa huggingface dataset:
Function at 0x561c6a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x561c7a
xor eax, eax
jmp 0x561e43
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x561dfb
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x592e64]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x561c83
cmp dword [ebp + 0x10], 0
je 0x561e3d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x592e64]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x561e01
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x56b680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5904b8
cmp edx, dword [eax]
je 0x56b6a2
add eax, 8
inc ecx
cmp eax, 0x590548
jl 0x56b693
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5904b8]
jne 0x56b7d0
mov eax, dword [0x5955e0]
cmp eax, 1
je 0x56b7aa
test eax, eax
jne 0x56b6d3
cmp dword [0x5901f4], 1
je 0x56b7aa
cmp edx, 0xfc
je 0x56b7d0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x56b70a
lea eax, [ebp - 0x1a4]
push 0x594280
push eax
call fcn.00569650
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00569800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x56b74d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00569800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x59427c
push edi
call fcn.00569880
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x594260
push eax
call fcn.00569650
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00569660
lea eax, [ebp - 0xa0]
push 0x59425c
push eax
call fcn.00569660
push dword [esi + 0x5904bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00569660
push 0x12010
lea eax, [ebp - 0xa0]
push 0x594234
push eax
call fcn.0056dc48
add esp, 0x2c
pop edi
jmp 0x56b7d0
lea eax, [ebp + 8]
lea esi, [esi + 0x5904bc]
push 0
push eax
push dword [esi]
call fcn.00569800
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 0x401000
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x405594]
mov ecx, eax
sub ecx, 0
je 0x40110c
dec ecx
je 0x401058
dec ecx
jne 0x401170
mov ecx, dword [0x4055b8]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401048
mov edx, dword [0x405590]
push eax
push str.Error
push str.Cant_get_game_status
push edx
jmp 0x4010e9
cmp dword [esp], 0x103
jne 0x401107
pop ecx
ret
mov ecx, dword [0x4055b8]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401082
mov edx, dword [0x405590]
push eax
push str.Error
push str.Cant_get_menu_status
push edx
jmp 0x4010e9
mov eax, dword [esp]
cmp eax, 0x103
je 0x401170
test eax, eax
jne 0x4010a1
mov dword [0x405594], 4
pop ecx
ret
push 0x4055b8
push 0x4055f8
push str.._bh2game_
push 0
push 0x20
push 0
push 0
push 0
dec eax
push 0
push str.._bh2game_bh2.exe
mov dword [esp + 0x28], eax
cmp eax, 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov dword [0x405644], eax
jne 0x4010fb
push eax
mov eax, dword [0x405590]
push str.Error
push str.Cant_execute_game
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x405594], 3
pop ecx
ret
mov dword [0x405594], 2
pop ecx
ret
mov eax, dword [0x405594]
neg eax
push 0x4055b8
push 0x4055f8
sbb eax, eax
push 0
push 0
push 0x20
not eax
push 0
and eax, str.intro
push 0
push 0
push eax
push str.BH2.EWS
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov dword [0x405644], eax
jne 0x401166
mov ecx, dword [0x405590]
push eax
push str.Error
push str.Cant_execute_th.ews
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x405594], 3
pop ecx
ret
mov dword [0x405594], 1
pop ecx
ret
Function at 0x401180
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
push 0x7f05
push ebx
mov dword [0x405640], eax
mov dword [0x4055d0], 0x8b
mov dword [0x4055d4], 0x401400
mov dword [0x4055d8], ebx
mov dword [0x4055dc], ebx
mov dword [0x4055e0], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [0x4055e4], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [0x4055e8], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x4055d0
mov dword [0x4055ec], eax
mov dword [0x4055f0], ebx
mov dword [0x4055f4], 0x405120
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp ax, bx
mov word [0x40563c], ax
jne 0x40120f
mov eax, 1
pop ebx
ret 0x10
mov eax, dword [0x405640]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push ebx
push eax
push ebx
push ebx
push 1
call esi
push eax
push ebx
call esi
push eax
push ebx
push ebx
push 0x90000000
push str.BeachHead_2000
push str.LAUNCHER
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x405590], eax
call fcn.00401330
test eax, eax
jne 0x40126f
mov ecx, dword [0x405590]
push ebx
push str.Error_in_processor_type
push str.This_program_requires_a_Pentium_processor_or_higher
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.USER32.dll_ShowCursor]
call fcn.004013a0
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, 0x11
xor eax, eax
mov edi, 0x4055f8
mov dword [0x405594], ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [0x4055f8], 0x44
mov edx, dword [0x405590]
push 1
push ebx
push ebx
push edx
push 0x405598
call esi
test eax, eax
je 0x4012e9
mov eax, dword [0x40559c]
cmp eax, 0x12
je 0x401306
cmp eax, 0x104
je 0x4012ab
cmp eax, 0x105
je 0x4012ab
push 0x405598
call edi
push 0x405598
call ebp
jmp 0x4012ab
call section..text
mov eax, dword [0x405594]
cmp eax, 3
je 0x401306
cmp eax, 4
je 0x401306
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4012ab
call fcn.004013e0
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push ebx
push ebx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402095
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4051e0
cmp edx, dword [eax]
je 0x4020b7
add eax, 8
inc ecx
cmp eax, 0x405270
jl 0x4020a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4051e0]
jne 0x4021e5
mov eax, dword [0x405650]
cmp eax, 1
je 0x4021bf
test eax, eax
jne 0x4020e8
cmp dword [0x405140], 1
je 0x4021bf
cmp edx, 0xfc
je 0x4021e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40211f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004027b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402162
lea eax, [ebp - 0x1a4]
push eax
call fcn.004027b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043d8
push edi
call fcn.00403440
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402650
lea eax, [ebp - 0xa0]
push 0x4043b8
push eax
call fcn.00402650
push dword [esi + 0x4051e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402650
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004033ae
add esp, 0x2c
pop edi
jmp 0x4021e5
lea eax, [ebp + 8]
lea esi, [esi + 0x4051e4]
push 0
push eax
push dword [esi]
call fcn.004027b0
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 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405be2
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423f10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f10], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402e44
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e61
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e70
mov ebx, 0x40f018
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e85
mov ecx, dword [0x423eb8]
add ecx, eax
push ecx
call fcn.00403073
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403041
test eax, eax
je 0x402fec
test byte [ebp + 0x17], 0x80
je 0x402fd5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40af88
mov dword [ebp - 0xc], eax
call fcn.00405cbc
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403037
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ed5
mov esi, dword [ebp + 0x14]
mov edi, 0x40b018
push esi
push edi
call fcn.00403041
test eax, eax
je 0x402fec
sub dword [ebp + 0x14], esi
mov dword [0x40afa0], edi
mov dword [0x40afa4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40af88
mov dword [0x40afa8], ebx
mov dword [0x40afac], eax
call fcn.00405cdc
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fcd
mov esi, dword [0x40afa8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f14], 1
mov edi, eax
je 0x402f77
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f44
cmp dword [ebp + 0x14], 0
jne 0x402f77
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c62
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fc2
cmp dword [ebp + 0x10], eax
jne 0x402fa0
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd1
cmp dword [ebp - 0x10], esi
jne 0x402fd1
add dword [ebp - 4], esi
jmp 0x402fb6
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40afa8]
jl 0x403037
cmp dword [ebp - 0x14], 1
jne 0x402ef8
jmp 0x403037
cmp dword [ebp + 0x14], eax
jg 0x402ec8
jmp 0x403037
push 0xfffffffffffffffc
jmp 0x402fee
push 0xfffffffffffffffe
jmp 0x402fee
test edi, edi
je 0x40302c
cmp dword [ebp + 0x14], esi
jge 0x402fe1
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403041
test eax, eax
jne 0x403034
push 0xfffffffffffffffd
pop eax
jmp 0x40303a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402ffc
mov esi, dword [ebp + 0x14]
mov edi, 0x40b018
push esi
push edi
call fcn.00403041
test eax, eax
je 0x402fec
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd1
cmp esi, dword [ebp + 0x10]
jne 0x402fd1
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ff1
jmp 0x403037
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405124
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422478], 0x44
push eax
xor eax, eax
push 0x422478
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40515f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4051e9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405498
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40521d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423ee8], eax
jmp 0x4053b1
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40523b
test eax, eax
je 0x40535c
test byte [ebp + 0xc], 2
je 0x40535c
mov esi, 0x421478
push edi
push esi
call fcn.004058c4
test ebx, ebx
je 0x405258
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40525e
push edi
call fcn.004053fe
cmp byte [edi], 0
jne 0x40526c
cmp byte [0x421478], 0x5c
jne 0x405277
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405352
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004053e2
cmp byte [eax], 0
je 0x4052bd
cmp byte [ebp - 0x18], 0
je 0x4052bd
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052d3
mov al, byte [esi + 1]
test al, al
je 0x405331
cmp al, 0x2e
jne 0x4052d3
cmp byte [esi + 2], 0
je 0x405331
push esi
push ebx
call fcn.004058c4
test byte [ebp - 0x148], 0x10
je 0x4052f8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405331
push dword [ebp + 0xc]
push edi
call fcn.004051e9
jmp 0x405331
push edi
call fcn.0040557c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405329
test byte [ebp + 0xc], 4
je 0x405321
push edi
push 0xfffffffffffffff1
call fcn.00404c62
push 0
push edi
call fcn.00405612
jmp 0x405331
inc dword [0x423ee8]
jmp 0x405331
push edi
push 0xfffffffffffffff2
call fcn.00404c62
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40529b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40535c
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053b1
cmp dword [ebp - 8], esi
jne 0x405371
inc dword [0x423ee8]
jmp 0x4053b1
push edi
call fcn.00405bbb
test eax, eax
je 0x4053b1
push edi
call fcn.004053b7
push edi
call fcn.0040557c
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053a9
test byte [ebp + 0xc], 4
je 0x405369
push edi
push 0xfffffffffffffff1
call fcn.00404c62
push esi
push edi
call fcn.00405612
jmp 0x4053b1
push edi
push 0xffffffffffffffe5
call fcn.00404c62
pop edi
pop esi
leave
ret 8
Function at 0x405498
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421878
push esi
call fcn.004058c4
push esi
call fcn.0040544b
mov edi, eax
test edi, edi
jne 0x4054b9
xor eax, eax
jmp 0x40550b
push edi
call fcn.00405b22
test byte [0x423e78], 0x80
je 0x4054d2
mov al, byte [edi]
test al, al
je 0x4054b5
cmp al, 0x5c
je 0x4054b5
sub edi, esi
jmp 0x4054ea
call fcn.00405bbb
test eax, eax
je 0x4054e4
test byte [eax], 0x10
je 0x4054b5
push esi
call fcn.004053fe
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054d6
call fcn.004053b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40557c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405598
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40559b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4055ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40560e
test edi, edi
jne 0x4055d5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405608
Function at 0x405612
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405be2
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405636
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40576f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422600], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422600
je 0x40567a
push 1
push 0
push esi
call fcn.0040559b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405775
cmp eax, edi
jg 0x405775
mov esi, 0x422078
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405775
cmp eax, edi
jg 0x405775
push esi
push ebp
push str._s_s_r_n
push 0x421c78
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004058e6
push 4
push 0xc0000000
push esi
call fcn.0040559b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40576f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405768
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405768
cmp edi, dword [esp + 0x18]
jne 0x405768
push str._Rename__r_n
push esi
call fcn.00405510
test eax, eax
jne 0x40577c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058c4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c78
push eax
call fcn.0040555c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423ef0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.00405510
test eax, eax
je 0x405733
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057a3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405798
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405735
Function at 0x405c4e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a04], 0
push esi
jne 0x405c85
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c5f
mov dword [ecx*4 + 0x422a00], eax
inc ecx
cmp ecx, 0x100
jl 0x405c5a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cb6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a00]
xor eax, esi
inc ecx
dec edx
jne 0x405c98
pop edi
not eax
pop esi
ret 0xc
Function at 0x40dabe
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x40dae0
mov eax, 0xfffffffd
jmp 0x40db58
mov ebx, dword [0x5e1a34]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40db26
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x5e1a34]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40db4e
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40db58
mov esp, ebp
pop ebp
ret 4