joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420e4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4819b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420e8f
cmp word [esi], dx
jne 0x420e8f
or byte [edi + eax + 0x28], 4
jmp 0x420e94
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x420fe7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x420fc7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420ed6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420f0c
cmp eax, edx
jae 0x420f18
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x420eae
jmp 0x420fe7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420fc3
cmp dword [ebp - 0x14], 0
je 0x420fc3
mov eax, dword [ebx*4 + 0x4819b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420f9b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420f64
mov word [esi], cx
jmp 0x420f97
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4819b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4819b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4819b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420fe7
pop ebx
cmp word [ebp - 4], bx
jne 0x420fac
cmp esi, dword [ebp + 0xc]
jne 0x420fac
mov word [esi], bx
jmp 0x420fe4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421880
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420fe7
push 0xd
jmp 0x420fe0
mov ecx, dword [ebx*4 + 0x4819b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420fde
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420fe7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422c82
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x422d1f
push ebx
push esi
call fcn.00422c4b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421a2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422ccc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422d1e
push edi
push eax
call fcn.0041d3e9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422cec
call fcn.0041c3a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422d1d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421a2c
add esp, 0x20
test eax, eax
jne 0x422d0b
push edi
call fcn.0041c3a9
jmp 0x422d13
push ebx
call fcn.0041c3a9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42b646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42b6c6
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42b6c5
push ebx
mov ebx, 0x480f60
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42c5d8
mov byte [edi + esi], al
call fcn.0041219e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42b668
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00406338
pop edi
pop ebp
ret 0x14
Function at 0x40422f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x404281
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404279
push 0x4f
push 0x402ab7d
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4042ba
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4042b7
push 0x7d
push 0x402ab7d
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4042ce
mov eax, 0
jmp 0x404336
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4042ff
push 0x10b
push 0x402ab7d
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40432e
push 0x12f
push 0x402ab7d
push 6
call fcn.004422c3
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x404336
mov esp, ebp
pop ebp
ret 8
Function at 0x40542b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405475
push 0x19
push 0x402b74c
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40550c
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4c7498]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004011c1
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00443a80
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4054cd
push ebx
call fcn.004422cf
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004047a7
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40550c
push 0xda
push 0x402b74c
push 6
call fcn.004422c3
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x405526
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004422bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40552b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40553c
push ebx
call fcn.004422cf
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40f11a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40f15b
mov eax, 0x4c7586
push eax
push 1
mov ebx, 0x130
call fcn.004444e0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], 2
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4c7438]
fstp qword [ebp - 0x24]
mov dword [ebp - 0x28], esp
fld qword [ebp - 0x24]
call fcn.004011c1
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40f1bf
push 0x89
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f1ee
push 0xc7
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f225
push 0xe2
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f251
push 0x10a
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
call fcn.0040f30e
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f285
push 0x151
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f2ae
push 0x16b
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.USER32.dll_SetClipboardData]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f2df
push 0x17e
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40f308
push 0x1ac
push 0x402b0a5
push 6
call fcn.004422c3
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x40f349
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x4c7586
push 0x4c7586
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40f399
push 0
push 0x402ab73
push 6
call fcn.004422c3
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x41c53a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00444500
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.0041192e
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41c5ae
push 0x60
push 0x402abce
push 6
call fcn.004422c3
add esp, 0xc
jmp 0x41c5b3
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4206a1
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 4], esp
je 0x4206d8
push 0x39
push 0x40140a3
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push 0x426338
push 0xe
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x420716
push 0x39
push 0x40140a3
push 6
call fcn.004422c3
add esp, 0xc
mov dword [0x4e9cc4], eax
mov dword [ebp - 4], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 4], esp
je 0x420749
push 0x99
push 0x40140a3
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push 0x42d842
push 0xd
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x420787
push 0x99
push 0x40140a3
push 6
call fcn.004422c3
add esp, 0xc
mov dword [0x4e9cc8], eax
mov esp, ebp
pop ebp
ret
Function at 0x447f20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x447f61.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x447f61.2
jmp dword [eax*4 + 0x447fec]
mov word [esp + 0x48], di
jmp 0x447f9a
mov word [esp + 0x48], 2
jmp 0x447f9a
mov word [esp + 0x48], 3
jmp 0x447f9a
mov word [esp + 0x48], 4
jmp 0x447f9a
mov word [esp + 0x48], 7
jmp 0x447f9a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x447fe4
cmp dword [esp + 0x70], edi
je 0x447fd0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x448100
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x448169
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004437f0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x448200
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x44821e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x448213
pop esi
ret

Function at 0x448230
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x448250
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4482ba
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x44828a
push esi
xor edi, edi
call dword [0x4ea910]
add esp, 4
test eax, eax
je 0x4482d6
push eax
push esi
call fcn.00449e60
add esp, 8
mov edi, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4498a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4498c1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x44991b
inc edi
cmp edi, esi
jl 0x4498b5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x449950
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x44990a
cmp byte [eax], bl
je 0x449925
cmp byte [eax + 1], bl
je 0x44992e
cmp byte [eax + 2], bl
je 0x449938
cmp byte [eax + 3], bl
je 0x449944
add eax, 4
cmp eax, edi
jb 0x4498e1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x499ae0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x499afe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x499af3
pop esi
ret

Function at 0x4aa497
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 0x4aa4d9
call fcn.004ad576
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4aa4d9
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4aa4d0
xor eax, eax
jmp 0x4aa4e1
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004aa4e7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ab1ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4aee54
call fcn.0049cdc0
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.004ad576
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4ab22d
call fcn.004ad576
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 0x4ab23b
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ab249
or eax, 0xffffffff
jmp 0x4ab331
mov ecx, esi
call fcn.004ab164
mov dword [ebp - 0x14], eax
call fcn.004a8ae2
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4ab280
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x4ab280
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.004a8a96
push dword [ebp - 0x14]
call fcn.004a85c8
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004aaefc
cmp eax, edi
je 0x4ab2f3
test byte [esi + 0x24], 0x10
je 0x4ab2c1
push 4
mov ecx, esi
pop ebx
call fcn.004a7fc8
test ah, 1
je 0x4ab2b9
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004aa5e9
cmp dword [esi + 0x1c], edi
je 0x4ab2f3
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004a7ffc
jmp 0x4ab2f3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4ab307
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4ab320
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4ab320
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.004ab19e
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 0x4afb10
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

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

Function at 0x4afbe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [ebx + 0x2d]
push edi
test al, al
je 0x4afc69
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4afc11
cmp dword [ebx + 0x40], edi
jae 0x4afc11
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x4afc2a
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], edi
mov ecx, edi
mov edi, dword [ebx + 0x3c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jbe 0x4afc64
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
lea eax, [ebx + 0x30]
push ecx
push eax
call fcn.004afb90
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, edi
jb 0x4afc46
mov esi, dword [ebx + 0x3c]
jmp 0x4afc6c
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4afcb3
mov eax, dword [ebx + 0x24]
lea ecx, [eax + edi]
cmp ecx, dword [ebx + 0x28]
jb 0x4afc8e
pop edi
mov dword [ebx + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov ecx, edi
lea edi, [eax + edx]
mov edx, ecx
mov eax, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x24]
pop edi
add ecx, eax
pop esi
mov dword [ebx + 0x24], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x4afcd3
lea ecx, [ebp + 0xc]
push 0
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [ebx + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8