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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b1ca0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4b4b94]
push edi
mov ax, word [esi + 0x14]
mov word [esi + 0x1f8], ax
push dword [0x4b4b70]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [esi + 0x3d1], al
push dword [0x4b4b70]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x45765e
push 1
push dword [0x4b4b70]
call edi
push dword [0x4b4b74]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x457637
push 1
push dword [0x4b4b74]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x457659
call fcn.00458470
mov byte [esi + 0x3d1], 1
call fcn.00446dd0
mov dword [esi + 0x20c], 0
lea eax, [esi + 0x208]
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0
mov dword [esi + 0x21c], 0
mov dword [esi + 0x220], 0
mov dword [esi + 0x224], 0
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
push eax
mov dword [eax], 0x2c
push dword [0x4b4b70]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x4b4b70]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4576f5
push 1
push dword [0x4b4b70]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0xfefe
and ax, cx
mov ecx, 0x82
or ax, cx
test byte [esi + 0x1f8], 0x10
mov word [esi + 0x14], ax
jne 0x4577a2
mov ecx, dword [0x4b4b98]
test ecx, ecx
je 0x457779
movsx eax, word [esi + 0x1c]
cmp dword [ecx], eax
jl 0x457779
movsx eax, word [esi + 0x1e]
cmp dword [ecx + 4], eax
jl 0x457779
push 2
push dword [0x4b4b70]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x457779
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x457779
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
movsx eax, word [esi + 0x1c]
cmp eax, ecx
jne 0x457779
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
movsx eax, word [esi + 0x1e]
cmp eax, ecx
je 0x4577a2
or word [esi + 0x14], 0x14
push dword [0x4b4b6c]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, dword [0x4b4b6c]
movzx eax, ax
test ecx, ecx
je 0x4577a2
or eax, 2
push eax
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_17]
call fcn.00446f30
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4577d7
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4577d7
push 8
push 0x401
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_CheckMenuItem]
call fcn.00458680
call fcn.00446dd0
call fcn.004469c0
push 3
push dword [0x4b4b70]
call edi
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [0x4b4b74]
call esi
push 1
push 0
push dword [0x4b4b70]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x4b4ba8], 1
pop esi
call fcn.0047539e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x458740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test esi, esi
je 0x458818
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x4587b2
test byte [esi], 0x10
je 0x458771
test ebx, ebx
jne 0x458775
jmp 0x4587b2
test ebx, ebx
jne 0x4587b2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x458789
test eax, eax
jns 0x4587af
jmp 0x45878d
test eax, eax
js 0x4587af
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x4587a3
test eax, eax
jns 0x4587ab
jmp 0x4587a7
test eax, eax
js 0x4587ab
movzx edi, word [esi + 4]
test edi, edi
jne 0x4587bc
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x458818
add esi, 8
jmp 0x458760
test cl, 0x40
je 0x4587ef
cmp edi, 0x7d0
jl 0x4587f7
mov esi, dword [ebp - 4]
push 0
movzx eax, di
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jl 0x4587c9
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x458818
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x458818
test al, 1
je 0x4587cc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458960
Capabilities:
Log keystrokes

Disassembly:
push ebx
push edi
mov ebx, ecx
mov edi, edx
xor eax, eax
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4589ab
push esi
push 2
push 0x40
call fcn.00478e79
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4b4b60]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.00478e8f
add esp, 0x10
pop esi
jmp 0x4589f7
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x4589c8
lea eax, [edi - 0x6f]
push eax
push 0x4a2bc8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4589f7
xor eax, eax
nop word [eax + eax]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x4589e1
inc eax
cmp eax, 0x14
jl 0x4589d0
jmp 0x4589f7
push 0x3f
push ebx
push dword [eax*8 + 0x4a2634]
push dword [0x4b4b60]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x458a0f
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
pop edi
pop ebx
ret
Function at 0x458a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x458a98
push 2
push 0x80
call fcn.00478e79
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.00458960
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00478e8f
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x458a52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
cmp dword [esi + 0x2a4], 0
lea ecx, [ebp - 1]
push 1
push ecx
push eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46a69e
cmp byte [ebp - 1], 0
push edi
je 0x46a691
mov esi, dword [esi + 0x2a4]
mov edi, dword [0x4b4b94]
cmp edi, esi
je 0x46a678
test esi, esi
jne 0x46a617
xor ecx, ecx
jmp 0x46a61d
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4b4b98], ecx
je 0x46a641
mov dword [0x4b4b9c], 0
test ecx, ecx
je 0x46a63b
mov eax, dword [ecx + 0x7c]
mov dword [0x4b4b9c], eax
mov dword [0x4b4b98], ecx
mov dword [0x4b4b94], esi
test esi, esi
je 0x46a65e
mov eax, dword [esi + 0x1d0]
mov dword [0x4b4b74], eax
mov eax, dword [esi + 0x1d4]
jmp 0x46a66a
mov dword [0x4b4b74], 0
xor eax, eax
push eax
mov dword [0x4b4b6c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.0044f090
mov ecx, esi
mov edi, eax
call fcn.00402c20
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46a6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46a739
cmp byte [ebp - 1], 0
je 0x46a734
push dword [ebx + 0x2ac]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.00469a80
mov ecx, dword [ebx + 0x2a4]
add esp, 8
test ecx, ecx
je 0x46a739
call fcn.00402c20
mov ecx, dword [ebx + 0x2a4]
xor edx, edx
mov esi, eax
call fcn.00406c80
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00450d00
mov ecx, esi
mov edi, eax
call fcn.00402c20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b8c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b1ca0]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46b908
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00483342
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047539e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0047539e
mov esp, ebp
pop ebp
ret
Function at 0x472040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3e60]
push edi
test eax, eax
je 0x4720b9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4720b9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4720b9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4720a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4720a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4720a1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x4720c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3e60]
push edi
test eax, eax
je 0x472139
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x472139
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x472139
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x472121
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x472121
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x472121
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x472140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3e60]
push edi
test eax, eax
je 0x4721b9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x4721b9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x4721b9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4721a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4721a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4721a1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x4721c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3e60]
push edi
test eax, eax
je 0x472239
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x472239
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x472239
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x472221
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x472221
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x472221
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x4724c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3e60]
push edi
test eax, eax
je 0x472524
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x472524
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x472524
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x472515
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x472515
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x472515
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x47251e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x472530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b3e60]
push edi
test eax, eax
je 0x472594
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x472594
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x472594
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x472585
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x472585
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x472585
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x47258e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x4821ca
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482065
Function at 0x401070
Capabilities:
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], bl
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4010e3
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401113
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4010e3
mov byte [esp + 7], 1
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4010f2
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [esp + 7], bl
je 0x401113
cmp dword [esp + 0xc], ebx
je 0x401113
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040a165
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a165
add esp, 0x18
ret

Function at 0x401130
Capabilities:
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x14
push 1
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], bl
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4011a3
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4011d3
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4011a3
mov byte [esp + 7], 1
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4011b2
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [esp + 7], bl
je 0x4011d3
cmp dword [esp + 0xc], ebx
je 0x4011d3
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040a165
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a165
add esp, 0x18
ret
Function at 0x4011f0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x13
push 1
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], bl
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401263
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401293
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x401263
mov byte [esp + 7], 1
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401272
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [esp + 7], bl
je 0x401293
cmp dword [esp + 0xc], ebx
je 0x401293
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040a165
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a165
add esp, 0x18
ret

Function at 0x4012b0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], bl
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401327
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401357
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x401327
mov byte [esp + 7], 1
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401336
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [esp + 7], bl
je 0x401357
cmp dword [esp + 0xc], ebx
je 0x401357
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040a165
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a165
add esp, 0x18
ret
Function at 0x401370
Capabilities:
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x20
push 2
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x33], bl
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4013e7
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x401417
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4013e7
mov byte [esp + 7], 1
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4013f6
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [esp + 7], bl
je 0x401417
cmp dword [esp + 0xc], ebx
je 0x401417
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040a165
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a165
add esp, 0x18
ret

Function at 0x4014a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x401528
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x401528
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4014c0
push edi
push ebx
push 0x80
push 4
push ebx
push 2
push 0xc0000000
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4014f2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401519
cmp edi, dword [esp + 0x10]
jne 0x401519
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x401530
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push ecx
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40157d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40157d
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret