joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408110
Capabilities:
Terminate thread

Disassembly:
mov dword [ecx], 0x436210
jmp fcn.004063d0

Function at 0x408f50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4330b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov eax, dword [0x441ec8]
push esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x5030000
mov dword [esp + 0x10], 0x4419e8
mov dword [esp + 0x14], 0x5040000
mov dword [esp + 0x18], str.SDO
mov dword [esp + 0x1c], 0x5040001
mov dword [esp + 0x20], 0x4419bc
mov dword [esp + 0x24], 0x5040002
mov dword [esp + 0x28], 0x441994
mov dword [esp + 0x2c], 0x5040003
mov dword [esp + 0x30], 0x441970
mov dword [esp + 0x34], 0x5030004
mov dword [esp + 0x38], 0x441950
mov dword [esp + 0x3c], 0x5030005
mov dword [esp + 0x40], 0x441944
mov dword [esp + 0x44], 0x6010000
mov dword [esp + 0x48], 0x441934
mov dword [esp + 0x4c], 0x6010001
mov dword [esp + 0x50], 0x441924
mov dword [esp + 0x54], 0x6010002
mov dword [esp + 0x58], 0x441914
mov dword [esp + 0x5c], 0x6020000
mov dword [esp + 0x60], 0x4418fc
mov dword [esp + 0x64], 0x6040041
mov dword [esp + 0x68], 0x4418e8
mov dword [esp + 0x6c], 0x6040042
mov dword [esp + 0x70], 0x4418c4
mov dword [esp + 0x74], 0x6040043
mov dword [esp + 0x78], 0x4418b0
mov dword [esp + 0x7c], 0x6040047
mov dword [esp + 0x80], 0x441898
mov dword [esp + 0x84], 0x6060000
mov dword [esp + 0x88], 0x44187c
mov dword [esp + 0x8c], 0x6060010
mov dword [esp + 0x90], 0x441858
mov dword [esp + 0x94], 0x6060012
mov dword [esp + 0x98], 0x441834
mov dword [esp + 0x9c], 0x6060013
mov dword [esp + 0xa0], 0x441810
mov dword [esp + 0xa4], 0x6090011
mov dword [esp + 0xa8], 0x441800
mov dword [esp + 0xac], 0x6090030
mov dword [esp + 0xb0], 0x4417e4
mov dword [esp + 0xb4], 0x6090031
mov dword [esp + 0xb8], 0x4417d0
mov dword [esp + 0xbc], 0x6090032
mov dword [esp + 0xc0], 0x4417bc
mov dword [esp + 0xc4], 0x6090036
mov dword [esp + 0xc8], 0x4417a8
mov dword [esp + 0xcc], 0x8000000
mov dword [esp + 0xd0], 0x44179c
mov dword [esp + 0xd4], 0x8000020
mov dword [esp + 0xd8], 0x441780
mov dword [esp + 0xdc], 0x8000021
mov dword [esp + 0xe0], 0x441754
mov dword [esp + 0xe4], 0x8000022
mov dword [esp + 0xe8], 0x441724
mov dword [esp + 0xec], 0x8000023
mov dword [esp + 0xf0], 0x4416fc
mov dword [esp + 4], eax
mov edx, dword [esp + 0x108]
mov dword [esp + 0xfc], 1
xor eax, eax
lea ecx, [esp + 0xc]
cmp dword [ecx], edx
je 0x409222
inc eax
add ecx, 8
cmp eax, 0x1d
jl 0x4091bc
push edx
lea eax, [esp + 8]
push 0x4416e4
push eax
call fcn.004256c8
add esp, 0xc
mov esi, dword [esp + 0x104]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004279ba
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0xfc], 0
call fcn.00427c45
mov ecx, dword [esp + 0xf4]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xfc
ret 8
cmp eax, 0x1d
jge 0x4091c9
mov ecx, dword [esp + eax*8 + 0x10]
push edx
push ecx
lea edx, [esp + 0xc]
push str._s__0x_08X_
push edx
call fcn.004256c8
add esp, 0x10
jmp 0x4091dc
Function at 0x424ca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004186f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x424d6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x424d6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x424d1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x424d29
or bh, 8
and edi, 0x8000000
je 0x424d44
mov eax, dword [0x4494dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x424d6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42516b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42518f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4251aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42724c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42726e
cmp dword [edi + 0x3c], 0
jne 0x42726e
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042f041
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042729b
pop edi
pop esi
pop ebx
ret 8

Function at 0x4275db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x433ae4
call fcn.004174b8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042f041
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42761a
call fcn.0042f041
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x427628
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x427636
or eax, 0xffffffff
jmp 0x42771e
mov ecx, esi
call fcn.00427551
mov dword [ebp - 0x14], eax
call fcn.00428a00
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x42766d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42766d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004289b4
push dword [ebp - 0x14]
call fcn.004284e6
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004272e9
cmp eax, edi
je 0x4276e0
test byte [esi + 0x24], 0x10
je 0x4276ae
push 4
mov ecx, esi
pop ebx
call fcn.0042abc4
test ah, 1
je 0x4276a6
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042a58d
cmp dword [esi + 0x1c], edi
je 0x4276e0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042acaa
jmp 0x4276e0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4276f4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42770d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42770d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0042758b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x428eb0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x428ee8
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.00427f45
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00427f1d
jmp 0x428ef4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42a43b
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 0x42a47d
call fcn.0042f041
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42a47d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42a474
xor eax, eax
jmp 0x42a485
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042a48b
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f7fa
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 0x42f828
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f846
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042f760
jmp 0x42f846
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42f846
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042f760
test edi, edi
mov eax, edi
jne 0x42f830
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x46f2191d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x77414fb9
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40fe20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40fe42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40fe49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40fe38
mov eax, 1
add ebx, ebx
jne 0x40fe5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40fe50
jne 0x40fe6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fe50
xor ecx, ecx
sub eax, 3
jb 0x40fe80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40fef2
mov ebp, eax
add ebx, ebx
jne 0x40fe8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40fe98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40febc
inc ecx
add ebx, ebx
jne 0x40fea8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40fe9d
jne 0x40feb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fe9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40fedc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40fecd
jmp 0x40fe3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40fedc
add edi, ecx
jmp 0x40fe3e
pop esi
mov edi, esi
mov ecx, 0x29a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40fefa
cmp byte [edi], 4
jne 0x40fefa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40feff
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40ff77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf0c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ff2c
mov ecx, edi
jns 0x40ff5b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf0cc]
or eax, eax
je 0x40ff71
mov dword [ebx], eax
add ebx, 4
jmp 0x40ff49
call dword [esi + 0xf0d0]
popal
jmp 0x4086ff
Function at 0x40104e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x1770
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, str.Club_Deportivo_Elgoibar_is_a_football_team_based_in_Elgoibar_in_the_autonomous_community_of_Basque_Country.
push edi
push eax
mov dword [ebp - 4], eax
call esi
push edi
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
mov ebx, dword [ebp + 0x10]
lea eax, [ebx + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov edi, eax
mov dword [ebp - 8], edi
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
mov byte [edi + ebx], 0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
and dword [ebp + 0x10], 0
test ebx, ebx
je 0x401160
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp + 8], eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
add edi, dword [ebp - 8]
call fcn.00425040
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov al, byte [edx + eax]
xor al, byte [ecx + edi]
mov byte [edi], al
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], ebx
jb 0x40110a
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp - 4]
push 0
push eax
call fcn.004236f0
mov eax, dword [ebp - 8]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4043f9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x404417
xor eax, eax
inc eax
jmp 0x4044a2
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40449f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40449f
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x40440f
cmp dword [edi], 0x4550
jne 0x40449f
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x40449f
movzx eax, word [esi + 0x46]
test ax, ax
je 0x40449f
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.004250cb
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x40447b
push 3
jmp 0x4044a1
movzx ecx, word [esi + 0x54]
push dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4044a2
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x405f2d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x405f3b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x405ff6
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f750]
add edx, 8
sub edi, 8
dec esi
jne 0x405f59
pop ebx
test edi, edi
je 0x40600f
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x43f750]
inc edx
dec edi
jne 0x405ffa
pop edi
not eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43f750]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43f750]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret