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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 0xc]
shr eax, 0x1c
and al, 1
cmp al, cl
setne bl
mov byte [ebp - 0x31], bl
test cl, cl
je 0x4092bd
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
call ebx
push 2
mov dword [ebp - 0x3c], eax
call ebx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x40], eax
cmp edi, ecx
jne 0x40925a
mov dword [ebp - 0x38], 0
jmp 0x409263
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x38], eax
cmp edi, ecx
jne 0x40926f
mov esi, dword [esi + 0x90]
jmp 0x409275
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
sub ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x3c]
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, ebx
cmp byte [ebp + 0x10], 0
je 0x409291
sub esi, dword [ebp - 0x40]
push 0x44
sub eax, ebx
push eax
mov eax, dword [ebp - 0x38]
sub esi, eax
push esi
push ebx
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [ebp - 0x31]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 0xc
test al, al
je 0x409307
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1c
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 2
movdqu xmmword [ebp - 0x28], xmm0
push edi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 0
push edi
mov ecx, esi
call fcn.00406da0
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 8]
shr eax, 0x1c
and al, 1
cmp al, cl
setne bl
test cl, cl
je 0x4093b1
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp byte [ebp + 0xc], 0
je 0x409389
sub eax, dword [ebp - 0x34]
push 0x44
push eax
sub ecx, edx
push ecx
push 0
push edx
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 8
test al, al
je 0x4093fe
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1c
push eax
push 2
push dword [edi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 0
mov ecx, edi
call fcn.00409960
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 8
Function at 0x40b450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b4c0
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x496e3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40b4c0
cmp dword [ebp - 8], 0
je 0x40b4c0
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40b570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x496eb8
xor esi, esi
mov dword [ebp - 0x214], 0x208
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40b610
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x496f14
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b604
lea eax, [ebp - 0x20c]
push eax
push 0x496f2c
call fcn.0046f3d3
add esp, 8
mov ecx, 1
test eax, eax
cmove esi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret

Function at 0x40b630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x496f40
xor esi, esi
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40b6a2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x496fc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b699
cmp dword [ebp - 8], 4
jne 0x40b699
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b9f0
Capabilities:
Terminate process

Disassembly:
push dword [0x4bc0c4]
push 0x496ff4
call fcn.00470799
push 0x497000
call fcn.00470799
push 0x497098
call fcn.00470799
add esp, 0x10
push 1
call fcn.00470548
int3
Function at 0x40c660
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40c790
push 0x2c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00470180
add esp, 0xc
mov dword [ebp - 0xa0], 0x30
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x98], 0x40c470
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x80], 0x10
mov dword [ebp - 0x78], 0x497154
mov dword [ebp - 0x7c], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x70]
mov dword [ebx + 4], eax
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x70]
mov byte [ebp - 0x5b], 1
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push esi
lea ecx, [ebx + 0x10]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
mov byte [ebx], 0
call fcn.00402120
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x14]
push 2
push eax
push edi
call esi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push edi
call esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push 0x50000000
push 0x490c20
push 0x497154
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 8

Function at 0x40c7b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
call dword [sym.imp.ole32.dll_CreateBindCtx]
mov edi, dword [ebp + 0xc]
mov esi, eax
test esi, esi
js 0x40c81b
push 0x497114
push 0x497130
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c806
mov ecx, dword [edi]
test ecx, ecx
je 0x40c7f0
mov ecx, dword [ecx]
jmp 0x40c7f2
xor ecx, ecx
push 0
push 2
push 0
push dword [ebp - 4]
push 0
push 0
push 0
push ecx
call eax
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x40c81b
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
test eax, eax
je 0x40c825
mov eax, dword [eax]
jmp 0x40c827
xor eax, eax
push 1
push 0
push 0
push eax
push 0x497148
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
pop edi
setge al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [edi], eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [edi + 8], eax
call fcn.0046a680
push eax
push esi
call fcn.0046a810
mov dword [edi + 0xc], eax
add esp, 0xc
cmp dword [edi], 0
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x24], 0
je 0x40c965
test ebx, ebx
je 0x40c8f5
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
jmp 0x40c90b
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [edi + 0x18], eax
call esi
cdq
sub eax, edx
push 2
sar eax, 1
push ebx
mov dword [edi + 0x1c], eax
call dword [sym.imp.USER32.dll_GetAncestor]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov esi, eax
mov dword [edi + 0x24], esi
test esi, esi
je 0x40c94c
mov edi, edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40c94c
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x40c930
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push 0x40d190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ea00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push eax
push 4
push 0
push 0x4973dc
push esi
mov dword [ebp - 4], 3
call edi
lea eax, [ebp - 0xc]
push eax
push 0x497400
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call esi
push 0x36
push 0x497414
push 1
push 0
push 0x49744c
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 8]
push eax
push 0x497414
push dword [ebp - 0xc]
call esi
push 0xc
push 0x49746c
push 1
push 0
push 0x49747c
push dword [ebp - 8]
call edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0
push 0x497490
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eab0
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4864eb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x21c]
push eax
push 0x497568
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ebdb
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4977f0
push dword [ebp - 0x21c]
call esi
push 0x497808
push dword [ebp - 0x21c]
call esi
push 0x49781c
push dword [ebp - 0x21c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4975c0
push dword [ebp - 0x21c]
call esi
push 0x4975cc
push dword [ebp - 0x21c]
call esi
push 0x4975e8
push dword [ebp - 0x21c]
call esi
push 0x497604
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x497828
lea ecx, [ebp - 0x224]
call fcn.00402050
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040e8c0
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00403a00
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40ebc7
mov eax, dword [eax]
jmp 0x40ebc9
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x220]
call fcn.00403a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret
Function at 0x40f070
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x104
push eax
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x49749c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4974b8
push eax
call fcn.00401f90
lea eax, [ebp - 0x20c]
push eax
push 0x4974d4
call fcn.0040f1c0
add esp, 0x18
test al, al
jne 0x40f198
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x40f198
cmp byte [ebp + 0xc], 0
je 0x40f0f8
push 0
jmp 0x40f19f
push 0x49749c
lea eax, [ebp - 0x414]
push 0x4974ec
push eax
call fcn.00401f90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
push 0x4974d4
call fcn.0040f1c0
add esp, 8
test al, al
jne 0x40f198
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x49749c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x497504
push eax
call fcn.00401f90
lea eax, [ebp - 0x20c]
push eax
push 0x4974d4
call fcn.0040f1c0
add esp, 0x18
mov ecx, esi
test al, al
je 0x40f194
lea eax, [ebp - 0x20c]
push eax
jmp 0x40f1a1
push 0
jmp 0x40f1a1
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00402050
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret

Function at 0x40f1c0
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x497390
push dword [ebp + 8]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40f1eb
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push edi
mov dword [ebp - 8], eax
call esi
push 0x4973a0
lea eax, [ebp - 4]
push edi
push eax
call fcn.00471df4
add esp, 0xc
push 0x82
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40f248
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push eax
push ebx
push 1
push dword [ebp - 8]
call fcn.0047213f
push dword [ebp - 4]
call fcn.00471f6f
add esp, 0x14
mov al, 1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40f270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
push 0x497568
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40f2c1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4975e8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40f2d0
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x49753c
call fcn.0040efc0
add esp, 4
lea eax, [ebp - 0x210]
push eax
push 0x497568
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f4ee
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x214]
push 4
push eax
push 4
push 0
push 0x4975c0
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 2
call esi
push 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 1
push eax
push 4
push 0
push 0x4975cc
push dword [ebp - 0x210]
call esi
push 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 3
push eax
push 4
push 0
push 0x4975e8
push dword [ebp - 0x210]
call esi
push edi
lea eax, [ebp - 0x20c]
push 0x4975f4
push eax
call fcn.00401f90
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x40f3b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x497604
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
call fcn.0040ea00
add esp, 4
push 0x497618
push 0x49737c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x7a
mov dword [ebp - 0x218], 0x497628
mov word [ebp - 0x21c], cx
lea ecx, [ebp - 0x21c]
push ecx
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push 0x4976a8
push reloc.WS2_32.dll_bind
call esi
push 0x497710
push reloc.WS2_32.dll_bind
call esi
push 0x497780
push reloc.WS2_32.dll_bind
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4975c0
push dword [ebp - 0x210]
call esi
push 0x4975cc
push dword [ebp - 0x210]
call esi
push 0x4975e8
push dword [ebp - 0x210]
call esi
push 0x497604
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test edi, edi
je 0x40f4e3
cmp edi, 0xc000010e
je 0x40f4e3
mov eax, dword [0x4bd8d8]
test eax, eax
jne 0x40f4c3
push 0x497364
push 0x49737c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bd8d8], eax
push edi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret
push 0
push ebx
call fcn.0040f500
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret
Function at 0x423ec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48835f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
call edi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
call fcn.00423e60
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
push 0
mov dword [ebx + 0x40], 0
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x44], 0
push 0
mov byte [ebp - 4], 3
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
call fcn.004195f0
mov dword [ebx + 0x48], eax
push 0
push 0
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
call fcn.004195f0
mov dword [ebx + 0x50], eax
lea ecx, [ebx + 0x58]
mov byte [ebp - 4], 5
call fcn.00424070
push 0
push 0
lea ecx, [ebx + 0x6c]
mov byte [ebp - 4], 6
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
call fcn.004195f0
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x74], 0xc8
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
lea esi, [ebx + 0x84]
push esi
call edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], 0
lea esi, [ebx + 0xb0]
push esi
call edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea esi, [ebx + 0xe0]
mov byte [ebp - 4], 0xb
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00419570
mov dword [esi], eax
push 0
push 0
lea ecx, [esi + 8]
mov byte [ebp - 4], 0xc
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00419570
mov dword [esi + 8], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d340
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42d366
call fcn.0046a770
mov edi, eax
jmp 0x42d368
xor edi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42d375
call fcn.00406130
jmp 0x42d377
xor eax, eax
mov esi, dword [esi + 4]
test eax, eax
je 0x42d395
push 0
push esi
push esi
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
jne 0x42d3c5
xor eax, eax
cmp esi, 0x10
sete al
or eax, 0x110
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push 0x49c560
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret