joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
cmp ebp, ecx
je 0x4040cb
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x9c4e
add dword [esp + 0x14], 0x4464
shr dword [esp + 0x14], 1
add dword [esp + 0x14], 0xffff87db
add dword [esp + 0x14], 0xffff18d7
add dword [esp + 0x14], 0xffff529c
add dword [esp + 0x14], 0xffff507b
or dword [esp + 0x14], 0x3b9f69dc
xor dword [esp + 0x14], 0xfffffdfe
mov dword [esp + 0x10], 0x31f8
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x67893507
xor dword [esp + 0x10], 0x679fe359
mov dword [esp + 0x10], 0x4955
xor dword [esp + 0x10], 0xa8908194
shr dword [esp + 0x10], 8
add dword [esp + 0x10], 0xffffdf1d
add dword [esp + 0x10], 0xfffff42f
or dword [esp + 0x10], 0x2e6e862
add dword [esp + 0x10], 0xa6c2
xor dword [esp + 0x10], 0xe36c9a70
xor dword [esp + 0x10], 0xe1830958
cmp word [edx], 0
je 0x4040b1
lea esp, [esp]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x31f8
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x67893507
xor dword [esp + 0x10], 0x679fe359
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0x4955
xor dword [esp + 0x10], 0xa8908194
shr dword [esp + 0x10], 8
add dword [esp + 0x10], 0xffffdf1d
add dword [esp + 0x10], 0xfffff42f
or dword [esp + 0x10], 0x2e6e862
add dword [esp + 0x10], 0xa6c2
xor dword [esp + 0x10], 0xe36c9a70
xor dword [esp + 0x10], 0xe1830958
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x404090
cmp eax, 0x5a
ja 0x404090
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebx
cmp word [edx], 0
jne 0x404000
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x344765f2
cmp eax, dword [esp + 0x1c]
je 0x4040d5
mov ebp, dword [ebp]
cmp ebp, ecx
jne 0x403f45
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4043a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x40453e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x40453e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x40453e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x40453e
mov eax, dword [0x40dd28]
test eax, eax
jne 0x40440b
mov ecx, 0xbb398380
call fcn.00403f20
mov edx, 0x749bc1d1
mov ecx, eax
call fcn.00403e80
mov dword [0x40dd28], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x404535
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x40daac]
test eax, eax
jne 0x40446b
mov ecx, 0xe66945e6
call fcn.00403f20
mov edx, 0x70f7b8ec
mov ecx, eax
call fcn.00403e80
mov dword [0x40daac], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x4044ee
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x40daac]
test eax, eax
jne 0x4044d6
mov ecx, 0xe66945e6
call fcn.00403f20
mov edx, 0x70f7b8ec
mov ecx, eax
call fcn.00403e80
mov dword [0x40daac], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x404495
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00404670
mov edx, edi
mov ecx, ebx
call fcn.00404580
pop esi
test eax, eax
jne 0x404535
mov eax, dword [0x40e29c]
test eax, eax
jne 0x404529
mov ecx, 0xbb398380
call fcn.00403f20
mov edx, 0xb7b8b8cc
mov ecx, eax
call fcn.00403e80
mov dword [0x40e29c], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x4074b6
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40750b
push dword [esp + 0x10]
push 0x407435
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x41389c]
test esi, esi
je 0x407564
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x407503
cmp byte [esi + 0x10], 0
je 0x407503
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4074df
jmp 0x407564
mov esi, dword [0x41389c]
test esi, esi
je 0x407564
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40755d
cmp byte [esi + 0x11], 0
je 0x407539
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x407550
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x41389c
call fcn.0040e3cb
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x407518
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x409cde
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x413964], eax
test eax, eax
je 0x409d0c
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x413960], eax
lea eax, [ebp - 0x114]
mov dword [0x413968], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409d6e
cmp dword [ebp - 0x104], 1
jne 0x409d43
and dword [0x413968], 0
jmp 0x409d86
cmp dword [ebp - 0x104], 2
jne 0x409d6e
cmp dword [ebp - 0x110], 5
jb 0x409d3a
jne 0x409d6e
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x413968]
mov dword [0x413968], eax
jmp 0x409d73
mov eax, dword [0x413968]
test eax, eax
je 0x409d86
call fcn.00409b49
neg eax
sbb eax, eax
and dword [0x413968], eax
mov esp, ebp
pop ebp
ret

Function at 0x40aee0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40af12
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40af0d
cmp dword [esp + 0xc], esi
je 0x40af29
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x1683210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01683360
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1683236
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1683222
add dl, dl
jne 0x1683241
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1683294
xor eax, eax
add dl, dl
jne 0x168324e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1683335
add dl, dl
jne 0x168325d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1683268
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1683273
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x168327e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x168328a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x168322d
mov eax, 1
add dl, dl
jne 0x16832a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16832ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1683299
sub eax, ebx
mov ebx, 1
jne 0x16832e0
mov ecx, 1
add dl, dl
jne 0x16832c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16832d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16832bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x168322d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16832f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1683302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16832ee
cmp eax, 0x7d00
jae 0x1683325
cmp eax, 0x500
jb 0x1683320
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x168322d
cmp eax, 0x7f
ja 0x1683328
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x168322d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1683356
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x168322d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401fac
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00401450
ret

