joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4502e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x45038a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x4503a6
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x4503a6
sub dx, 0x20
je 0x450380
sub dx, 0x80
je 0x450380
sub dx, 0x1f62
jb 0x4503a6
sub dx, 1
jbe 0x450380
sub dx, 6
je 0x450380
sub dx, 0x26
jne 0x4503a6
nop
jmp 0x450380
cmp eax, dword [ebp - 0x20]
jg 0x450328
lea esi, [esi]
jmp 0x4503a6
cmp dword [ebp - 0x1c], 2
jne 0x45039a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x4503a6
mov al, byte [ebp - 0xc]
call fcn.0040b760
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x450424
sub ax, 0x21
je 0x450438
sub ax, 0x17
je 0x450444
sub ax, 0x222
je 0x450450
sub ax, 0x392
je 0x450458
sub ax, 1
je 0x450460
sub ax, 0x1996
je 0x450468
sub ax, 1
je 0x450470
sub ax, 6
je 0x450478
sub ax, 0xb
je 0x450488
sub ax, 0x1b
je 0x450480
sub ax, 0x367
je 0x450490
jmp 0x450498
mov ax, word [ebp - 0x24]
call fcn.0040b800
mov byte [ebp - 0x10], al
jmp 0x4504a0
mov byte [ebp - 0x10], 0x20
jmp 0x4504a0
mov byte [ebp - 0x10], 0x2e
jmp 0x4504a0
mov byte [ebp - 0x10], 0x27
jmp 0x4504a0
mov byte [ebp - 0x10], 0x2c
jmp 0x4504a0
mov byte [ebp - 0x10], 0x27
jmp 0x4504a0
mov byte [ebp - 0x10], 0x20
jmp 0x4504a0
mov byte [ebp - 0x10], 0x20
jmp 0x4504a0
mov byte [ebp - 0x10], 0x20
jmp 0x4504a0
mov byte [ebp - 0x10], 0x20
jmp 0x4504a0
mov byte [ebp - 0x10], 0x2d
jmp 0x4504a0
mov byte [ebp - 0x10], 0x27
jmp 0x4504a0
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x497270
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x4972a4
mov edi, 0xffffffff
nop
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x722150]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x497280
pop edi
pop esi
pop ebx
ret

Function at 0x4b6980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4b69b1
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4b69a0
pop esi
pop ebx
ret

Function at 0x4b8190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4b81b4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4b827a
mov esi, esi
xor eax, eax
push 0x4b825b
push ebp
push 0x414cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040d5d0
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x6a3760
call fcn.0042f300
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004b8410
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004b8480
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004b84f0
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4b8250
cmp dword [ebp - 4], 0
je 0x4b8250
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4b827a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c0ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x4c0eeb
jmp 0x4c0ef8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x4c0f00
jmp 0x4c0f08
jmp 0x4c0fb6
xor eax, eax
push 0x4c0f93
push ebp
push 0x414cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4c0f3e
jmp 0x4c0f64
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0042d270
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4c0f73
jmp 0x4c0f88
cmp dword [ebp - 8], 0
jne 0x4c0f7b
jmp 0x4c0f88
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4c0fb6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c2d20
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c2d54
mov eax, esi
call fcn.004c72a0
cmp byte [esi + 0x40], 0
je 0x4c2d4c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4c2e05
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4c2de4
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4c2ddc
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c2d88
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4c2da0
xor bl, bl
jmp 0x4c2e05
cmp edi, 2
je 0x4c2dda
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c2d78
cmp edi, 3
je 0x4c2db8
cmp edi, 1
jne 0x4c2d78
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4c2d78
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4c2d78
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4c2dfc
cmp dword [esi + 0x14], 0xcc
je 0x4c2dfc
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004c3140
lea esi, [esi]
mov eax, esi
call fcn.004c2e10
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4e1d00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4e1d16
jmp 0x4e1d50
mov eax, dword [0x67c280]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x170]
cmp eax, dword [edx + 0x24]
je 0x4e1d2b
jmp 0x4e1d50
mov eax, dword [0x67c280]
cmp byte [eax + 0x11c], 0
je 0x4e1d3b
jmp 0x4e1d50
mov eax, dword [0x67d150]
mov edx, dword [0x67d150]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, dword [0x67d150]
mov edx, dword [0x67d150]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
je 0x4e1d6c
jmp 0x4e1e4a
mov eax, dword [0x67c280]
cmp byte [eax + 0x11c], 0
je 0x4e1d7f
jmp 0x4e1e4a
mov eax, dword [0x67d150]
mov edx, dword [0x67d150]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.0055e070
mov eax, dword [0x67c280]
cmp dword [eax + 0x170], 0
jne 0x4e1da4
jmp 0x4e1e10
push 0x10
push 0
mov eax, dword [0x67c280]
mov eax, dword [eax + 0x170]
push dword [eax + 0x254]
mov eax, dword [0x67c280]
mov eax, dword [eax + 0x170]
push dword [eax + 0x248]
mov eax, dword [0x67c280]
mov eax, dword [eax + 0x170]
push dword [eax + 0x12c]
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x67c280]
mov eax, dword [eax + 0x170]
call fcn.00503470
test al, al
jne 0x4e1dfd
jmp 0x4e1e10
push 0
mov eax, dword [0x67c280]
call fcn.00421e90
push eax
call sub.user32.dll_ShowWindow
nop
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x67c280]
call fcn.004253d0
jmp 0x4e1ee8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4e1e55
jmp 0x4e1ea2
mov eax, dword [ebp - 4]
mov edx, dword [0x67c280]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
je 0x4e1e6b
jmp 0x4e1ea2
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x67c280]
call fcn.004253d0
jmp 0x4e1ee8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x4e1ead
jmp 0x4e1ee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
jne 0x4e1ec1
jmp 0x4e1ee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x67d150]
mov edx, dword [0x67d150]
mov edx, dword [edx]
call dword [edx + 0x8c]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e8bb0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x4e8bde
jmp 0x4e8c4c
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x4e8bfa
jmp 0x4e8c4c
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004e8b90
push ebp
push 0x414930
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004e8b90
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e9350
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004e9330
push ebp
push 0x414930
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e93a3
jmp 0x4e9420
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00472f60
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.00472eb0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00473670
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.00474b20
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e9477
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004e9310
push ebp
push 0x414930
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e9310
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e9330
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x514af0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x514b0b
jmp 0x514b18
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x514b20
jmp 0x514b28
jmp 0x514bda
xor eax, eax
push 0x514bb7
push ebp
push 0x414cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d5d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x514b99
jmp 0x514bac
cmp dword [ebp - 8], 0
jne 0x514ba1
jmp 0x514bac
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x514bda
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55e4c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.0055e4a0
push ebp
push 0x414930
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040ac90
cmp dword [ebp - 0xc], 0
jg 0x55e50c
jmp 0x55e52c
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x55e51f
mov eax, 0x7202f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
nop
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040ac90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040b3d0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x55e555
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x55e561
mov eax, 0x7202f0
call fcn.004553e0
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0055e4a0
mov esp, ebp
pop ebp
ret
Function at 0x55fcd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x6ef470
call fcn.0040ed60
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0055fcc0
push ebp
push 0x414930
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408d30
mov eax, dword [ebp - 0xc]
mov edx, fcn.004e5ef0
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.00409680
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408d30
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0055db30
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00560360
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x55fdd5
jmp 0x55fdf4
mov eax, dword [ebp - 4]
call fcn.00508390
test al, al
je 0x55fde3
jmp 0x55fdf4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0055fcc0
mov esp, ebp
pop ebp
ret
Function at 0x5a12e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x5a1304
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x5a13ea
mov esi, esi
xor eax, eax
push 0x5a13cb
push ebp
push 0x414cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
mov word [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov word [eax + 0x14], 0x1010
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x30], 0
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x5a13c0
cmp dword [ebp - 4], 0
je 0x5a13c0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x5a13ea
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5a3ef0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov byte [ebp - 0x10], 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test eax, eax
jne 0x5a3f36
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x5a3f36
lea eax, [ebp - 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x5a3fea
lea eax, [ebp - 8]
push eax
push 0
push 0
push 2
push dword [ebp - 4]
call sub.advapi32.dll_GetTokenInformation
push dword [ebp - 8]
call fcn.00410000
pop esi
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 2
push dword [ebp - 4]
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x5a3fe3
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x697340
call sub.advapi32.dll_AllocateAndInitializeSid
mov eax, dword [edi]
dec eax
mov esi, eax
test esi, esi
jl 0x5a3fdb
mov ebx, 0xffffffff
inc ebx
mov eax, dword [edi + ebx*8 + 8]
and eax, 4
cmp eax, 4
sete al
movzx eax, al
neg eax
je 0x5a3fd7
push dword [edi + ebx*8 + 4]
push dword [ebp - 0xc]
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x5a3fd7
mov byte [ebp - 0x10], 1
jmp 0x5a3fdb
cmp esi, ebx
jg 0x5a3fac
push dword [ebp - 0xc]
call sub.advapi32.dll_FreeSid
mov eax, edi
call fcn.0040ffe0
mov al, byte [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ca4c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x28]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x5ca4e8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x5ca602
mov esi, esi
xor eax, eax
push 0x5ca5e3
push ebp
push 0x414cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 1
mov edx, 1
mov eax, 0x705934
call fcn.005ca200
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
lea ecx, [ebp - 0x18]
xor edx, edx
xor eax, eax
call fcn.005a4ae0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
mov edx, 1
mov eax, 0x705a2c
call fcn.005c9a70
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], eax
mov edx, 1
mov eax, 0x7059b0
call fcn.005c9ec0
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
call dword [ecx + 0xac]
mov eax, dword [ebp - 0xc]
lea edi, [eax + 0x1c]
lea esi, [ebp - 0x28]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x49], 1
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x5ca5d8
cmp dword [ebp - 8], 0
je 0x5ca5d8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x5ca602
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret