joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ab30
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496108
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x4a93dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x47aba2
cmp dword [ebp + 0x1c], 8
jb 0x47ab89
mov eax, dword [ebp + 8]
push eax
call fcn.00480861
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0x20000000
push str.spd_Updater
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x47ac02
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00406e50
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0xbc]
call fcn.00406300
cmp dword [ebp + 0x1c], 8
jb 0x47abe9
mov edx, dword [ebp + 8]
push edx
call fcn.00480861
add esp, 4
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
mov esi, eax
call ebx
neg esi
sbb esi, esi
and esi, 0xfffffffd
cmp dword [ebp + 0x1c], 8
jb 0x47ac34
mov eax, dword [ebp + 8]
push eax
call fcn.00480861
add esp, 4
lea eax, [esi + 3]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x47c250
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov edi, 7
xor eax, eax
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47c2c3
cmp dword [ebp - 0x18], 8
jb 0x47c2bc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00480861
add esp, 4
xor eax, eax
jmp 0x47c3f9
mov dword [ebp - 0x38], esi
xor edx, edx
push edi
mov eax, str.updater
lea esi, [ebp - 0x48]
mov dword [ebp - 0x290], 0x22c
mov dword [ebp - 0x34], edi
mov word [ebp - 0x48], dx
call fcn.00401d40
mov eax, esi
push eax
mov eax, str..exe
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00478740
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004019e0
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x47c322
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00480861
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0x47c347
mov eax, dword [ebp - 0x48]
push eax
call fcn.00480861
add esp, 4
lea ecx, [ebp - 0x290]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47c3bc
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47c371
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x26c]
push edx
call fcn.0048178a
add esp, 8
test eax, eax
je 0x47c395
lea eax, [ebp - 0x290]
push eax
push ebx
call esi
test eax, eax
jne 0x47c365
jmp 0x47c3de
mov ecx, dword [ebp - 0x288]
push ecx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47c3bc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x47c3c8
mov dword [ebp - 0x294], 2
jmp 0x47c3de
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov dword [ebp - 0x294], 0
push ebx
call edi
cmp dword [ebp - 0x18], 8
jb 0x47c3f3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480861
add esp, 4
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048036c
mov esp, ebp
pop ebp
ret
Function at 0x48036c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a93dc]
jne 0x480376
repz ret
jmp fcn.00485efa

Function at 0x48e5c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004857d7
and dword [ebp - 0x14], 0
cmp dword [0x4ac5e8], 0
mov dword [ebp - 0x18], eax
jne 0x48e678
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48e720
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48e720
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ac5e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ac5ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ac5f0], eax
call edi
push eax
call esi
mov dword [0x4ac5f8], eax
test eax, eax
je 0x48e678
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ac5f4], eax
mov eax, dword [0x4ac5f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48e6d1
cmp dword [0x4ac5f8], ecx
je 0x48e6d1
push eax
call esi
push dword [0x4ac5f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48e6d1
test ebx, ebx
je 0x48e6d1
call edi
test eax, eax
je 0x48e6c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48e6c8
test byte [ebp - 8], 1
jne 0x48e6d1
or dword [ebp + 0x10], 0x200000
jmp 0x48e704
mov eax, dword [0x4ac5ec]
cmp eax, dword [ebp - 0x18]
je 0x48e704
push eax
call esi
test eax, eax
je 0x48e704
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48e704
mov eax, dword [0x4ac5f0]
cmp eax, dword [ebp - 0x18]
je 0x48e704
push eax
call esi
test eax, eax
je 0x48e704
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ac5e8]
call esi
test eax, eax
je 0x48e720
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48e722
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048036c
leave
ret
Function at 0x4010ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459004]
jne 0x4010f8
repz ret
jmp fcn.00401486

Function at 0x408521
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403a20
and dword [ebp - 0x14], 0
cmp dword [0x45bc94], 0
mov dword [ebp - 0x18], eax
jne 0x4085d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40867c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40867c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45bc94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45bc98], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45bc9c], eax
call edi
push eax
call esi
mov dword [0x45bca4], eax
test eax, eax
je 0x4085d4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45bca0], eax
mov eax, dword [0x45bca0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40862d
cmp dword [0x45bca4], ecx
je 0x40862d
push eax
call esi
push dword [0x45bca4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40862d
test ebx, ebx
je 0x40862d
call edi
test eax, eax
je 0x408624
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408624
test byte [ebp - 8], 1
jne 0x40862d
or dword [ebp + 0x10], 0x200000
jmp 0x408660
mov eax, dword [0x45bc98]
cmp eax, dword [ebp - 0x18]
je 0x408660
push eax
call esi
test eax, eax
je 0x408660
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408660
mov eax, dword [0x45bc9c]
cmp eax, dword [ebp - 0x18]
je 0x408660
push eax
call esi
test eax, eax
je 0x408660
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45bc94]
call esi
test eax, eax
je 0x40867c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40867e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010ee
leave
ret
Function at 0x44dc60
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x459004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x459dd0]
push ebx
mov ebx, dword [0x2bff24c]
push edi
mov edi, dword [0x2c016cc]
call fcn.0044dbe0
cmp dword [0x2c016cc], 0x2f
jne 0x44dccd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0044dc10
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010ee
add esp, 0x24
ret

Function at 0x44dcf0
Capabilities:
Create directory
Get common file path
Get hostname
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8e4
mov eax, dword [0x459004]
xor eax, esp
mov dword [esp + 0x8e0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
jmp 0x44dd20
call edi
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp esi, 0x176afc
jg 0x44dd43
inc esi
cmp esi, 0x365ea5f8
jl 0x44dd20
jmp 0x44dd56
cmp dword [0x2c016cc], 0xa
jne 0x44dd56
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx

Function at 0x44df30
Capabilities:
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x44df48
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x44df91
mov dword [0x2c01334], 0x8e46a6f0
cmp dword [0x2c016cc], 0x3dc
jne 0x44df8f
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x44df3f
mov dword [ebp - 0x10], 0
jmp 0x44dfa3
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x44e046
cmp dword [0x2c016cc], 0xa5f
jne 0x44dfcc
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x10], 0x84620b
jne 0x44dff1
mov eax, dword [0x45abf0]
mov dword [0x2c016cc], eax
mov ecx, dword [0x2c016cc]
add ecx, 0xa231
mov dword [0x2c016cc], ecx
cmp dword [0x2c016cc], 0x141
jne 0x44e041
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov dword [0x45c1b8], 0xec58acac
mov dword [0x45c1bc], 0xffffffff
jmp 0x44df9a
call fcn.0044dcf0
jmp dword [0x2bff24c]
Function at 0x40f22e
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2cb
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2cb
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2cb
push 4
push 0xffffffffffffffff
push esi
push 0x40f9e5
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2cb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f296
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2cb
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f2d1
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2cd

Function at 0x413ca1
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413cb1
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x413cb7
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413cdf
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x438830]
test ax, ax
jne 0x413cc6
mov esi, ecx
jmp 0x413ce2
movzx esi, si
pop edi
cmp cx, si
je 0x413cff
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438830]
test cx, cx
jne 0x413ce3
mov eax, 0x437338
jmp 0x413d07
imul eax, edx, 0x1a
add eax, 0x438832
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x414d5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x414d6e
pop dword [ebp - 0x24]
mov eax, 0x414d6e
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3fefb
push 0
mov eax, 0x54cf9f53
sub eax, 0x548cdc57
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xd096c562
add ecx, 0x2f6976ca
mov edi, eax
mov ebx, 0x3f10550b
sub ebx, 0x3ecbcd0b
add ebx, dword [ebp - 0x24]
mov edx, 0xe0251945
xor dword [ebp - 0x1c], 0x29130932
mov esi, dword [ebx]
add dword [ebp - 0x18], 0x5c18e321
sub esi, edx
add dword [ebp - 8], 0x643fdaf6
mov dword [edi], esi
sub dword [ebp - 0x10], ecx
add edi, 0x8b4b89c8
sub edi, 0x8b4b89c4
add ebx, 0x5a5223cb
add ebx, 0xa5addc39
loop 0x414dc2
add eax, 0x55ca1aff
add eax, 0xaa36c884
xor ebx, ebx
add ebx, eax
add eax, 0x6d296dab
add eax, 0x92d6925a
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x415c0f
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call main
lea ecx, [ebp - 0x30]
call fcn.0040eff2
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
mov eax, ecx
mov dword [ebp - 4], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_TransactNamedPipe]
test eax, eax
je 0x415cd2
cmp dword [ebp - 0x30], 2
jne 0x415cd2
cmp dword [ebp - 0x2c], esi
je 0x415cd2
cmp dword [ebp - 0x10], esi
je 0x415cd2
cmp dword [ebp - 0xc], esi
je 0x415cd2
cmp dword [ebp - 8], esi
je 0x415cd2
lea ecx, [ebp - 0x5c]
call fcn.0040eff2
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x415cd2
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x415cd4
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x5808483e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x62d874e4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x16f0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x16f01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x16f007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16f006a
add dl, dl
jne 0x16f0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16f00dc
xor eax, eax
add dl, dl
jne 0x16f0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16f017d
add dl, dl
jne 0x16f00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x16f00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x16f0075
mov eax, 1
add dl, dl
jne 0x16f00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16f00e1
sub eax, ebx
mov ebx, 1
jne 0x16f0128
mov ecx, 1
add dl, dl
jne 0x16f010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16f0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16f0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16f0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16f013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16f014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16f0136
cmp eax, 0x7d00
jae 0x16f016d
cmp eax, 0x500
jb 0x16f0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16f0075
cmp eax, 0x7f
ja 0x16f0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16f0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x16f019e
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 0x16f0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x81f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x81f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x848074
push ecx
mov edi, eax
call fcn.00833198
mov esi, eax
add esp, 8
test esi, esi
jne 0x81f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0083302e
push esi
call fcn.00832fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret