joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029f0
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040d730
mov eax, dword [0x48a5fc]
mov ecx, dword [0x48a08c]
shr eax, 3
test eax, eax
jbe 0x402b0c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x48a5fc], 0x959
jne 0x402af2
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004027f0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x402a30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4072fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b580]
jne 0x407306
repz ret
jmp fcn.00409d38

Function at 0x408bd5
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.00406a26
and dword [ebp - 4], 0
cmp dword [0x4812d8], 0
mov ebx, eax
jne 0x408c86
push 0x401a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a70
push edi
call esi
test eax, eax
je 0x408d37
push eax
call fcn.004069b4
mov dword [esp], 0x401a60
push edi
mov dword [0x4812d8], eax
call esi
push eax
call fcn.004069b4
mov dword [esp], 0x401a4c
push edi
mov dword [0x4812dc], eax
call esi
push eax
call fcn.004069b4
mov dword [esp], 0x401a30
push edi
mov dword [0x4812e0], eax
call esi
push eax
call fcn.004069b4
pop ecx
mov dword [0x4812e8], eax
test eax, eax
je 0x408c86
push 0x401a18
push edi
call esi
push eax
call fcn.004069b4
pop ecx
mov dword [0x4812e4], eax
mov eax, dword [0x4812e4]
cmp eax, ebx
je 0x408cde
cmp dword [0x4812e8], ebx
je 0x408cde
push eax
call fcn.00406a2f
push dword [0x4812e8]
mov esi, eax
call fcn.00406a2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408cde
test edi, edi
je 0x408cde
call esi
test eax, eax
je 0x408cd5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408cd5
test byte [ebp - 0xc], 1
jne 0x408cde
or dword [ebp + 0x10], 0x200000
jmp 0x408d17
mov eax, dword [0x4812dc]
cmp eax, ebx
je 0x408d17
push eax
call fcn.00406a2f
pop ecx
test eax, eax
je 0x408d17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408d17
mov eax, dword [0x4812e0]
cmp eax, ebx
je 0x408d17
push eax
call fcn.00406a2f
pop ecx
test eax, eax
je 0x408d17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4812d8]
call fcn.00406a2f
pop ecx
test eax, eax
je 0x408d37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x94
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareAnalog_DevicesAEAPOCtrl
push 0x80000002
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402476
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push str.EC00D1CA_5E56_4704_8414_F195C32B9524
mov edi, 0x44
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40239c
cmp dword [esp + 0xc], edi
jne 0x40239c
cmp dword [esp + 0x18], 0xaeaeaeae
jne 0x40239c
test dword [esp + 0x30], 0xffffffe0
jne 0x40239c
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402475
push 0
mov ecx, 0x11
mov esi, ebx
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
mov ecx, 0x11
lea esi, [esp + 0x20]
mov edi, ebx
push 0xffffffffffffffff
rep movsd dword es:[edi], dword [esi]
push str.LoadFiltersInfo_successful
mov ecx, ebx
call fcn.00402070
cmp dword [esp + 0xa4], 0
je 0x402475
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x402475
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x60]
je 0x402407
mov edx, dword [ebx + 0x78]
push edx
push ecx
push 0
call eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x64]
je 0x40241d
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 1
call edx
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x68]
je 0x402433
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 2
call edx
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x6c]
je 0x402449
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 3
call edx
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x70]
je 0x40245f
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 4
call edx
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x78]
je 0x402475
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 5
call edx
pop edi
pop esi
pop ebx
add esp, 0x94
ret 4
Function at 0x402490
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x46974c]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Start_WriteService
mov ebp, ecx
mov dword [esp + 0x20], 0
call fcn.00402070
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeAEADIAPOProperties
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402539
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_open_pipe:
mov ecx, ebp
call fcn.00402070
mov ecx, ebp
call fcn.00402010
test eax, eax
je 0x402597
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeAEADIAPOProperties
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402597
test ebx, ebx
je 0x402597
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], 0xae0ae0ae
mov dword [esp + 0x24], 1
mov ecx, 0x11
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x88
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40257c
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x402597
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.WriteService_successful
jmp 0x4025a2
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.WriteService_failed
mov ecx, ebp
call fcn.00402070
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00432688
add esp, 0x94
ret 4
Function at 0x402690
Capabilities:
Create thread
Query or enumerate registry value
Resume thread

Disassembly:
sub esp, 0x210
mov eax, dword [0x46974c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push str.SoftwareAndrea_ElectronicsAEAudioAPO
lea edi, [esi + 0x50]
push 0x80000002
mov dword [esi + 0x44], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x5c], 1
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x402717
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Logging
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40270c
mov dword [edi], ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi], ebx
je 0x402795
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x402795
push 0x100
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402795
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x40275e
mov ecx, 0x5c
nop
cmp word [esp + eax*2 + 0x18], cx
je 0x40275e
sub eax, 1
cmp eax, ebx
jg 0x402750
lea ecx, [esp + eax*2 + 0x18]
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x402765
push ebx
push 0x44dcac
push 0x14
sub ecx, edi
sar ecx, 1
lea edx, [esi + 0x60]
push edx
add ecx, 1
push ecx
lea eax, [esp + eax*2 + 0x2e]
push eax
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x44
push ebx
push esi
call fcn.004327f0
add esp, 0xc
push ebx
mov ecx, esi
call fcn.00402320
cmp dword [esp + 0x220], ebx
je 0x4027f9
push ebx
push 4
push esi
push 0x4025d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x4027d2
mov dword [esi + 0x5c], 1
jmp 0x4027f9
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push edi
mov dword [esi + 0x74], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00432688
add esp, 0x210
ret 4
Function at 0x402820
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, ecx
push edi
mov dword [ebp], 0xaeaeaeae
cmp dword [ebx + 0x54], 0
mov ecx, 0x11
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x40285a
push ebp
mov ecx, ebx
call fcn.00402490
test eax, eax
je 0x40285a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push esi
push 2
push esi
push esi
push esi
push str.SoftwareAnalog_DevicesAEAPOCtrl
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4028c5
mov ecx, dword [esp + 0x14]
push 0x44
push ebp
push 3
push eax
push str.EC00D1CA_5E56_4704_8414_F195C32B9524
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40289b
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4028c5
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.WriteRegistry_successful
mov ecx, ebx
call fcn.00402070
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.WriteRegistry_failed
mov ecx, ebx
call fcn.00402070
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x402ad0
Capabilities:
Inspect load icon resource

Disassembly:
push esi
mov esi, ecx
call fcn.0042a47d
call fcn.0042a47d
mov eax, dword [eax + 0xc]
push 0xd0
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x54], 0
call fcn.00402940
mov eax, dword [esp + 8]
test eax, eax
jne 0x402b0b
pop esi
ret 4
or dword [esi + 0x3c], 0x10
push 0
push eax
mov eax, dword [esi + 0x20]
push 0x2275
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
test eax, eax
je 0x402b40
test byte [esi + 0x3c], 8
jne 0x402b40
push 0
mov ecx, esi
call fcn.00425525
mov eax, dword [esi + 0x54]
pop esi
ret 4
Function at 0x403260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448158
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esi], vtable.CAEBitmap.0
call fcn.00402e20
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x20

Function at 0x403980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448238
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esi], vtable.CAEBitmap.0
call fcn.004032f0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x18

