joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10870
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0x107e0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x10810
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 0x1e8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 0x10830
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0x10848
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10920
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0x108e0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push 0x108fc
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10b80
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push 0x10b30
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea ecx, [ebp - 0x24]
push ecx
push 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10bcb
mov eax, dword [ebp - 0x18]
jmp 0x10c40
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x10b58
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x10], ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10c3e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x10c40
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10c4b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10604]
test eax, eax
mov ecx, 0xbb40
je 0x10c62
cmp eax, ecx
jne 0x10c85
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10604
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10604], eax
jne 0x10c85
mov eax, ecx
mov dword [0x10604], eax
not eax
mov dword [section..data], eax
pop ebp
jmp fcn.00010a00
Function at 0x404600
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0042f2c0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40464f
sub eax, ecx
push esi
sar eax, 1
lea esi, [edi + 0x8c]
lea ecx, [ebp - 0x404]
call fcn.00401f96
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042cfbb
leave
ret
Function at 0x4073a4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.0040735d
mov edi, eax
cmp edi, ebx
je 0x407412
cmp dword [ebp - 0x218], ebx
je 0x40740b
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4074d5
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x407436
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004073a4
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x40749f
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x40741a
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x407481
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x4074bb
mov esi, eax
call fcn.00407537
jmp 0x4074c1
cmp dword [ebp - 0x218], ebx
je 0x4074b3
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x4074d5
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x4074d3
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfbb
leave
ret 4
Function at 0x407df2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x47eacc
call fcn.0043366b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x407e4a
call fcn.004068a4
mov esi, eax
jmp 0x407f54
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407e63
call fcn.004068a4
jmp 0x407f46
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x407e59
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407ea0
mov esi, 0x8007000e
jmp 0x407f48
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407eb5
cmp eax, 0xffffffff
jbe 0x407ebf
push 0x80070216
call fcn.00403be8
cmp eax, 0x400
jbe 0x407eec
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406881
jmp 0x407ef8
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407e96
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x407e59
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407c92
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407f6d
lea eax, [ebp - 0x418]
call fcn.00406dfc
mov eax, esi
call fcn.004336c7
ret 0xc
Function at 0x40a152
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x40a28d
push ebx
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40a28c
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a198
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x220]
call fcn.00401f96
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x40a1be
mov eax, dword [esi]
jmp 0x40a1c0
mov eax, esi
push eax
call fcn.0042e557
pop ecx
test eax, eax
jne 0x40a28c
push str.DoneEx
push 7
pop edi
mov eax, esi
call fcn.004028b4
cmp dword [esi + 0x14], ebx
jb 0x40a1e7
mov eax, dword [esi]
jmp 0x40a1e9
mov eax, esi
push eax
call fcn.0042e557
pop ecx
test eax, eax
je 0x40a20a
cmp dword [esi + 0x14], ebx
jb 0x40a1fd
mov eax, dword [esi]
jmp 0x40a1ff
mov eax, esi
push eax
call fcn.0042e683
pop ecx
test eax, eax
jne 0x40a280
push str.XCell_Compiler
push 0xf
pop edi
mov eax, esi
call fcn.004028b4
cmp dword [esi + 0x14], ebx
jb 0x40a222
mov eax, dword [esi]
jmp 0x40a224
mov eax, esi
push eax
call fcn.0042e557
pop ecx
test eax, eax
je 0x40a245
cmp dword [esi + 0x14], ebx
jb 0x40a238
mov eax, dword [esi]
jmp 0x40a23a
mov eax, esi
push eax
call fcn.0042e683
pop ecx
test eax, eax
jne 0x40a280
push str.AddIns
push 7
pop edi
mov eax, esi
call fcn.004028b4
cmp dword [esi + 0x14], ebx
jb 0x40a25d
mov eax, dword [esi]
jmp 0x40a25f
mov eax, esi
push eax
call fcn.0042e557
pop ecx
test eax, eax
je 0x40a28c
cmp dword [esi + 0x14], ebx
jb 0x40a273
mov eax, dword [esi]
jmp 0x40a275
mov eax, esi
push eax
call fcn.0042e683
pop ecx
test eax, eax
je 0x40a28c
xor eax, eax
mov ecx, 0x48cbb4
call fcn.00401f96
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cfbb
leave
ret

Function at 0x40a29d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 8
jb 0x40a2a8
mov eax, dword [eax]
push esi
push 0x4911b0
push eax
call fcn.0042e773
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40a2f0
cmp dword [edi + 0x14], 0x10
jb 0x40a2c6
mov eax, dword [edi]
jmp 0x40a2c8
mov eax, edi
add eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
push eax
call fcn.0042e8e1
add esp, 0x10
push esi
cmp eax, 1
je 0x40a2ea
call fcn.0042e9c8
pop ecx
xor eax, eax
jmp 0x40a2f3
call fcn.0042e9c8
pop ecx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x41002a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.0043f850
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5ec]
push 0x4916d0
push eax
mov dword [ebp - 0x2d10], ebx
call fcn.0042dc43
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0c], eax
cmp eax, 0xffffffff
je 0x410282
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.0042f2c0
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.0042f2c0
add esp, 0x18
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4101b5
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.0042f2c0
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x4ab6e8
lea ecx, [ebp - 0x2cfc]
call fcn.0040fee1
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x4abae8
lea ecx, [ebp - 0x2cfc]
call fcn.0040fee1
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0040fee1
push 0x4abae8
push 0x4ab2e8
call fcn.00430c90
add esp, 0x20
pop esi
cmp byte [0x4aaee8], bl
jne 0x4101a1
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.00431c9c
pop ecx
test eax, eax
jne 0x41018c
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.00431c9c
pop ecx
test eax, eax
je 0x4101a1
lea eax, [ebp - 0x3ec]
push eax
push 0x4aaee8
call fcn.00430c90
pop ecx
pop ecx
jmp 0x4101bb
cmp byte [0x4ab2e8], bl
je 0x4101bb
mov dword [ebp - 0x2d10], 1
jmp 0x4101bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.0042f2c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x410270
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.0042f2c0
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00430c90
add esp, 0x14
cmp byte [0x4aaee8], bl
jne 0x410276
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.00431c9c
pop ecx
test eax, eax
jne 0x410251
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.00431c9c
pop ecx
test eax, eax
je 0x410276
lea eax, [ebp - 0x3ec]
push eax
push 0x4aaee8
call fcn.00430c90
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x410276
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2d10]
xor ecx, ebp
pop ebx
call fcn.0042cfbb
leave
ret
Function at 0x410cd9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0043f850
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00410b2b
mov dword [ebp - 0x1018], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x1008], ax
xor edi, edi
lea eax, [ebp - 0x1006]
push edi
push eax
call fcn.0042f2c0
xor eax, eax
push esi
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push edi
push eax
mov dword [ebp - 0x100c], edi
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x1014], edi
call fcn.0042f2c0
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1008]
push eax
push 0x49182c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.00410c32
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042cfbb
leave
ret

Function at 0x410d9f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0043f850
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1028], eax
call fcn.00410b2b
mov dword [ebp - 0x101c], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x814], ax
xor ebx, ebx
lea eax, [ebp - 0x812]
push ebx
push eax
call fcn.0042f2c0
xor eax, eax
push esi
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push ebx
push eax
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
call fcn.0042f2c0
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x814]
push eax
push 0x49182c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1018]
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x101c]
lea edx, [ebp - 0x14]
call fcn.00410c32
push dword [ebp - 0x1028]
lea eax, [ebp - 0x14]
push eax
call fcn.0040fb14
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042cfbb
leave
ret
Function at 0x410f4a
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x20
mov eax, 0x47c9bf
call fcn.004335ff
push dword [ebp + 8]
xor esi, esi
push esi
push 0x43a
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x410f88
mov dword [ebp - 0x1c], esi
push 0x499454
lea eax, [ebp - 0x1c]
push eax
call fcn.00432a9d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
push 0x1000
lea edi, [eax + eax + 2]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x410fbd
mov dword [ebp - 0x20], esi
push 0x499454
lea eax, [ebp - 0x20]
jmp 0x410f82
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x410fdd
mov dword [ebp - 0x24], esi
push 0x499454
lea eax, [ebp - 0x24]
jmp 0x410f82
push 0x491838
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x411008
mov dword [ebp - 0x28], esi
push 0x499454
lea eax, [ebp - 0x28]
jmp 0x410f82
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x41105a
mov dword [ebp - 0x2c], esi
push 0x499454
lea eax, [ebp - 0x2c]
jmp 0x410f82
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.004336a4
ret 8

Function at 0x411122
Capabilities:
Enumerate gui resources

Disassembly:
push 0x2c
mov eax, 0x47f261
call fcn.00433635
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x38], eax
cmp edi, ecx
je 0x411159
mov ebx, ecx
sub ebx, ecx
sar ebx, 2
shl ebx, 2
push ebx
push ecx
push edi
call fcn.0042d260
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
and dword [ebp - 4], eax
push str.XLMAIN
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x14], esi
call fcn.00402011
lea eax, [ebp - 0x34]
push eax
push 0x411075
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
sar ebx, 2
call fcn.00402144
mov eax, ebx
call fcn.004336b8
ret

Function at 0x411215
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x41124b
cmp word [esi], bx
je 0x41124b
push ebx
push esi
call fcn.0042eabb
pop ecx
pop ecx
test eax, eax
jne 0x41124b
cmp word [esi], bx
je 0x41124e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41124e
test al, 0x10
je 0x41124e
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x411254
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x30], 0
push ebx
push esi
push edi
push 9
xor eax, eax
mov ebx, ecx
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push 0x491880
push eax
mov esi, edx
call fcn.0042dc43
add esp, 0xc
push ebx
lea eax, [ebp - 0x2c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x41130c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x41130c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x41130c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x41130c
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
ja 0x4112e2
or ecx, 0xffffffff
call fcn.00409677
jmp 0x4112ee
push ebx
mov ebx, eax
sub ebx, ecx
mov edi, esi
call fcn.0040fc5f
or ecx, 0xffffffff
xor eax, eax
call fcn.00409677
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, esi
call fcn.004098c6
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfbb
leave
ret

Function at 0x41131e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
call fcn.0042f2c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x210]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x411370
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x210]
call fcn.00401f96
cmp dword [esi + 0x14], 8
jb 0x411394
mov eax, dword [esi]
jmp 0x411396
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042cfbb
leave
ret
Function at 0x4113a3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4a0234]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x808], edi
call fcn.00401ca8
lea eax, [ebp - 0x808]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
call fcn.0042f2c0
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], edi
je 0x4114bd
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push str.TEMP
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4114b1
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411451
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401f96
push 0xc
mov edi, str._SystemRoot_
push edi
xor eax, eax
mov ecx, esi
call fcn.0040a623
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4114b0
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4114b0
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.00430e3d
pop ecx
push eax
push ebx
push esi
call fcn.0040e179
pop ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cfbb
leave
ret