joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052400
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059ca1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100a8050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.10050ed0
push 0
push 0
push 0
push 2
push 2
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10052459
xor al, al
jmp 0x1005252f
mov byte [ebp - 0x11], 1
call fcn.100509a0
mov dword [ebp - 4], 0
push 1
push 0x100aaccc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10052509
mov byte [0x100aacd0], 0
lea ecx, [ebp - 0x30]
call fcn.10050a20
mov ecx, dword [eax]
mov dword [0x100aacd8], ecx
mov edx, dword [eax + 4]
mov dword [0x100aacdc], edx
mov ecx, dword [eax + 8]
mov dword [0x100aace0], ecx
mov edx, dword [eax + 0xc]
mov dword [0x100aace4], edx
mov dword [0x100aacd4], 0
push 0x18
push 0
push 0x100aacb4
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100aacb4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x10052750
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [0x100aacd4], eax
xor ecx, ecx
cmp dword [0x100aacd4], 0
setne cl
mov byte [ebp - 0x11], cl
jmp 0x10052525
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10052550
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059cbc
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100a8050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.100509a0
mov dword [ebp - 4], 0
cmp dword [0x100aaccc], 0
je 0x100525b1
push 0x100aacb4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x100aaccc], 0
push 0x100aacb4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x100aacd4
call fcn.10055200
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100525f2
push 0x3e8
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100525e8
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100aacb4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [0x100aacd0], 0
lea ecx, [ebp - 0x28]
call fcn.10050a20
mov ecx, dword [eax]
mov dword [0x100aacd8], ecx
mov edx, dword [eax + 4]
mov dword [0x100aacdc], edx
mov ecx, dword [eax + 8]
mov dword [0x100aace0], ecx
mov edx, dword [eax + 0xc]
mov dword [0x100aace4], edx
mov dword [0x100aacd4], 0
push 0x18
push 0
push 0x100aacb4
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x10052666
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10057470
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a418
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100a8050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x11], 0
call fcn.100509a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
call fcn.10057bc0
push str.rootCIMV2
lea ecx, [ebp - 0x1c]
call fcn.1003ce10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
push eax
push 0x1006d910
push 1
push 0
push 0x1006d9e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10057567
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0
je 0x10057567
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.10025103
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 0xc]
call edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1005755b
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x1005755b
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10057559
mov byte [ebp - 0x11], 1
jmp 0x10057565
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], 0
jmp 0x10057570
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 0
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x10057580
mov ecx, dword [ebp - 0x24]
call fcn.10057bc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1000b74a
jmp 0x100575a8
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005883e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a8050]
jne 0x10058848
repz ret
jmp fcn.10058ebe
Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.unk_610
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call fcn.0040e210
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40999c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409970
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040daa0
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40c9b8
jmp 0x40ca56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40c9b7
cmp cl, 0x22
je 0x40ca10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ca30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40c9f0
jmp 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ca10
cmp cl, 0x22
je 0x40ca92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ca50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ca40
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ca74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.unk_9
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ca30

Function at 0x40cf40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4466c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40cf80
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.unk_1042
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x8ccb8e
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x8cc92e
mov eax, eax
sub esp, 4
mov dword [esp], eax
pop eax
mov edx, 0x43758934
call fcn.008ccbd1
sub edx, edx
xor dword [esi], ebx
mov eax, edx
and eax, eax
sub edx, edx
inc esi
dec edx
dec edx
add eax, 0x8a1b5b00
cmp esi, edi
jne fcn.008ccb8e
add edx, 0x1c7eabdc
add eax, 0x6dc8d006
sub eax, 0x687988bd
ret

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
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 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
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 + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x1068f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1068f1a8
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 0x1068f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1068f06a
add dl, dl
jne 0x1068f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1068f0dc
xor eax, eax
add dl, dl
jne 0x1068f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1068f17d
add dl, dl
jne 0x1068f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1068f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1068f075
mov eax, 1
add dl, dl
jne 0x1068f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1068f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1068f0e1
sub eax, ebx
mov ebx, 1
jne 0x1068f128
mov ecx, 1
add dl, dl
jne 0x1068f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1068f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1068f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1068f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1068f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1068f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1068f136
cmp eax, 0x7d00
jae 0x1068f16d
cmp eax, 0x500
jb 0x1068f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1068f075
cmp eax, 0x7f
ja 0x1068f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1068f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1068f19e
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 0x1068f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x100013b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1001a789], 0
jne 0x100013fa
push 0x1001a780
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100013ec
push 0x1001a790
mov byte [0x1001a788], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x100013f3
mov byte [0x1001a788], 0
mov byte [0x1001a789], 1
cmp byte [0x1001a788], 0
je 0x1000144e
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [0x1001a790]
mov eax, dword [ebp - 8]
sbb eax, dword [0x1001a794]
push 0
push 0x3e8
push eax
push ecx
call fcn.1000d800
push dword [0x1001a784]
push dword [0x1001a780]
push edx
push eax
call fcn.1000d9c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014f9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014f9
mov esp, ebp
pop ebp
ret
Function at 0x4047d2
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 0x4047f0
xor eax, eax
inc eax
jmp 0x40487b
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404878
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x404878
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 0x4047e8
cmp dword [edi], 0x4550
jne 0x404878
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x404878
movzx eax, word [esi + 0x46]
test ax, ax
je 0x404878
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.00424ceb
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x404854
push 3
jmp 0x40487a
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 0x40487b
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x406306
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x406314
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 0x4063cf
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 + 0x43d0c0]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d0c0]
add edx, 8
sub edi, 8
dec esi
jne 0x406332
pop ebx
test edi, edi
je 0x4063e8
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x43d0c0]
inc edx
dec edi
jne 0x4063d3
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4063ee
Capabilities:
Generate random numbers using the delphi lcg

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 + 0x43d0c0]
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 + 0x43d0c0]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x41ff38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41ff46
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 0x420001
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 + 0x43f140]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f140]
add edx, 8
sub edi, 8
dec esi
jne 0x41ff64
pop ebx
test edi, edi
je 0x42001a
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x43f140]
inc edx
dec edi
jne 0x420005
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x420020
Capabilities:
Generate random numbers using the delphi lcg

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 + 0x43f140]
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 + 0x43f140]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x420200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4476f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x459fe8]
test eax, eax
jne 0x420243
mov eax, 0x200
jmp 0x4203cc
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x42025a
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x420263
or dword [ebp - 0x3c], 2
test cl, 4
je 0x42026c
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x420277
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x420280
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x42028d
or dword [ebp - 0x3c], 0x40000000
jmp 0x420294
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x4202a7
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45a0d0]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x42034c
push ebx
push ebx
push ebx
push esi
call dword [0x459ef4]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x45a014]
push ebx
push ebx
push 0x24
push esi
call dword [0x459ef4]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x45a014]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x42034c
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x42034c
push ebx
push ebx
push eax
push esi
call dword [0x459ef4]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x45a014]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x420345
cmp eax, 0x454e
je 0x420345
cmp eax, 0x454c
je 0x420345
cmp eax, 0x4550
jne 0x42034c
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x420358
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x420364
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x42039d
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0042016b
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.0042016b
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.0042016b
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x4203ca
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0042018f
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042325a
leave
ret