joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50559c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x5055dd
push 0x2b
push 0x4014fb9
push 6
call fcn.005693b9
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setne al
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x50561b
push 0x59
push 0x4014fb9
push 6
call fcn.005693b9
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x505623
mov esp, ebp
pop ebp
ret 4

Function at 0x5070ea
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x5070f4
add dword [esp], 5
retf

Function at 0x5072b2
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x5072bc
add dword [esp], 5
retf

Function at 0x507347
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x5073c7
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x5073c7
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x5073c7
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x5073c7
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x5073b8
test bl, bl
je 0x5073cb
dec eax
mov eax, edx
jmp 0x5073a4
inc ebp
test al, al
je 0x5073cb
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x50739f
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x50738b
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x5073c5
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x50744a
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x507476
add dword [esp], 5
retf
Function at 0x507a69
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x507aa1
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x507a8f
mov al, 1
jmp 0x507b00
cmp dword [ebx + 0x54], ecx
jne 0x507a98
mov al, 2
jmp 0x507b00
cmp dword [ebx + 0x7c], ecx
jne 0x507b00
mov al, 3
jmp 0x507b00
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x507ab6
mov al, 4
jmp 0x507b00
cmp ecx, 5
jne 0x507ad6
cmp ebx, 0
jne 0x507ac4
mov al, 5
jmp 0x507b00
cmp ebx, 1
jne 0x507acd
mov al, 6
jmp 0x507b00
cmp ebx, 2
jne 0x507ad6
mov al, 7
jmp 0x507b00
cmp ecx, 6
jne 0x507afe
cmp ebx, 0
jne 0x507ae4
mov al, 8
jmp 0x507b00
cmp ebx, 1
jne 0x507aeb
mov al, 9
cmp ebx, 2
jne 0x507af2
mov al, 0xa
cmp ebx, 3
jne 0x507af9
mov al, 0xb
cmp ebx, 4
jne 0x507b00
mov al, 0xc
pop ebx
leave
ret

Function at 0x507b11
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x507b1b
add dword [esp], 5
retf
Function at 0x50b75a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x50b82f
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x50b82f
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x50b82f
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x50b7b5
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x50b82f
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x50b7fa
test dl, dl
je 0x50b7f6
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x50b7fa
add ecx, 2
add eax, 2
test dl, dl
jne 0x50b7da
xor eax, eax
jmp 0x50b7ff
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50b811
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x50b81c
inc esi
cmp esi, ebp
jae 0x50b82f
mov edx, dword [esp + 0x10]
jmp 0x50b7d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x50ba93
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x50ba9e
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x50bab2
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x50bab6
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x50baef
cmp dword [edi + ecx], 0x4550
jne 0x50baef
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x50baef
test byte [edi + ecx + 0x16], 2
je 0x50baef
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x50baf4
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x50bb30
xor eax, eax
jmp 0x50bb13
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x50bb39
inc edx
movzx eax, dx
cmp eax, edi
jl 0x50bb13
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x50bb3f
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x50bb77
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x50bb85
add edx, 0x20
cmp eax, edx
jne 0x50bb96
test bx, bx
je 0x50bbcb
add esi, 2
add edi, 2
jmp 0x50bb67
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x50bba4
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x50bbb2
add edx, 0x20
sub ecx, edx
je 0x50bbcb
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x50bb60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x50bbe4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x50bcbd
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x50bcbd
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x50bcbd
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x50bc43
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x50bcbd
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x50bc88
test dl, dl
je 0x50bc84
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x50bc88
add ecx, 2
add eax, 2
test dl, dl
jne 0x50bc68
xor eax, eax
jmp 0x50bc8d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50bc9f
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x50bcaa
inc esi
cmp esi, ebp
jae 0x50bcbd
mov edx, dword [esp + 0x10]
jmp 0x50bc5e
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x50bcd9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
test esi, esi
je 0x50be01
xor eax, eax
mov word [esp + 0x54], ax
mov byte [esp + 0x38], al
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x65006b
mov dword [esp + 0x44], 0x6e0072
mov dword [esp + 0x48], 0x6c0065
mov dword [esp + 0x4c], 0x320033
mov dword [esp + 0x50], 0x64002e
mov dword [esp + 0x54], str.t1_E
mov dword [esp + 0x2c], 0x4d746547
mov dword [esp + 0x30], 0x6c75646f
mov dword [esp + 0x34], 0x6e614865
mov dword [esp + 0x38], 0x41656c64
mov dword [esp + 0x14], 0x65657246
mov dword [esp + 0x18], 0x7262694c
mov dword [esp + 0x1c], 0x797261
mov dword [esp + 0x20], 0x74726956
mov dword [esp + 0x24], 0x466c6175
mov dword [esp + 0x28], 0x656572
call fcn.0050bf3b
add esp, 4
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0050be0d
mov ebp, eax
test ebp, ebp
je 0x50be01
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0050be0d
mov edi, eax
test edi, edi
je 0x50be01
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0050be0d
mov ebx, eax
test ebx, ebx
je 0x50be01
mov ecx, dword [esi + 0x3c]
mov eax, 0x2000
test word [ecx + esi + 0x16], ax
je 0x50bddd
mov eax, dword [ecx + esi + 0x28]
test eax, eax
je 0x50bddd
push 0
push 0
push esi
add eax, esi
call eax
push edi
push ebp
push esi
call fcn.0050beee
add esp, 0xc
push 0x8000
push 0
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 4

Function at 0x50be0d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x50bee2
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x50bee2
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x50bee2
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x50be68
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x50bee2
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x50bead
test dl, dl
je 0x50bea9
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x50bead
add ecx, 2
add eax, 2
test dl, dl
jne 0x50be8d
xor eax, eax
jmp 0x50beb2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50bec4
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x50becf
inc esi
cmp esi, ebp
jae 0x50bee2
mov edx, dword [esp + 0x10]
jmp 0x50be83
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x50bf3b
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x50bf73
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x50bf81
add edx, 0x20
cmp eax, edx
jne 0x50bf92
test bx, bx
je 0x50bfc7
add esi, 2
add edi, 2
jmp 0x50bf63
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x50bfa0
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x50bfae
add edx, 0x20
sub ecx, edx
je 0x50bfc7
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x50bf5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x51227d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x5122a9
add dword [esp], 5
retf

Function at 0x515e6b
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ebx, dword [0xd2b5ba]
push ebx
call fcn.005693b3
add esp, 4
mov eax, 0xa5f8c2
mov dword [0xd2b5ba], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
call fcn.005693b3
add esp, 4
mov eax, 0xa5f8c2
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push 0
push 0x515fc6
call dword [sym.imp.user32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x515ed8
push 0x34
push 0x4025b01
push 6
call fcn.005693b9
add esp, 0xc
mov eax, dword [0xd2b5ba]
push eax
push eax
mov ebx, eax
call fcn.004d6702
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005693ad
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
call fcn.005693b3
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0xd2b5ba]
call fcn.004d737d
jmp 0x515f1f
mov esp, ebp
pop ebp
ret 8

Function at 0x5160e2
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
lea eax, [ebp + 8]
push eax
push 0x5161f8
call dword [sym.imp.user32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x51611d
push 0
push 0x4025b03
push 6
call fcn.005693b9
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x516125
mov esp, ebp
pop ebp
ret 4
Function at 0x520d4e
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x520d58
add dword [esp], 5
retf

Function at 0x521bb7
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x521bc1
add dword [esp], 5
retf

Function at 0x5252c9
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x5252f5
add dword [esp], 5
retf
Function at 0x526464
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.005693ad
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.005693ad
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.005693ad
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x8d4
call fcn.0056eada
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0x52651d
mov eax, 0
jmp 0x526689
cmp dword [ebp + 0xc], 0
jne 0x526553
mov dword [ebp - 0x18], esp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x526550
push 0xa0
push 0x40282e5
push 6
call fcn.005693b9
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x52657b
mov eax, 0xba32a6
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x526575
push ebx
call fcn.005693b3
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x5265b0
push 0x104
push 0x40282e5
push 6
call fcn.005693b9
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0xa5f8b9
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x5265e6
push 0x12e
push 0x40282e5
push 6
call fcn.005693b9
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x526684
push 0x225
push 0x40282e5
push 6
call fcn.005693b9
add esp, 0xc
jmp 0x526689
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.005693b3
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.005693b3
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.005693b3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x52879c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x5287a6
add dword [esp], 5
retf
Function at 0x534db3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x534dea
push 0x12
push 0x4026fa1
push 6
call fcn.005693b9
add esp, 0xc
jmp 0x534def
mov esp, ebp
pop ebp
ret 4
Function at 0x54dc55
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x54dc7a
mov eax, 0xa5f8c2
push eax
push 1
mov ebx, 0x194
call fcn.0056a20a
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 8]
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x54dcce
push 0x3b
push 0x4028140
push 6
call fcn.005693b9
add esp, 0xc
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x54dce6
mov eax, 0xa5f8c2
push eax
push 1
mov ebx, 0x194
call fcn.0056a20a
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x54dd1a
add eax, 8
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x54dd47
push 0x90
push 0x4028140
push 6
call fcn.005693b9
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x54dd4f
mov esp, ebp
pop ebp
ret 8

Function at 0x54f6c9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x54f701
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x54f6ef
mov al, 1
jmp 0x54f760
cmp dword [ebx + 0x54], ecx
jne 0x54f6f8
mov al, 2
jmp 0x54f760
cmp dword [ebx + 0x7c], ecx
jne 0x54f760
mov al, 3
jmp 0x54f760
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x54f716
mov al, 4
jmp 0x54f760
cmp ecx, 5
jne 0x54f736
cmp ebx, 0
jne 0x54f724
mov al, 5
jmp 0x54f760
cmp ebx, 1
jne 0x54f72d
mov al, 6
jmp 0x54f760
cmp ebx, 2
jne 0x54f736
mov al, 7
jmp 0x54f760
cmp ecx, 6
jne 0x54f75e
cmp ebx, 0
jne 0x54f744
mov al, 8
jmp 0x54f760
cmp ebx, 1
jne 0x54f74b
mov al, 9
cmp ebx, 2
jne 0x54f752
mov al, 0xa
cmp ebx, 3
jne 0x54f759
mov al, 0xb
cmp ebx, 4
jne 0x54f760
mov al, 0xc
pop ebx
leave
ret
Function at 0x553612
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0056b31a
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x553657
push ebx
call fcn.005693b3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x55368f
push 0x36
push 0x4028965
push 6
call fcn.005693b9
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x5536ab
push eax
mov ebx, eax
call fcn.004d6722
inc eax
push eax
call fcn.005693ad
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5536b0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5536c1
push ebx
call fcn.005693b3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x568af1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x568b16
mov eax, 0xa5f8c2
push eax
push 1
mov ebx, 0x194
call fcn.0056a20a
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push dword [ebp - 8]
push 0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x568b6a
push 0x4e
push 0x4028148
push 6
call fcn.005693b9
add esp, 0xc
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0054eccd
mov eax, dword [ebp - 4]
jmp 0x568b83
mov esp, ebp
pop ebp
ret 8

Function at 0x56af7a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x56afe3
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00569f1a
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret