joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e618
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e3954]
cmp byte [eax + 0xc], 0
je 0x43e785
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e77e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e4b68], 0
jne 0x43e66c
push 0x43e78c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43e794
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b68], eax
cmp dword [0x4dbb84], 0
jne 0x43e767
push 0x43e7a4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4dbb84], eax
cmp dword [0x4dbb84], 0
je 0x43e767
push 0x43e7b0
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b6c], eax
push 0x43e7c0
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b70], eax
push 0x43e7d4
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b74], eax
push 0x43e7ec
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b78], eax
push 0x43e804
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b7c], eax
push 0x43e818
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b80], eax
push 0x43e830
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b84], eax
push 0x43e848
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b88], eax
push 0x43e864
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b8c], eax
push 0x43e870
mov eax, dword [0x4dbb84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e4b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e785
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x442610
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403fb0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44265f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404220
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449d9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449dec]
test si, 4
je 0x449db0
or bl, 1
test si, 8
je 0x449dba
or bl, 4
test si, 1
je 0x449dc4
or bl, 8
test si, 2
je 0x449dce
or bl, 0x10
test si, 0x10
je 0x449dd8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449de7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449df0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449e28]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e09
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e18
or bl, 4
test esi, 0x20000000
je 0x449e23
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4504d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4504e2
add esp, 0xfffffff0
call fcn.004034c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bbcc
mov eax, dword [0x4e2c90]
mov dword [eax + 4], ebx
mov dword [eax], 0x450874
mov eax, dword [0x4e2cac]
mov dword [eax + 4], ebx
mov dword [eax], 0x450880
mov eax, ebx
call fcn.0045088c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
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 + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44cca8
push eax
push 0
push 0
mov eax, dword [0x4e31e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d5f8]
call fcn.0041ea3c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d5f8]
call fcn.0041ea3c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d5f8]
call fcn.0041ea3c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450cac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450b88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450b88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450b88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45061f
call fcn.0040351c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45096c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450b17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450af8
mov dl, 1
mov eax, dword [0x412d88]
call fcn.00403188
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fb0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450ae7
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.0043e978
test al, al
je 0x450ada
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450b28
lea eax, [ebp - 0x254]
call fcn.004096c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450ada
xor eax, eax
push ebp
push 0x450ad3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450b60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450abc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404220
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x450abc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450ada
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4509dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417668
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b1e
lea eax, [ebp - 0x260]
call fcn.00403fb0
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e4bb4]
cmp byte [eax + 0xa5], 0
jne 0x4514bd
cmp dword [0x4e4bcc], 0
jne 0x45147e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451408
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e4bcc], eax
cmp dword [0x4e4bc8], 0
jne 0x451499
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e4bc8], eax
cmp dword [0x4e4bd0], 0
jne 0x4514bd
push esp
push 0
push 0
push 0x4513ac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e4bd0], eax
pop edx
ret
Function at 0x4515b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4515cb
add esp, 0xfffffff0
call fcn.004034c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bbcc
mov eax, dword [0x4e31ac]
cmp word [eax + 2], 0
jne 0x4515f3
mov eax, dword [0x4e31ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452c8c
mov eax, dword [0x4e3488]
cmp word [eax + 2], 0
jne 0x45160d
mov eax, dword [0x4e3488]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452e84
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412724]
call fcn.00403188
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41dda8]
call fcn.004239f0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451794
mov eax, dword [0x4e2e18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423dc0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453424
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4e2e18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d25c
test eax, eax
je 0x451702
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d18
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d284
test eax, eax
je 0x451716
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404220
mov eax, dword [0x4e2904]
cmp byte [eax], 0
jne 0x45174a
mov eax, ebx
call fcn.004518bc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453600
mov eax, ebx
call fcn.00453fc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45178a
call fcn.0040351c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451b3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e4bb4]
cmp dword [eax + 0x30], 0
je 0x451be6
cmp dword [ebx + 0x94], 0
jne 0x451be0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451acc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451be0
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_GetWindowLongA
test al, 8
je 0x451ba6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451be0
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.00414db8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451bb5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452748
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45277d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040a0
jmp 0x45278a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404004
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4537dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45381d
mov eax, esi
call fcn.00439fa4
test al, al
je 0x45381d
mov eax, dword [ebx + 0x84]
call fcn.00439ca0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45381d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439ca0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46d680
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov eax, ebx
call fcn.00403fb0
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46d6b1
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.004040a0
add esp, 0x14
pop ebx
ret

Function at 0x46e2b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46e32c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00408250
mov eax, dword [ebp - 8]
mov esi, dword [0x4e2a94]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x46e30d
mov edx, eax
dec edx
mov eax, ebx
call fcn.004045fc
jmp 0x46e316
mov eax, ebx
xor edx, edx
call fcn.004045fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e333
lea eax, [ebp - 8]
call fcn.00403fb0
ret
Function at 0x4824d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x482532
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004824cc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00480018
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047fb14
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482539
lea eax, [ebp - 4]
call fcn.00403fb0
ret
Function at 0x4b1e24
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov eax, ebx
call fcn.00403fb0
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b1e55
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.004040a0
add esp, 0x14
pop ebx
ret

Function at 0x4d0d18
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d0d90
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00408250
mov eax, dword [ebp - 8]
mov esi, dword [0x4e2a84]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x4d0d71
mov edx, eax
dec edx
mov eax, ebx
call fcn.004045fc
jmp 0x4d0d7a
mov eax, ebx
xor edx, edx
call fcn.004045fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0d97
lea eax, [ebp - 8]
call fcn.00403fb0
ret
Function at 0x478897
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d194]
jne 0x4788a1
repz ret
jmp fcn.00479bbf

Function at 0x47e7d2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d194]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047b7bb
and dword [ebp - 0x14], 0
cmp dword [0x48f8a4], 0
mov dword [ebp - 0x18], eax
jne 0x47e885
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47e92d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x47e92d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48f8a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48f8a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48f8ac], eax
call edi
push eax
call esi
mov dword [0x48f8b4], eax
test eax, eax
je 0x47e885
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48f8b0], eax
mov eax, dword [0x48f8b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47e8de
cmp dword [0x48f8b4], ecx
je 0x47e8de
push eax
call esi
push dword [0x48f8b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47e8de
test ebx, ebx
je 0x47e8de
call edi
test eax, eax
je 0x47e8d5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x47e8d5
test byte [ebp - 8], 1
jne 0x47e8de
or dword [ebp + 0x10], 0x200000
jmp 0x47e911
mov eax, dword [0x48f8a8]
cmp eax, dword [ebp - 0x18]
je 0x47e911
push eax
call esi
test eax, eax
je 0x47e911
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47e911
mov eax, dword [0x48f8ac]
cmp eax, dword [ebp - 0x18]
je 0x47e911
push eax
call esi
test eax, eax
je 0x47e911
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48f8a4]
call esi
test eax, eax
je 0x47e92d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47e92f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478897
leave
ret
Function at 0x10002bc7
Capabilities:
Check if file exists

Disassembly:
push 0x654
mov eax, 0x100301e0
call fcn.1001860a
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
mov esi, ecx
call fcn.1001a170
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.1000709b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002c24
push str.wfchost.exe
call fcn.1001585a
jmp 0x10002ce3
xor eax, eax
push 0x40e
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push edi
push eax
call fcn.1001a170
add esp, 0xc
push esi
lea ecx, [ebp - 0x644]
call fcn.100018fe
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], edi
call fcn.10002acf
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10002c6f
mov eax, dword [eax + 4]
jmp 0x10002c72
add eax, 4
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
push str.__s___caseresult__s__s
lea eax, [ebp - 0x628]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
push edi
push 1
lea esi, [ebp - 0x660]
call fcn.10001b40
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x644]
call fcn.10001a6f
lea eax, [ebp - 0x628]
push eax
call fcn.10007952
cmp eax, edi
je 0x10002cd1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x10002ce6
lea eax, [ebp - 0x628]
push eax
push str.PoExecuteActiveConsoleProcessAsUserW_failed:_s
call fcn.1001585a
pop ecx
xor eax, eax
pop ecx
call fcn.1001868d
ret
Function at 0x10006f79
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1003b300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x10007073
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10007073
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1001a170
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.100072fe
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006ff0
shr eax, 4
not eax
and eax, 1
jmp 0x10007075
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.10007083
test eax, eax
je 0x10007073
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10007055
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x1000705b
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.10006cbe
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10007075
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10017861
leave
ret

Function at 0x10007143
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1000716f
call fcn.10006f79
test eax, eax
jne 0x1000716f
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x1000718f
cmp esi, 0xffffffff
jne 0x100071a7
cmp dword [ebp - 8], ebx
jne 0x1000719b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
call fcn.10006cbe
mov eax, ebx
jmp 0x10007168
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100071cb
cmp dword [ebp - 4], edi
jne 0x100071cb
xor ebx, ebx
inc ebx
jmp 0x1000719b
cmp dword [ebp - 8], ebx
jne 0x1000719b
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x100071e4
cmp esi, ebx
je 0x100071e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x10007195