joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fd53
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x47fdd8
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x47fdd1
mov ecx, dword [edi]
test ecx, ecx
je 0x47fdcc
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x47fdc2
cmp edx, 2
jbe 0x47fdb4
cmp edx, 7
jne 0x47fdc2
test cl, 1
jne 0x47fdc2
shr ecx, 1
cmp ecx, 1
jb 0x47fdc2
cmp word [esi + ecx*2 - 2], bx
jne 0x47fdc2
cmp ecx, 1
jbe 0x47fdd1
cmp word [esi + ecx*2 - 4], bx
jmp 0x47fdc0
test cl, 1
jne 0x47fdc2
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x47fdd1
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x47fdd1
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0041966b
int3

Function at 0x47fe5b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x47feb0
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x47fe7c
cmp eax, 0xffffffff
jne 0x47fe8b
push 0x57
pop eax
jmp 0x47feaa
cmp eax, 0xffffffff
jne 0x47fe8b
push dword [ebp + 8]
call fcn.00453664
pop ecx
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
push 7
pop ecx
inc eax
test bl, bl
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
push 0x80004005
call fcn.0041966b
int3

Function at 0x48259d
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4acf6d
call fcn.0045370f
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x4825c9
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x482610
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x4c8e80
mov esi, 0x4c8e20
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0041122d
call fcn.00489f3f
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0041122d
call fcn.00482529
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
call fcn.004536dd
ret
Function at 0x482620
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4acfae
call fcn.00453742
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x48267e
lea ecx, [ebp + 8]
call fcn.00449ed3
test al, al
je 0x48267e
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x4c8e80
mov dword [ecx + 0x28], 0x4c8e20
call fcn.0041122d
call fcn.00482803
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
jmp 0x4827fd
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x4c8e80
mov dword [ecx + 0x28], 0x4c8e20
call fcn.0041122d
call fcn.004841f2
add esp, 0x30
cmp eax, 0xffffffff
je 0x4826bf
test byte [ebp + 0x38], 4
je 0x4826b1
test al, 0x10
je 0x4826bb
test byte [ebp + 0x38], 8
je 0x48266f
test al, 0x10
je 0x48266f
mov bl, 1
jmp 0x48266f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4827f3
cmp esi, 3
je 0x4827f3
cmp esi, 5
jne 0x4827a7
lea ecx, [ebp - 0xcc]
call fcn.0047effc
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x4c8e80
mov dword [ecx + 0x28], 0x4c8e20
call fcn.0041122d
call fcn.00483aec
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x48277e
lea ecx, [ebp - 0xd0]
call fcn.00438b70
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x48274a
test byte [ebp - 0xcc], 0x10
je 0x482759
test byte [ebp + 0x38], 8
je 0x48275b
test byte [ebp - 0xcc], 0x10
je 0x48275b
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00438b70
lea ecx, [ebp - 0x70]
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
jmp 0x48266f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00438b70
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
test byte [ebp + 0x38], 0x20
je 0x48266f
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b7b38
mov dword [ebp - 0x18], 0x4b7b40
call fcn.0041122d
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0044229f
push 0x4de9f0
lea eax, [ebp - 0x90]
push eax
call fcn.00453682
lea ecx, [ebp + 8]
call fcn.00401b80
xor al, al
call fcn.004536f1
ret
Function at 0x485310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4c1e5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x485346
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x485346
call eax
jmp 0x4853fb
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x485390
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4c8c5c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4853dc
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysReAllocStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x4853c9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.004814ff
test esi, esi
je 0x4853dc
mov esi, 0x409
jmp 0x4853ee
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0045451a
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.004814ff
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004526a3
leave
ret
Function at 0x4859f1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x108], ebx
jne 0x485a80
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x485a73
cmp eax, 0xa
je 0x485a52
cmp eax, 0x5a
je 0x485a4a
xor ebx, ebx
mov dword [esi], 0x80
jmp 0x485a79
call fcn.0048657f
test al, al
mov al, bl
je 0x485a68
mov dword [esi], 0x80
jmp 0x485b06
mov dword [esi], 0x40
jmp 0x485b06
mov dword [esi], 0x10
mov al, bl
jmp 0x485b06
cmp dword [ebp - 0x108], 2
jne 0x485b04
mov ecx, dword [ebp - 0x114]
sub ecx, 4
je 0x485af9
mov eax, dword [ebp - 0x110]
dec ecx
je 0x485aac
dec ecx
jne 0x485aef
test eax, eax
jne 0x485ad1
mov dword [esi], 0x1000000
jmp 0x485a79
test eax, eax
jne 0x485ab8
mov dword [esi], 0x100000
jmp 0x485a79
cmp eax, ebx
jne 0x485ac4
mov dword [esi], 0x400000
jmp 0x485a79
cmp eax, 2
jne 0x485aa0
mov dword [esi], 0x800000
jmp 0x485a79
cmp eax, ebx
jne 0x485add
mov dword [esi], 0x2000000
jmp 0x485a79
cmp eax, 2
jne 0x485aea
mov dword [esi], 0x4000000
jmp 0x485a79
cmp eax, 3
je 0x485af1
xor ebx, ebx
mov dword [esi], 0x8000000
jmp 0x485a79
mov dword [esi], 0x10000
jmp 0x485a79
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004526a3
leave
ret
Function at 0x486df9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4adcd4
call fcn.00453742
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x486e25
mov al, 1
jmp 0x486e41
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x486e39
cmp ecx, esi
je 0x486e47
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x486e27
xor al, al
call fcn.004536f1
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.00411610
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00411c5a
lea ecx, [ebp - 0x40]
call fcn.00401b80
jmp 0x486e21

Function at 0x48816e
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4ade9e
call fcn.00453742
mov eax, dword [ebp + 8]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.PSAPI.DLL_EnumProcesses
push str.NtQueryInformationProcess
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4882c6
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x4882c6
push dword [ebp + edi*4 - 0x410]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x480], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4882aa
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004526c0
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0x18
lea eax, [ebp - 0x4a4]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x4882aa
cmp dword [ebp - 0x494], 0
je 0x4882aa
lea ecx, [ebp - 0x444]
call fcn.0047f0ad
mov eax, dword [ebp - 0x490]
push 0x4c8c5c
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00406360
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x478]
call fcn.0047f07e
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.0048642e
lea ecx, [ebp - 0x474]
call fcn.00401b80
lea ecx, [ebp - 0x440]
call fcn.00401b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00404bf0
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x4881cd
call fcn.004536f1
ret
Function at 0x4884f1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00486571
test al, al
je 0x488560
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x488560
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004526a3
leave
ret

Function at 0x488cb8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x488d04
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4f0910], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
lea ecx, [ebp + 0x3c]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x489412
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x489444
xor al, al
jmp 0x48945d
cmp dword [ebp - 0x108], 2
jne 0x48945b
cmp dword [ebp - 0x114], 5
jb 0x48945b
xor eax, eax
inc eax
jmp 0x48945d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004526a3
leave
ret
Function at 0x48b603
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4ae7d8
call fcn.00453742
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48b67b
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b7b38
mov dword [ebp - 0x18], 0x4b7b40
call fcn.0041122d
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442244
push 0x4de9f0
lea eax, [ebp - 0x90]
push eax
call fcn.00453682
mov eax, dword [ebp - 0x94]
call fcn.004536f1
ret 8

Function at 0x48b689
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4ae808
call fcn.00453742
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48b702
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4b7b38
mov dword [ebp - 0x18], 0x4b7b40
call fcn.0041122d
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442244
push 0x4de9f0
lea eax, [ebp - 0x90]
push eax
call fcn.00453682
mov eax, dword [ebp - 0x94]
call fcn.004536f1
ret 8

