joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c5dbc]
xor edx, edx
cmp eax, edx
jne 0x452866
xor eax, eax
mov byte [eax + 0x5c5cbc], al
inc eax
cmp eax, 0x100
jl 0x45284e
mov dword [0x5c5dbc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c5cbc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4528f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4528ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x452898
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x452900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x452953
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45293a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4592f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485afe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00459c10
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x58c28c
call fcn.004775eb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x459383
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004775eb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45937c
push 0
mov ecx, eax
call fcn.00450470
mov dword [esi + 0xc], eax
jmp 0x459385
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x459385
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x479c4e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x479c86
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477d05
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00477cdd
jmp 0x479c92
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47b343
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47b385
call fcn.00480df3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47b385
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47b37c
xor eax, eax
jmp 0x47b38d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047b393
pop edi
pop esi
pop ebx
ret 4

Function at 0x481323
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x481351
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48136f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00481289
jmp 0x48136f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48136f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00481289
test edi, edi
mov eax, edi
jne 0x481359
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ca0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x48
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x3c]
push ecx
call sub.windowsui.dll_public:_static_class_EVTLoop____cdecl_EVTLoop::GetInstance_void_
mov ecx, eax
call sub.windowsui.dll_public:_void___thiscall_EVTLoop::SetMainStartupTime_class_ATL::CFileTime_const___class_ATL::CFileTime_const___class_ATL::CFileTime_const__
call sub.MFC80U.DLL_Ordinal_1079
mov ebp, dword [eax + 4]
call sub.libpartutils.dll_void___cdecl_DEBUG_start_ipa_on_startup_void_
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call sub.MFC80U.DLL_Ordinal_1197
test eax, eax
jne 0x401d4d
or eax, 0xffffffff
pop ebp
add esp, 0x48
ret
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.DisableProcessWindowsGhosting
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401d6a
call eax
push esi
mov esi, dword [sym.imp.MSVCR80.dll_getenv]
push edi
push str.UGII_DISPLAY_DEBUG
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call esi
mov edi, dword [sym.imp.MSVCR80.dll_sscanf]
add esp, 4
test eax, eax
je 0x401da6
lea ecx, [esp + 0xc]
push ecx
push 0x4083f4
push eax
call edi
add esp, 0xc
push str.UGII_DISPLAY_PRINTF_WND
call esi
add esp, 4
test eax, eax
je 0x401dc4
lea edx, [esp + 0x10]
push edx
push 0x408410
push eax
call edi
add esp, 0xc
mov eax, 1
cmp dword [esp + 0xc], eax
jne 0x401ddb
cmp dword [esp + 0x10], eax
jne 0x401ddb
call dword [sym.imp.libugdebug.dll_int___cdecl_UgDebugHookTraceFunctions_void_]
push 0x401c20
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, ebp
call fcn.00402e50
mov esi, eax
call sub.MFC80U.DLL_Ordinal_1199
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x48
ret

Function at 0x405daa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e554]
jne 0x405db4
repz ret
jmp fcn.0040637c
Function at 0x401fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40217f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402144
cmp dword [ebp + 0xc], 3
jbe 0x402144
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e50
mov dword [ebp - 0x74], eax
jmp 0x4020e3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40213f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40213a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402154
jmp 0x40213f
jmp 0x402144
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402171
jmp 0x40216c
jmp 0x40217f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402078
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x45d200], eax
pop esi
pop edi
pop ebp
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 [0x42ec10]
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.00405c11
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x42ec10]
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 [0x42ec10], 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 0x405153
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe0], 0x44
push eax
xor eax, eax
push 0x42bfe0
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 0x40518e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405218
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.004054c7
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40524c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4053e0
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40526a
test eax, eax
je 0x40538b
test byte [ebp + 0xc], 2
je 0x40538b
mov esi, 0x42afe0
push edi
push esi
call fcn.004058f3
test ebx, ebx
je 0x405287
push 0x409320
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40528d
push edi
call fcn.0040542d
cmp byte [edi], 0
jne 0x40529b
cmp byte [0x42afe0], 0x5c
jne 0x4052a6
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 0x405381
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405411
cmp byte [eax], 0
je 0x4052ec
cmp byte [ebp - 0x18], 0
je 0x4052ec
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405302
mov al, byte [esi + 1]
test al, al
je 0x405360
cmp al, 0x2e
jne 0x405302
cmp byte [esi + 2], 0
je 0x405360
push esi
push ebx
call fcn.004058f3
test byte [ebp - 0x148], 0x10
je 0x405327
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405360
push dword [ebp + 0xc]
push edi
call fcn.00405218
jmp 0x405360
push edi
call fcn.004055ab
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405358
test byte [ebp + 0xc], 4
je 0x405350
push edi
push 0xfffffffffffffff1
call fcn.00404c91
push 0
push edi
call fcn.00405641
jmp 0x405360
inc dword [0x42ebe8]
jmp 0x405360
push edi
push 0xfffffffffffffff2
call fcn.00404c91
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052ca
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40538b
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053e0
cmp dword [ebp - 8], esi
jne 0x4053a0
inc dword [0x42ebe8]
jmp 0x4053e0
push edi
call fcn.00405bea
test eax, eax
je 0x4053e0
push edi
call fcn.004053e6
push edi
call fcn.004055ab
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053d8
test byte [ebp + 0xc], 4
je 0x405398
push edi
push 0xfffffffffffffff1
call fcn.00404c91
push esi
push edi
call fcn.00405641
jmp 0x4053e0
push edi
push 0xffffffffffffffe5
call fcn.00404c91
pop edi
pop esi
leave
ret 8
Function at 0x4054c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3e0
push esi
call fcn.004058f3
push esi
call fcn.0040547a
mov edi, eax
test edi, edi
jne 0x4054e8
xor eax, eax
jmp 0x40553a
push edi
call fcn.00405b51
test byte [0x42eb78], 0x80
je 0x405501
mov al, byte [edi]
test al, al
je 0x4054e4
cmp al, 0x5c
je 0x4054e4
sub edi, esi
jmp 0x405519
call fcn.00405bea
test eax, eax
je 0x405513
test byte [eax], 0x10
je 0x4054e4
push esi
call fcn.0040542d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405505
call fcn.004053e6
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 0x4055ab
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 0x4055c7
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4055ca
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 0x4055f9
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 0x40563d
test edi, edi
jne 0x405604
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405637
Function at 0x405641
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.00405c11
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405665
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40579e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c168], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c168
je 0x4056a9
push 1
push 0
push esi
call fcn.004055ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057a4
cmp eax, edi
jg 0x4057a4
mov esi, 0x42bbe0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057a4
cmp eax, edi
jg 0x4057a4
push esi
push ebp
push str._s_s_r_n
push 0x42b7e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42eb70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405915
push 4
push 0xc0000000
push esi
call fcn.004055ca
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40579e
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 0x405797
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 0x405797
cmp edi, dword [esp + 0x18]
jne 0x405797
push str._Rename__r_n
push esi
call fcn.0040553f
test eax, eax
jne 0x4057ab
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058f3
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7e0
push eax
call fcn.0040558b
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 [0x42ebf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.0040553f
test eax, eax
je 0x405762
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057d2
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4057c7
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405764
Function at 0x405c7d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x405cb4
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 0x405c8e
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x405c89
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ce5
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 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x405cc7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401049
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40105d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40107e
cmp esi, eax
jae 0x401057
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401070
cmp esi, eax
jae 0x401057
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403b30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x435651
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov eax, dword [0x448370]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x42c], eax
mov edi, ecx
lea eax, [esp + 0x224]
push eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x440], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x437e38
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [edi + 0x1ac]
call fcn.0040d6f0
call fcn.00427348
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x437e40
push eax
mov byte [esp + 0x440], 1
call fcn.00402f40
mov ebp, dword [esp + 0x18]
add esp, 8
push ebx
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push ebp
mov dword [esp + 0x20], ebp
call fcn.00401350
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.00403070
push 0x48
mov dword [edi + 0xd0], ebx
call fcn.0042741d
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x438], 2
je 0x403c1d
mov ecx, eax
call fcn.00406b10
mov esi, eax
jmp 0x403c1f
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x438], 1
je 0x403cbf
mov byte [esi + 0x14], 1
mov dword [esi + 0x18], ebx
mov ecx, dword [edi + 0x1c]
lea edx, [esp + 0x440]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x24]
push edx
call fcn.004018a0
push 0x4377f0
lea ebp, [esi + 0x2c]
call fcn.00417cae
add esp, 4
push eax
push 0x4377f0
mov ecx, ebp
call fcn.004016a0
lea eax, [esp + 0x1c]
push eax
lea ebp, [esi + 0x1c]
call fcn.00417cae
add esp, 4
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004016a0
push 0x4377f0
mov dword [esi + 0x3c], ebx
lea ebp, [esi + 0x20]
call fcn.00417cae
add esp, 4
push eax
push 0x4377f0
mov ecx, ebp
call fcn.004016a0
push ebx
lea ecx, [edi + 0x74]
call fcn.0042bdd1
push esi
lea ecx, [edi + 0x7f0]
call fcn.004074e0
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x438], bl
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403cde
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x440]
add eax, 0xfffffff0
mov dword [esp + 0x438], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
call fcn.00418507
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4