Function at 0x4023f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + 0x4150f8]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + 0x4150f8]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4150f8]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4150f8]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x41507c]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x40241f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4024e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + 0x4150f8]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + 0x4150f8]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4150f8]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4150f8]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x41507c]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x40251b
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4025f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4150f8]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4150f8]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + 0x4150f8]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4150f8]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x41507c]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + 0x4150f8]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4150f8]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + 0x4150f8]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4150f8]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x40263b
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x40d258
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d463
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov eax, dword [ebp - 4]
add eax, 4
xor edx, edx
call fcn.004011a0
mov eax, dword [ebp - 4]
add eax, 8
xor edx, edx
call fcn.004011a0
mov eax, dword [ebp - 4]
add eax, 0xc
xor edx, edx
call fcn.004011a0
mov eax, dword [ebp - 4]
add eax, 0x10
xor edx, edx
call fcn.004011a0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [ebp - 4]
add eax, 0x2c
xor edx, edx
call fcn.004011a0
mov eax, dword [ebp - 4]
add eax, 0x30
xor edx, edx
call fcn.004011a0
jmp 0x40d448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d46a
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00401198
ret
Function at 0x4e9740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
jmp 0x4e975a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e9761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9750
mov eax, 1
add ebx, ebx
jne 0x4e9773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e9784
jne 0x4e97a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e97a3
dec eax
add ebx, ebx
jne 0x4e9790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e9768
add ebx, ebx
jne 0x4e979f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e97f5
xor ecx, ecx
sub eax, 3
jb 0x4e97bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e982a
sar eax, 1
mov ebp, eax
jmp 0x4e97c6
add ebx, ebx
jne 0x4e97c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9794
inc ecx
add ebx, ebx
jne 0x4e97d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9794
add ebx, ebx
jne 0x4e97e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e97d6
jne 0x4e97f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e97d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e9814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e9806
jmp 0x4e9756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e9814
add edi, ecx
jmp 0x4e9756
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e9832
cmp byte [edi], 0x11
jne 0x4e9832
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 al, bl
loop 0x4e9837
lea edi, [esi + 0xe2000]
mov eax, dword [edi]
or eax, eax
je 0x4e98af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfc4e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfc664]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e9864
mov ecx, edi
jns 0x4e9893
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 + 0xfc668]
or eax, eax
je 0x4e98a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e9881
call dword [esi + 0xfc678]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e98e0
cmp al, 0xef
ja 0x4e98d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e98b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e98c2
mov ebp, dword [esi + 0xfc66c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e9914
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10001470
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x314
mov eax, dword [0x100260c8]
xor eax, esp
mov dword [esp + 0x310], eax
cmp dword [esp + 0x31c], 1
jne 0x10001643
mov al, byte [0x5b16fc]
cmp al, 0x84
je 0x100014c5
cmp al, 0x33
je 0x100014c5
push str.flplusplus:_Couldnt_detect_No_CD_EXE__not_installing
call fcn.10003ff0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.1000532e
add esp, 0x314
ret 0xc
push esi
push 0x1001d2cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [eax + 0x143dc0], 0x56
sete byte [esp + 4]
call fcn.100040f0
call fcn.10001f30
push 0x104
lea eax, [esp + 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.10008340
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x14]
add esp, 0xc
push str.flplusplus.ini
push eax
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001561
lea eax, [esp + 8]
push eax
push str.opening_flplusplus.ini_at__s
call fcn.10004040
lea eax, [esp + 0x10]
push eax
call fcn.10002050
add esp, 0xc
lea eax, [esp + 0x210]
push eax
push 0x104
push 0x10026c48
call fcn.10008340
add esp, 0xc
push 0x10026c48
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.DATA_
push 0x10026c48
call esi
push 0x10026c48
lea eax, [esp + 0x110]
push 0x104
push eax
call fcn.10008340
add esp, 0xc
lea eax, [esp + 0x10c]
push str.FONTS_fonts.ini
push eax
call esi
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop esi
test eax, eax
je 0x100015f0
lea eax, [esp + 0x108]
push eax
push str.opening_fonts.ini_at__s
call fcn.10004040
lea eax, [esp + 0x110]
push eax
call fcn.100022f0
add esp, 0xc
call fcn.10002470
cmp byte [eax + 0x26], 0
je 0x10001600
call fcn.10004ad0
push str.flplusplus:_installing_patches
call fcn.10003ff0
push dword [esp + 4]
call fcn.100019f0
call fcn.100029b0
call fcn.10003d50
call fcn.100042a0
push 0x10026c48
call fcn.100042d0
call fcn.100043d0
call fcn.10004d10
push str.flplusplus:_all_patched
call fcn.10003ff0
add esp, 0x10
mov ecx, dword [esp + 0x310]
mov eax, 1
xor ecx, esp
call fcn.1000532e
add esp, 0x314
ret 0xc

Function at 0x10001900
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push 0x40
push 5
push edi
mov dword [esp + 0x18], 0
call esi
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov al, byte [edi + 4]
mov byte [ecx + 4], al
mov eax, dword [esp + 0x14]
sub eax, edi
mov byte [edi], 0xe9
sub eax, 5
mov dword [edi + 1], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 5
push edi
call esi
pop edi
pop esi
pop ecx
ret