joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e23e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044b30e
mov dword [ebp - 0x14], eax
cmp dword [0x4a7540], edi
jne 0x44e32f
push 0x800
push edi
push 0x482838
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44e2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44e40f
push 0x482838
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44e40f
push 0x482850
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44e40f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a7540], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a7544], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a7548], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a7550], eax
test eax, eax
je 0x44e32c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a754c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44e354
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44e347
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44e369
push 4
pop eax
jmp 0x44e411
cmp dword [ebp - 0x14], edi
je 0x44e369
push dword [0x4a7540]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44e34e
mov eax, dword [0x4a754c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44e3c7
cmp dword [0x4a7550], esi
je 0x44e3c7
push eax
call ebx
push dword [0x4a7550]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44e3c7
test eax, eax
je 0x44e3c7
call ecx
test eax, eax
je 0x44e3bc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44e3bc
test byte [ebp - 8], 1
jne 0x44e3c7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44e3f7
mov eax, dword [0x4a7544]
cmp eax, esi
je 0x44e3f4
push eax
call ebx
test eax, eax
je 0x44e3f4
call eax
mov edi, eax
test edi, edi
je 0x44e3f4
mov eax, dword [0x4a7548]
cmp eax, esi
je 0x44e3f4
push eax
call ebx
test eax, eax
je 0x44e3f4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a7540]
call ebx
test eax, eax
je 0x44e40f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44e411
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423a3
leave
ret
Function at 0x455339
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x470a32
call fcn.00443402
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x4553be
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0045e9c6
test al, al
jne 0x455410
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x47d68c
mov dword [ebp - 0x48], 0x484b70
call fcn.0040c865
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.0043455d
push 0x497674
lea eax, [ebp - 0x114]
push eax
call fcn.00443342
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x455410
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c865
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.004343b1
push 0x497600
lea eax, [ebp - 0xc0]
jmp 0x4553b8
mov eax, dword [ebp - 0x118]
call fcn.004433b1
ret 8

Function at 0x455661
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x470aed
call fcn.00443402
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 0x4556d9
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c865
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.004343b1
push 0x497600
lea eax, [ebp - 0x90]
push eax
call fcn.00443342
mov eax, dword [ebp - 0x94]
call fcn.004433b1
ret 8

Function at 0x45599f
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 0x455a24
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 0x455a1d
mov ecx, dword [edi]
test ecx, ecx
je 0x455a18
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455a0e
cmp edx, 2
jbe 0x455a00
cmp edx, 7
jne 0x455a0e
test cl, 1
jne 0x455a0e
shr ecx, 1
cmp ecx, 1
jb 0x455a0e
cmp word [esi + ecx*2 - 2], bx
jne 0x455a0e
cmp ecx, 1
jbe 0x455a1d
cmp word [esi + ecx*2 - 4], bx
jmp 0x455a0c
test cl, 1
jne 0x455a0e
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455a1d
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455a1d
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.004121be
int3
Function at 0x45624d
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x471881
call fcn.004433cf
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x456279
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 0x4562c0
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x47d68c
mov esi, 0x484b70
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c865
call fcn.00459fc7
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c865
call fcn.004561cf
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.0044339d
ret

Function at 0x4562d0
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x470bc8
call fcn.00443402
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x45632e
lea ecx, [ebp + 8]
call fcn.0043b24c
test al, al
je 0x45632e
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47d68c
mov dword [ecx + 0x28], 0x484b70
call fcn.0040c865
call fcn.004564b3
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x4564ad
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47d68c
mov dword [ecx + 0x28], 0x484b70
call fcn.0040c865
call fcn.00457356
add esp, 0x30
cmp eax, 0xffffffff
je 0x45636f
test byte [ebp + 0x38], 4
je 0x456361
test al, 0x10
je 0x45636b
test byte [ebp + 0x38], 8
je 0x45631f
test al, 0x10
je 0x45631f
mov bl, 1
jmp 0x45631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4564a3
cmp esi, 3
je 0x4564a3
cmp esi, 5
jne 0x456457
lea ecx, [ebp - 0xcc]
call fcn.00455742
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], 0x47d68c
mov dword [ecx + 0x28], 0x484b70
call fcn.0040c865
call fcn.0045700e
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x45642e
lea ecx, [ebp - 0xd0]
call fcn.0042c6a0
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x4563fa
test byte [ebp - 0xcc], 0x10
je 0x456409
test byte [ebp + 0x38], 8
je 0x45640b
test byte [ebp - 0xcc], 0x10
je 0x45640b
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042c6a0
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x45631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042c6a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
test byte [ebp + 0x38], 0x20
je 0x45631f
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c865
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0043440c
push 0x497600
lea eax, [ebp - 0x90]
push eax
call fcn.00443342
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.004433b1
ret
Function at 0x458127
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45815d
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45815d
call eax
jmp 0x458212
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 SysFreeString
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x4581a7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x484fc8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4581f3
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysFreeString
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x4581e0
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.00456085
test esi, esi
je 0x4581f3
mov esi, 0x409
jmp 0x458205
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00443dce
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.00456085
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423a3
leave
ret
Function at 0x458c5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x47122f
call fcn.00443402
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 0x458c86
mov al, 1
jmp 0x458ca2
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x458c9a
cmp ecx, esi
je 0x458ca8
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x458c88
xor al, al
call fcn.004433b1
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cc0c
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040cfc5
lea ecx, [ebp - 0x40]
call fcn.00401580
jmp 0x458c82

Function at 0x4593fe
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x471374
call fcn.00443402
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 0x459556
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x459556
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 0x45953a
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004423c0
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 0x45953a
cmp dword [ebp - 0x494], 0
je 0x45953a
lea ecx, [ebp - 0x444]
call fcn.00455782
mov eax, dword [ebp - 0x490]
push 0x484fc8
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00405190
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x478]
call fcn.004556e7
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.004587d3
lea ecx, [ebp - 0x474]
call fcn.00401580
lea ecx, [ebp - 0x440]
call fcn.00401580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00403440
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x45945d
call fcn.004433b1
ret
Function at 0x4597ac
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045885d
test al, al
je 0x45981b
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 0x45981b
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.004423a3
leave
ret

Function at 0x459d96
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49e850]
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 0x459dc8
xor al, al
jmp 0x459de1
cmp dword [ebp - 0x108], 2
jne 0x459ddf
cmp dword [ebp - 0x114], 5
jb 0x459ddf
xor eax, eax
inc eax
jmp 0x459de1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423a3
leave
ret
Function at 0x45dbd3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49e850]
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 0x45dc49
call esi
cmp eax, 0x3f0
jne 0x45dc2c
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 0x45dc42
push 1
push dword [ebp - 0x10]
call fcn.0045dd2d
pop ecx
pop ecx
jmp 0x45dd1f
test eax, eax
jne 0x45dc49
push ebx
jmp 0x45dc33
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 0x45dc70
push ebx
push dword [ebp - 0x10]
call fcn.0045dd2d
pop ecx
jmp 0x45dd1d
call esi
cmp eax, 0x7a
jne 0x45dc61
push dword [ebp - 0x18]
call fcn.00443e61
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 0x45dc98
push ebx
jmp 0x45dd09
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 0x45dc95
mov byte [ebp - 0x14], bl
mov edi, ebx
cmp dword [esi], ebx
jbe 0x45dcfd
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45dce8
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x45dccf
jmp 0x45dcfd
cmp byte [ebp + 0xc], 0
je 0x45dcf9
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x14], 0
jne 0x45dcfd
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.0045dd2d
pop ecx
pop ecx
push esi
mov bl, al
call fcn.0044212c
mov al, bl
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004423a3
leave
ret
Function at 0x45e1a6
Capabilities:
Connect to http server
Parse url

Disassembly:
push 0x2a0
mov eax, 0x471e51
call fcn.00443402
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.0045e4d9
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.0045ec71
test eax, eax
je 0x45e33f
lea eax, [ebp - 0x2ac]
push eax
push 0x10000000
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x45e33f
push 0x2c
call fcn.00443e61
pop ecx
test eax, eax
je 0x45e235
mov ecx, eax
call fcn.00416c42
mov ebx, eax
push 0x2c
call fcn.00443e61
pop ecx
test eax, eax
je 0x45e24c
mov ecx, eax
call fcn.00416c42
mov edi, eax
jmp 0x45e24e
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 0x45e28e
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 0x45e331
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x45e2ad
push eax
call fcn.00443324
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x45e2b1
xor eax, eax
jmp 0x45e2d2
lea esi, [eax + eax]
mov eax, esi
call fcn.00444240
mov eax, esp
push 3
push esi
push dword [ebp - 0x26c]
push eax
call fcn.0045dd4c
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 0x45e303
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 0x45e30a
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 0x45e30a
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 0x45e30a
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.0045e15a
mov al, byte [ebp - 0x261]
lea esp, [ebp - 0x2bc]
call fcn.004433b1
ret 4
Function at 0x45e730
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x49e850]
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.0041763e
cmp eax, 1
jne 0x45e828
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45e81d
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.00456085
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.004423a3
leave
ret 0x14
Function at 0x45e89a
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x45e8da
test byte [ebp - 4], 0x41
je 0x45e8da
push edi
push dword [ebx + 0x78]
call dword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
jne 0x45e8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
xor al, al
jmp 0x45e9c0
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x45e907
push eax
cmp dword [ebx + 0x40], edi
je 0x45e8f6
push str.Range:_bytes_d__r_n
jmp 0x45e8fb
push str.Range:_bytes_d_
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 0x40], edi
je 0x45e918
push dword [ebx + 0x40]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
cmp dword [ebx + 4], edi
jne 0x45e97d
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push dword [ebx + 0x50]
jmp 0x45e94c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45e971
mov eax, dword [ebx + 0x50]
test eax, 0x100
je 0x45e971
and eax, 0xfffffeff
push ebx
mov dword [ebx + 0x50], eax
push eax
push dword [ebx + 0x44]
mov esi, dword [ebx + 0x30]
mov edi, dword [ebx]
call fcn.00443324
pop ecx
push eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x3c]
push esi
call dword [edi + 0x2c]
test eax, eax
je 0x45e92d
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x45e9ae
mov eax, dword [ebx]
lea ecx, [ebx + 0xc]
push 0
push ecx
mov ecx, ebx
jmp 0x45e9b5
cmp byte [ebp + 8], 0
je 0x45e9bd
lea esi, [ebx + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push dword [ebx + 0x44]
call fcn.00443324
pop ecx
push eax
push dword [ebx + 0x44]
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
je 0x45e9b3
call dword [eax + 0x28]
jmp 0x45e9bf
push edi
push esi
push dword [ebx + 0x28]
call dword [eax + 8]
jmp 0x45e9bf
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 4