joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4529c8
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 0x4529ee
mov eax, esp
push eax
push 0x452990
call sub.user32.dll_EnumWindows
jmp 0x452a01
mov eax, esp
push eax
push 0x452970
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x452a8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x452ae0]
test si, 4
je 0x452aa1
or bl, 1
test si, 8
je 0x452aab
or bl, 4
test si, 1
je 0x452ab5
or bl, 8
test si, 2
je 0x452abf
or bl, 0x10
test si, 0x10
je 0x452ac9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452ad8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452ae4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x452b20]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452afe
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452b0d
or bl, 4
test esi, 0x20000000
je 0x452b18
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45ab8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45ab9e
add esp, 0xfffffff0
call fcn.00403d84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a4ec
mov eax, dword [0x464908]
mov dword [eax + 4], ebx
mov dword [eax], 0x45af30
mov eax, dword [0x464914]
mov dword [eax + 4], ebx
mov dword [eax], 0x45af3c
mov eax, ebx
call fcn.0045af48
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
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, 0x4563f0
push eax
push 0
push 0
mov eax, dword [0x464a5c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e1ac]
call fcn.0041fa00
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e1ac]
call fcn.0041fa00
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e1ac]
call fcn.0041fa00
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045b3c0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b290
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b290
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b290
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45acdb
call fcn.00403ddc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45b074
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 0x45b21f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45b200
mov dl, 1
mov eax, dword [0x4126c0]
call fcn.00403a30
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040488c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45b1ef
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.0044c7f0
test al, al
je 0x45b1e2
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, 0x45b230
lea eax, [ebp - 0x254]
call fcn.00409538
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45b1e2
xor eax, eax
push ebp
push 0x45b1db
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 0x45b268
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45b1c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404afc
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 0x45b1c4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b1e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45b0e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416398
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 0x45b226
lea eax, [ebp - 0x260]
call fcn.0040488c
ret

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

