joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x49d4cc]
cmp dword [eax + 0x28], 0
jne 0x497628
xor eax, eax
jmp 0x497757
mov ecx, dword [0x49d43c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x49d430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x49d42c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x49d430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x49d42c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x49d4b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x49b680
push 0x49b6d0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x49d428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00497550
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x4975e0
mov edx, dword [0x49d4cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x49d434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x497757
cmp dword [ebp - 0x38], 0x12
jne 0x49774b
mov dword [0x49d444], 0
call fcn.00497760
xor eax, eax
jmp 0x497757
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x49771c
mov esp, ebp
pop ebp
ret 4

Function at 0x498b30
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4996cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x49b168
sub eax, eax
test esi, esi
je 0x4997a4
sub eax, 1
test ecx, ecx
je 0x4997a2
test esi, 3
je 0x49970a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4996ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x499789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x499714
mov ecx, edx
test ecx, ecx
je 0x4997a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x49978f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x4997ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0049982f
jae 0x4997ba
xor ecx, ecx
call fcn.0049982f
jae 0x4997e9
xor eax, eax
call fcn.0049982f
jae 0x4997f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0049982f
adc al, al
jae 0x4997db
jne 0x499825
stosb byte es:[edi], al
jmp 0x4997bd
call fcn.0049983b
sub ecx, ebx
jne 0x499802
call fcn.00499839
jmp 0x499821
lodsb al, byte [esi]
shr eax, 1
je 0x49984b
adc ecx, ecx
jmp 0x49981e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00499839
cmp eax, 0x7d00
jae 0x49981e
cmp ah, 5
jae 0x49981f
cmp eax, 0x7f
ja 0x499820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4997bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x49a17c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49d000]
jne 0x49a186
repz ret
jmp fcn.0049a42d
Function at 0x10001115
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000112c
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10001161
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x1000115d
cmp edi, eax
jae 0x10001161
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x1000114f
cmp edi, eax
jb 0x10001165
xor eax, eax
jmp 0x1000116f
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x10001575
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x10001587
xor al, al
jmp 0x100015e2
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push 0x8003
push eax
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100015e0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100015d7
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100015d7
cmp dword [ebp - 8], 0x10
jne 0x100015d7
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x10003df1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x10003e04
push 0x80004005
call fcn.10001045
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10003e0b
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10003e3b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x10003f02
xor eax, eax
cmp dword [ebp - 8], esi
je 0x10003e84
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x10003f02
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x10003ed8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.10003e3b
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x10003f15
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x10003eac
cmp dword [ebp - 8], esi
je 0x10003ef2
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x10003f0c
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x10003f1f
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x10003f0e
Function at 0x100041fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
call dword [0x100222e0]
mov eax, dword [ebp + 8]
xor edi, edi
push 2
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x40c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 0xc], ebx
jne 0x10004240
call fcn.10003c9c
mov esi, eax
jmp 0x1000431f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x1000425d
call fcn.10003c9c
jmp 0x10004314
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x10004253
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100042a0
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x10004296
lea eax, [ebp - 0x40c]
call fcn.10005994
mov eax, 0x8007000e
jmp 0x1000433a
push 2
push eax
call fcn.10005d6b
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x100042c0
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.10005bab
jmp 0x100042cc
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov ebx, dword [ebp - 0x40c]
cmp ebx, edi
jne 0x100042dd
mov esi, 0x8007000e
jmp 0x10004316
call dword [0x100222e0]
push esi
push ebx
push esi
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x10004253
mov ecx, dword [ebp - 0x40c]
push dword [ebp + 0x18]
mov word [ecx + eax*2], di
push dword [ebp - 0x40c]
lea ecx, [ebp - 8]
call fcn.10004ab5
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x10004338
lea eax, [ebp - 0x40c]
call fcn.10005994
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10006ab1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0x10023ca0], 0
jne 0x10006ae7
push 0
push str.DebugOutput
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x1001d404
call fcn.10006a53
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [0x10023ca0], ecx
cmp dword [0x10023ca0], 1
je 0x10006b85
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
div ecx
push dword [0x100234e8]
lea esi, [ecx + 0x15]
push edx
push eax
push str.__d._03d__s_
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.100069bb
lea eax, [ebp - 0x404]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10006b2e
sub eax, ecx
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10006b40
sub ecx, edx
lea edx, [ebp + 0xc]
push edx
push dword [ebp + 8]
sub esi, eax
push esi
lea eax, [ebp + ecx - 0x404]
push eax
call fcn.10006986
push 0x1001d408
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.1000694c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
leave
ret

Function at 0x10008e44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022340]
jne 0x10008e4e
repz ret
jmp fcn.1000f1fd
Function at 0x1000bfe9
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 + 0x100225e8]
je 0x1000c004
inc edi
cmp edi, 0x17
jb 0x1000bff5
cmp edi, 0x17
jae 0x1000c184
push ebp
push 3
call fcn.10010e72
cmp eax, 1
pop ecx
je 0x1000c150
push 3
call fcn.10010e72
test eax, eax
pop ecx
jne 0x1000c038
cmp dword [0x10023d7c], 1
je 0x1000c150
cmp ebx, 0xfc
je 0x1000c183
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10023ee8
push ebp
call fcn.10010e0d
add esp, 0xc
test eax, eax
je 0x1000c06e
push esi
push esi
push esi
push esi
push esi
call fcn.10009050
add esp, 0x14
push 0x104
mov esi, 0x10023f01
push esi
push 0
mov byte [0x10024005], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000c0b2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10010e0d
add esp, 0xc
test eax, eax
je 0x1000c0b2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10009050
add esp, 0x14
push esi
call fcn.1000efe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000c0f7
push esi
call fcn.1000efe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100241fc
push 0x1001db3c
sub ecx, eax
push ecx
push eax
call fcn.10010d5a
add esp, 0x14
test eax, eax
je 0x1000c0f7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10009050
add esp, 0x14
jmp 0x1000c0f9
xor esi, esi
push 0x1001db38
push ebx
push ebp
call fcn.10010ce9
add esp, 0xc
test eax, eax
je 0x1000c119
push esi
push esi
push esi
push esi
push esi
call fcn.10009050
add esp, 0x14
push dword [edi*8 + 0x100225ec]
push ebx
push ebp
call fcn.10010ce9
add esp, 0xc
test eax, eax
je 0x1000c13b
push esi
push esi
push esi
push esi
push esi
call fcn.10009050
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10010b2c
add esp, 0xc
jmp 0x1000c183
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000c183
cmp ebp, 0xffffffff
je 0x1000c183
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100225ec]
push dword [esi]
call fcn.1000efe0
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 0x10010b2c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000c29c
xor ebx, ebx
cmp dword [0x10024704], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10010c02
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10010ce2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10010ce2
push eax
call fcn.1000c22e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10024704], eax
call esi
push eax
call fcn.1000c22e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10024708], eax
call esi
push eax
call fcn.1000c22e
mov dword [0x1002470c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000e18e
test eax, eax
pop ecx
pop ecx
je 0x10010bd0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10009050
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10010c02
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000c22e
cmp eax, ebx
pop ecx
mov dword [0x10024714], eax
je 0x10010c02
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c22e
pop ecx
mov dword [0x10024710], eax
mov eax, dword [0x10024710]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10010c87
cmp dword [0x10024714], ecx
je 0x10010c87
push eax
call fcn.1000c2a5
push dword [0x10024714]
mov esi, eax
call fcn.1000c2a5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10010c87
cmp edi, ebx
je 0x10010c87
call esi
cmp eax, ebx
je 0x10010c54
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10010c54
test byte [ebp - 0x18], 1
jne 0x10010c87
lea eax, [ebp - 0x10]
push eax
call fcn.1000e1c5
test eax, eax
pop ecx
je 0x10010c6f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10009050
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10010c7e
or dword [ebp + 0x10], 0x200000
jmp 0x10010cc2
or dword [ebp + 0x10], 0x40000
jmp 0x10010cc2
mov eax, dword [0x10024708]
cmp eax, dword [ebp - 8]
je 0x10010cc2
push eax
call fcn.1000c2a5
cmp eax, ebx
pop ecx
je 0x10010cc2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10010cc2
mov eax, dword [0x1002470c]
cmp eax, dword [ebp - 8]
je 0x10010cc2
push eax
call fcn.1000c2a5
cmp eax, ebx
pop ecx
je 0x10010cc2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10024704]
call fcn.1000c2a5
cmp eax, ebx
pop ecx
je 0x10010ce2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10010ce4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012904
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
xor esi, esi
push esi
push str.SoftwareHaaliMkxInput
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10012930
mov eax, 0x80004005
jmp 0x10012952
push str.ts.1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10012947
mov esi, 0x80004005
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x10012955
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareHaaliMkxInput
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10012985
mov eax, 0x80004005
jmp 0x100129ca
mov ecx, str.ff_47_B841F346_4835_4de8_AA5E_2E7CD2D4C435
mov eax, ecx
lea edx, [eax + 2]
push esi
mov si, word [eax]
inc eax
inc eax
cmp si, di
jne 0x10012990
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push str.ts.1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
je 0x100129bf
mov edi, 0x80004005
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cc40
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 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
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 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
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 0x41cc68
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 0x41e214
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa406d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
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 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
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 0xa406da
ret