joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4160f1
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20030
call fcn.004333f0
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040e4fe
lea eax, [ebp - 0x1002c]
push eax
xor ebx, ebx
push 0x7fff
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 7]
push eax
push dword [ebp + 8]
call fcn.0040327c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4728f1
mov eax, dword [0x4c3130]
test eax, eax
je 0x416235
xor edi, edi
inc edi
mov esi, 0x4c4100
cmp eax, edi
je 0x472909
lea eax, [ebp - 6]
push eax
push ecx
push 0x4c3130
push 0x4c3148
mov ecx, esi
call fcn.0040235d
test al, al
je 0x41623e
mov al, byte [0x4c4100]
mov byte [0x4c3134], al
mov al, byte [0x4c4101]
mov byte [ebp - 5], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2002c]
push eax
push 0x7fff
push dword [0x4c3148]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [ebp - 0xc]
mov ecx, 0x4c3120
call fcn.00412228
mov bl, byte [ebp - 6]
push dword [0x4c3130]
push 0x4c3148
call fcn.00416a48
test eax, eax
jne 0x472928
cmp byte [ebp - 5], 1
je 0x472947
call fcn.00416761
call fcn.00416472
cmp byte [0x4c3134], 0
mov ebx, 0x4c3708
jne 0x4161f7
mov ecx, ebx
call fcn.0041636f
push edi
mov ecx, 0x4c3160
call fcn.00407070
cmp byte [0x4c3134], 0
jne 0x416212
mov ecx, ebx
call fcn.0041630b
mov ecx, esi
call fcn.00416246
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.0040e281
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c30bc], 0xffffffff
jmp 0x416219
mov dword [0x4c30bc], edi
jmp 0x416219
push 0x10
push 0x4b4abc
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416226
push 0xffffffffffffffff
push dword [0x4c3138]
mov ecx, esi
push edi
call fcn.00445e5c
mov al, byte [0x4c30c2]
mov byte [0x4c4102], al
jmp 0x4161b6
mov ecx, esi
call fcn.00416246
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4c30bc], edi
jmp 0x416226
call fcn.0043ec26
test al, al
jne 0x4161d8
cmp byte [ebp - 7], al
jne 0x4161d8
lea ecx, [ebp - 0x2c]
call fcn.004023b1
push 0x49fab4
lea ecx, [ebp - 0x1c]
call fcn.00405039
lea ecx, [ebp - 0x1c]
test bl, bl
je 0x47299e
mov edi, 0x4b4af0
push edi
call fcn.004157c5
push 0x4c3148
lea ecx, [ebp - 0x1c]
call fcn.00415844
push edi
lea ecx, [ebp - 0x1c]
call fcn.004157c5
push 1
jmp 0x4729a7
push dword [ebp + 8]
call fcn.004157c5
push edi
lea eax, [ebp - 0x1002c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x4b4af4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.0040e281
jmp 0x416212
Function at 0x417a5b
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
mov edi, ecx
push 5
pop eax
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
push ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x41f56a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [edi]
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x170], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, dword [edi + 0x174]
jne 0x41f60f
cmp eax, dword [edi + 0x178]
jne 0x41f60f
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
push dword [ebx + 0x1c]
movzx eax, ax
shr eax, 0xf
mov dword [ebp + 8], eax
call esi
movzx esi, ax
mov eax, dword [ebp + 8]
shr esi, 0xf
cmp eax, dword [edi + 0x17c]
jne 0x4804aa
cmp dword [ebp + 0xc], 0
je 0x41f5f0
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x480516
cmp dword [ebp + 0xc], 0
je 0x41f608
mov dword [edi + 0x180], esi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x41f5b6
jmp 0x480499
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00469a30
jmp 0x41f5b6
cmp dword [ebp + 0xc], 1
jl 0x41f5e4
cmp byte [edi + 0x1a8], 0
je 0x41f5e4
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, eax
je 0x4804d2
push 0xfffffffffffffff9
jmp 0x480502
push 0xfffffffffffffff8
call fcn.00469a30
cmp byte [edi + 0x184], 0
je 0x480507
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, 0x1000000
je 0x480500
push 0xfffffffffffffffa
jmp 0x480502
push 0xfffffffffffffff4
call fcn.00469a30
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x41f5e4
cmp dword [ebp + 0xc], 1
jl 0x41f5fc
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test esi, esi
je 0x480531
push 0xfffffffffffffff7
jmp 0x480533
push 0xfffffffffffffff6
call fcn.00469a30
jmp 0x41f5fc
Function at 0x41fe0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4757a5
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4757bd
or eax, eax
jmp 0x41fe2a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
jmp 0x41fe2a
Function at 0x420810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
xor ebx, ebx
push esi
inc ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], edx
je 0x47505e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov byte [ecx], dl
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 8], 0x23
mov edi, edx
push edi
mov ecx, esi
call fcn.0040f197
movzx eax, word [eax]
push 0x2b
pop ecx
push 0x5e
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x475065
cmp ax, cx
je 0x475065
cmp ax, dx
je 0x475065
cmp ax, word [ebp - 8]
je 0x475065
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.0040f197
movzx eax, word [eax]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, 0x7b
jne 0x4750e0
push 0x40
lea ecx, [ebp - 0x20]
call fcn.004151c2
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.0042093c
test al, al
je 0x420921
push dword [ebp - 0x20]
push dword [esi*4 + 0x4bd5d0]
call fcn.00424ae7
pop ecx
pop ecx
test eax, eax
je 0x4208ef
inc esi
cmp esi, 0x62
jl 0x4208d4
cmp esi, 0x62
je 0x475097
cmp byte [esi + 0x4bd568], 0
jne 0x420921
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.0040e281
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x42090a
lea ecx, [ebp - 0x20]
call fcn.0040e281
xor al, al
jmp 0x42091a
cmp ax, word [ebp - 0xc]
jne 0x475070
mov eax, dword [ebp + 0x10]
jmp 0x47508f
cmp ax, cx
jne 0x47507a
mov eax, dword [ebp + 0x14]
jmp 0x47508f
cmp ax, dx
jne 0x475084
mov eax, dword [ebp + 0x18]
jmp 0x47508f
push 0x23
pop ecx
cmp ax, cx
jne 0x475091
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x42085c
push 0
lea ecx, [ebp - 0x20]
call fcn.00404a09
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x475056
test eax, 0x200
je 0x4750bf
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x4750cb
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x42090a
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x42090a
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x47505e
test eax, 0x200
je 0x4750ff
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x47510b
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x420912
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x420912
Function at 0x422427
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c3628
jne 0x480145
mov ecx, dword [0x4c3694]
cmp ecx, 0xffffffff
je 0x4224cd
mov eax, dword [0x4c3688]
push ebx
mov eax, dword [eax + ecx*4]
push esi
mov esi, dword [eax]
xor ecx, ecx
mov ebx, dword [esi]
cmp byte [esi + 0x3a], cl
je 0x422479
mov byte [esi + 0x3a], cl
cmp dword [esi + 0x18c], ecx
jge 0x48015c
cmp dword [esi + 0x1a4], ecx
jne 0x480183
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x4801aa
je 0x4224a1
test edi, edi
je 0x4224ee
cmp edi, 1
je 0x4224a1
cmp edi, 2
je 0x4224e5
cmp edi, 3
je 0x4224dc
jle 0x4224c3
cmp edi, 5
jg 0x4224d1
cmp byte [esi + 0x38], 0
jne 0x4224fc
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x4224bf
cmp edi, 4
je 0x4224bf
push ebx
call fcn.00422500
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x4224c8
cmp edi, 6
je 0x480192
jmp 0x4224c3
mov byte [esi + 0x38], 1
jmp 0x4801ff
mov byte [esi + 0x38], 1
jmp 0x480192
push ecx
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x4224c3
xor eax, eax
jmp 0x4224c6
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041f2d0
mov ecx, eax
mov dword [0x4c3694], ecx
jmp 0x422440
cmp byte [esi + 0x198], cl
je 0x42246d
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0046ef6b
xor ecx, ecx
mov byte [esi + 0x198], cl
jmp 0x42246d
push dword [esi]
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor ecx, ecx
jmp 0x422479
cmp byte [esi + 0x38], 0
je 0x4224fc
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4224c3
mov eax, edi
sub eax, 9
je 0x4801ff
sub eax, 0x37
je 0x4801f1
dec eax
je 0x4801ee
dec eax
je 0x4801de
dec eax
jne 0x4224c3
push ecx
mov byte [esi + 0x39], cl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4224c3
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x4224c3
push ecx
jmp 0x4801f3
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4224c3
cmp byte [esi + 0x38], 0
je 0x4224fc
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.00422500
jmp 0x4224c3
Function at 0x422500
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x475120
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x475135
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x475149
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x475224
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x475200
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x475205
push 4
jmp 0x475202
push 3
pop ebx
jmp 0x475208
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x475227
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x42251e
Function at 0x437470
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042ba5e
mov dword [ebp - 0x14], eax
cmp dword [0x4c3048], edi
jne 0x437561
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4374ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x437641
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x437641
push 0x49da60
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x437641
push eax
call ebx
push 0x49da6c
push esi
mov dword [0x4c3048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c304c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c3050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c3058], eax
test eax, eax
je 0x43755e
push 0x49daac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c3054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x437586
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x437579
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43759b
push 4
pop eax
jmp 0x437643
cmp dword [ebp - 0x14], edi
je 0x43759b
push dword [0x4c3048]
call dword [0x4bc004]
push 3
jmp 0x437580
mov eax, dword [0x4c3054]
mov ebx, dword [0x4bc004]
cmp eax, esi
je 0x4375f9
cmp dword [0x4c3058], esi
je 0x4375f9
push eax
call ebx
push dword [0x4c3058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4375f9
test eax, eax
je 0x4375f9
call ecx
test eax, eax
je 0x4375ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4375ee
test byte [ebp - 8], 1
jne 0x4375f9
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x437629
mov eax, dword [0x4c304c]
cmp eax, esi
je 0x437626
push eax
call ebx
test eax, eax
je 0x437626
call eax
mov edi, eax
test edi, edi
je 0x437626
mov eax, dword [0x4c3050]
cmp eax, esi
je 0x437626
push eax
call ebx
test eax, eax
je 0x437626
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c3048]
call ebx
test eax, eax
je 0x437641
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x437643
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e25c
leave
ret
Function at 0x43dc6e
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0040e4fe
lea ecx, [ebp - 0x20]
call fcn.0040e4fe
lea ecx, [ebp - 0x40]
call fcn.0040e4fe
push 0x4b4a74
lea ecx, [ebp - 0x30]
call fcn.00412228
push esi
lea ecx, [ebp - 0x30]
call fcn.004157c5
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004157c5
lea ecx, [ebp - 0x20]
call fcn.0040e3ef
test edi, edi
je 0x43dcf1
push 0x5c
pop eax
cmp word [edi], ax
je 0x43dcf1
cmp word [edi + 2], ax
je 0x43dcf1
push 0x4b4aa8
lea ecx, [ebp - 0x20]
call fcn.00412228
push edi
lea ecx, [ebp - 0x20]
call fcn.004157c5
cmp dword [ebp + 0xc], ebx
je 0x43dd42
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00424890
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.0040e442
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004157c5
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x43ddce
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x43ddce
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x43ddc9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43ddc4
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.0040e281
lea ecx, [ebp - 0x20]
call fcn.0040e281
lea ecx, [ebp - 0x30]
call fcn.0040e281
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43e5e4
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
xor ebx, ebx
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43e63b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43e63e
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x43e63e
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43e63e
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x43ea85
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
call fcn.0043e7ad
test al, al
je 0x43ea97
pop ebp
jmp fcn.0043e7e6
pop ebp
jmp fcn.0043ea9d

Function at 0x43ec26
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x43ec7f
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
leave
ret

Function at 0x43ec8a
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
push dword [ebp + 0x1c]
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18

Function at 0x43ede7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov ebx, eax
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x43ee58
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc