joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0f20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x84]
mov dword [edi + 4], 1
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xa4], 0
mov dword [edi + 0xd4], 0
mov ecx, dword [eax]
push 0
mov eax, dword [ecx]
call dword [eax + 0x40]
push 0x30
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.005001b0
add esp, 0xc
mov dword [ebp - 0x40], vtable.IFunc.0
call fcn.004cc620
mov dword [ebp - 0x3c], eax
call fcn.004296f0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x60]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x40], vtable.IFuncFlag.0
mov dword [ebp - 0x2c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x40], vtable.CFuncFlag.0
push ecx
push 0x5f43
push 0
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004403c0
push ecx
push 1
push 0x35
push 0
lea ecx, [ebp - 0x40]
call fcn.004405a0
push ecx
push 1
push 0x38
push 0
lea ecx, [ebp - 0x40]
call fcn.004405a0
mov eax, dword [edi + 0x90]
mov ecx, 0x51
mov edx, dword [eax + 0x30]
mov dword [edi + 0x100], edx
mov eax, dword [eax + 0x30]
add eax, 0x5f3d
mov dword [edi + 0x104], eax
movzx eax, word [eax]
mov dword [edi + 0x108], eax
xor eax, eax
nop dword [eax]
cmp byte [ecx + edx], 0
je 0x4b104f
inc eax
add ecx, 0x51
cmp eax, 0x64
jl 0x4b1040
mov esi, dword [edi + 0x100]
xor edx, edx
mov dword [edi + 0xc8], eax
lea ecx, [esi + 0x1ff5]
cmp byte [ecx], 0
je 0x4b1071
inc edx
add ecx, 0x51
cmp edx, 0x64
jl 0x4b1063
xor ecx, ecx
mov dword [edi + 0xcc], edx
add esi, 0x3f99
nop
cmp byte [esi], 0
je 0x4b108e
inc ecx
add esi, 0x51
cmp ecx, 0x64
jl 0x4b1080
mov esi, dword [edi + 0xd4]
mov dword [edi + 0xd0], ecx
test esi, esi
je 0x4b10b0
cmp esi, 1
jne 0x4b10a7
mov eax, edx
jmp 0x4b10b0
mov eax, dword [ebp - 0x44]
cmp esi, 2
cmove eax, ecx
xor ecx, ecx
cmp dword [edi + 0xa8], 3
push str.saveload.area
sete cl
add ecx, 0xfffffff9
add ecx, eax
mov eax, 0
cmovs ecx, eax
test ecx, ecx
lea ecx, [edi + 0x58]
setg al
mov dword [edi + 0xfc], eax
mov dword [edi + 0xc0], 0
call fcn.0041a0a0
push ecx
push dword [edi + 0xc0]
mov ecx, edi
call fcn.004b1e00
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], vtable.IFuncFlag.0
push eax
mov dword [ebp - 0x2c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
Function at 0x4b3520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5266ad
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [0x57e924]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CFile.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
mov dword [ebp - 0x24], edi
call dword [eax + 0x34]
push 0x44
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea edx, [esi + 1]
lea ecx, [ebp - 0x68]
call fcn.004ea2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x68]
push 2
mov eax, dword [eax + 0x40]
call eax
sub esp, 0x44
mov ecx, esp
push eax
call fcn.0041a6c0
lea ecx, [ebp - 0x20]
call fcn.0041c7b0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x1c]
call eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x9000
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 0xc]
lea ecx, [ebp - 0x68]
call fcn.0041c2a0
mov byte [ebp - 4], 3
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x38]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call fcn.0041c890
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b3650
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526708
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov edi, dword [0x57e920]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
mov dword [ebp - 0x28], edi
call dword [eax + 0x34]
push 0x44
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea edx, [esi + 1]
lea ecx, [ebp - 0x70]
call fcn.004ea2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x40]
call eax
push eax
lea ecx, [ebp - 0xb8]
call fcn.0041a6c0
push 0
push 0
push 3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
mov eax, dword [ebp - 0xb8]
push 0
push 1
push SysReAllocStringLen
mov eax, dword [eax + 0x7c]
call eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
jne 0x4b376c
mov dword [ebp - 0x20], 0
call fcn.0041c2a0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0x48
push 0x80
push 0
push 0
call dword [eax + 0xe8]
xor esi, esi
jmp 0x4b37c9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0041c2a0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x1c]
call eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x9000
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push 0xff
push 0x48
push 0x80
push 0
push 0
call dword [eax + 0xe8]
mov esi, 1
lea ecx, [ebp - 0x70]
call fcn.0041c2a0
mov byte [ebp - 4], 6
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x38]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 7
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CFile.0
call fcn.0041c890
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x4b4b30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5269e5
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x4c]
mov eax, dword [ebp + 0x4c]
call dword [eax + 0x7c]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov esi, eax
call dword [edx + 0x7c]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4b4c5b
push 0x44
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.0041ad80
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], vtable.CStringUTF8.0
je 0x4b4bb5
lea ecx, [ebp - 0x20]
call fcn.0041a760
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x4c]
mov eax, dword [ebp + 0x4c]
call dword [eax + 0x40]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov esi, eax
call dword [edx + 0x40]
push esi
push eax
push str.Failed_to_rename_the_file.
push str._s_nold:_s_nnew:_s
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004e78b0
add esp, 0x18
lea ecx, [ebp - 0xa0]
call fcn.0041c2a0
sub esp, 0x44
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x58], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4b4c28
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.0041a900
xor ecx, ecx
mov byte [ebp - 4], 2
call fcn.004e7590
add esp, 0x44
lea ecx, [ebp - 0x54]
call fcn.0041c2a0
lea ecx, [ebp + 8]
call fcn.0041c2a0
lea ecx, [ebp + 0x4c]
call fcn.0041c2a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 0x88
Function at 0x4b5ef0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0042fa40
lea ecx, [ebp - 0xa0]
call fcn.0042f9b0
push ecx
push 0x5f43
push 0
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.004403c0
mov ecx, dword [esi + 0x90]
add ecx, 0x30
push 0
call fcn.00431170
push 0x5f3d
mov dword [esi + 0x100], eax
call fcn.00431170
mov dword [esi + 0x104], eax
mov ecx, esi
movzx eax, word [eax + 2]
mov dword [esi + 0x108], eax
call fcn.0043b4f0
push ecx
lea ecx, [ebp - 0x70]
call fcn.0042fa40
lea ecx, [ebp - 0x70]
call fcn.0042f9b0
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0042fa60
call fcn.00444920
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042f9a0
call fcn.00445da0
push 0
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00484d30
push dword [esi + 0x108]
lea ecx, [ebp - 0x24]
call fcn.004462c0
push dword [esi + 0x108]
lea ecx, [ebp - 0x40]
call fcn.00444db0
push 0
push dword [esi + 0x108]
lea ecx, [ebp - 0x70]
call fcn.0043f880
push ecx
push 1
push 0x39
push 0
lea ecx, [ebp - 0x70]
call fcn.004405a0
xor ecx, ecx
call fcn.00425bf0
push 0x563d44
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 3
push eax
call fcn.004ffbbe
int3
Function at 0x4b6d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526d10
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x56617c]
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 esi, ecx
mov dword [ebp - 0x814], esi
cmp dword [0x592ad4], 1
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4b6d7f
call ebx
jmp 0x4b6d81
call edi
cmp dword [esi + 0x21ac], eax
jae 0x4b6dfe
mov ecx, dword [esi + 0x21b0]
xor eax, eax
cmp ecx, 1
setne al
mov dword [esi + 0x21b0], eax
mov eax, dword [esi + 0xec]
imul edx, eax, 0xb
cmp ecx, 1
je 0x4b6db6
cmp eax, 0x21
jge 0x4b6dd5
push 1
push 0xffffffffffffffff
jmp 0x4b6dba
push 1
push 0
mov ecx, dword [esi + 0x21a8]
push 0x18
add ecx, 0x130
push 2
push 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xe0]
call fcn.0042a8c0
push ecx
push 1
mov ecx, eax
call fcn.0042d240
cmp dword [0x592ad4], 1
jne 0x4b6df1
call ebx
jmp 0x4b6df3
call edi
add eax, 0x12c
mov dword [esi + 0x21ac], eax
cmp dword [esi + 0x15c], 1
lea eax, [ebp - 0x810]
mov dword [esi + 0x21ec], eax
mov dword [esi + 0x21f0], 0x400
jne 0x4b6ef8
mov eax, dword [esi + 0xec]
cmp eax, 0x21
jge 0x4b6ef8
imul ecx, eax, 0xb
lea ebx, [esi + 0x14c]
mov eax, 0x186
push ecx
sub eax, ecx
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.00436de0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.0041f320
mov dword [ebp - 4], 0
lea edi, [esi + 0xa4]
mov eax, dword [ebp - 0x858]
lea ecx, [ebp - 0x858]
mov esi, dword [edi]
call dword [eax + 0x78]
push eax
mov ecx, edi
call dword [esi + 0xa4]
lea ecx, [ebp - 0x858]
mov dword [ebp - 4], 0xffffffff
call fcn.0041c2a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov edi, dword [ebp - 0x814]
mov ecx, edi
push 1
mov dword [edi + 0xec], eax
call fcn.004b7820
mov ecx, ebx
call fcn.00436d40
mov esi, dword [sym.imp.USER32.dll_WINNLSEnableIME]
push 0
push 0
call esi
push 1
push 0
call esi
mov eax, 0x20
mov ecx, ebx
sub eax, dword [edi + 0xec]
mov dword [edi + 0x21e8], eax
lea eax, [edi + 0x21b4]
push eax
call fcn.00436c80
mov eax, dword [edi]
mov ecx, edi
push 0xe
call dword [eax + 0xc8]
jmp 0x4b6f32
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov edi, eax
mov eax, dword [esi + 0xe8]
cmp edi, eax
je 0x4b6f32
cmp eax, 0xffffffff
je 0x4b6f1d
push 0
push eax
mov ecx, esi
call fcn.004b7310
mov dword [esi + 0xe8], edi
cmp edi, 0xffffffff
je 0x4b6f32
push 1
push edi
mov ecx, esi
call fcn.004b7310
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.004fe27d
mov esp, ebp
pop ebp
ret
Function at 0x4bd450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d048
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 4], 1
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0xcc], eax
call esi
mov dword [edi + 0xd4], eax
lea eax, [edi + 0xd8]
push eax
push 0
push edi
push 0x4bd6f0
push 0
push 0
mov dword [edi + 0xe0], 0
mov dword [eax], 0
call fcn.005084b2
mov ecx, dword [edi + 0xe8]
add esp, 0x18
mov dword [edi + 0xdc], eax
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
mov dword [edi + 0xbc], 0xffffffff
mov dword [edi + 0xb8], 0
mov dword [edi + 0xc4], 0xffffffff
mov dword [edi + 0xc0], 0
cmp dword [0x592ad4], 1
jne 0x4bd531
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4bd537
call dword [sym.imp.WINMM.dll_timeGetTime]
xorps xmm0, xmm0
mov dword [edi + 0xa4], eax
movups xmmword [ebp - 0x24], xmm0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], vtable.IFunc.0
call fcn.004cc620
mov dword [ebp - 0x20], eax
call fcn.004296f0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x60]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x540444
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.0041ad80
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x70], vtable.CStringUTF8.0
je 0x4bd5af
lea ecx, [ebp - 0x3c]
call fcn.0041a760
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
push str.ed.wav
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.0041a9d0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x70]
call fcn.0041a900
lea ecx, [ebp - 0xb4]
call fcn.0041c2a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
push 0
mov eax, dword [eax + 0x64]
call eax
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push 0
mov esi, eax
mov edx, dword [edx + 0x60]
call edx
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
mov eax, dword [eax + 0x78]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0x38]
lea ecx, [ebp - 0x70]
call fcn.0041c2a0
push dword [edi + 0xd4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
Function at 0x4c0440
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13bc
call fcn.00517a50
mov eax, dword [0x56617c]
xor eax, esp
mov dword [esp + 0x13b8], eax
movaps xmm0, xmmword [0x54d1d0]
push ebx
mov ebx, ecx
mov dword [esp + 0x28], 1
push esi
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x30], 3
mov eax, dword [ebx + 0xc4]
mov esi, dword [ebx + 0xc0]
push edi
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + edx*4 + 0x20]
cmp esi, ecx
cmovne eax, ecx
mov dword [esp + 0x10], eax
xor eax, eax
cmp esi, ecx
mov ecx, dword [esp + edx*4 + 0x24]
setne al
cmp esi, ecx
je 0x4c04b3
mov dword [esp + eax*4 + 0x10], ecx
inc eax
mov ecx, dword [esp + edx*4 + 0x28]
cmp esi, ecx
je 0x4c04bf
mov dword [esp + eax*4 + 0x10], ecx
call fcn.004ef88f
mov dword [esp + 0x13bc], 0xffffffff
mov ecx, 1
mov dword [esp + 0x3c], eax
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, 0x270
jb 0x4c04d8
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x270
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xb70a7c2
call fcn.0047f440
and eax, reloc.d2d1.dll_Ordinal_1
jns 0x4c0526
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, dword [ebx + 0x118]
mov edx, dword [esp + eax*4 + 0x10]
add ecx, 0x130
mov dword [esp + 0x10], edx
push 1
cmp edx, 0xffffffff
jne 0x4c055b
mov eax, dword [ecx]
push 0
push 0xca
push 0xda
push 0
push 0
call dword [eax + 0xe0]
jmp 0x4c05b0
mov esi, dword [ebx + 0xdc]
mov eax, edx
mov edi, dword [ecx]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0xca
add eax, 0xfc
push eax
mov eax, dword [esp + 0x18]
and eax, reloc.d2d1.dll_Ordinal_1
jns 0x4c0586
dec eax
or eax, 0xfffffffe
inc eax
imul eax, eax, 0xda
add eax, 0x1e9
push eax
lea eax, [esi + 0x130]
neg esi
sbb esi, esi
and esi, eax
push esi
push 0xca
push 0xda
push 0
push 0
call dword [edi + 0x48]
mov ecx, dword [ebx + 0x118]
mov dword [ebx + 0xc8], 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x13c4]
pop edi
pop esi
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xcc], 1
pop ebx
xor ecx, esp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
Function at 0x4c0800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5247ad
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xa4], 0
jne 0x4c0973
mov eax, dword [esi]
push 0
call dword [eax + 0xec]
push 1
push 0x50
push 0
push dword [esi + 0xac]
lea ecx, [eax + 0x130]
mov eax, dword [ecx]
push 0x28
push 0xc8
push 0x121
push 0x21c
call dword [eax + 0x48]
call fcn.0042a8c0
push ecx
push 1
mov ecx, eax
call fcn.0042d240
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x4c08ae
nop dword [eax]
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x4c0890
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0xec]
push 1
push 0
push 0
push dword [esi + 0xac]
lea ecx, [eax + 0x130]
mov eax, dword [ecx]
push 0x28
push 0xc8
push 0x121
push 0x21c
call dword [eax + 0x48]
call fcn.0042a8c0
push ecx
push 1
mov ecx, eax
call fcn.0042d240
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.0041ad80
cmp dword [ebp - 0x1c], 0
mov eax, vtable.CStringUTF8.0
mov dword [ebp - 0x54], eax
je 0x4c0922
lea ecx, [ebp - 0x20]
call fcn.0041a760
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
push 0x67
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
push 1
push 0x53e7d0
push 0x53e7d0
call dword [eax + 0x7c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.0041c2a0
jmp 0x4c097a
mov dword [esi + 4], 0
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x4c09ae
nop dword [eax]
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x4c0990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
Function at 0x4c4d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527816
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x4c
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.005001b0
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x148]
add esp, 0xc
push eax
call fcn.0044c5b0
push 0x4c
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005001b0
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xfc]
add esp, 0xc
push eax
call fcn.0044c5b0
push 0x4c
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005001b0
mov ecx, dword [esi + 8]
lea eax, [ebp - 0xb0]
add esp, 0xc
push eax
call fcn.0044c5b0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0xac]
imul esi, dword [ebp - 0xf8]
shl esi, 2
push esi
call fcn.004fe6cf
push esi
mov edi, eax
push 0
push edi
call fcn.005001b0
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CFile.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x44
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.005001b0
mov edx, dword [ebp - 0x144]
lea ecx, [ebp - 0x64]
add esp, 0x1c
call fcn.004ea2f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x64]
push 2
mov eax, dword [eax + 0x40]
call eax
sub esp, 0x44
mov ecx, esp
push eax
call fcn.0041a6c0
lea ecx, [ebp - 0x20]
call fcn.0041c7b0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 0xc]
push edi
call fcn.004fe6d8
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.0041c2a0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call fcn.0041c890
lea ecx, [ebp - 0xa8]
call fcn.0041c2a0
lea ecx, [ebp - 0xf4]
call fcn.0041c2a0
lea ecx, [ebp - 0x140]
call fcn.0041c2a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret