joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a501
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7aca10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x45a545
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x45a616
push edi
push 0x24
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x45a59e
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45a5b4
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x45a603
cmp eax, 3
je 0x45a5b7
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x45a5b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x45a603
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x45a603
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x45a603
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x1f40
jae 0x45a5f6
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x45a5ca
jmp 0x45a5f9
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x45a603
mov ebx, 0x800705b4
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x45a610
push esi
call edi
push dword [ebp - 0x24]
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
Function at 0x45a698
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045a232
add esp, 0xc
test al, al
je 0x45a6b4
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
call fcn.0045a501
pop ecx
test eax, eax
js 0x45a74b
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x45a6f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x45a747
push esi
push 2
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x45a720
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push 1
push dword [ebp + 0x10]
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x45a734
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test esi, esi
je 0x45a73f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x46ac8e
mov dword [edx*4 + 0x7c43c0], ecx
inc edx
cmp edx, 0x100
jb 0x46ac89
mov esi, 0x800
jmp 0x46acd7
mov ecx, dword [edx*4 + 0x7c3fc0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x7c43c0]
mov dword [edx*4 + 0x7c43c0], ecx
inc edx
cmp edx, esi
jb 0x46acbb
mov dword [0x7b1f38], 0x46b7d5
call fcn.0046b64e
mov ecx, dword [0x7b1f38]
test eax, eax
mov edx, 0x46b86e
cmove ecx, edx
mov dword [0x7b1f38], ecx
pop esi
ret
Function at 0x46bb2e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x46bb4f
xor eax, eax
jmp 0x46bca4
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x46bb7b
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x46bb78
inc edx
cmp edx, ecx
jb 0x46bb6b
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x46bc88
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x46bbb3
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x46bbf0
cmp al, 0xff
je 0x46bbf0
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x46bc81
dec ecx
shl esi, cl
and esi, 7
je 0x46bb93
movzx eax, byte [esi + 0x4e4ee0]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x4e4ed8], 0
mov al, byte [ecx + 4]
je 0x46bbda
test al, al
je 0x46bbda
cmp al, 0xff
jne 0x46bb93
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x46bb62
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x46bc1d
add ebx, edi
add ebx, edx
jmp 0x46bc21
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x46bc57
movzx eax, byte [esi + 0x4e4ee0]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x46bc46
cmp al, 0xff
jne 0x46bc57
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x46bc11
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x46bbe5
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47b2bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x170]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x47b2e2
call fcn.00478326
jmp 0x47b30e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004777c8
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x47b30e
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc
Function at 0x47c895
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x7aca10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.004ab350
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x47c8f0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x47c904
cmp byte [ebp - 6], 1
jne 0x47c904
cmp dword [ebp - 0x11c], 6
jne 0x47c904
xor eax, eax
inc eax
jmp 0x47c906
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret

Function at 0x481174
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
sub eax, 9
je 0x4811d5
sub eax, 1
je 0x4811b7
sub eax, 3
je 0x4811b7
test dword [edi + 0x370], 0x2000
je 0x4811f0
push esi
call fcn.004b6225
pop ecx
test eax, eax
jne 0x4811f0
cmp esi, 0x2d
je 0x4811f0
cmp esi, 0x2e
je 0x4811f0
cmp esi, 0x2c
je 0x4811f0
jmp 0x48120b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4811f0
test dword [edi + 0x370], 0x1000
jmp 0x4811ee
test byte [edi + 0x374], 0x80
jne 0x4811f0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x48120b
mov eax, dword [edi + 0x380]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4814af
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x2c
mov eax, 0x4d9063
call fcn.004a85b9
mov esi, ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.004742cb
mov dword [ebp - 0x38], 0x4e8230
mov dword [ebp - 0x30], 0x4e8244
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x18], edi
call dword [eax + 0x94]
cmp byte [ebp - 0x10], bl
jne 0x48151e
cmp edi, 0xd
jne 0x481523
test dword [esi + 0x370], 0x1000
jne 0x481523
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x481523
mov dword [esi + 0x10], ebx
jmp 0x48153d
mov eax, dword [esi + 0x380]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
call fcn.004a8593
ret 0xc
Function at 0x48a22a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4e8b5c
push dword [ebp + 8]
call fcn.004b40fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48a287
push ebx
push edi
push esi
call fcn.004b55ba
push eax
call fcn.004c1292
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x48a266
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x48a27c
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.004b5cfc
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.004b53f1
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x48a2e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.0048adf4
mov ebx, eax
test ebx, ebx
je 0x48a350
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x48a334
cmp dword [ebp + 0x14], edi
jae 0x48a319
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x48a334
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x48a334
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x48a338
xor eax, eax
jmp 0x48a34f
push edi
push eax
push dword [ebp + 0x10]
call fcn.004aadd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x48f4f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x78
pop ecx
mov ax, word [edi + 0x210]
add ax, word [ebp + 0xc]
cwde
cdq
idiv ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [edi + 0x210], dx
cdq
xor eax, edx
sub eax, edx
movzx ebx, ax
xor eax, eax
cmp ax, bx
jge 0x48f59a
xor ecx, ecx
cmp word [ebp + 0xc], ax
setle cl
xor edx, edx
mov dword [ebp - 4], ecx
inc edx
mov eax, dword [edi]
push 0
push ecx
push edx
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
je 0x48f562
mov ecx, edi
call fcn.00490922
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x48f53d
cmp si, bx
jge 0x48f59a
push dword [ebp + 0x14]
or eax, 0xffffffff
mov ecx, ebx
push dword [ebp + 0x10]
sub ecx, esi
cmp word [ebp + 0xc], 0
push 1
pop edx
cmovg eax, edx
movsx ecx, cx
cwde
imul ecx, eax
movsx eax, cx
mov ecx, edi
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.0047796a
test bx, bx
je 0x48f5d9
mov ecx, edi
call fcn.004758c4
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x497642
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x49764f
xor eax, eax
jmp 0x49767d
push dword [ecx + 4]
call fcn.0048e859
pop ecx
test eax, eax
je 0x49766a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x49764b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4

Function at 0x4977a8
Capabilities:
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x4da5b7
call fcn.004a85b9
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.00497642
test eax, eax
je 0x4977e3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.004971cd
xor eax, eax
inc eax
jmp 0x4978e5
push dword [ebx + 4]
call fcn.0048e859
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x49788f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x49788f
cmp edi, 0x25
je 0x49781c
cmp edi, 0x27
je 0x49782a
cmp edi, 0x26
je 0x49781c
cmp edi, 0x28
jne 0x49788f
cmp edi, 0x27
je 0x49782a
cmp edi, 0x28
je 0x49782a
push 2
jmp 0x49782c
push 3
pop edi
jmp 0x49783a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x497879
push edi
mov ecx, esi
call fcn.004760fc
mov esi, eax
test esi, esi
jne 0x49782f
mov ecx, dword [ebp - 0x10]
cmp edi, 3
setne al
push eax
call fcn.00475de9
mov ecx, eax
jmp 0x497869
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x497879
push edi
mov ecx, esi
call fcn.004760fc
mov esi, eax
test esi, esi
jne 0x49785b
jmp 0x4977db
push 1
mov ecx, esi
call fcn.00476021
push eax
mov ecx, ebx
call fcn.00497b57
jmp 0x4977db
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.004952c3
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00497939
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00401590
mov eax, ebx
call fcn.004a8593
ret 4
Function at 0x499eef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x499f12
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x499faf
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.00499b05
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x499f35
push ebx
call fcn.004b53f1
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x499f8b
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x7ac970]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x499f60
call fcn.004b53f1
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x499f8b
push esi
push 1
push eax
call fcn.004b5cfc
push ebx
mov esi, eax
call fcn.004b53f1
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x499f94
push dword [ebp - 4]
call dword [0x7ac974]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x499fae
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00499e9a
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a183f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4a185f
xor eax, eax
jmp 0x4a18be
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4a185b
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a185b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4a185b
push edi
mov ecx, ebx
call fcn.004a1381
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004a1363
mov ecx, ebx
mov dword [ebx], esi
call fcn.004a191a
test eax, eax
jne 0x4a18bd
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4a1b54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0xc
pop edi
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 4], ebx
push eax
call fcn.004a8039
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x4a1bca
cmp dword [esi], edi
jbe 0x4a1bb4
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebp - 4]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [eax + edi]
mov byte [ebp - 8], bl
push dword [ebp - 8]
call fcn.004a1cee
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x4a1b7d
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004a7ad0
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
add dword [esi], 0xfffffff4
inc eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a1c15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x7aca10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
jae 0x4a1c35
xor eax, eax
jmp 0x4a1c85
push ebx
push esi
push 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004aadd0
add esp, 0xc
xor esi, esi
movzx eax, word [edi + 0x18]
mov ecx, edi
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp + esi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.004a1cee
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x4a1c48
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 0x18
cmp byte [ebp - 5], cl
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi + 0x10], eax
movzx eax, al
add eax, dword [edi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a3f6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4a3f78
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004a3f7e

Function at 0x4a5e56
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4dad05
call fcn.004a85ed
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4a5f73
cmp byte [ebx + 0x3e], 0
je 0x4a5f73
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004a89d7
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4a5ea2
xor al, al
jmp 0x4a5f75
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00405790
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4a5ed2
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.004a89d7
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4a5f07
sub eax, 1
je 0x4a5f0b
dec eax
sub eax, 1
je 0x4a5f61
xor bl, bl
jmp 0x4a5f63
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4a5f1b
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x4a5f43
cmp eax, 0x10
jae 0x4a5f2a
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004b3fe5
add esp, 0x10
cmp esi, eax
jne 0x4a5f03
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x4a5f61
test esi, esi
jne 0x4a5ec6
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406820
jmp 0x4a5ec0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401d30
mov al, bl
jmp 0x4a5f75
mov al, 1
call fcn.004a85a8
ret
Function at 0x4ca764
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca423

Function at 0x4ca76f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca5a6

Function at 0x4cb23e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb1ba

Function at 0x4cffdc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cfc76

Function at 0x10002eea
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push 0x33
call 0x10008860
cmp al, 0x19
ja 0x10002f05
add al, 0x41
jmp 0x10002f07
add al, 0x47
pop ecx
pop edi
mov byte [edi], al
inc edi
loop 0x10002ef4
popal
leave
ret 8