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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20030
call fcn.0042f8a0
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040d7f7
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.004061ca
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x471cc1
mov eax, dword [0x4c1130]
test eax, eax
je 0x403e5d
xor edi, edi
inc edi
mov esi, 0x4c2100
cmp eax, edi
je 0x471cd9
lea eax, [ebp - 6]
push eax
push ecx
push 0x4c1130
push 0x4c1148
mov ecx, esi
call fcn.004040e5
test al, al
je 0x403e66
mov al, byte [0x4c2100]
mov byte [0x4c1134], al
mov al, byte [0x4c2101]
mov byte [ebp - 5], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2002c]
push eax
push 0x7fff
push dword [0x4c1148]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [ebp - 0xc]
mov ecx, 0x4c1120
call fcn.00406a63
mov bl, byte [ebp - 6]
push dword [0x4c1130]
push 0x4c1148
call fcn.00406430
test eax, eax
jne 0x471cf8
cmp byte [ebp - 5], 1
je 0x471d17
call fcn.00403e6e
call fcn.004036b8
cmp byte [0x4c1134], 0
mov ebx, 0x4c1708
jne 0x403e1f
mov ecx, ebx
call fcn.00404ffc
push edi
mov ecx, 0x4c1160
call fcn.0040e8d0
cmp byte [0x4c1134], 0
jne 0x403e3a
mov ecx, ebx
call fcn.00403847
mov ecx, esi
call fcn.004052b5
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.0040cb37
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c10bc], 0xffffffff
jmp 0x403e41
mov dword [0x4c10bc], edi
jmp 0x403e41
push 0x10
push 0x4b28f4
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403e4e
push 0xffffffffffffffff
push dword [0x4c1138]
mov ecx, esi
push edi
call fcn.0041c682
mov al, byte [0x4c10c2]
mov byte [0x4c2102], al
jmp 0x403dde
mov ecx, esi
call fcn.004052b5
lea eax, [ebp - 0x1002c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4c10bc], edi
jmp 0x403e4e
call fcn.004471fa
test al, al
jne 0x403e00
cmp byte [ebp - 7], al
jne 0x403e00
lea ecx, [ebp - 0x2c]
call fcn.00405374
push 0x49dab4
lea ecx, [ebp - 0x1c]
call fcn.0040ce19
lea ecx, [ebp - 0x1c]
test bl, bl
je 0x471d6e
mov edi, 0x4b2928
push edi
call fcn.0040518c
push 0x4c1148
lea ecx, [ebp - 0x1c]
call fcn.0040510d
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040518c
push 1
jmp 0x471d77
push dword [ebp + 8]
call fcn.0040518c
push edi
lea eax, [ebp - 0x1002c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push 0x4b292c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x1c]
call fcn.0040cb37
jmp 0x403e3a
Function at 0x40406b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4040a3
push edi
push 0
push 0x4aeefc
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x474f16
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4040a2
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4040a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4040a2
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x4040a2

Function at 0x4044ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x474fc0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042381e
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x404513

Function at 0x4049fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040bcce
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4741cc
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474246
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f4ea
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004047b7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47423d
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00406a63
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.004047e2
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x404a2d
Function at 0x40c2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x40c354
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x40c317
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x40c327
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
inc edi
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx - 1], al
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x40c2f7
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c317
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c317
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x40c2ff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004045a6
jmp 0x40c2ee
Function at 0x41b63c
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 0x41b6e1
cmp eax, dword [edi + 0x178]
jne 0x41b6e1
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 0x47df91
cmp dword [ebp + 0xc], 0
je 0x41b6c2
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x47dffd
cmp dword [ebp + 0xc], 0
je 0x41b6da
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 0x41b688
jmp 0x47df80
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00468e5c
jmp 0x41b688
cmp dword [ebp + 0xc], 1
jl 0x41b6b6
cmp byte [edi + 0x1a8], 0
je 0x41b6b6
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, eax
je 0x47dfb9
push 0xfffffffffffffff9
jmp 0x47dfe9
push 0xfffffffffffffff8
call fcn.00468e5c
cmp byte [edi + 0x184], 0
je 0x47dfee
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 0x47dfe7
push 0xfffffffffffffffa
jmp 0x47dfe9
push 0xfffffffffffffff4
call fcn.00468e5c
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x41b6b6
cmp dword [ebp + 0xc], 1
jl 0x41b6ce
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test esi, esi
je 0x47e018
push 0xfffffffffffffff7
jmp 0x47e01a
push 0xfffffffffffffff6
call fcn.00468e5c
jmp 0x41b6ce

Function at 0x41d298
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x41d315
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41d315
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d315
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d2fc
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x41d30c
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x41d2fa
xor al, al
jmp 0x41d308
Function at 0x41e593
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c10c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.00422933
pop ecx
push eax
call fcn.00422765
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040d5e4
test al, al
jne 0x474256
lea ecx, [ebp - 0x18]
call fcn.0041e63a
mov ecx, edi
call fcn.0040936c
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041e65e
push dword [ebp - 0x18]
push 0x4aec6c
push esi
call fcn.00422b2c
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x474276
lea ecx, [ebp - 0x18]
call fcn.0040cb37
mov edi, dword [ebp - 8]
push esi
call fcn.00422cf1
pop ecx
cmp ebx, 0xffffffff
je 0x47428d
push ebx
push esi
call fcn.00422933
pop ecx
push eax
call fcn.00422765
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044b59e
push eax
push 1
call fcn.0044b55b
push eax
call fcn.00422aae
add esp, 0x10
mov edi, eax
jmp 0x41e613
mov ecx, edi
call fcn.0040936c
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41e608
push 0x4000
jmp 0x41e624
Function at 0x41ea69
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c1628
jne 0x47dc2c
mov ecx, dword [0x4c1694]
cmp ecx, 0xffffffff
je 0x41eb0f
mov eax, dword [0x4c1688]
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 0x41eabb
mov byte [esi + 0x3a], cl
cmp dword [esi + 0x18c], ecx
jge 0x47dc43
cmp dword [esi + 0x1a4], ecx
jne 0x47dc6a
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x47dc91
je 0x41eae3
test edi, edi
je 0x41eb30
cmp edi, 1
je 0x41eae3
cmp edi, 2
je 0x41eb27
cmp edi, 3
je 0x41eb1e
jle 0x41eb05
cmp edi, 5
jg 0x41eb13
cmp byte [esi + 0x38], 0
jne 0x41eb3e
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41eb01
cmp edi, 4
je 0x41eb01
push ebx
call fcn.0041eb42
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x41eb0a
cmp edi, 6
je 0x47dc79
jmp 0x41eb05
mov byte [esi + 0x38], 1
jmp 0x47dce6
mov byte [esi + 0x38], 1
jmp 0x47dc79
push ecx
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41eb05
xor eax, eax
jmp 0x41eb08
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041b34e
mov ecx, eax
mov dword [0x4c1694], ecx
jmp 0x41ea82
cmp byte [esi + 0x198], cl
je 0x41eaaf
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0046e397
xor ecx, ecx
mov byte [esi + 0x198], cl
jmp 0x41eaaf
push dword [esi]
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor ecx, ecx
jmp 0x41eabb
cmp byte [esi + 0x38], 0
je 0x41eb3e
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41eb05
mov eax, edi
sub eax, 9
je 0x47dce6
sub eax, 0x37
je 0x47dcd8
dec eax
je 0x47dcd5
dec eax
je 0x47dcc5
dec eax
jne 0x41eb05
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 0x41eb05
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41eb05
push ecx
jmp 0x47dcda
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41eb05
cmp byte [esi + 0x38], 0
je 0x41eb3e
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.0041eb42
jmp 0x41eb05
Function at 0x41eb42
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 0x473add
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x473af2
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 0x473b06
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 0x473be1
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 0x473bbd
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 0x473bc2
push 4
jmp 0x473bbf
push 3
pop ebx
jmp 0x473bc5
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 0x473be4
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41eb60
Function at 0x433920
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4badc0]
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.00427f0c
mov dword [ebp - 0x14], eax
cmp dword [0x4c1048], edi
jne 0x433a11
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43399e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x433af1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x433af1
push 0x49ba60
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433af1
push eax
call ebx
push 0x49ba6c
push esi
mov dword [0x4c1048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c104c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c1050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c1058], eax
test eax, eax
je 0x433a0e
push 0x49baac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c1054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x433a36
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x433a29
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x433a4b
push 4
pop eax
jmp 0x433af3
cmp dword [ebp - 0x14], edi
je 0x433a4b
push dword [0x4c1048]
call dword [0x4ba004]
push 3
jmp 0x433a30
mov eax, dword [0x4c1054]
mov ebx, dword [0x4ba004]
cmp eax, esi
je 0x433aa9
cmp dword [0x4c1058], esi
je 0x433aa9
push eax
call ebx
push dword [0x4c1058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x433aa9
test eax, eax
je 0x433aa9
call ecx
test eax, eax
je 0x433a9e
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 0x433a9e
test byte [ebp - 8], 1
jne 0x433aa9
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x433ad9
mov eax, dword [0x4c104c]
cmp eax, esi
je 0x433ad6
push eax
call ebx
test eax, eax
je 0x433ad6
call eax
mov edi, eax
test edi, edi
je 0x433ad6
mov eax, dword [0x4c1050]
cmp eax, esi
je 0x433ad6
push eax
call ebx
test eax, eax
je 0x433ad6
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c1048]
call ebx
test eax, eax
je 0x433af1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x433af3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a70c
leave
ret
Function at 0x43a14d
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.0040d7f7
lea ecx, [ebp - 0x20]
call fcn.0040d7f7
lea ecx, [ebp - 0x40]
call fcn.0040d7f7
push 0x4b28ac
lea ecx, [ebp - 0x30]
call fcn.00406a63
push esi
lea ecx, [ebp - 0x30]
call fcn.0040518c
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.0040518c
lea ecx, [ebp - 0x20]
call fcn.0040bcce
test edi, edi
je 0x43a1d0
push 0x5c
pop eax
cmp word [edi], ax
je 0x43a1d0
cmp word [edi + 2], ax
je 0x43a1d0
push 0x4b28e0
lea ecx, [ebp - 0x20]
call fcn.00406a63
push edi
lea ecx, [ebp - 0x20]
call fcn.0040518c
cmp dword [ebp + 0xc], ebx
je 0x43a221
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00420d50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.00406eed
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.0040518c
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 0x43a2ad
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 0x43a2ad
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 0x43a2a8
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 0x43a2a3
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.0040cb37
lea ecx, [ebp - 0x20]
call fcn.0040cb37
lea ecx, [ebp - 0x30]
call fcn.0040cb37
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43aac3
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 0x43ab1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x43ab1d
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 0x43ab1d
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x43ab1d
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x43af64
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
call fcn.0043ac8c
test al, al
je 0x43af76
pop ebp
jmp fcn.0043acc5
pop ebp
jmp fcn.0043af7d

Function at 0x43b106
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 0x43b263
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 0x43b2d4
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x43b5b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0xb0
push dword [esi]
mov dword [ebp - 0x10], esi
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x43b5e0
xor al, al
jmp 0x43b65a
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x43b657
cmp edi, dword [ebp - 8]
jb 0x43b657
cmp edi, dword [ebp - 4]
jb 0x43b657
xor ecx, ecx
push 2
lea esi, [edi + 1]
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f4ea
pop ecx
push eax
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x43b64c
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x43b63b
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.00406a63
mov bl, 1
push esi
call fcn.0041f55e
pop ecx
mov al, bl
jmp 0x43b659
xor al, al
pop ebx
pop edi
pop esi
leave
ret 4