Disassembly:
push ecx
mov eax, dword [0x469ccc]
cmp byte [eax + 0xad], 0
jne 0x45bc09
cmp dword [0x469ce8], 0
jne 0x45bbca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45bb54
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469ce8], eax
cmp dword [0x469ce4], 0
jne 0x45bbe5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469ce4], eax
cmp dword [0x469cec], 0
jne 0x45bc09
push esp
push 0
push 0
push 0x45baf8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469cec], eax
pop edx
ret
Function at 0x45be0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45be23
add esp, 0xfffffff0
call fcn.00403d84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a4ec
mov eax, dword [0x464a48]
cmp word [eax + 2], 0
jne 0x45be4b
mov eax, dword [0x464a48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dafc
mov eax, dword [0x464af4]
cmp word [eax + 2], 0
jne 0x45be65
mov eax, dword [0x464af4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dd08
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41229c]
call fcn.00403a30
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 [0x41ecbc]
call fcn.00426468
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45c01c
mov eax, dword [0x464970]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042683c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e3cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x464970]
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.0040cd10
test eax, eax
je 0x45bf6c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ef0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd44
test eax, eax
je 0x45bf80
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404afc
mov byte [ebx + 0xd4], 0
push ebx
push 0x45d588
call fcn.0041b668
mov dword [ebx + 0xc8], eax
mov eax, dword [0x464868]
cmp byte [eax], 0
jne 0x45bfd1
mov eax, ebx
call fcn.0045c160
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045e5e0
mov eax, ebx
call fcn.0045f144
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c011
call fcn.00403ddc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c3e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45c47f
cmp dword [ebx + 0x94], 0
jne 0x45c479
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c368
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c479
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 0x45c43f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c479
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.00414640
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c44e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x469ccc]
cmp dword [eax + 0x30], 0
je 0x45c7f5
test bl, bl
jne 0x45c746
cmp dword [esi + 0x9c], 0
jne 0x45c73b
mov eax, esi
call fcn.0045efc0
push eax
push 0x45c5c4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45c70c
mov eax, dword [0x469ccc]
call fcn.0045f6a0
test al, al
je 0x45c70c
mov eax, dword [0x469cf0]
call fcn.004057cc
mov edi, eax
cmp edi, 0
jl 0x45c70c
push 0
mov eax, dword [0x469cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45c6f6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45c73b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414640
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45c71b
inc dword [esi + 0x9c]
jmp 0x45c7f5
cmp dword [esi + 0x9c], 0
jle 0x45c7f5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45c7f5
cmp dword [esi + 0x44], 0
je 0x45c7a1
mov eax, dword [0x469ccc]
call fcn.0045f6a0
test al, al
je 0x45c7a1
mov eax, dword [0x469cf0]
call fcn.004057cc
mov edi, eax
cmp edi, 0
jl 0x45c7a1
push 5
mov eax, dword [0x469cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45c78b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45c7d0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414640
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45c7b0
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x469cf0
mov ecx, 1
mov edx, dword [0x45c5a4]
call fcn.00405980
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45d2dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45d346
mov eax, ebx
call fcn.0045f6a0
test al, al
jne 0x45d346
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.0040497c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45d333
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45d353
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048e0
jmp 0x45d353
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048e0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45e7c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e832
mov eax, esi
call fcn.00447440
test al, al
je 0x45e832
mov eax, dword [ebx + 0x84]
call fcn.004470a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e832
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45e826
push 0
mov eax, dword [ebx + 0x84]
call fcn.004470a0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043ef10
jmp 0x45e832
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045e600
pop esi
pop ebx
ret

Function at 0x45f86c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
xor eax, eax
mov dword [ebp - 0x98], eax
xor eax, eax
push ebp
push 0x45f9b3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x464820], 0
jne 0x45f993
mov byte [0x464820], 1
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
sub eax, 1
jb 0x45f8cb
je 0x45f8d7
dec eax
je 0x45f931
jmp 0x45f98c
mov byte [0x469d04], 1
jmp 0x45f993
cmp dword [ebp - 0x90], 4
jne 0x45f90d
cmp dword [ebp - 0x8c], 0
jne 0x45f90d
cmp dword [ebp - 0x88], 0x3e8
jbe 0x45f901
mov byte [0x469d04], 3
jmp 0x45f993
mov byte [0x469d04], 2
jmp 0x45f993
cmp dword [ebp - 0x90], 4
jne 0x45f928
cmp dword [ebp - 0x8c], 0xa
jne 0x45f928
mov byte [0x469d04], 4
jmp 0x45f993
mov byte [0x469d04], 0
jmp 0x45f993
mov eax, dword [ebp - 0x90]
sub eax, 4
jb 0x45f943
je 0x45f94c
dec eax
je 0x45f983
jmp 0x45f993
mov byte [0x469d04], 5
jmp 0x45f993
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404afc
mov eax, dword [ebp - 0x98]
mov edx, 0x45f9cc
call fcn.00404cb4
jne 0x45f97a
mov byte [0x469d04], 7
jmp 0x45f993
mov byte [0x469d04], 6
jmp 0x45f993
mov byte [0x469d04], 8
jmp 0x45f993
mov byte [0x469d04], 0
movzx ebx, byte [0x469d04]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f9ba
lea eax, [ebp - 0x98]
call fcn.0040488c
ret
Function at 0x45fb28
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x180], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x45fccf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404d1c
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, eax
lea eax, [ebp - 0x16c]
mov edx, ebx
and edx, 0xff
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.00403280
lea eax, [ebp - 0x174]
mov edx, ebx
and edx, 0xff00
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x170]
mov cl, 2
call fcn.00403250
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
call fcn.00404af0
mov eax, dword [ebp - 8]
mov edx, 0x45fce8
call fcn.00404cb4
jne 0x45fbf8
mov bl, 1
jmp 0x45fca4
mov eax, dword [ebp - 8]
mov edx, 0x45fcf4
call fcn.00404cb4
jne 0x45fc0e
mov bl, 2
jmp 0x45fca4
mov eax, dword [ebp - 8]
mov edx, 0x45fd00
call fcn.00404cb4
jne 0x45fc2a
mov eax, ebx
shr eax, 0x10
test ax, ax
sete al
jmp 0x45fc2c
xor eax, eax
test al, al
je 0x45fc34
mov bl, 3
jmp 0x45fca4
mov eax, dword [ebp - 8]
mov edx, 0x45fd00
call fcn.00404cb4
jne 0x45fc4e
shr ebx, 0x10
test bx, bx
seta al
jmp 0x45fc50
xor eax, eax
test al, al
je 0x45fc58
mov bl, 4
jmp 0x45fca4
lea edx, [ebp - 0x178]
mov eax, 0x45fd0c
call fcn.004085f8
mov eax, dword [ebp - 0x178]
push eax
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 4]
call fcn.00408d6c
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.004085f8
mov eax, dword [ebp - 0x17c]
pop edx
call fcn.00408538
test eax, eax
jne 0x45fca2
mov bl, 1
jmp 0x45fca4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fcd6
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.004048b0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b0
ret
Function at 0x460a58
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe8
xor ebx, ebx
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xc]
push eax
push 0x460ab8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x460ab1
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
add esp, 0x18
pop ebx
ret

Function at 0x460aeb
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov byte [ebp - 1], 0
call fcn.00460a58
test al, al
je 0x460bd0
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x460bc9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, esi
mov eax, edi
test eax, eax
je 0x460b15
sub eax, 4
mov eax, dword [eax]
add eax, eax
inc eax
call fcn.00402e50
mov ebx, eax
mov eax, edi
test eax, eax
je 0x460b2a
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, esi
call fcn.00405760
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov esi, eax
add esi, esi
push 4
push 0x1000
push esi
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
test edi, edi
je 0x460bb2
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x460bb2
cmp esi, dword [ebp - 0xc]
jne 0x460bb2
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x460bdc
push 0x460bec
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress_1
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
je 0x460bac
mov byte [ebp - 1], 1
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460bd0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405fc0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405fda
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
mov edx, dword [0x40dbac]
push ecx
push 0xffffd8f0
push edx
call dword [sym.imp.lua51.dll_luaL_unref]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.lua51.dll_lua_close]
add esp, 0x10
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
ret

Function at 0x406014
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d018]
jne 0x40601e
repz ret
jmp fcn.004063d8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d58
cmp byte [esi + ebx - 1], 0xa
je 0x401d2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x401ed0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
lea edi, [ebp - 0x10]
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x14], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x401f20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x28], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [ebp - 0x20], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
sub esp, 0xc
test eax, eax
je 0x401f18
mov edx, dword [ebp - 0x28]
call edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov esi, dword [ebp - 0x14]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call esi
mov edx, dword [ebp - 0x18]
sub esp, 4
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x24]
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4026a0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop