joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492bec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x492c12
mov eax, esp
push eax
push 0x492bb4
call sub.user32.dll_EnumWindows
jmp 0x492c25
mov eax, esp
push eax
push 0x492b94
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x492ce8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x492d38]
test bl, 4
je 0x492cfc
or si, 1
test bl, 8
je 0x492d05
or si, 4
test bl, 1
je 0x492d0e
or si, 8
test bl, 2
je 0x492d17
or si, 0x10
test bl, 0x10
je 0x492d20
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x492d30
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x492d3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x492d78]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x492d57
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x492d67
or bx, 4
test esi, 0x20000000
je 0x492d73
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x49b93c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x49b94e
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043adb0
mov eax, dword [0x4aafa0]
mov dword [eax + 4], ebx
mov dword [eax], 0x49bd98
mov eax, dword [0x4aafac]
mov dword [eax + 4], ebx
mov dword [eax], 0x49bda4
mov eax, ebx
call fcn.0049bdb0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4966e4
push eax
push 0
push 0
mov eax, dword [0x4ab150]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44051c]
call fcn.00445524
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44051c]
call fcn.00445524
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44051c]
call fcn.00445524
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44051c]
call fcn.00445524
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44051c]
call fcn.00445524
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.0049c308
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49c178
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49c178
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49c178
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49c178
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49c178
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49bac9
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49bf18
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49c0c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x49c0a6
mov dl, 1
mov eax, dword [0x4269f8]
call fcn.00432828
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406804
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x49c095
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0047e668
test al, al
je 0x49c088
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x49c0d4
lea eax, [ebp - 0x394]
call fcn.00411b58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x49c088
xor eax, eax
push ebp
push 0x49c081
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x49c144
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x49c06a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004069ec
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x49c06a
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004069ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c088
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x49bf8b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00432764
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c0cc
lea eax, [ebp - 0x3a0]
call fcn.004067f4
ret

Function at 0x49cc24
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b1278]
cmp byte [eax + 0xad], 0
jne 0x49cc96
cmp dword [0x4b1290], 0
jne 0x49cc56
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x4aadc4]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4b1290], eax
cmp dword [0x4b128c], 0
jne 0x49cc71
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4b128c], eax
cmp dword [0x4b1294], 0
jne 0x49cc96
push esp
push 0
push 0
mov eax, dword [0x4aadc0]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4b1294], eax
pop edx
ret
Function at 0x49cfbc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x49cfd3
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043adb0
mov eax, dword [0x4aaec4]
cmp byte [eax], 0
jne 0x49d000
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4ab130]
cmp word [eax + 2], 0
jne 0x49d01a
mov eax, dword [0x4ab130]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0049f0b4
mov eax, dword [0x4ab208]
cmp word [eax + 2], 0
jne 0x49d034
mov eax, dword [0x4ab208]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0049f2c4
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44051c]
call fcn.00445524
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x49f874
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x443bb4]
call fcn.0044c31c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x49d214
mov eax, dword [0x4ab01c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0044c7b0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x49fb5c
mov dl, 1
mov eax, dword [0x424430]
call fcn.00404d78
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4ab01c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00411990
test eax, eax
je 0x49d145
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00411774
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00411974
test eax, eax
je 0x49d15d
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004069ec
push ebx
push 0x49ea84
call fcn.00492ccc
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4aaec4]
cmp byte [eax], 0
jne 0x49d1ae
mov eax, ebx
call fcn.0049d388
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0049fd88
mov eax, ebx
call fcn.004a09bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49d20b
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d65c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x49d6fe
cmp dword [ebx + 0x94], 0
jne 0x49d6f8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x49d5a8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x49d6f8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x49d6be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x49d6f8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f204
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x49d6cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x49d91c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b1278]
cmp dword [eax + 0x170], 0
je 0x49da81
test bl, bl
jne 0x49d9cf
cmp dword [esi + 0x9c], 0
jne 0x49d9c4
mov eax, esi
call fcn.004a080c
push eax
push 0x49d828
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x49d995
mov eax, dword [0x4b1278]
cmp byte [eax + 0xd3], 0
je 0x49d995
mov eax, dword [esi + 0xd8]
call fcn.00407eb8
mov edi, eax
cmp edi, 0
jl 0x49d995
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x49d97e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x49d9c4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f204
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x49d9a4
inc dword [esi + 0x9c]
jmp 0x49da81
cmp dword [esi + 0x9c], 0
jle 0x49da81
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x49da81
cmp dword [esi + 0x44], 0
je 0x49da2c
mov eax, dword [0x4b1278]
cmp byte [eax + 0xd3], 0
je 0x49da2c
mov eax, dword [esi + 0xd8]
call fcn.00407eb8
mov edi, eax
cmp edi, 0
jl 0x49da2c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x49da15
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x49da5b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f204
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x49da3b
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x490ba4]
call fcn.00408078
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x49e6d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x49e73b
cmp byte [ebx + 0xd3], 0
jne 0x49e73b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406940
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x49e728
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x49e748
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406804
jmp 0x49e748
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406804
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x49ff70
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x49ffde
mov eax, esi
call fcn.004787cc
test al, al
je 0x49ffde
mov eax, dword [ebx + 0x84]
call fcn.0047844c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49ffde
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x49ffd2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047844c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046f4d8
jmp 0x49ffde
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0049fda8
pop esi
pop ebx
ret

Function at 0x4a2388
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00411a78
add esp, 0x20c
pop ebx
ret

Function at 0x4a23b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a2435
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004a24f8
test al, al
je 0x4a23fe
lea eax, [ebp - 0x210]
call fcn.004a2388
mov edx, dword [ebp - 0x210]
mov eax, ebx
mov ecx, 0x4a2450
call fcn.00406cc0
jmp 0x4a241c
push 0x104
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x20a]
call fcn.00411a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a243c
lea eax, [ebp - 0x210]
call fcn.004067f4
ret

Function at 0x4a2464
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004067ec
mov eax, dword [ebp - 8]
call fcn.004067ec
mov eax, dword [ebp + 0xc]
call fcn.004067ec
xor eax, eax
push ebp
push 0x4a24e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00406890
push eax
mov eax, dword [ebp - 8]
call fcn.00406890
push eax
mov eax, dword [ebp - 4]
call fcn.00406890
push eax
push 0
push ebx
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a24ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.004067fc
lea eax, [ebp + 0xc]
call fcn.004067f4
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x381709cf
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3f643783
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40168d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00434780
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x4016e1
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x4016f1
mov eax, dword [ebp - 0x70]
dec eax
dec eax
jne 0x4016f1
cmp dword [ebp - 0x7c], 6
jb 0x4016f1
inc eax
jmp 0x4016f3
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.00434664
add ebp, 0xa0
leave
ret

Function at 0x401ae2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00434d50
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x5c], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x401b96
test byte [esi + 0x58], 8
je 0x401b96
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.00434780
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
call fcn.004348e4
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.00434780
lea eax, [ebp - 0x1004]
push eax
push edi
lea eax, [ebp - 0x3004]
push 0x44e850
push eax
call fcn.0040174f
add esp, 0x34
cmp byte [esi + 0x5d], 0
lea eax, [ebp - 0x3004]
push eax
je 0x401b90
mov ecx, esi
call fcn.0040192b
jmp 0x401b96
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00434664
leave
ret

Function at 0x401ef2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f7a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401f5e
push str.UACCheck___RegQueryValueEx__EnableLUA___Fail___
push str._SOM_
push 0x46c390
call fcn.00401ae2
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x401f7a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], esi
je 0x401f7a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4029fd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call fcn.00434780
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00434780
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004028f1
add esp, 0x20
cmp word [ebp - 0x20c], 0
je 0x402ada
push esi
xor esi, esi
push esi
push str.DXTP
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push str._s_s_03d.tsp
push eax
call fcn.004353da
lea eax, [ebp - 0xa0c]
push 0x44ea70
push eax
call fcn.004353c3
add esp, 0x1c
test eax, eax
je 0x402aaa
push eax
call fcn.00435281
inc esi
cmp esi, 0x64
pop ecx
jl 0x402a67
lea eax, [ebp - 0xa0c]
push 0x44ea68
push eax
call fcn.004353c3
pop ecx
pop ecx
pop esi
test eax, eax
je 0x402ada
push eax
call fcn.00435281
pop ecx
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x402add
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434664
leave
ret