Function at 0x403bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403bc9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403c04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403c00
lea ebx, [ebx]
cmp esi, eax
jae 0x403c04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403bf0
cmp esi, eax
jb 0x403c0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4055b0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor cx, cx
cmp cx, word [esp]
sbb eax, eax
neg eax
add esp, 0x24
ret
Function at 0x405750
Capabilities:
Check os version

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 7
lea ebx, [esi + 0x128]
xor ebp, ebp
push str.Unknown
mov ecx, ebx
mov dword [esi + 8], ebp
call fcn.004014d0
push 0x11c
lea edi, [esi + 0xc]
push ebp
push edi
mov dword [esi + 4], ebp
call fcn.004327f0
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
push edi
mov dword [edi], 0x11c
call ebp
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4057a5
push edi
mov dword [edi], 0x114
call ebp
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
and ecx, 0xffff
sub eax, 0
mov dword [esi + 4], ecx
je 0x405950
sub eax, 1
je 0x4058cf
sub eax, 1
je 0x4057dc
push str.Undetermined
mov ecx, ebx
call fcn.00401780
jmp 0x405963
mov eax, dword [esi + 0x10]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4057e7
jmp dword [eax*4 + 0x4059c8]
push str.WinNT_3.51
mov ecx, ebx
call fcn.00401780
mov dword [esi + 8], 1
jmp 0x405963
push str.WinNT4
mov ecx, ebx
call fcn.00401780
mov dword [esi + 8], 2
jmp 0x405963
mov eax, dword [esi + 0x14]
sub eax, 0
mov ecx, ebx
je 0x405883
sub eax, 1
je 0x40583c
push str.Undetermined
call fcn.00401780
jmp 0x405963
push str.WinXP
call fcn.00401780
cmp dword [esp + 0x10], 0
mov dword [esi + 8], 4
je 0x405963
test word [esi + 0x124], 0x200
mov ecx, ebx
je 0x405874
push str._Home_Edition
call fcn.00405710
jmp 0x405963
push str._Professional
call fcn.00405710
jmp 0x405963
push str.Win2000
call fcn.00401780
mov dword [esi + 8], 3
jmp 0x405963
mov eax, dword [esi + 0x14]
sub eax, 1
mov ecx, ebx
je 0x4058b9
push str.Windows__Vista
call fcn.00401780
mov dword [esi + 8], 0xa
jmp 0x405963
push str.Windows_7
call fcn.00401780
mov dword [esi + 8], 0xb
jmp 0x405963
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40593b
cmp eax, 0xa
je 0x405901
cmp eax, 0x5a
mov ecx, ebx
je 0x4058ee
push str.Undetermined
call fcn.00401780
jmp 0x405963
push str.WinME
call fcn.00401780
mov dword [esi + 8], 8
jmp 0x405963
cmp ecx, 0x7ce
jne 0x40591e
push str.Win98
mov ecx, ebx
call fcn.00401780
mov dword [esi + 8], 6
jmp 0x405963
cmp ecx, 0x8ae
jb 0x405963
push str.Win98SE
mov ecx, ebx
call fcn.00401780
mov dword [esi + 8], 7
jmp 0x405963
push str.Win95
mov ecx, ebx
call fcn.00401780
mov dword [esi + 8], 5
jmp 0x405963
push 0x44e440
mov ecx, ebx
call fcn.00401780
mov dword [esi + 8], 9
cmp word [esi + 0x20], 0
lea edi, [esi + 0x20]
je 0x4059a8
push 1
push 0x44e43c
mov ecx, ebx
call fcn.00405640
test edi, edi
jne 0x405983
xor eax, eax
jmp 0x40599f
mov eax, edi
lea edx, [eax + 2]
jmp 0x405990
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405990
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebx
call fcn.00405640
mov ecx, esi
call fcn.004055b0
mov ecx, esi
mov dword [esi + 0x12c], eax
call fcn.004055d0
pop edi
mov dword [esi + 0x130], eax
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405aa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ecx + 0x14]
cmp ebx, edi
jne 0x405ab4
pop edi
xor eax, eax
pop ebx
ret 0xc
mov edx, dword [ecx + 0x10]
mov eax, edx
imul edx, edi
imul eax, ebx
push esi
mov esi, dword [esp + 0x14]
add eax, esi
cmp eax, edx
jl 0x405ad2
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
mov edx, dword [ecx + 0x24]
lea edi, [edx + eax*4]
mov eax, dword [esp + 0x18]
cmp esi, eax
push ebp
mov edx, esi
jge 0x405af4
mov ebp, dword [ecx + 0x28]
cmp ebp, dword [edi]
jne 0x405b2d
add edx, 1
add edi, 4
cmp edx, eax
jl 0x405ae6
mov edx, dword [ecx + 0x10]
imul edx, ebx
add edx, esi
cmp esi, eax
jge 0x405b21
add edx, edx
add edx, edx
sub eax, esi
mov esi, eax
jmp 0x405b10
mov eax, dword [ecx + 0x24]
xor dword [eax + edx], 1
add eax, edx
add edx, 4
sub esi, 1
jne 0x405b10
pop ebp
pop esi
pop edi
mov eax, 1
pop ebx
ret 0xc
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc

Function at 0x405c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448498
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46974c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], vtable.CRgn.0
mov dword [esp + 0x1c], eax
call fcn.00405c20
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, dword [esi + 0x2c]
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call fcn.0042ad75
test eax, eax
jne 0x405cff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
call fcn.0042adc8
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push ecx
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_OffsetRgn]
test eax, eax
je 0x405cd2
mov ecx, dword [esp + 0x10]
mov esi, dword [esi + 4]
push 3
push ecx
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
je 0x405ce6
call fcn.0042adc8
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x406710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4484f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46974c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0042a47d
mov edi, dword [eax + 8]
call fcn.0042a47d
test edi, edi
mov esi, dword [eax + 0xc]
je 0x40683d
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 4
and ecx, 0xf
add eax, 1
mov edi, ecx
mov ecx, dword [ebp + 8]
push ecx
movzx edx, ax
push edx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40683d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40683d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40683d
test edi, edi
jle 0x4067af
mov eax, edi
sub eax, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4067a3
movzx ebx, word [esi]
add esi, 2
test ebx, ebx
jle 0x40683d
xor ecx, ecx
lea edi, [ebx + 1]
mov eax, edi
mov edx, 2
mul edx
seto cl
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.00422d87
add esp, 4
push ebx
mov edi, eax
push esi
lea eax, [ebx + 1]
push eax
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00433156
mov ecx, dword [ebp + 0x10]
add esp, 0x10
push edi
mov word [edi + ebx*2], 0
call fcn.00401780
test edi, edi
je 0x406816
push edi
call fcn.00422d82
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 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408a10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x46974c]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push str..pipeAEADIAPOProperties
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408a87
mov eax, dword [esp + 0x9c]
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x88
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], 0xae0ae0ae
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408a80
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00432688
add esp, 0x90
ret 4

Function at 0x408ac0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push esi
push ebx
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x408b29
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push esi
push eax
call edi
test eax, eax
jne 0x408b29
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc