joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb9f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f3958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f7780
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov dword [ebp - 4], 0
jge 0x45d288
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00408570
mov esi, dword [ebp - 0x10]
xor eax, eax
mov dword [esi - 0xc], 0x400
mov ecx, edi
mov word [esi + 0x800], ax
call fcn.0045cb50
push eax
push 0x400
push esi
push 0x4db940
push str.scantimes
push str.laststatus
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00496d18
xor ecx, ecx
mov dword [esi - 0xc], eax
add esp, 8
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x45d31c
push esi
call fcn.0049b222
mov edi, eax
lea eax, [esi - 0x10]
mov ebx, edx
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d306
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d33f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d3e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb7d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f3958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0x44]
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
cmp dword [edi + 4], 0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
jne 0x45d438
push esi
call fcn.00459770
mov ecx, eax
call fcn.004598d0
mov eax, dword [esi]
test eax, eax
je 0x45d49d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov ecx, edi
call fcn.0045cb50
mov ebx, eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45d460
mov eax, dword [ebp - 0x14]
push eax
jmp 0x45d49e
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
push eax
call edx
push esi
lea ecx, [edi + 8]
mov ebx, eax
call fcn.0045b820
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ebx, ebx
setge al
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45e160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test byte [0x4f731c], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x45e190
mov eax, 1
or dword [0x4f731c], eax
mov dword [0x4f7310], eax
xor eax, eax
mov dword [0x4f7314], eax
mov dword [0x4f7318], eax
mov eax, dword [0x4f7318]
push eax
push 1
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45e24b
cmp byte [esi + 0x2a0], 0
mov ecx, dword [esi + 0x38]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jne 0x45e286
jmp 0x45e1d0
push 0x7530
push 0
lea edx, [ebp - 8]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
mov eax, dword [esi - 0x170]
push eax
call ebx
test eax, eax
je 0x45e24b
test byte [0x4f731c], 1
jne 0x45e217
mov eax, 1
or dword [0x4f731c], eax
mov dword [0x4f7310], eax
xor eax, eax
mov dword [0x4f7314], eax
mov dword [0x4f7318], eax
mov eax, dword [0x4f7314]
push eax
call ebx
test eax, eax
je 0x45e24b
cmp edi, 0x102
je 0x45e234
test edi, edi
je 0x45e24b
cmp edi, 1
je 0x45e286
cmp byte [esi + 0x2a0], 0
je 0x45e1d0
pop edi
mov dword [esi + 0x10], 3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi - 0x170]
push eax
call ebx
push 0
test eax, eax
je 0x45e279
mov ecx, dword [esi - 0x170]
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
mov dword [esi + 0x10], 3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
mov dword [esi + 0x10], 3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
mov eax, dword [esi + 0x1d8]
je 0x45e654
test eax, eax
jne 0x45e5f9
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1d8], eax
jmp 0x45e600
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x1b0], 0
add esi, 0x1a0
cmp dword [esi + 4], 0
jne 0x45e648
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
jne 0x45e640
push 0
push 0
push esi
push 0x4266a0
push 0
push 0
call fcn.0049a641
add esp, 0x18
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov dword [esi + 0x10], 0
mov esi, dword [esi + 0xc]
jmp 0x45e661
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esi + 0x1ac]
test esi, esi
je 0x45e670
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop esi
pop ebp
ret 4
Function at 0x470240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47024e
xor al, al
pop ebp
ret
push esi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push 0x470220
push 0
push 0
mov dword [ebp + 8], 0
call fcn.0049a641
mov esi, eax
add esp, 0x18
cmp dword [0x4f0b58], esi
je 0x47027c
test esi, esi
jne 0x470281
xor al, al
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4f0b58], esi
je 0x47029b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd03c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f3958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi], ebx
call edi
mov dword [esi + 4], eax
mov eax, dword [0x4f0b58]
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x18]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00408e90
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00446140
mov dword [esi + 0x48], ebx
xor ecx, ecx
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], ebx
mov word [esi + 0x50], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b3a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdc88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f3958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x30]
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
add esi, 0xc
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0047a920
mov edx, dword [esi + 0x18]
mov edi, dword [ebp - 0x18]
mov esi, dword [esi]
mov dword [ebp - 0x1c], edx
test edi, edi
je 0x47b403
cmp edi, esi
je 0x47b408
call fcn.00494dd4
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x1c]
jne 0x47b42d
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x47b46c
call fcn.00494dd4
cmp esi, dword [edi + 0x18]
jne 0x47b440
call fcn.00494dd4
mov ecx, dword [ebp + 0xc]
add esi, 0x10
push esi
call fcn.0047b200
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [edi]
jmp 0x47b436

Function at 0x47bd70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdd4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f3958]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CSwitchMainThreadHelper.0
mov dword [esi + 4], 0
lea edx, [ebp + 0xb]
mov dword [esi + 8], eax
push edx
lea eax, [ebp + 0xb]
lea ecx, [esi + 0xc]
push eax
call fcn.00484520
lea ecx, [esi + 0x30]
push ecx
mov dword [ebp - 4], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0045aeb0
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47cc20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47cc39
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x47cc43
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x47d270
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4f3958]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [ebp - 0x210]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20c]
mov esi, eax
cmp esi, edi
jne 0x47d2f1
xor eax, eax
cmp ecx, edi
je 0x47d2d9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x208], edi
mov esi, eax
mov dword [ebp - 0x20c], ecx
cmp eax, edi
je 0x47d2ff
cmp ecx, edi
je 0x47d3c0
push ecx
jmp 0x47d3ba
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x204]
push eax
push edi
push ecx
mov dword [ebp - 0x214], pe_nt_image_headers32
call esi
test eax, eax
jne 0x47d380
nop
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0047d270
mov dword [ebp - 0x210], eax
cmp eax, edi
jne 0x47d3d5
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x20c]
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], pe_nt_image_headers32
call esi
test eax, eax
je 0x47d330
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x47d397
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20c], edi
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x208], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x47d3c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951ca
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x20c]
cmp ecx, edi
je 0x47d3c2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004951ca
mov esp, ebp
pop ebp
ret 4
Function at 0x4835e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be196
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4f3958]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x414], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x483654
call int.00408f20
mov edi, eax
jmp 0x48372c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48366d
call int.00408f20
jmp 0x483723
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x483685
call int.00408f20
jmp 0x483723
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x4836c4
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x4836af
lea ecx, [ebp - 0x414]
call fcn.0047d240
lea ecx, [ebp - 0x418]
call fcn.0047c250
mov eax, 0x8007000e
jmp 0x483752
push eax
lea ecx, [ebp - 0x414]
call fcn.0047dab0
mov eax, dword [ebp - 0x414]
mov dword [ebp - 4], 1
test eax, eax
jne 0x4836e8
mov edi, 0x8007000e
jmp 0x483725
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x483701
call int.00408f20
jmp 0x483723
mov edx, dword [ebp - 0x414]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x414]
push eax
push ecx
lea ecx, [ebp - 0x420]
call fcn.0047e980
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x410]
cmp dword [ebp - 0x414], edx
je 0x483750
lea ecx, [ebp - 0x414]
call fcn.0047d240
jmp 0x483750
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004951ca
mov esp, ebp
pop ebp
ret 0x10
Function at 0x489680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebx, ebx
jne 0x4896a0
mov ebx, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x489716
test edx, edx
jne 0x4896d9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049317b
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebx
push edi
call fcn.004965f0
add esp, 0x10
mov edx, edi
mov ebx, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4896f2
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x4896e0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0048c1b0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebx
call fcn.00498cc4
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x48973b
push edi
call fcn.0049538b
add esp, 4
test bl, bl
je 0x48977e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x48975b
mov eax, dword [esi + 0x40]
jmp 0x48975e
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0048c1b0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.00489490
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x48c350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.0049aaa1
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x48c4b3
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x48c3a3
mov eax, dword [esi + 0x40]
jmp 0x48c3a6
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.0048c1b0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
mov dword [ebp - 8], edx
test edx, edx
je 0x48c467
dec dword [ebp - 8]
xor edx, edx
cmp byte [ebp - 2], dl
je 0x48c3ea
cmp byte [edi], dl
jmp 0x48c3ee
cmp word [edi], 0
sete dl
test edx, edx
je 0x48c418
test eax, eax
je 0x48c411
cmp edi, eax
je 0x48c411
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.0049c000
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebx
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x48c3dc
test eax, eax
je 0x48c43d
cmp edi, eax
je 0x48c43d
mov ecx, dword [esi + 0x18]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.0049c000
add esp, 0xc
test ebx, ebx
je 0x48c467
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0048c1b0
add esp, 0x18
sub dword [esi + 0x1c], ebx
cmp dword [esi + 0x18], 1
jle 0x48c4a7
test byte [esi + 4], 0x80
je 0x48c4a7
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00486c40
mov edx, dword [ebp - 0xc]
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.endian_swap
call fcn.0048c1b0
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00489490
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48dd40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x48dd50
mov eax, 0x8000ffff
pop esi
ret
push edi
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.00408e90
test eax, eax
jl 0x48de52
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x48dd96
cmp byte [edi + 0x18], al
je 0x48dd8e
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop ebx
pop edi
pop esi
jmp int.00408f20
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x48de15
push 0
push 0
push edi
mov ecx, esi
call fcn.0048dbd0
mov ebx, eax
test ebx, ebx
jge 0x48ddd1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00455a40
mov eax, ebx
pop ebx
pop edi
pop esi
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x48de15
push 0
push 0
push edi
mov ecx, esi
call fcn.0048dbd0
mov ebx, eax
test ebx, ebx
jl 0x48ddb8
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x48dcd0
push 0
push 0
call fcn.0049a641
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x48de38
call int.00408f20
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00455a40
test eax, eax
jge 0x48de32
test edi, edi
jl 0x48de32
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov ecx, dword [esi + 0x40]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48de4f
call int.00408f20
mov ebx, eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret
Function at 0x48eb70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x48eb7e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x48ec64
mov esi, edx
shr esi, 3
push edi
jmp 0x48eba0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d7218]
inc ecx
sub edx, 8
sub esi, 1
jne 0x48eba0
pop edi
test edx, edx
je 0x48ec8b
jmp 0x48ec70
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4d7218]
inc ecx
sub edx, 1
jne 0x48ec70
not eax
pop esi
pop ebp
ret

Function at 0x48f100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x48f140
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f134
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x48f151
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004965f0
add dword [edi + 0x18], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret