joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5740
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 0xc], 0
je 0x4c576e
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x4c5773
jmp 0x4c5979
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x4c57ce
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x4c57b1
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4c57bd
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x4c5788
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x4c585c
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00507f24
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 0x208
jae 0x4c5825
jmp 0x4c582a
call fcn.004f48a4
xor edx, edx
mov eax, dword [ebp - 0x438]
mov word [ebp + eax - 0x20c], dx
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c5740
add esp, 8
mov eax, dword [ebp - 0x43c]
add eax, 2
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x434], ecx
lea edx, [ebp - 0x414]
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x434]
mov dx, word [ecx]
mov word [ebp - 0x41e], dx
mov eax, dword [ebp - 0x428]
mov cx, word [ebp - 0x41e]
mov word [eax], cx
mov edx, dword [ebp - 0x434]
add edx, 2
mov dword [ebp - 0x434], edx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
cmp word [ebp - 0x41e], 0
jne 0x4c587d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x424]
mov cx, word [eax]
mov word [ebp - 0x42e], cx
add dword [ebp - 0x424], 2
cmp word [ebp - 0x42e], 0
jne 0x4c58da
mov edx, dword [ebp - 0x424]
sub edx, dword [ebp - 0x440]
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x448], edx
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
mov ax, word [edx + 2]
mov word [ebp - 0x430], ax
add dword [ebp - 0x42c], 2
cmp word [ebp - 0x430], 0
jne 0x4c5928
mov edi, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x444]
mov edx, dword [ebp - 0x448]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
Function at 0x4c6480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4c64a5
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x4c64af
mov eax, 0x1000000
jmp 0x4c654b
mov edx, dword [ebp - 0xc]
add edx, 0x138
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x136
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 2]
mov word [ebp - 0x12], dx
add dword [ebp - 0x10], 2
cmp word [ebp - 0x12], 0
jne 0x4c64cf
mov edi, dword [ebp - 0x10]
mov eax, dword [0x534264]
mov dword [edi], eax
cmp dword [ebp + 0x10], 1
jne 0x4c650f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
je 0x4c650f
mov eax, 0x2000000
jmp 0x4c654b
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004cb2b0
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c6535
mov eax, dword [ebp - 8]
jmp 0x4c654b
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cbd50
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [0x55e140]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cb470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x4cb4c9
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4cb4bf
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x4cb523
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x4cb4e9
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f79b0
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
Function at 0x4cb700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4cb710
xor eax, eax
jmp 0x4cb8ad
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4cb86e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x533dd8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x533dd8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x533dd8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x533dd8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x533dd8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x533dd8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x533dd8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x533dd8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4cb719
cmp dword [ebp + 0x10], 0
je 0x4cb8a7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x533dd8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x4cb874
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x4d64f0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], ecx
push 0
push 0
push 0
push 0
push 0x534d78
call fcn.004d60f0
mov eax, dword [eax + 0x100]
call eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov edx, dword [ebp - 0x44]
cmp dword [edx], 0
jne 0x4d6534
xor eax, eax
jmp 0x4d6651
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x64
call fcn.004b34f0
push 0x3c
push 0
lea ecx, [ebp - 0x40]
push ecx
call fcn.004f7f30
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 1
lea edx, [ebp - 0x40]
push edx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004a8300
push eax
call fcn.004d60f0
mov eax, dword [eax + 0x10c]
call eax
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x6c]
call fcn.004a4100
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0xc
call fcn.004a5430
lea ecx, [ebp - 0x6c]
call fcn.004a4f40
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x84]
call fcn.004a4100
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x24
call fcn.004a5430
lea ecx, [ebp - 0x84]
call fcn.004a4f40
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea ecx, [ebp - 0x9c]
call fcn.004a4100
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x3c
call fcn.004a5430
lea ecx, [ebp - 0x9c]
call fcn.004a4f40
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 0x44]
mov cx, word [ebp - 0x28]
mov word [eax + 0x58], cx
mov edx, dword [ebp - 0x44]
add edx, 0x3c
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x24
call fcn.004a8020
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret 8
Function at 0x4e13d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4e144c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4e1445
lea ecx, [ebp - 0x14]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4e1443
xor eax, eax
jmp 0x4e155b
jmp 0x4e144c
xor eax, eax
jmp 0x4e155b
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4e146b
xor eax, eax
jmp 0x4e155b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4e147d
xor eax, eax
jmp 0x4e155b
mov eax, dword [ebp - 0x10]
call fcn.004f5300
mov dword [ebp - 0x28], esp
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x4e149b
xor eax, eax
jmp 0x4e155b
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4e14be
xor eax, eax
jmp 0x4e155b
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4e14e9
xor eax, eax
jmp 0x4e155b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x4e1502
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jae 0x4e154e
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*8 + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4e154c
cmp dword [ebp + 8], 0
je 0x4e1543
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*8 + 8]
and edx, 4
je 0x4e1541
mov dword [ebp - 0x24], 1
jmp 0x4e154a
mov dword [ebp - 0x24], 1
jmp 0x4e154e
jmp 0x4e14f9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
Function at 0x4e74c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524240
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
push 0x535bb4
lea ecx, [ebp - 0x88]
push ecx
call fcn.00526910
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
call fcn.004a80f0
mov ecx, eax
call fcn.004a8020
push eax
lea ecx, [ebp - 0x28]
call fcn.004a3f40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.004a4f40
push 0x3c
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.004f7f30
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], str.runas
lea ecx, [ebp - 0x28]
call fcn.004a8300
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 0x20]
call fcn.004a8300
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4e75a6
mov byte [ebp - 0x65], 1
jmp 0x4e75aa
mov byte [ebp - 0x65], 0
mov dl, byte [ebp - 0x65]
mov byte [ebp - 0x66], dl
mov al, byte [ebp - 0x66]
mov byte [ebp - 0x67], al
lea ecx, [ebp - 0x28]
call fcn.004a4f40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004a4f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004a4f40
movzx eax, byte [ebp - 0x67]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
Function at 0x4e8360
Capabilities:
Extract resource via kernel32 functions
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52438d
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x535ca0
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x254], eax
lea ecx, [ebp + 0xc]
call fcn.004e46e0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 3
mov ecx, dword [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x258]
push edx
call fcn.004c6560
add esp, 0xc
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x240]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.004c6350
add esp, 0xc
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x244], 0
jmp 0x4e8453
mov eax, dword [ebp - 0x244]
add eax, 1
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
cmp ecx, dword [ebp - 0x25c]
jge 0x4e84a1
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.004c6350
add esp, 0xc
push 2
push 0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.004c6c70
add esp, 0x14
jmp 0x4e8444
mov edx, dword [ebp - 0x248]
push edx
call fcn.004c5670
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004e0c60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
Function at 0x4e8600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x4e862a
jl 0x4e8621
cmp dword [ebp + 0xc], 0
ja 0x4e862a
xor eax, eax
xor edx, edx
jmp 0x4e8761
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x4e864c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004aa990
jmp 0x4e8761
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.004a6e30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4e86bb
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004a33b0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004a9510
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004a84f0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004a9440
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x4e8752
mov ecx, dword [ebp - 0x10]
call fcn.004e3bd0
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x4e872b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0050714d
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x4e8729
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4e8761
jmp 0x4e86d7
cmp dword [ebp - 8], 0
jbe 0x4e8752
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0050714d
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4eded0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 0
mov eax, 0xac
mov word [ebp - 0x1c], ax
mov ecx, 0xae
mov word [ebp - 0x1a], cx
mov dword [ebp - 0x18], str.REGISTRYMACHINESOFTWAREMicrosoftWindows_NTCurrentVersionUACCOMAutoApprovalList
mov dword [ebp - 0x48], 0xc0000001
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x54], 0x1000
cmp dword [ebp + 0xc], 0
je 0x4edf2d
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
jmp 0x4edf34
xor eax, eax
jmp 0x4ee03b
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x40
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
push ecx
push 1
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x4edf7a
mov dword [ebp - 0x50], 1
jmp 0x4edf81
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4ee038
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp - 0x54]
call fcn.004f5300
mov dword [ebp - 0x58], esp
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jl 0x4ee025
mov ecx, dword [ebp - 0x40]
mov dx, word [ecx + 8]
mov word [ebp - 0x22], dx
mov eax, dword [ebp - 0x40]
add eax, 0xc
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x40]
mov dx, word [ecx + 8]
mov word [ebp - 0x24], dx
push 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
movzx edx, al
test edx, edx
je 0x4ee01c
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x4ee02e
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x48], 0x8000001a
jne 0x4edfb6
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x4c]
lea esp, [ebp - 0x5c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret