joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], ecx
test ebx, ebx
je 0x40c96a
dec ebx
shr ebx, 3
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040bd00
lea eax, [edi + 0x88]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push dword [ebp - 0xc]
push eax
call fcn.0040b320
lea eax, [edi + 0x110]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push dword [ebp - 0xc]
push eax
call fcn.0040bd00
mov ecx, dword [ebp - 0xc]
lea esi, [esi + 8]
xor byte [esi - 5], cl
mov eax, ecx
shr eax, 0x18
add esp, 0x30
xor byte [esi - 8], al
mov eax, ecx
mov edx, dword [ebp - 4]
shr eax, 0x10
xor byte [esi - 7], al
mov eax, ecx
mov ecx, dword [ebp - 8]
xor byte [esi - 1], cl
shr eax, 8
xor byte [esi - 6], al
mov eax, ecx
shr eax, 0x18
xor byte [esi - 4], al
mov eax, ecx
shr eax, 0x10
xor byte [esi - 3], al
mov eax, ecx
mov ecx, dword [ebp + 0x10]
shr eax, 8
xor byte [esi - 2], al
add ecx, 1
lea eax, [edx + 1]
mov dword [ebp + 0x10], ecx
cmovne eax, edx
mov dword [ebp - 4], eax
sub ebx, 1
jne 0x40c8d1
pop esi
mov dword [edi + 0x84], ecx
mov dword [edi + 0x80], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ff10
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x120], esi
mov eax, dword [esi]
test eax, eax
jne 0x40ff54
lea eax, [esi + 0x20]
push ebx
push eax
call fcn.00410ed0
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x410003
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0041a6c0
mov edi, dword [esi + 0xc]
add esp, 4
shr edi, 3
xor esi, esi
test edi, edi
je 0x40ffaa
nop dword [eax]
push esi
push ebx
call fcn.00408600
mov byte [ebp - 0x119], al
lea eax, [ebp - 0x119]
push 1
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041a150
inc esi
add esp, 0x14
cmp esi, edi
jl 0x40ff80
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041a370
mov al, byte [ebp - 0x25]
and byte [ebp - 0x44], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.004088a0
mov ecx, dword [ebp - 0x120]
mov edi, eax
add ecx, 0x1c
push edi
push ecx
call fcn.00410ed0
push edi
mov esi, eax
call fcn.00408e90
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret

Function at 0x411970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add dword [ebp + 8], 0xb8
pop ebp
jmp fcn.00411c70
Function at 0x4128a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x412990
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.00421a30
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x4129e7
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x4129e4
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x4129d0
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.00411be0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00411c70
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.00421a30
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x412a28
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x412a28
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x412a14
lea esi, [ebx + 0x5c]
push esi
call fcn.00411be0
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00411c70
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0041cb00
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
Function at 0x416d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ebx
test eax, eax
jle 0x416f1b
push esi
push edi
mov edi, dword [edx + 0x14]
cmp eax, edi
mov byte [ebp - 0x45], cl
cmovle edi, eax
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x48], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x47], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x46], al
mov eax, dword [edx]
mov dword [ebp - 0x60], edi
call eax
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x50]
mov esi, eax
push dword [ebp - 0x58]
push esi
mov ecx, dword [ecx + 8]
call ecx
push 4
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x50]
push esi
mov eax, dword [eax + 8]
call eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x50]
push esi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x4c]
add esp, 0x20
inc ecx
xor eax, eax
mov dword [ebp - 0x4c], ecx
test edi, edi
jle 0x416f01
cmp edi, 8
jb 0x416ee0
lea edx, [ebx - 1]
lea ecx, [ebp + edi - 0x45]
add edx, edi
cmp ebx, ecx
ja 0x416e11
lea ecx, [ebp - 0x44]
cmp edx, ecx
jae 0x416ee0
cmp edi, 0x40
jb 0x416e9c
mov ecx, edi
and ecx, 0x8000003f
jns 0x416e29
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, edi
lea esi, [ebp - 0x44]
sub edx, ecx
lea edi, [ebp - 0x34]
sub esi, ebx
lea ecx, [ebx + 0x20]
sub edi, ebx
mov dword [ebp - 0x5c], edi
mov ebx, edi
nop
movups xmm0, xmmword [ecx - 0x20]
lea edi, [ebp - 0x44]
movups xmm1, xmmword [edi + eax]
mov edi, dword [ebp - 0x60]
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [ebp + eax - 0x34]
add eax, 0x40
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [esi + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + ecx - 0x40]
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edx
jl 0x416e40
mov ebx, dword [ebp - 0x54]
mov ecx, edi
and cl, 0x3f
cmp cl, 8
jb 0x416edc
mov ecx, edi
and ecx, 0x80000007
jns 0x416eab
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, edi
lea esi, [ebp - 0x44]
sub edx, ecx
lea ecx, [eax + ebx]
sub esi, ebx
nop word [eax + eax]
movq xmm1, qword [ecx + esi]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add eax, 8
xorps xmm1, xmm0
movq qword [ecx - 8], xmm1
cmp eax, edx
jl 0x416ec0
cmp eax, edi
jge 0x416efe
lea esi, [ebp - 0x44]
lea edx, [eax + ebx]
sub esi, ebx
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, edi
jl 0x416ef0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x18]
add ebx, edi
mov edx, dword [ebp - 0x50]
sub eax, edi
mov dword [ebp - 0x54], ebx
mov dword [ebp + 0x18], eax
test eax, eax
jg 0x416d85
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
Function at 0x417aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add dword [ebp + 8], 0xd8
pop ebp
jmp fcn.00418180
Function at 0x418280
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x418550
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.00421a30
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x4185a7
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x4185a4
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x418590
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.00418460
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00418180
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.00421a30
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x4185e8
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x4185e8
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x4185d4
lea esi, [ebx + 0x6c]
push esi
call fcn.00418460
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00418180
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0041cb00
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
Function at 0x41a900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add dword [ebp + 8], 0xc0
pop ebp
jmp fcn.0041ae20
Function at 0x41af20
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x41b210
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.00421a30
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x41b267
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x41b264
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41b250
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.0041b0a0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0041ae20
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.00421a30
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x41b2a8
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x41b2a8
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41b294
lea esi, [ebx + 0x60]
push esi
call fcn.0041b0a0
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0041ae20
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0041cb00
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret

Function at 0x41ca60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x484190]
push esi
push edi
test ecx, ecx
jne 0x41caa6
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.00402960
add esp, 0xc
mov dword [0x484190], eax
push esi
push eax
call edi
mov ecx, dword [0x484190]
cmp eax, esi
jge 0x41ca77
push 0
push dword [ebp + 8]
push 0x475520
push ecx
call fcn.00402170
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov edi, eax
call fcn.004028a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41cdd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c0]
push eax
push 4
mov dword [ebp - 0xa0], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0xc9
push dword [0x4854d4]
mov dword [ebp - 0x3c0], 0x3bc
mov dword [ebp - 0x3bc], esi
mov dword [ebp - 0x3b8], 1
mov dword [ebp - 0x3b4], 7
mov dword [ebp - 0x3b0], 0x8006
call dword [sym.imp.USER32.dll_LoadIconW]
movups xmm0, xmmword [str.Pageant__PuTTY_authentication_agent_]
mov ecx, dword [0x475dd0]
mov ebx, eax
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x388], ecx
mov cl, byte [0x475dd4]
movups xmmword [ebp - 0x3a8], xmm0
push eax
movups xmm0, xmmword [0x475dc0]
push 0
mov dword [ebp - 0x3ac], ebx
movups xmmword [ebp - 0x398], xmm0
mov byte [ebp - 0x384], cl
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov esi, eax
test ebx, ebx
je 0x41ce9a
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
Function at 0x41e720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41e772
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_run___.100s___Error:__d
call fcn.00402230
add esp, 0xc
mov esi, eax
push 0x30
push str.Pageant
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.004028a0
add esp, 4
pop esi
pop ebp
ret

