joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47de30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push edx
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47ded8
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x47ded8
add eax, eax
push eax
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
je 0x47ded8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47ded8
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00431800
push esi
call fcn.006b31f8
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x47dece
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x47dee6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47e0f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47e0ff
xor eax, eax
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x47e910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x47e962
xor ecx, ecx
jmp 0x47e97f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x47e970
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e970
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00424cc0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x47ea80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6faeab
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4e6c
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, esp
mov dword [esp + 0x4e68], eax
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, esp
push eax
lea eax, [esp + 0x4e80]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [esi], ax
jne 0x47eafd
xor ecx, ecx
jmp 0x47eb11
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47eb02
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.00424cc0
push 1
push 0
push 0x7856e8
lea ecx, [esp + 0x30]
mov dword [esp + 0x4e94], 0
call fcn.004319f0
cmp eax, 0xffffffff
jne 0x47ec4a
lea ecx, [esp + 0x3c]
call fcn.0047ce00
mov edi, eax
lea eax, [esp + 0x24]
cmp eax, edi
je 0x47eb89
cmp dword [esp + 0x38], 8
jb 0x47eb68
push dword [esp + 0x24]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.004248a0
cmp dword [esp + 0x50], 8
jb 0x47eb9c
push dword [esp + 0x3c]
call fcn.006b31f8
add esp, 4
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x5c
push eax
lea ecx, [esp + 0x30]
call fcn.0047e9a0
inc eax
lea ecx, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x44]
push eax
call fcn.004369b0
mov edi, eax
lea eax, [esp + 0x24]
cmp eax, edi
je 0x47ec06
cmp dword [esp + 0x38], 8
jb 0x47ebe5
push dword [esp + 0x24]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.004248a0
cmp dword [esp + 0x50], 8
jb 0x47ec19
push dword [esp + 0x3c]
call fcn.006b31f8
add esp, 4
cmp word [esi], 0
jne 0x47ec23
xor ecx, ecx
jmp 0x47ec3f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x47ec30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ec30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.004267c0
xor eax, eax
cmp dword [esp + 0x38], 8
mov word [esp + 0x54], ax
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
push 0x270f
lea eax, [esp + 0x5c]
push eax
push 0x790eb0
push dword [esp + 0x24]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x54]
mov ecx, ebx
push eax
call fcn.00424600
cmp dword [esp + 0x38], 8
jb 0x47ec9c
push dword [esp + 0x24]
call fcn.006b31f8
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x4e80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e68]
xor ecx, esp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x47ecd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6faee8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x7e6410]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x10], edx
mov ebx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [esi], ax
jne 0x47ed30
xor ecx, ecx
jmp 0x47ed44
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ed35
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00424cc0
push 1
push 0
push 0x7856e8
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 0
call fcn.004319f0
cmp eax, 0xffffffff
jne 0x47ee7a
lea ecx, [esp + 0x30]
call fcn.0047ce00
mov edi, eax
lea eax, [esp + 0x18]
cmp eax, edi
je 0x47edb9
cmp dword [esp + 0x2c], 8
jb 0x47ed98
push dword [esp + 0x18]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004248a0
cmp dword [esp + 0x44], 8
jb 0x47edcc
push dword [esp + 0x30]
call fcn.006b31f8
add esp, 4
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x5c
push eax
lea ecx, [esp + 0x24]
call fcn.0047e9a0
inc eax
lea ecx, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x38]
push eax
call fcn.004369b0
mov edi, eax
lea eax, [esp + 0x18]
cmp eax, edi
je 0x47ee36
cmp dword [esp + 0x2c], 8
jb 0x47ee15
push dword [esp + 0x18]
call fcn.006b31f8
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004248a0
cmp dword [esp + 0x44], 8
jb 0x47ee49
push dword [esp + 0x30]
call fcn.006b31f8
add esp, 4
cmp word [esi], 0
jne 0x47ee53
xor ecx, ecx
jmp 0x47ee6f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x47ee60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ee60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.004267c0
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0x2c], 8
mov esi, eax
jb 0x47eeab
push dword [esp + 0x18]
call fcn.006b31f8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x480050
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fb088
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x7c]
cmp dword [esi - 0xc], 0
jl 0x48008f
lea eax, [esi - 0xc]
mov dword [ebp - 0x10], esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4800b3
mov eax, dword [0x7e7970]
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x48009f
xor eax, eax
jmp 0x4800a6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00428920
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0
cmp dword [esi - 8], 0
jne 0x4800fa
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
sub eax, 0x411
je 0x4800e1
dec eax
je 0x4800da
mov esi, str.Arial
jmp 0x4800e6
mov esi, 0x788f68
jmp 0x4800e6
mov esi, str.MS_UI_Gothic
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00428920
mov esi, dword [ebp - 0x10]
cmp dword [edi + 0x80], 0
mov ecx, dword [ebp + 0x10]
je 0x480109
or ecx, 2
test cl, 1
jne 0x480118
test byte [edi + 0x54], 0x80
jne 0x480118
xor eax, eax
jmp 0x48011d
mov eax, 1
movd xmm0, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
push esi
push 0
push 3
push 0
push 0
mulss xmm0, dword [0x792188]
push 1
push 0
push eax
divss xmm0, dword [0x792184]
mov eax, ecx
shr eax, 2
and eax, 1
test cl, 2
push eax
mov ecx, 0x384
mov eax, 0x190
cmovne eax, ecx
push eax
push 0
push 0
push 0
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x792068]
cvttsd2si eax, xmm0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
push dword [ebp + 8]
mov dword [edi + 4], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 8], eax
lea eax, [esi - 0xc]
cmp eax, 0x7e8698
je 0x4801ac
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4801ac
push esi
call fcn.006b31f8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4801c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fb0c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [0x7e7970]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
lea eax, [edi + 0x7c]
je 0x480212
lea eax, [ebp + 8]
push eax
call fcn.004289a0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0
jne 0x48025b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
sub eax, 0x411
je 0x480242
dec eax
je 0x48023b
mov esi, str.Arial
jmp 0x480247
mov esi, 0x788f68
jmp 0x480247
mov esi, str.MS_UI_Gothic
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00428920
mov esi, dword [ebp - 0x10]
cmp dword [edi + 0x80], 0
mov ebx, dword [ebp + 0x10]
je 0x48026a
or ebx, 2
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x48028c
push dword [eax]
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push dword [ebp + 0x10]
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [edi + 0xc], 0
mov edi, ebx
test bl, 2
je 0x48029d
and edi, 4
or edi, 2
shr edi, 1
jmp 0x4802a2
shr edi, 1
and edi, 2
test bl, 1
jne 0x4802b0
mov eax, dword [ebp - 0x14]
test byte [eax + 0x54], 0x80
je 0x4802b3
or edi, 4
test bl, 8
je 0x4802bb
or edi, 8
push 8
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x4802e6
movd xmm0, dword [ebp + 0xc]
push 0
push 3
cvtdq2ps xmm0, xmm0
push edi
push ecx
mov ecx, eax
movss dword [esp], xmm0
push esi
call fcn.00441480
mov edi, eax
jmp 0x4802e8
xor edi, edi
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0xc], edi
test edi, edi
je 0x480315
cmp dword [edi + 4], 0
jne 0x4802ff
mov edi, 1
jmp 0x480317
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push edi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [ebx + 0xc], 0
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, 0x7e8698
je 0x48033a
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x48033a
push esi
call fcn.006b31f8
add esp, 4
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x480361
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x480361
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
push ecx
call fcn.006b31f8
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x483050
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
call fcn.004833a0
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x483070
mov eax, dword [edi]
jmp 0x483072
mov eax, edi
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48311e
lea ecx, [ebx + 0x38]
cmp ecx, edi
je 0x4830a7
push 0xffffffffffffffff
push 0
push edi
call fcn.00424900
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xf4240
jg 0x483117
lea eax, [edi + 2]
push eax
push 1
call fcn.006b917c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x483117
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48310e
cmp dword [ebp - 4], edi
jne 0x48310e
mov ecx, dword [ebp - 8]
push edi
push ebx
call fcn.00483130
push ebx
call fcn.006b31f8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.006b31f8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4866e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441fd0
Function at 0x48b270
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jle 0x48b286
cmp dword [ebp + 0xc], 0
jle 0x48b286
push 1
jmp 0x48b2b4
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x48b2b2
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [esi + 0x1dc]
je 0x48b2a8
push eax
call edi
test eax, eax
jne 0x48b297
jmp 0x48b2b1
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
push 0
push dword [esi + 0x1dc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, esi
call fcn.004444a0
test eax, eax
je 0x48b2de
push 0
push dword [esi + 0x1dc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
push 5
push dword [esi + 0x1dc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x48f6c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x214], eax
push edi
test esi, esi
je 0x48f7fc
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48f6f1
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x48f856
mov edi, dword [ebx + 0x230]
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.006b47d0
movdqu xmm0, xmmword [edi + 8]
mov ax, word [edi + 0x50]
sub esp, 0x40
mov ecx, esp
movdqu xmmword [ecx], xmm0
movdqu xmm0, xmmword [edi + 0x18]
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmm0, xmmword [edi + 0x28]
movdqu xmmword [ecx + 0x20], xmm0
movdqu xmm0, xmmword [edi + 0x38]
movdqu xmmword [ecx + 0x30], xmm0
movq xmm0, qword [edi + 0x48]
movq qword [ecx + 0x40], xmm0
mov word [ecx + 0x48], ax
mov ecx, ebx
call fcn.00490760
test eax, eax
je 0x48f7fc
push esi
mov esi, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push esi
push 0x788ab4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [edi + 0x4e], 0x10
je 0x48f7d0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x48f7b8
cmp eax, 0x50
je 0x48f7b8
cmp eax, 0xb7
jne 0x48f7d0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8
push 0x78a158
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.006b57b8
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
jne 0x48f811
mov dword [ebx + 0x14], 0x31
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
movdqu xmmword [ebp - 0x228], xmm0
mov dword [ebp - 0x224], eax
mov ecx, ebx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
call fcn.0048fdb0
push dword [ebp - 0x210]
mov esi, eax
call fcn.006b5369
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8
Function at 0x4900f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x49016a
push ebx
mov ax, word [ecx + 0x10]
lea edi, [edi + 1]
mov edx, dword [ecx + 8]
or ax, 2
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [edi - 1]
movzx eax, bl
xor eax, edx
shr edx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x77eff0]
xor eax, edx
mov dword [ecx + 8], eax
movzx eax, al
add eax, dword [ecx + 0xc]
imul edx, eax, 0x8088405
mov eax, dword [ecx + 0x10]
inc edx
mov dword [ecx + 0xc], edx
shr edx, 0x18
xor edx, eax
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x77eff0]
mov dword [ecx + 0x10], eax
mov byte [edi - 1], bl
dec esi
jne 0x490100
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x490470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.006b59e0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x3e]
shr eax, 0x10
mov edi, ecx
and eax, 1
movlpd qword [ebp - 0x2028], xmm0
mov dword [ebp - 0x2030], eax
xor esi, esi
mov dword [ebp - 0x2010], 0
mov eax, dword [edi]
mov dword [ebp - 0x200c], esi
call dword [eax + 0x44]
mov ecx, dword [ebp + 0x22]
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x2018], ecx
or eax, edx
mov dword [ebp - 0x201c], edx
mov dword [edi + 0x14], edx
je 0x490660
mov eax, dword [ebp - 0x2024]
mov dword [ebp - 0x202c], eax
mov eax, dword [ebp - 0x2028]
mov dword [ebp - 0x2014], eax
lea esp, [esp]
test edx, edx
jg 0x490518
jl 0x49050e
cmp ecx, 0x2000
jae 0x490518
mov esi, ecx
mov dword [ebp - 0x2024], edx
jmp 0x490525
xor eax, eax
mov esi, 0x2000
mov dword [ebp - 0x2024], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x2008]
push 0
push esi
push ecx
mov ecx, edi
call dword [eax + 0x3c]
test eax, eax
je 0x49065a
cmp dword [ebp - 0x2030], 0
je 0x490556
lea eax, [ebp - 0x2008]
mov ecx, edi
push eax
push esi
call fcn.004900f0
mov ecx, dword [ebp - 0x200c]
lea edx, [ebp - 0x2008]
push esi
call fcn.004a9970
mov dword [ebp - 0x200c], eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
jne 0x49058e
push dword [ebx + 4]
lea eax, [ebp - 0x2008]
push esi
push 1
push eax
call fcn.006b5539
add esp, 0x10
jmp 0x4905c7
cmp eax, 1
jne 0x4905c4
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x49059e
mov eax, esi
jmp 0x4905c7
mov edx, dword [ebx + 0x10]
lea eax, [edx + esi]
cmp eax, dword [ebx + 0xc]
ja 0x4905c4
push esi
lea eax, [ebp - 0x2008]
push eax
lea eax, [edx + ecx]
push eax
call fcn.006b3670
add esp, 0xc
mov eax, esi
add dword [ebx + 0x10], esi
jmp 0x4905c7
or eax, 0xffffffff
cdq
cmp eax, esi
jne 0x490653
mov eax, dword [ebp - 0x2024]
cmp edx, eax
jne 0x490653
mov ecx, dword [ebp - 0x2018]
mov edx, dword [ebp - 0x201c]
sub ecx, esi
mov dword [ebp - 0x2018], ecx
sbb edx, eax
add dword [ebp - 0x2014], esi
mov esi, dword [ebp - 0x202c]
adc esi, eax
mov dword [ebp - 0x201c], edx
mov eax, dword [edi + 0x23c]
mov dword [ebp - 0x202c], esi
test eax, eax
je 0x490647
lea ecx, [ebp - 0x2010]
push ecx
push dword [edi + 0x240]
push 0
push dword [ebp + 0x26]
push esi
push dword [ebp - 0x2014]
call eax
add esp, 0x18
cmp dword [ebp - 0x2010], 0
jne 0x49065a
mov ecx, dword [ebp - 0x2018]
mov edx, dword [ebp - 0x201c]
mov eax, ecx
or eax, edx
jne 0x490500
jmp 0x49065a
mov dword [edi + 0x14], 0x30
mov esi, dword [ebp - 0x200c]
cmp dword [edi + 0x14], 0
mov eax, dword [ebp - 0x2010]
mov dword [edi + 0x238], eax
jne 0x490696
cmp dword [ebp + 0x1e], esi
jne 0x49068f
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x50
mov dword [edi + 0x14], 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x50
Function at 0x4906b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 0x12345678
mov dword [edi + 0xc], 0x23456789
lea edx, [ecx + 1]
mov dword [edi + 0x10], 0x34567890
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4906d7
sub ecx, edx
test ecx, ecx
jle 0x490752
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0xc]
push esi
mov esi, 0x34567890
mov eax, dword [ebp + 8]
movzx eax, byte [ebx + eax]
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x77eff0]
movzx eax, dl
add eax, ecx
mov dword [edi + 8], edx
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0xc], eax
mov dword [ebp - 8], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x77eff0]
inc ebx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], esi
lea ecx, [eax + 1]
mov dword [ebp - 4], ecx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x490740
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ebx, eax
jl 0x4906f0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x490810
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x54]
push ebx
push esi
push edi
movq xmm0, qword [eax]
mov edi, ecx
mov eax, dword [eax + 8]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x14], 0
jmp 0x490850
mov ax, word [edi + 0x10]
or ax, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 0x14]
sar ecx, 8
xor cl, byte [ebp + eax - 0x10]
movzx eax, cl
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x77eff0]
movzx eax, dl
add eax, ebx
mov dword [edi + 8], edx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
mov dword [edi + 0xc], ebx
shr eax, 0x18
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x77eff0]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], esi
mov byte [ebp + eax - 0x10], cl
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0xc
jl 0x490850
mov edx, dword [ebp + 0x2e]
xor eax, eax
test byte [ebp + 0x12], 8
pop edi
pop esi
pop ebx
jne 0x4908cd
mov edx, dword [ebp + 0x1a]
shr edx, 0x18
cmp dl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 0x50