joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ac2c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5ac2cc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.005ac2e0

Function at 0x1528415
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp di, 0x70b6
call fcn.015244e0
test dx, bx
pushfd
stc
or eax, eax
pushfd
call int.027aa028

Function at 0x152842c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov byte [esp + 8], 0xcd
lea esp, [esp + 0x20]
je fcn.0151bded
xadd si, dx
setg dh
ror dh, 3
mov esi, dword [eax + 0x3c]
inc dl
btr dx, 0xa
add esi, eax
rcl dl, 1
neg dh
rcr dx, 8
sal dl, cl
mov edx, dword [esi + 0x78]
jmp 0x15287ba
sbb al, 0x2c
aas
mov ah, 0x8f
bsr ax, bx
push ebp
shld bp, dx, 7
bt sp, si
movsx ebp, cl
mov al, 0x66
mov ebp, esp
dec ah
btr ax, 1
stc
push ecx
sub esp, 0x14
bsr ax, cx
push esi
rcr al, 5
sub ax, 0xb5d3
setl ah
push edi
not ah
clc
not ah
push ebx
daa
call fcn.02541464
aaa
das
add ah, 0x8c
jno 0x1524c44
push ebp
sub bp, bx
aaa
adc bp, bp
pushfd
lea ebp, [esp + 4]
bsr eax, ebp
shl al, 4
rcr ah, cl
sub esp, 0x14
not ax
and ax, 0x9fd3
pushal
mov dword [esp + 0x1c], esi
rcr ah, 4
daa
mov dword [esp + 0x18], edi
cwde
shr ah, 2
bswap ax
adc ax, 0x301a
mov dword [esp + 0x14], ebx
ror ax, 1
mov dword [esp + 0x10], edx
movzx eax, al
bts ax, 4
adc ax, 0x82e6
mov eax, dword [ebp + 8]
bt sp, cx
test eax, eax
pushfd
lea esp, [esp + 0x14]
jae 0x151ff7c
je fcn.0151bded
dec si
mov esi, dword [eax + 0x3c]
xor dx, bp
rcl dh, 1
add esi, eax
bswap dx
rol edx, cl
jmp 0x27b028d
stc
test edx, edx
pushfd
pushal
jmp 0x25439c6
jmp fcn.027aeeb3
mov edx, dword [esi + 0x78]
cmc
call fcn.01527709
daa
mov cl, 0xcd
retf 0x5805

Function at 0x2540432
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp + 4], 0x68
pushfd
lea esp, [esp + 0xc]
jae 0x151bdf4
test bp, sp
sbb di, 0xc339
mov ebx, eax
stc
sub edi, 0xc11003ed
call fcn.0151b287
daa
push edx
pop ebx
add edi, dword [edi - 0x66]
fcmovu st(0), st(6)
cdq
sti
fst qword [ecx]
cmpsb byte [esi], byte es:[edi]
bound eax, qword [esi + edx*8]
xor bh, bh
fdiv dword [0x2d502603]
sti
jne 0x25404ca
out dx, eax
test eax, 0x7797b382
rcr byte [ecx + 0x4d], 1
insb byte es:[edi], dx
movsd dword es:[edi], dword [esi]
adc eax, 0xc0902648
push es
sub eax, 0x2514aa4f
invalid
push ecx
add byte [ecx + 0x29716608], bh
mov dword [0xb00c0a74], eax
add bh, ah
dec esp
pushfd
or ebx, dword [ebp + 0x1f]
call [eax + 0x40]
add eax, 0x1d0a5ba2
punpckhbw mm1, mm7
out 0x30, eax
dec esi
leave
xchg bh, dh
and byte [ebx + 0x1221d4a], 0x6b
pop edi
fsubr dword [eax]
mov byte [0x8a51f827], al
mov esi, 0x3a8f9c39
mov dl, 0x3a
out dx, eax
fidivr word [0x2e2af09]
sbb edi, dword gs:[ebp + 0x64f54eff]
ret
Function at 0x401080
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
push eax
lea eax, [esp + 0x18]
push str.CPTemp_05d.sys
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
add esp, 0xc
and edx, 0xffff
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4010eb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x401109
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [ebx + 0x10a]
mov dword [esp + 0x10], eax
push esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
test edi, edi
jne 0x40115b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret 0x10
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll__hwrite]
cmp eax, 0xffffffff
jne 0x40117c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
push eax
push esi
mov ecx, ebx
mov byte [ebx + 8], 1
call fcn.00401220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x10

Function at 0x401320
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, dword [ecx]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x401331
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 8]
mov esi, eax
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret 4
Function at 0x401390
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push 0xf01ff
push edi
mov ebp, ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4013d0
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401405
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 0xc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov byte [ebp + 9], 1
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x401840
Capabilities:
Accept command line arguments

Disassembly:
push edi
push 0x404228
push str.CIoMngr.out
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [0x4043e0], eax
test eax, eax
jne 0x401878
push str.Error_to_create_file___Aborted___n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
call dword [sym.imp.MSVCRT.dll__getch]
mov eax, 3
pop edi
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x4018b7
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MF_C_initialization_failed
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 4
pop edi
ret
mov edi, dword [esp + 8]
cmp edi, 1
jne 0x4018dc
call fcn.00401990
mov ecx, dword [0x4043e0]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 2
pop edi
ret
call fcn.004017f0
test al, al
jne 0x4018fc
mov edx, dword [0x4043e0]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
ret
call fcn.00401cb0
test al, al
jne 0x40191b
mov eax, dword [0x4043e0]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
ret
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
push esi
mov esi, dword [esp + 0x14]
push str.ECCMD
mov ecx, dword [esi + 4]
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40194d
add esi, 8
add edi, 0xfffffffe
push esi
push edi
call fcn.00401b10
add esp, 8
mov bl, al
jmp 0x401974
mov edx, dword [esi + 4]
push str.CHKUMA
push edx
call ebx
add esp, 8
test eax, eax
jne 0x40196d
push esi
push edi
call fcn.004019c0
add esp, 8
mov bl, al
jmp 0x401974
call fcn.00401990
mov bl, 2
mov eax, dword [0x4043e0]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
movsx eax, bl
pop esi
pop ebx
pop edi
ret
Function at 0x401ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403128
push 0x401ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4046dc], 0xffffffff
or dword [0x4046e0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4046d4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4046d0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4046d8], eax
call fcn.00401ff7
cmp dword [0x4043d0], 0
jne 0x401f43
push 0x401ff4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401fe2
push 0x40401c
push 0x404018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4046cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4046c8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401840
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401050
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x400
mov ecx, 0x80
xor eax, eax
push edi
lea edi, [esp + 0x204]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x204]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401093
pop edi
add esp, 0x400
ret
cmp eax, 0x200
jbe 0x4010a4
xor eax, eax
pop edi
add esp, 0x400
ret
lea ecx, [esp + 4]
push 0x200
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4010c0
pop edi
add esp, 0x400
ret
cmp eax, 0x200
jbe 0x4010d1
xor eax, eax
pop edi
add esp, 0x400
ret
or ecx, 0xffffffff
mov edi, 0x408048
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0x80
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x414]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408040
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x210]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb eax, eax
pop esi
pop ebx
pop edi
neg eax
add esp, 0x400
ret

Function at 0x401190
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x200
mov ecx, 0x80
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20c]
lea eax, [esp + 8]
push edi
push 0x40804c
push eax
call fcn.00401920
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40121a
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40120e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x200
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
add esp, 0x200
ret
Function at 0x4012d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
push 1
push 0
push 0x4080a4
push 0x80000002
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401384
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0x408094
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401384
mov eax, dword [esp + 0x10]
cmp eax, 0x200
ja 0x401384
test eax, eax
je 0x401384
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 7
jne 0x401384
mov al, byte [esp + 0x18]
xor bl, bl
test al, al
lea esi, [esp + 0x18]
je 0x401384
push 0x408088
push esi
call fcn.00401980
add esp, 8
test eax, eax
je 0x401390
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc bl
cmp bl, 0xa
lea esi, [esi + ecx + 1]
ja 0x401384
cmp byte [esi], 0
jne 0x401356
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret

Function at 0x4013a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push 0x4080f4
push edx
call fcn.00401920
add esp, 0xc
lea eax, [esp + 0x104]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4013fe
xor eax, eax
add esp, 0x208
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret
Function at 0x401420
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x418
push esi
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x220]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0x200
push eax
push 0xf003f
push esi
push 0x4080a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015b2
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push esi
push 0x408094
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015b2
mov eax, dword [esp + 0x18]
cmp eax, 0x200
ja 0x4015b2
cmp eax, esi
je 0x4015b2
mov al, byte [esp + 0x20]
push ebx
push ebp
mov dword [esp + 0x18], esi
test al, al
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], esi
lea ebp, [esp + 0x28]
lea ebx, [esp + 0x228]
je 0x401598
push 0x408088
push ebp
call fcn.00401980
add esp, 8
test eax, eax
jne 0x4014e6
mov dword [esp + 0x18], 1
jmp 0x401533
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
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, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
lea ebx, [ebx + ecx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
lea ecx, [eax + ecx + 1]
mov al, byte [esp + 0x13]
inc al
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x13], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov al, byte [esp + 0x13]
not ecx
dec ecx
cmp al, 0xa
lea ebp, [ecx + ebp + 1]
ja 0x401555
cmp byte [ebp], 0
jne 0x4014ca
cmp dword [esp + 0x18], 1
jne 0x401598
mov al, byte [esp + 0x13]
test al, al
je 0x401588
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc edx
lea eax, [esp + 0x228]
push edx
push eax
push 7
push 0
push 0x408094
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401598
mov edx, dword [esp + 0x14]
push 0x408094
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x418
ret
pop edi
xor eax, eax
pop esi
add esp, 0x418
ret
Function at 0x4015c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
mov ecx, 0x80
xor eax, eax
push esi
push edi
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0x10]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x12]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x234]
push 0x408158
push ecx
call fcn.00401920
add esp, 0x20
lea edx, [esp + 0x21c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016f2
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x1c]
mov edx, 0x408154
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x428]
mov eax, 1
cmp ecx, eax
je 0x40168a
mov edx, 0x408150
mov ecx, dword [esp + 0x424]
cmp ecx, eax
mov ecx, 0x408154
je 0x40169f
mov ecx, 0x408150
mov edi, dword [esp + 0x420]
cmp edi, eax
mov eax, 0x408154
je 0x4016b4
mov eax, 0x408150
push edx
push ecx
push eax
lea eax, [esp + 0x28]
push 0x40810c
push eax
call fcn.00401920
add esp, 0x14
lea ecx, [esp + 0x18]
lea edi, [esp + 0x1c]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x414
ret
Function at 0x401740
Capabilities:
Create thread

Disassembly:
sub esp, 0x48
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x50]
push eax
push 0
push esi
push 0x401870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x50], eax
je 0x401867
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowA]
push edi
xor edi, edi
mov ecx, dword [esi]
push ecx
push 0
call ebp
mov ebx, eax
test ebx, ebx
jne 0x401794
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jl 0x401776
mov edx, dword [esi + 8]
test edx, edx
je 0x40184c
test ebx, ebx
je 0x40184c
test edx, edx
mov dword [esp + 0x10], 0
jle 0x401859
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edx, edi
push edx
mov edx, dword [esi]
push edx
push 0x4081c8
push eax
call fcn.00401920
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [esp + 0x5c]
push 0x3e8
push edx
call ebp
cmp eax, 0x102
jne 0x401859
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
jne 0x40182d
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x5c]
push 0x2710
push ecx
call ebp
mov dword [esi + 0xc], 1
mov edx, dword [esi + 8]
inc edi
cmp edi, edx
mov dword [esp + 0x10], edi
jl 0x4017bd
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x48
ret
mov edx, dword [esp + 0x5c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x48
ret

Function at 0x4018a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4018bf
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push 0x4081d8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401909
xor eax, eax
add esp, 0x14
ret
push 0x80020000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41c6d0
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 0x41c701
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c6e9
add dl, dl
jne 0x41c70c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c75d
xor eax, eax
add dl, dl
jne 0x41c719
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c7fa
add dl, dl
jne 0x41c728
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c749
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c753
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c6f8
mov eax, 1
add dl, dl
jne 0x41c76b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c776
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c762
sub eax, ebx
mov ebx, 1
jne 0x41c7a9
mov ecx, 1
add dl, dl
jne 0x41c78f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c79a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c786
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c6f8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c7c0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c7cb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c7b7
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 0x41c6f8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c81b
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 0x41c6f8
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