joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101077ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x101077d9
call fcn.10107e64
mov dword [eax], esi
call fcn.10107e51
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10101afa
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x101077b5
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10107808
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10107e77
pop ecx
call fcn.10107e51
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x1010782f
test al, 1
je 0x1010782f
test byte [esp + 0xc], 2
je 0x1010782f
call fcn.10107e64
mov dword [eax], 5
call fcn.10107e51
mov dword [eax], 0xd
jmp 0x101077ff
xor eax, eax
pop esi
ret

Function at 0x1010f1ac
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1019d148]
je 0x1010f1c7
inc edi
cmp edi, 0x17
jb 0x1010f1b8
cmp edi, 0x17
jae 0x1010f347
push ebp
push 3
call fcn.10129ee4
cmp eax, 1
pop ecx
je 0x1010f313
push 3
call fcn.10129ee4
test eax, eax
pop ecx
jne 0x1010f1fb
cmp dword [0x1019fb58], 1
je 0x1010f313
cmp ebx, 0xfc
je 0x1010f346
push 0x10172770
mov ebx, 0x314
push ebx
mov ebp, 0x1019fee0
push ebp
call fcn.101068af
add esp, 0xc
test eax, eax
je 0x1010f231
push esi
push esi
push esi
push esi
push esi
call fcn.101019c6
add esp, 0x14
push 0x104
mov esi, 0x1019fef9
push esi
push 0
mov byte [0x1019fffd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1010f275
push 0x10172758
push 0x2fb
push esi
call fcn.101068af
add esp, 0xc
test eax, eax
je 0x1010f275
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.101019c6
add esp, 0x14
push esi
call fcn.10108020
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1010f2ba
push esi
call fcn.10108020
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x101a01f4
push 0x10172754
sub ecx, eax
push ecx
push eax
call fcn.1011e207
add esp, 0x14
test eax, eax
je 0x1010f2ba
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.101019c6
add esp, 0x14
jmp 0x1010f2bc
xor esi, esi
push 0x10172750
push ebx
push ebp
call fcn.10125f16
add esp, 0xc
test eax, eax
je 0x1010f2dc
push esi
push esi
push esi
push esi
push esi
call fcn.101019c6
add esp, 0x14
push dword [edi*8 + 0x1019d14c]
push ebx
push ebp
call fcn.10125f16
add esp, 0xc
test eax, eax
je 0x1010f2fe
push esi
push esi
push esi
push esi
push esi
call fcn.101019c6
add esp, 0x14
push 0x12010
push 0x10172728
push ebp
call fcn.10129d27
add esp, 0xc
jmp 0x1010f346
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1010f346
cmp ebp, 0xffffffff
je 0x1010f346
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1019d14c]
push dword [esi]
call fcn.10108020
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10129d27
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1010ca90
xor ebx, ebx
cmp dword [0x101a05e4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10129dfd
push 0x101751dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10129edd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101751d0
push edi
call esi
cmp eax, ebx
je 0x10129edd
push eax
call fcn.1010ca22
mov dword [esp], 0x101751c0
push edi
mov dword [0x101a05e4], eax
call esi
push eax
call fcn.1010ca22
mov dword [esp], 0x101751ac
push edi
mov dword [0x101a05e8], eax
call esi
push eax
call fcn.1010ca22
mov dword [0x101a05ec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10111771
test eax, eax
pop ecx
pop ecx
je 0x10129dcb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.101019c6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10129dfd
push 0x10175190
push edi
call esi
push eax
call fcn.1010ca22
cmp eax, ebx
pop ecx
mov dword [0x101a05f4], eax
je 0x10129dfd
push 0x10175178
push edi
call esi
push eax
call fcn.1010ca22
pop ecx
mov dword [0x101a05f0], eax
mov eax, dword [0x101a05f0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10129e82
cmp dword [0x101a05f4], ecx
je 0x10129e82
push eax
call fcn.1010ca99
push dword [0x101a05f4]
mov esi, eax
call fcn.1010ca99
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10129e82
cmp edi, ebx
je 0x10129e82
call esi
cmp eax, ebx
je 0x10129e4f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10129e4f
test byte [ebp - 0x18], 1
jne 0x10129e82
lea eax, [ebp - 0x10]
push eax
call fcn.10111820
test eax, eax
pop ecx
je 0x10129e6a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.101019c6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10129e79
or dword [ebp + 0x10], 0x200000
jmp 0x10129ebd
or dword [ebp + 0x10], 0x40000
jmp 0x10129ebd
mov eax, dword [0x101a05e8]
cmp eax, dword [ebp - 8]
je 0x10129ebd
push eax
call fcn.1010ca99
cmp eax, ebx
pop ecx
je 0x10129ebd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10129ebd
mov eax, dword [0x101a05ec]
cmp eax, dword [ebp - 8]
je 0x10129ebd
push eax
call fcn.1010ca99
cmp eax, ebx
pop ecx
je 0x10129ebd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101a05e4]
call fcn.1010ca99
cmp eax, ebx
pop ecx
je 0x10129edd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10129edf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10759318
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10759468
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 0x1075933e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1075932a
add dl, dl
jne 0x10759349
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1075939c
xor eax, eax
add dl, dl
jne 0x10759356
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1075943d
add dl, dl
jne 0x10759365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10759370
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1075937b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10759386
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10759392
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10759335
mov eax, 1
add dl, dl
jne 0x107593aa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107593b5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107593a1
sub eax, ebx
mov ebx, 1
jne 0x107593e8
mov ecx, 1
add dl, dl
jne 0x107593ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107593d9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107593c5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10759335
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107593ff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1075940a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107593f6
cmp eax, 0x7d00
jae 0x1075942d
cmp eax, 0x500
jb 0x10759428
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10759335
cmp eax, 0x7f
ja 0x10759430
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10759335
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1075945e
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 0x10759335
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x417689
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4301b9
call fcn.0042fda0
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.004069a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f1b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f1b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040ef3e
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040ef3e
mov ecx, eax
call fcn.004069b4
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f1b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4177a3
xor ecx, ecx
cmp word [eax], cx
je 0x4177a3
lea ecx, [ebp - 0x10]
call fcn.0040ef3e
mov ecx, eax
call fcn.00406a63
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x4177d6
mov ecx, dword [edi]
call fcn.00406a8b
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
lea ecx, [ebp - 0x14]
call fcn.0040eeb5
lea ecx, [ebp - 0x18]
call fcn.0040eeb5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42bbc4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b884

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40af90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40af9f
pop dword [ebp - 0x18]
mov eax, 0x19f3b378
add eax, 0xe64cfc27
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x324c73e5
add dword [ebp - 0x28], 0x1c05d166
mov dword [ebp - 0x24], 0x193ed8ef
sub dword [ebp - 0x24], 0xe70b8caa
mov dword [ebp - 0x20], 0xff9c61db
add dword [ebp - 0x20], 0x4cafe253
mov dword [ebp - 0x1c], 0x2e60e2f8
add dword [ebp - 0x1c], 0xd19f1d08
lea eax, [ebp - 0x28]
push eax
mov eax, 0xabe89d6a
sub eax, 0xaba74cea
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x7d02fdc9
sub dword [ebp - 0x28], 0x8909473
mov dword [ebp - 0x24], 0xbff2730e
sub dword [ebp - 0x24], 0x7e861199
mov dword [ebp - 0x20], 0x62278d3
add dword [ebp - 0x20], 0x5d4cf399
mov dword [ebp - 0x1c], 0x23c09c93
sub dword [ebp - 0x1c], 0x23c09c93
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38018
push 0
call eax
mov ecx, 0x3ebe
xor edi, edi
add edi, eax
mov ebx, 0x41f400
add ebx, dword [ebp - 0x18]
mov edx, 0x40ae6b78
sub edx, 0xfb625047
sub dword [ebp - 0x10], 0x5231b0e
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0x9ea9926f
sub esi, edx
mov dword [ebp - 0x10], 0x54c164fc
mov dword [edi], esi
sub dword [ebp - 0x14], esi
add edi, 0x3abc29c7
add edi, 0xc543d63d
add ebx, 0x5393b91d
add ebx, 0xac6c46e7
loop 0x40b0b2
add eax, 0x61f2ce0d
sub eax, 0x61f1e042
xor ebx, ebx
add ebx, eax
add eax, 0x7016c75e
add eax, 0x8fe938a7
mov ecx, 0x1ec31457
sub ecx, 0x1e831457
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438030]
jne 0x40107a
repz ret
jmp fcn.00401e51

Function at 0x408b0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d5a
and dword [ebp - 4], 0
cmp dword [0x43ab68], 0
mov ebx, eax
jne 0x408bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c6d
push eax
call fcn.00404ce8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ab68], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ab6c], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ab70], eax
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x43ab78], eax
test eax, eax
je 0x408bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x43ab74], eax
mov eax, dword [0x43ab74]
cmp eax, ebx
je 0x408c14
cmp dword [0x43ab78], ebx
je 0x408c14
push eax
call fcn.00404d63
push dword [0x43ab78]
mov esi, eax
call fcn.00404d63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c14
test edi, edi
je 0x408c14
call esi
test eax, eax
je 0x408c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c0b
test byte [ebp - 0xc], 1
jne 0x408c14
or dword [ebp + 0x10], 0x200000
jmp 0x408c4d
mov eax, dword [0x43ab6c]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c4d
mov eax, dword [0x43ab70]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ab68]
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af70
Capabilities:
Set console window title

