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

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4fc967
test edi, 0x40000
je 0x4fc981
test bl, bl
jne 0x4fca10
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x4fca10
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4fc9b4
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4fc9d0
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x4fc9e6
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4fc9f7
cmp byte [esp + 2], 0
je 0x4fca10
cmp byte [esp + 2], 0
je 0x4fca08
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4fca10
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4fccc4
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 0x4fccea
mov eax, esp
push eax
push 0x4fcc8c
call sub.user32.dll_EnumWindows
jmp 0x4fccfd
mov eax, esp
push eax
push 0x4fcc6c
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 0x4fcdc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4fce10]
test bl, 4
je 0x4fcdd4
or si, 1
test bl, 8
je 0x4fcddd
or si, 4
test bl, 1
je 0x4fcde6
or si, 8
test bl, 2
je 0x4fcdef
or si, 0x10
test bl, 0x10
je 0x4fcdf8
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fce08
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4fce14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4fce50]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fce2f
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fce3f
or bx, 4
test esi, 0x20000000
je 0x4fce4b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x505af0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x505b02
add esp, 0xfffffff0
call fcn.00405528
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451194
mov eax, dword [0x51d6cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x505f30
mov eax, dword [0x51d6dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x505f3c
mov eax, ebx
call fcn.00505f48
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x5008ac
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x45fa78]
call fcn.00465a78
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x45fa78]
call fcn.00465a78
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x45fa78]
call fcn.00465a78
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x45fa78]
call fcn.00465a78
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x45fa78]
call fcn.00465a78
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.00506540
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50635c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50635c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50635c
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50635c
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50635c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x505c7f
call fcn.00405580
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5060fc
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 0x5062a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x506288
mov dl, 1
mov eax, dword [0x43a0e8]
call fcn.004485c8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406b68
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x506277
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.00493c54
test al, al
je 0x50626a
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, 0x5062b8
lea eax, [ebp - 0x394]
call fcn.0041f370
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x50626a
xor eax, eax
push ebp
push 0x506263
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 0x506328
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x50624c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407744
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x50624c
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50626a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x50616d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.00448504
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5062ae
lea eax, [ebp - 0x3a0]
call fcn.00406b68
ret

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

Disassembly:
push ecx
mov eax, dword [0x5232fc]
cmp byte [eax + 0xb1], 0
jne 0x506ed2
cmp dword [0x52331c], 0
jne 0x506e92
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x51d53c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x52331c], eax
cmp dword [0x523318], 0
jne 0x506ead
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x523318], eax
cmp dword [0x523320], 0
jne 0x506ed2
push esp
push 0
push 0
mov eax, dword [0x51d538]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x523320], eax
pop edx
ret
Function at 0x5071ec
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x507203
add esp, 0xfffffff0
call fcn.00405528
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451194
mov eax, dword [0x51d5ac]
cmp byte [eax], 0
jne 0x507230
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x51d888]
cmp word [eax + 2], 0
jne 0x50724a
mov eax, dword [0x51d888]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005093e0
mov eax, dword [0x51d9ac]
cmp word [eax + 2], 0
jne 0x507264
mov eax, dword [0x51d9ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005095e4
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x45fa78]
call fcn.00465a78
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x509b5c
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x464358]
call fcn.0046f0c4
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x507448
mov eax, dword [0x51d764]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0046f554
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x509e44
mov dl, 1
mov eax, dword [0x436974]
call fcn.00404eec
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x51d764]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041f184
test eax, eax
je 0x507378
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041ef34
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041f168
test eax, eax
je 0x507390
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 + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407744
push ebx
push 0x508db8
call fcn.004fcda4
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x51d5ac]
cmp byte [eax], 0
jne 0x5073e1
mov eax, ebx
call fcn.00507608
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0050a08c
mov eax, ebx
call fcn.0050acb8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50743e
call fcn.00405580
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x507940
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x5079ec
cmp dword [ebx + 0x98], 0
jne 0x5079e6
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x507878
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x5079e6
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5079ac
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5079e6
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00443f9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5079bb
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5232fc]
cmp dword [eax + 0x178], 0
je 0x507d71
test bl, bl
jne 0x507cbf
cmp dword [esi + 0xa0], 0
jne 0x507cb4
mov eax, esi
call fcn.0050ab08
push eax
push 0x507b18
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x507c85
mov eax, dword [0x5232fc]
cmp byte [eax + 0xd7], 0
je 0x507c85
mov eax, dword [esi + 0xdc]
call fcn.00408820
mov edi, eax
cmp edi, 0
jl 0x507c85
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x507c6e
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x507cb4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00443f9c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x507c94
inc dword [esi + 0xa0]
jmp 0x507d71
cmp dword [esi + 0xa0], 0
jle 0x507d71
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x507d71
cmp dword [esi + 0x48], 0
je 0x507d1c
mov eax, dword [0x5232fc]
cmp byte [eax + 0xd7], 0
je 0x507d1c
mov eax, dword [esi + 0xdc]
call fcn.00408820
mov edi, eax
cmp edi, 0
jl 0x507d1c
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x507d05
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x507d4b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00443f9c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x507d2b
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4f9d04]
call fcn.004089cc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5089c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x508a2f
cmp byte [ebx + 0xd7], 0
jne 0x508a2f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406cf0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x508a1c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x508a3c
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f48
jmp 0x508a3c
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f48
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x50a274
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x50a2e2
mov eax, esi
call fcn.0048dc7c
test al, al
je 0x50a2e2
mov eax, dword [ebx + 0x88]
call fcn.0048d8c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50a2e2
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x50a2d6
push 0
mov eax, dword [ebx + 0x88]
call fcn.0048d8c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.004846e4
jmp 0x50a2e2
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0050a0ac
pop esi
pop ebx
ret
Function at 0x50ea3c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x50eab6
mov eax, dword [ebx + 8]
call fcn.0048d8c8
mov ecx, eax
mov dl, 1
mov eax, dword [0x499714]
call fcn.00487cec
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0049ddac
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x50e334
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0048d8c8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0048d8c8
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x50eb2c
mov eax, dword [ebx + 8]
call fcn.0048d8c8
mov ecx, eax
mov dl, 1
mov eax, dword [0x499714]
call fcn.00487cec
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0049ddac
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x50e380
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0048d8c8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0048d8c8
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x50eb98
mov eax, dword [ebx + 8]
call fcn.0048d8c8
mov ecx, eax
mov dl, 1
mov eax, dword [0x49a150]
call fcn.00487cec
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0048d8c8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0048d8c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x408ecc
nop
mov ecx, 0x7f025f85
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
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, 0x61944f9a
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4017ae
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x423b72
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x42f060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [esp + 0x10]
call fcn.00402168
and dword [esp + 0x30], 0
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040174d
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.0040267b
mov dword [esi], vtable.std::system_error.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40205e
Capabilities:
Create directory

Disassembly:
push 0x84
mov eax, 0x423c31
call fcn.00420e29
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x30], edi
call fcn.00402004
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.004060a4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov edx, eax
mov dword [esp], 0x42b984
call fcn.00406070
pop ecx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040267b
push edi
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0040267b
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push edi
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4020e3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
call fcn.00402143
xor ebx, ebx
inc ebx
jmp 0x4020f3
push 0x42b7dd
lea ecx, [ebp - 0x60]
call fcn.00402168
push 2
pop ebx
push eax
mov ecx, esi
call fcn.00402197
or ebx, 4
test bl, 2
je 0x402111
push edi
push 1
lea ecx, [ebp - 0x60]
and ebx, 0xfffffffd
call fcn.0040267b
test bl, 1
je 0x402124
push edi
push 1
lea ecx, [ebp - 0x90]
call fcn.0040267b
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040267b
mov eax, esi
call fcn.00420dd8
ret
Function at 0x406a40
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
lea eax, [edi + 2]
push eax
call fcn.00407504
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x406a6e
mov esi, dword [esi]
push esi
lea eax, [edi + 1]
push eax
push ebx
call fcn.00407ced
mov word [ebx + edi], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
add esp, 0xc
mov eax, 0x614
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov word [ebp - 8], 0
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x12], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ebx
mov esi, eax
call fcn.0040795b
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406b91
mov esp, ebp
pop ebp
ret

Function at 0x406af0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x42ba4c
push 0x500d
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor ecx, ecx
test esi, esi
je 0x406b52
lea esp, [esp]
movzx edx, byte [ecx + edi]
mov dl, byte [edx + 0x4305c0]
mov byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jb 0x406b40
cmp dword [ebx + 0x14], 0x10
jb 0x406b5a
mov ebx, dword [ebx]
push 0x42ba50
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00407e06
push dword [ebp - 8]
push 1
push esi
push edi
call fcn.00407fa4
push dword [ebp - 8]
call fcn.00408092
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406b91
mov esp, ebp
pop ebp
ret