joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad22
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push edi
lea edi, [esi + 0x308]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi], ebx
je 0x41ad44
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2fc]
cmp eax, ebx
je 0x41ae14
push eax
call fcn.0041b236
mov edi, eax
pop ecx
cmp edi, ebx
je 0x41adc9
push ebx
push esi
push 2
pop eax
mov ecx, edi
call fcn.0041a70c
mov eax, dword [esi + 0x2fc]
cmp eax, dword [esi + 0x2f8]
jne 0x41adc9
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0041acf7
mov eax, dword [edi + 0x88]
cmp eax, ebx
je 0x41adb8
cmp word [eax], bx
je 0x41adb8
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41adc9
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x41adc9
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [esi + 0x2fc], ebx
cmp dword [ebp - 4], ebx
je 0x41ae14
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc
Function at 0x41b8be
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x458060]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xa4]
xor ebx, ebx
dec eax
push esi
push edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
je 0x41b92e
dec eax
je 0x41b923
dec eax
je 0x41b918
dec eax
je 0x41b90d
dec eax
jne 0x41b938
mov dword [ebp - 0x74], str.pu_x
push 0x11
jmp 0x41b937
mov dword [ebp - 0x74], str.phh_osj
push 7
jmp 0x41b937
mov dword [ebp - 0x74], str.e_gb8mh
push 9
jmp 0x41b937
mov dword [ebp - 0x74], str.svsv_vMqtu_j
push 0x12
jmp 0x41b937
mov dword [ebp - 0x74], str.rw_rwawLpuzt_k
push 0x13
pop ebx
cmp byte [0x45c180], 0
mov esi, 0x104
mov edi, 0x45c180
jne 0x41b987
lea eax, [ebp - 0x7c]
push eax
push edi
lea eax, [ebp - 0x80]
push eax
push 0x44b74c
push 0x44b754
push SysReAllocString
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41b97b
cmp dword [ebp - 0x80], 3
jne 0x41b97b
cmp dword [ebp - 0x7c], eax
jne 0x41b987
mov esi, dword [ebp - 0x78]
call fcn.0040ed8f
mov eax, esi
jmp 0x41b9fd
push 0x103
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call 0x42b020
add esp, 0xc
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.0041b83d
lea eax, [ebp - 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b9ae
sub eax, edx
je 0x41b9ee
cmp byte [ebp + eax - 0x71], 0x2f
je 0x41b9c6
mov byte [ebp + eax - 0x70], 0x2f
inc eax
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x41b9ee
lea edx, [eax + ebx]
cmp edx, esi
jae 0x41b9ee
xor edi, edi
lea eax, [ebp + eax - 0x70]
test ebx, ebx
jle 0x41b9eb
mov dl, byte [edi + ecx]
xor dl, bl
mov byte [eax], dl
inc eax
inc edi
cmp edi, ebx
jl 0x41b9de
mov byte [eax], 0
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
call fcn.0040e920
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004273ec
add ebp, 0x98
leave
ret
Function at 0x41bb68
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x458060]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x443022
call 0x42b74d
mov eax, dword [ebp + 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x18], eax
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
xor ebx, ebx
push ebx
call edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.datauser2.ini
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bcb3
xor eax, eax
push 0x206
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push ebx
push eax
call 0x42b020
add esp, 0xc
lea eax, [ebp]
push eax
push esi
lea eax, [ebp + 0x208]
push eax
push ebx
push str.inst
push 0x44b868
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp + 0x208], bx
je 0x41bc51
push 0xffffffffffffffff
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d1ac
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.0040ea9a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call fcn.004273e1
pop ecx
xor eax, eax
mov word [ebp + 0x208], ax
lea eax, [ebp]
push eax
push esi
lea eax, [ebp + 0x208]
push eax
push ebx
push str.pver
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp + 0x208], bx
je 0x41bcb3
push 0xffffffffffffffff
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d1ac
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 1
push dword [eax]
call fcn.0040ea9a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call fcn.004273e1
pop ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], ebx
jne 0x41bcfa
push esi
lea eax, [ebp]
push eax
push ebx
call edi
push 0xffffffffffffffff
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d1ac
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 2
push dword [eax]
call fcn.0040ea9a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.004273e1
pop ecx
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], ebx
jne 0x41bd0c
push str.21.0
call fcn.0040ea9a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004273ec
add ebp, 0x414
leave
ret
Function at 0x41cbc4
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x458060]
xor eax, ebp
mov dword [ebp + 0x188], eax
cmp dword [0x45a4a8], 0xffffffff
jne 0x41ccad
push esi
push edi
push 0x104
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.log1
lea eax, [ebp - 0x80]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cc3c
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
je 0x41cc3c
and dword [0x45a4a8], 0
push str.__________logging_level_info__________
jmp 0x41cc8e
push str.log2
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
je 0x41cc66
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
je 0x41cc66
mov dword [0x45a4a8], 1
push str.__________logging_level_warning__________
jmp 0x41cc8e
push str.log3
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
je 0x41cc96
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
je 0x41cc96
mov dword [0x45a4a8], 2
push str.__________logging_level_error__________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41ccab
push str.__________logging_level_warning_default___________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x45a4a8], 1
pop edi
pop esi
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.004273ec
add ebp, 0x18c
leave
ret

Function at 0x41ccc2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x458060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45af84]
cmp eax, 0xffffffff
jne 0x41cd2a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..debug
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [0x45af84], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004273ec
leave
ret

Function at 0x420c10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x420c34
test byte [ebp - 4], 7
push 0
pop eax
setne al
leave
ret
xor al, al
leave
ret
Function at 0x421d3b
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x452d90
call 0x42b09c
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x421da3
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x421da3
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x421da3
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x421da3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x421dac
mov dword [ebp - 4], 0xfffffffe
xor al, al
call 0x42b0e1
ret

Function at 0x421e62
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
movzx ecx, ax
push esi
push edi
mov esi, 0x10000
test ecx, ecx
je 0x421e7b
sub eax, ecx
add eax, esi
mov ebx, eax
cmp eax, dword [ebp + 8]
jae 0x421eed
lea eax, [ebx - 0x50000000]
cmp eax, 0x30000000
ja 0x421e96
mov ebx, 0x80010000
jmp 0x421ee8
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421eed
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], esi
jne 0x421ed4
cmp eax, esi
jb 0x421ed4
push 0x40
push 0x3000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x421eef
add ebx, esi
jmp 0x421ee8
mov ecx, dword [ebp - 0x1c]
add eax, ecx
movzx ecx, ax
test ecx, ecx
je 0x421ee6
mov edx, esi
sub edx, ecx
add eax, edx
mov ebx, eax
cmp ebx, dword [ebp + 8]
jb 0x421e82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421ef4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add eax, 0xffff0000
movzx ecx, ax
sub esp, 0x1c
test ecx, ecx
je 0x421f08
sub eax, ecx
push ebx
push esi
push edi
mov ebx, eax
cmp eax, dword [ebp + 8]
jbe 0x421f7f
mov esi, 0x10000
lea eax, [ebx - 0x50000000]
cmp eax, 0x30000000
ja 0x421f2b
mov ebx, 0x4fff0000
jmp 0x421f7a
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421f7f
cmp dword [ebp - 0xc], esi
jne 0x421f67
cmp dword [ebp - 0x10], esi
jb 0x421f67
push 0x40
push 0x3000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x421f81
sub ebx, esi
jmp 0x421f7a
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
movzx ecx, ax
test ecx, ecx
je 0x421f78
sub eax, ecx
mov ebx, eax
cmp ebx, dword [ebp + 8]
ja 0x421f17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421f86
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x421f9f
mov ebx, 0x10000
lea ebp, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x421fb2
mov ebp, 0xfff80000
mov eax, dword [0x45c0b0]
mov ecx, dword [0x45c0ac]
test eax, eax
jne 0x421fcc
test ecx, ecx
je 0x421fdf
mov eax, ecx
mov dword [0x45c0b0], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x421fdf
cmp edx, ebx
jb 0x421fdf
cmp edx, ebp
jbe 0x4220bb
mov eax, ecx
test ecx, ecx
jmp 0x422001
test eax, eax
je 0x421ffc
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x421ffc
cmp ecx, ebx
jb 0x421ffc
cmp ecx, ebp
jbe 0x4220bb
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x45c0b0], eax
jne 0x421fe5
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, 0x40000000
cmp esi, edi
jbe 0x42202d
lea eax, [esi - 0x40000000]
push ebx
call fcn.00421ef4
pop ecx
test eax, eax
jne 0x422084
cmp esi, edi
jae 0x422040
push ebp
lea eax, [esi + 0x40000000]
call fcn.00421e62
pop ecx
test eax, eax
jne 0x422084
cmp esi, edi
jbe 0x422057
push esi
lea eax, [esi - 0x40000000]
call fcn.00421e62
pop ecx
test eax, eax
jne 0x422084
cmp esi, edi
jae 0x42206a
lea eax, [esi + 0x40000000]
push esi
call fcn.00421ef4
pop ecx
test eax, eax
jne 0x422084
push ebx
mov eax, esi
call fcn.00421ef4
pop ecx
test eax, eax
jne 0x422084
push ebp
mov eax, esi
call fcn.00421e62
pop ecx
test eax, eax
je 0x4220e0
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x45c0ac]
mov dword [eax + 4], ecx
mov dword [0x45c0b0], eax
mov dword [0x45c0ac], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x4220ad
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x4220e0
cmp esi, ebp
ja 0x4220e0
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], ecx
call 0x42b020
add esp, 0xc
mov eax, esi
jmp 0x4220e2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x422108
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x45c0ac]
push esi
mov esi, 0x45c0ac
test eax, eax
je 0x422170
push ebx
push edi
cmp dword [eax], 0x52727464
jne 0x422165
lea edi, [eax + 0x10000]
xor ebx, ebx
lea ecx, [eax + 0x88]
mov edx, dword [ecx]
test edx, edx
je 0x42213d
cmp edx, eax
jb 0x422165
cmp edx, edi
jae 0x422165
inc ebx
add ecx, 0x48
cmp ebx, 0x38d
jb 0x42212f
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [0x45c0b0], 0
jmp 0x422168
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x422119
pop edi
pop ebx
pop esi
ret
Function at 0x4221d6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x45c0bc], edi
je 0x4221e9
mov eax, 0x10dd
jmp 0x42223e
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x45c0bc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4221e2
push esi
mov esi, dword [0x45c0ac]
mov dword [0x45c0cc], edi
mov dword [0x45c0c8], edi
mov dword [0x45c0c0], edi
mov dword [0x45c0c4], edi
jmp 0x422237
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x422221
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x422241
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x45c0bc], eax
je 0x422257
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x45c0cc]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4222a2
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x422293
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x422293
call fcn.004220e7
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004273e1
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x422266
mov dword [0x45c0cc], ebx
call fcn.00421e23
mov esi, dword [0x45c0c8]
cmp esi, ebx
je 0x4222cf
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004273e1
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x4222b7
pop edi
pop esi
mov dword [0x45c0c8], ebx
mov dword [0x45c0bc], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x422740
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x14
push 0x452d70
call 0x42b09c
mov esi, ecx
mov edi, dword [ebp + 8]
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x24]
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4227af
lea eax, [ebp - 0x20]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4227b3
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x19], 1
jmp 0x422793
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4227b3
mov byte [ebp - 0x19], 1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [ebp - 0x19]
call 0x42b0e1
ret

Function at 0x423d47
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x423d60
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
mov dword [eax], edi
cmp dword [ecx], edi
jne 0x423d80
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call 0x42b020
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x449bea]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x449be8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x449bec]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x449bee]
add esp, 0xc
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x423de3
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x423df0
cmp ebx, 8
jl 0x423df0
mov eax, dword [esp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x423e58
cmp eax, 0xffffffff
je 0x423e58
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x423e30
call fcn.00423ff0
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc edi
mov dword [esi + 0x6af7c], eax
cmp edi, 2
jb 0x423e36
jmp 0x423e68
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x42410c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x424309
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x424186
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x4241c9
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x4241c9
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x4241ae
mov dword [eax], ecx
push dword [ebp - 4]
mov ecx, esi
call fcn.00423e6c
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x4241c9
mov ebx, eax
cmp ebx, 3
jb 0x424289
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.004237aa
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x424257
cmp eax, 3
jb 0x424257
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x424205
jmp 0x4242a9
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea edx, [eax + esi]
movzx ecx, byte [edx + 0x1af70]
lea eax, [esi + 0x6af7c]
mov dword [eax], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [eax], edx
jmp 0x4242af
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.004237aa
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x4242ea
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x4242c8
lea edx, [ecx + esi + 0x1af70]
jmp 0x4242ca
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.004235b9
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4242fb
call fcn.00423ff0
cmp dword [esi + 0x6af90], 0
jne 0x424136
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x42431c
lea edx, [ecx + esi + 0x1af70]
jmp 0x42431e
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.004235b9
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x424ec6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x424ed1
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x424f83
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x449f30]
inc ecx
sub edi, 8
dec esi
jne 0x424ee8
pop ebx
test edi, edi
je 0x424f9c
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x449f30]
inc ecx
dec edi
jne 0x424f87
pop esi
not eax
pop edi
ret

Function at 0x424fa1
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x449f30]
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 + 0x449f30]
pop esi
mov dword [ecx + 8], eax
ret