Disassembly:
sub esp, 0x420
mov eax, dword [0x438030]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [0x2c1855c]
push ebx
mov ebx, dword [0x2c18280]
push esi
mov esi, dword [0x438f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40afb1
push str.zolihetujejijitewi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c1855c]
mov dword [0x43ad0c], esi
cmp eax, 0x114e
jne 0x40afdb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c1855c]
cmp eax, 0x2f
jne 0x40affb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call fcn.0040ae60
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401070
add esp, 0x420
ret
Function at 0x407640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40765a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407650
mov eax, 1
add ebx, ebx
jne 0x407673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407668
jne 0x407684
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407668
xor ecx, ecx
sub eax, 3
jb 0x407698
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40770a
mov ebp, eax
add ebx, ebx
jne 0x4076a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4076b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4076d4
inc ecx
add ebx, ebx
jne 0x4076c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4076b5
jne 0x4076d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4076b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4076f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4076e5
jmp 0x407656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4076f4
add edi, ecx
jmp 0x407656
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x407712
cmp byte [edi], 0
jne 0x407712
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 0x407717
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407786
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407744
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7230]
or eax, eax
je 0x407780
mov dword [ebx], eax
add ebx, 4
jmp 0x407761
call dword [esi + 0x722c]
mov ebp, dword [esi + 0x7234]
lea edi, [esi - 0x1000]
mov ebx, pe_overlay
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x4077ba
sub esp, 0xffffff80
jmp 0x401020
Function at 0x1002f82a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1002f839
pop dword [ebp - 0x2c]
mov eax, 0x1002f839
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x18f418da
sub dword [ebp - 0x3c], 0xcaa1d38f
mov dword [ebp - 0x38], 0xc34b880c
sub dword [ebp - 0x38], 0x91183bc7
mov dword [ebp - 0x34], 0x9e04b26f
sub dword [ebp - 0x34], 0x51b86e41
mov dword [ebp - 0x30], 0xd8de81d7
add dword [ebp - 0x30], 0x27217e29
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1165283b
add eax, 0xfea068d1
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x69799bc5
add dword [ebp - 0x3c], 0xaf8cd91
mov dword [ebp - 0x38], 0xac1b4d5c
add dword [ebp - 0x38], 0x95511419
mov dword [ebp - 0x34], 0x6376e358
add dword [ebp - 0x34], 0xfff88914
mov dword [ebp - 0x30], 0x7d739cae
add dword [ebp - 0x30], 0x828c6352
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x5b2ca
push 0
call eax
mov ecx, 0x3ecc
mov edx, eax
mov ebx, 0x10069400
add ebx, dword [ebp - 0x2c]
mov edi, 0xd9aa2279
add edi, 0x8e09cbae
xor dword [ebp - 0x18], 0x3b4d11b6
mov esi, dword [ebx]
sub dword [ebp - 0xc], edx
xor esi, edi
mov dword [ebp - 0x1c], 0x6692272b
mov dword [edx], esi
sub dword [ebp - 4], 0x565e40cd
add edx, 0xe425c3bf
add edx, 0x1bda3c45
add ebx, 0xd4cff8f1
sub ebx, 0xd4cff8ed
loop 0x1002f945
add eax, 0xee03
xor ebx, ebx
add ebx, eax
add eax, 0xecc04823
add eax, 0x133fb7e2
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49c008], 0x8088405
inc edx
mov dword [ebx + 0x49c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x48058e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480595
ret