Function at 0x48c6dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x48c6e7
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x48cae7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x4aeb39
call fcn.00453742
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.004526c0
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x48cbd6
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4b7b38
mov ebx, 0x4b7b40
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00428274
push 0x4b4e80
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.0047fa54
lea ecx, [ebp - 0x144]
call fcn.0048ce54
lea eax, [ebp - 0x144]
jmp 0x48cc1b
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4b7b38
mov ebx, 0x4b7b40
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00428274
push 0x4b4e80
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.0047fa54
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.0041122d
lea ecx, [ebp - 0x144]
call fcn.00401b80
lea ecx, [ebp - 0x14c]
call fcn.004814ff
mov eax, esi
call fcn.004536f1
ret
Function at 0x491766
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4917dc
call esi
cmp eax, 0x3f0
jne 0x4917bf
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x4917d5
push 1
push dword [ebp - 0x10]
call fcn.004918c0
pop ecx
pop ecx
jmp 0x4918b2
test eax, eax
jne 0x4917dc
push ebx
jmp 0x4917c6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x491803
push ebx
push dword [ebp - 0x10]
call fcn.004918c0
pop ecx
jmp 0x4918b0
call esi
cmp eax, 0x7a
jne 0x4917f4
push dword [ebp - 0x18]
call fcn.004545d7
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x49182b
push ebx
jmp 0x49189c
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x491828
mov byte [ebp - 0x14], bl
mov edi, ebx
cmp dword [esi], ebx
jbe 0x491890
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x49187b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x491862
jmp 0x491890
cmp byte [ebp + 0xc], 0
je 0x49188c
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x14], 0
jne 0x491890
mov byte [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004918c0
pop ecx
pop ecx
push esi
mov bl, al
call fcn.0045269e
mov al, bl
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004526a3
leave
ret
Function at 0x491dce
Capabilities:
Connect to http server
Parse url

Disassembly:
push 0x2a0
mov eax, 0x4af9ce
call fcn.00453742
mov esi, ecx
mov dword [ebp - 0x268], esi
mov eax, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x2ac], 0x3c
call fcn.00492116
mov edi, dword [esi + 0x3c]
push 0x10000000
xor ebx, ebx
push edi
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x261], bl
call fcn.004929d4
test eax, eax
je 0x491f67
lea eax, [ebp - 0x2ac]
push eax
push 0x10000000
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x491f67
push 0x2c
call fcn.004545d7
pop ecx
test eax, eax
je 0x491e5d
mov ecx, eax
call fcn.0041ec50
mov ebx, eax
push 0x2c
call fcn.004545d7
pop ecx
test eax, eax
je 0x491e74
mov ecx, eax
call fcn.0041ec50
mov edi, eax
jmp 0x491e76
xor edi, edi
push ebx
push 0x8000000
push 1
push dword [ebp - 0x288]
push dword [ebp - 0x290]
push 0x15
push dword [ebp - 0x29c]
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x491eb6
mov edx, dword [ebx]
push eax
lea eax, [ebx + 0xc]
push eax
push dword [esi + 0x28]
mov ecx, ebx
call dword [edx + 8]
test al, al
je 0x491f59
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x491ed5
push eax
call fcn.00453664
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x491ed9
xor eax, eax
jmp 0x491efa
lea esi, [eax + eax]
mov eax, esi
call fcn.004549b0
mov eax, esp
push 3
push esi
push dword [ebp - 0x26c]
push eax
call fcn.00491948
mov esi, dword [ebp - 0x268]
push edi
push 0
push dword [ebp - 0x270]
push eax
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
test eax, eax
jne 0x491f2b
mov edx, dword [edi]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esi + 0x28]
mov ecx, edi
call dword [edx + 8]
mov byte [ebp - 0x261], 0
test al, al
je 0x491f32
mov byte [ebp - 0x261], 1
lea eax, [ebp - 0x260]
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetFindNextFileW]
test eax, eax
jne 0x491f32
mov edx, dword [edi]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esi + 0x28]
mov ecx, edi
call dword [edx + 8]
test al, al
jne 0x491f32
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
lea ecx, [ebp - 0x2ac]
call fcn.00491d82
mov al, byte [ebp - 0x261]
lea esp, [ebp - 0x2bc]
call fcn.004536f1
ret 4
Function at 0x49236d
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4e98d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x840], eax
call fcn.0041fd59
cmp eax, 1
jne 0x492465
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49245a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
mov dword [ebp - 0x830], 4
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
cmovne ecx, edx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], 0x824
call esi
movzx ecx, byte [ebp - 0x828]
mov esi, dword [ebp - 0x838]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.004814ff
push dword [ebp - 0x840]
push dword [ebp - 0x83c]
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
xor ecx, ecx
test eax, eax
mov dword [edi + 4], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004526a3
leave
ret 0x14