Function at 0x41e800
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4841ac], 0
je 0x41e9e6
lea eax, [ebp - 0x420]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41e9e6
push esi
push edi
push dword [0x4841a4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
cmp esi, dword [0x4841b4]
jle 0x41e878
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
nop dword [eax]
push 0x400
push 0
push dword [0x4841a4]
call edi
dec esi
cmp esi, dword [0x4841b4]
jg 0x41e860
push 0x104
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push edi
push dword [ebp - 0x420]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41e98b
push ebx
mov ebx, 0x1000
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041e780
add esp, 0xc
lea ecx, [ebp - 0x210]
mov eax, str.Default_20Settings
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41e8f0
test dl, dl
je 0x41e8ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41e8f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x41e8d0
xor eax, eax
jmp 0x41e8f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41e968
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x450], 0x30
mov dword [ebp - 0x42c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x450]
movlpd qword [ebp - 0x43c], xmm0
push eax
push 1
push edi
push dword [0x4841a4]
movlpd qword [ebp - 0x434], xmm0
movlpd qword [ebp - 0x428], xmm0
mov dword [ebp - 0x44c], 0x13
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], ebx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
inc edi
add ebx, 0x10
push 0x104
lea eax, [ebp - 0x210]
inc esi
push eax
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x41e8a3
pop ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
jne 0x41e9e6
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 0x30
push eax
push 1
push 0
push dword [0x4841a4]
mov dword [ebp - 0x44c], 0x11
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 3
mov dword [ebp - 0x42c], str._No_sessions_
call dword [sym.imp.USER32.dll_InsertMenuItemW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fbe4
mov esp, ebp
pop ebp
ret
Function at 0x41efc0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4841d8], 0
jne 0x41f147
push esi
push str.advapi32.dll
mov dword [0x4841d8], 1
call fcn.0041ca60
add esp, 4
mov dword [0x4841e0], eax
test eax, eax
je 0x41f13e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x485494], eax
test eax, eax
je 0x41f13e
mov eax, dword [0x4841e0]
test eax, eax
je 0x41f134
push str.SetSecurityInfo
push eax
call esi
mov dword [0x485490], eax
test eax, eax
je 0x41f13e
mov eax, dword [0x4841e0]
test eax, eax
je 0x41f121
push str.OpenProcessToken
push eax
call esi
mov dword [0x4854a4], eax
test eax, eax
je 0x41f13e
mov eax, dword [0x4841e0]
test eax, eax
je 0x41f10e
push str.GetTokenInformation
push eax
call esi
mov dword [0x4854a0], eax
test eax, eax
je 0x41f13e
mov eax, dword [0x4841e0]
test eax, eax
je 0x41f0fb
push 0x4783c4
push eax
call esi
mov dword [0x48549c], eax
test eax, eax
je 0x41f13e
mov eax, dword [0x4841e0]
test eax, eax
je 0x41f0e8
push 0x4783e4
push eax
call esi
mov dword [0x485498], eax
test eax, eax
je 0x41f13e
mov eax, dword [0x4841e0]
test eax, eax
je 0x41f0d5
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x48548c], eax
test eax, eax
je 0x41f13e
mov eax, 1
mov dword [0x4841dc], eax
pop esi
ret
xor eax, eax
mov dword [0x48548c], 0
mov dword [0x4841dc], eax
pop esi
ret
xor eax, eax
mov dword [0x485498], 0
mov dword [0x4841dc], eax
pop esi
ret
xor eax, eax
mov dword [0x48549c], 0
mov dword [0x4841dc], eax
pop esi
ret
xor eax, eax
mov dword [0x4854a0], 0
mov dword [0x4841dc], eax
pop esi
ret
xor eax, eax
mov dword [0x4854a4], 0
mov dword [0x4841dc], eax
pop esi
ret
mov dword [0x485490], 0
xor eax, eax
mov dword [0x4841dc], eax
pop esi
ret
mov eax, dword [0x4841dc]
ret

Function at 0x4207d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420816
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420816
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420816
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420816
cmp dword [ecx + 0x74], 0xe
jbe 0x420816
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x449a8a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449ac9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449ac9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449ac9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449ac9
cmp dword [ecx + 0x74], 0xe
jbe 0x449ac9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x456407
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x484f98]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x456447
cmp byte [ebx], 0xa
jne 0x456447
or byte [edi + eax + 0x28], 4
jmp 0x45644c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x45654b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x45652e
inc eax
cmp dl, 0xd
je 0x456478
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45649e
cmp eax, ecx
jae 0x4564ac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x456460
jmp 0x45654b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456529
cmp dword [ebp - 0x10], 0
je 0x456529
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x484f98]
test byte [eax + edi + 0x28], 0x48
je 0x456503
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4564ee
mov byte [esi], dl
jmp 0x4564ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484f98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45654b
cmp byte [ebp - 1], 0xa
jne 0x456512
cmp esi, ebx
jne 0x456512
mov byte [esi], 0xa
jmp 0x45654a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00457e11
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45654b
mov byte [esi], 0xd
jmp 0x45654a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x484f98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x456548
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45654b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x456554
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x484f98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45659a
cmp word [ebx], dx
jne 0x45659a
or byte [eax + edi + 0x28], 4
jmp 0x45659f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x456702
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4566e2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4565e0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x456616
cmp eax, edx
jae 0x456624
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4565bb
jmp 0x456702
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4566dd
cmp dword [ebp - 0x18], 0
je 0x4566dd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x484f98]
test byte [eax + edi + 0x28], 0x48
je 0x4566b3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x456677
mov word [esi], cx
jmp 0x4566ae
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x484f98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x484f98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x484f98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x456702
pop eax
cmp word [ebp - 4], ax
jne 0x4566c3
cmp esi, ebx
jne 0x4566c3
mov word [esi], ax
jmp 0x4566ff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00457e11
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x456702
push 0xd
pop eax
jmp 0x4566be
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x484f98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4566fc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x456702
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x458559
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045842d