joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ae50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48e650]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x45aee8
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45aec8
xor eax, eax
push ebp
push 0x45aec1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x45af04
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aec8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x48e650]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48e650], ax
mov esp, ebp
pop ebp
ret
Function at 0x45cf78
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x45d134
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x45cfd9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x45d150
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45d04b
xor eax, eax
push ebp
push 0x45d044
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0045cdd0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x45d02d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x45d170
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d04b
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x45d12c
cmp byte [ebp - 0xd], 0
jne 0x45d08d
cmp byte [ebp - 0x12], 0
je 0x45d12c
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x45d0a6
dec ebx
cmp byte [ebx], 0x2e
je 0x45d0b5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x45d0a5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x45d12c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x45d0e2
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x45d12c
cmp byte [ebp - 0xd], 0
je 0x45d12c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x45d12c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d520
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x45d608
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x492bac], 1
jae 0x45d5fa
xor eax, eax
mov dword [0x4927b8], eax
xor eax, eax
mov dword [0x4927c0], eax
xor eax, eax
mov dword [0x4927c4], eax
mov byte [0x4927ca], 2
mov byte [0x4927cb], 2
mov byte [0x4927cc], 3
mov word [0x492b74], 0
mov word [0x492b84], 1
mov word [0x492b94], 0xa
mov dword [0x492b9c], 0x80020004
mov dword [0x492b68], 0x45c70c
mov dword [0x492b6c], 0x45c704
mov dword [0x492b70], 0x45c70c
call fcn.0045ae20
test al, al
je 0x45d5b9
call fcn.0045ae50
call fcn.0045af14
mov eax, 0x4927d0
mov edx, 0x45d614
call fcn.004586a6
mov eax, 0x49299c
mov edx, 0x45d614
call fcn.004586a6
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4927b0], eax
call fcn.0045960c
mov dword [0x4927ac], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4927a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d60f
ret

Function at 0x463b5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x463bbe
call fcn.00463b0c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0045e5b8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0045e5b8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x463c3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4905a0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x463d16
cmp dword [0x49059c], 0
jne 0x463d16
cmp dword [0x490780], 0
je 0x463cd0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00463a0c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x463cb6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00463a0c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x463cb6
lea ebx, [ebp - 0x84]
jmp 0x463cb7
inc ebx
call fcn.00463bf8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x463d51
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4905a4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0045e5b8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4905a7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x463d51
cmp dword [0x49059c], 0
je 0x463d30
cmp dword [0x49059c], 0xffffffff
je 0x463d51
push esi
call dword [0x49059c]
pop ecx
mov eax, dword [0x4905a0]
test eax, eax
je 0x463d51
cmp dword [0x4905a0], 0xffffffff
je 0x463d51
cmp byte [eax], 0
je 0x463d51
push esi
push eax
call fcn.00463b5c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46454c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4934b0], 0
jne 0x4645cd
cmp dword [0x4934d0], 0
jne 0x46457c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4934d0], eax
test eax, eax
jne 0x46457c
push str.GetEnvironmentStrings_failed
call fcn.00463d68
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4934d0]
jmp 0x464590
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0045e5b8
pop ecx
mov edi, eax
test eax, eax
jne 0x464588
lea edi, [ebp + 1]
push edi
call fcn.0045e018
pop ecx
mov ebx, eax
mov dword [0x4934b4], ebx
test ebx, ebx
jne 0x4645ba
xor eax, eax
jmp 0x464690
push edi
mov edx, dword [0x4934d0]
push edx
push ebx
call fcn.0045e468
add esp, 0xc
jmp 0x4645ed
xor esi, esi
mov ebx, dword [0x4934b0]
jmp 0x4645e7
push eax
call fcn.0045e5b8
pop ecx
test eax, eax
jne 0x4645e3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4645d7
lea ebx, [esi + 4]
push 4
mov dword [0x4934b8], ebx
inc ebx
push ebx
call fcn.0045daf4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x464610
xor eax, eax
jmp 0x464690
cmp dword [0x4934b0], 0
jne 0x464641
xor esi, esi
mov ebx, dword [0x4934b4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x464632
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0045e5b8
pop ecx
mov edi, eax
test eax, eax
jne 0x464628
jmp 0x464672
xor esi, esi
mov ebx, dword [0x4934b0]
mov eax, dword [esp]
mov edi, eax
jmp 0x46466c
push eax
call fcn.0045e5b8
pop ecx
test eax, eax
je 0x464661
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x464665
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x464650
mov eax, dword [0x4934b0]
test eax, eax
je 0x464682
push eax
call fcn.0045e028
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4934b0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1008018
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b33c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x100b3ac], 0
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1001b30
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10080b5
push 0x1001b1c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008096
call eax
test eax, eax
jne 0x1008086
mov dword [0x100b3ac], 1
push 0x1001ad0
jmp 0x100808b
push 0x1001a88
push 0
call fcn.01008cef
pop ecx
pop ecx
jmp 0x10080ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001a08
push 2
call fcn.01008cef
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10080cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019a0
push 2
call fcn.01008cef
add esp, 0xc
xor eax, eax
cmp dword [0x100b3ac], eax
setne al
push eax
push 0x14d2
call fcn.01009227
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.010086b7
leave
ret

Function at 0x1008218
Capabilities:
Create process on windows
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x100b33c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.010081b9
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x100826b
push esi
push 0x1001d80
push 2
call fcn.01008cef
add esp, 0xc
jmp 0x10082ec
lea eax, [ebp - 0x20c]
push eax
push 0x1001d40
push 0
call fcn.01008cef
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x23c], 0x1001990
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10082ec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1001cc8
push 2
call fcn.01008cef
add esp, 0xc
call esi
test eax, eax
jle 0x10082ea
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010086b7
leave
ret 4
Function at 0x100869c
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1009328
call fcn.01008884
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100b9e4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1008453
cmp eax, esi
jne 0x1008446
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1008456
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100842d
xor esi, esi
inc esi
mov eax, dword [0x100b9e0]
cmp eax, esi
jne 0x1008469
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008498
mov eax, dword [0x100b9e0]
test eax, eax
jne 0x1008492
mov dword [0x100b9e0], esi
push 0x10012ac
push 0x10012a0
call fcn.01008392
pop ecx
pop ecx
test eax, eax
je 0x1008498
jmp 0x10085c0
mov dword [0x100b690], esi
mov eax, dword [0x100b9e0]
cmp eax, esi
jne 0x10084bc
push 0x100129c
push 0x1001294
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b9e0], 2
test ebx, ebx
jne 0x10084c8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b9e8], 0
je 0x10084ec
push 0x100b9e8
call fcn.010087f9
pop ecx
test eax, eax
je 0x10084ec
push 0
push 2
push 0
call dword [0x100b9e8]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1008548
test al, al
je 0x1008506
cmp dword [ebp - 0x1c], 0
jne 0x1008548
mov al, byte [esi]
test al, al
je 0x1008516
cmp al, 0x20
ja 0x1008516
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1008506
test byte [ebp - 0x3c], 1
je 0x1008522
movzx eax, word [ebp - 0x38]
jmp 0x1008525
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100b68c], eax
cmp dword [0x100b680], 0
jne 0x100859c
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1008557
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100856a
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10084f3
cmp dword [0x100b690], 0
jne 0x10085ab
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100b68c]
jmp 0x10085cc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010088c9
ret
call fcn.010089d1
jmp 0x10083f3
Function at 0x1008cef
Capabilities:
Create directory
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xab0
mov eax, dword [0x100b33c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1001e64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], 1
mov dword [ebp - 0xaa0], eax
jne 0x1008d25
mov esi, 0x1001e54
jmp 0x1008d30
cmp dword [ebp + 8], 2
jne 0x1008d30
mov esi, 0x1001e48
lea eax, [ebp - 0xab0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xaa4]
push esi
push eax
movzx eax, word [ebp - 0xaa6]
push eax
movzx eax, word [ebp - 0xaa8]
push eax
movzx eax, word [ebp - 0xaaa]
push eax
movzx eax, word [ebp - 0xaae]
push eax
movzx eax, word [ebp - 0xab0]
push eax
push 0x1001dd8
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.010081b9
add esp, 0x28
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov ebx, 0x1f4
push ebx
lea eax, [ebp - 0xa94]
push eax
call fcn.01008cb3
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x105
lea eax, [ebp - 0x4a4]
push eax
push 0x1001ef0
call edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
jne 0x1008e27
push 0x104
lea eax, [ebp - 0x6ac]
push eax
push 0x1001e78
call edi
push esi
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
je 0x1008ee9
push 2
push esi
push esi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1008edd
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa94]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
lea eax, [ebp - 0xa9c]
push eax
push 2
push 0x1001e70
push dword [ebp - 0xa98]
call edi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xaa0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010086b7
leave
ret
Function at 0x1008fa6
Capabilities:
Delete registry value
Find taskbar
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1008ffc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x10022f8
push 2
call fcn.01008cef
add esp, 0xc
call esi
test eax, eax
jle 0x10090c3
and eax, 0xffff
or eax, 0x80070000
jmp 0x10090c3
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002280
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x1009047
push esi
push 0x1002210
push 2
call fcn.01008cef
add esp, 0xc
cmp esi, edi
jle 0x1009043
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x10090c2
mov eax, 0x10021ec
cmp dword [ebp + 8], edi
jne 0x1009056
mov eax, 0x10021d0
push 8
lea ecx, [ebp - 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 8], edi
jne 0x10090b7
push 0x10021b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x10021b0
push 0x1002194
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x10090a1
push edi
push 1
push 0x503
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10090b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002148
push 2
call fcn.01008cef
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x10090cd
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1001458
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009117
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1002388
push dword [ebp - 4]
call esi
push 0x1002354
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x67c008], 0x8088405
inc edx
mov dword [ebx + 0x67c008], 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 0x6656d3
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 0x6656da
ret