joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x4897ef
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0049c5d0
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4897bf
sub eax, esi
jmp 0x4897c1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4897b0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4897e0
sub eax, esi
jmp 0x4897e2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4897d1
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4898ab
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x48981c
xor eax, eax
jmp 0x48986f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x489839
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0048a380
jmp 0x489851
cmp eax, 2
jne 0x489857
mov edx, dword [ebx]
test edx, edx
jne 0x489848
xor eax, eax
jmp 0x489854
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0048af50
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.0049c5d0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x489897
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4898ab
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x489770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48af30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x48af3b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0048af50
Function at 0x48dae3
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4ce74a
call fcn.0049a06f
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x94]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48db5b
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00407160
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push ebx
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f030
push 0x519274
lea eax, [ebp - 0x90]
push eax
call fcn.0049b7fa
mov eax, dword [ebp - 0x94]
call fcn.0049a019
ret 8

Function at 0x48de03
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 0x48de94
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
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]
mov edx, eax
test edx, edx
jne 0x48de8b
test esi, esi
je 0x48de8b
mov ecx, dword [edi]
test ecx, ecx
je 0x48de86
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48de7c
cmp eax, 2
jbe 0x48de6e
cmp eax, 7
jne 0x48de7c
test cl, 1
jne 0x48de7c
shr ecx, 1
cmp ecx, 1
jb 0x48de7c
cmp word [esi + ecx*2 - 2], bx
jne 0x48de7c
cmp ecx, 1
jbe 0x48de8b
cmp word [esi + ecx*2 - 4], bx
jmp 0x48de7a
test cl, 1
jne 0x48de7c
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x48de8b
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x48de8d
xor eax, eax
mov word [esi], ax
mov eax, edx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.0040af60
int3

Function at 0x48df19
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x48df6e
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x48df3a
cmp eax, 0xffffffff
jne 0x48df49
push 0x57
pop eax
jmp 0x48df68
cmp eax, 0xffffffff
jne 0x48df49
push dword [ebp + 8]
call fcn.004a2bca
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.0040af60
int3
Function at 0x48ec03
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4cf946
call fcn.0049a03b
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x48ec2f
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 0x48ec7c
push 0x80
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov edi, 0x4dd804
mov esi, 0x4dcac4
mov dword [ebp + 0x38], ecx
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00407160
call fcn.00492657
pop ecx
mov ecx, esp
lea eax, [ebp + 8]
push ebx
push eax
mov dword [ebp + 0x38], ecx
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00407160
call fcn.0048eb8f
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00404db0
mov al, bl
call fcn.0049a004
ret
Function at 0x48ec8c
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4ce8dc
call fcn.0049a06f
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x48ecf0
lea ecx, [ebp + 8]
call fcn.0042a750
test al, al
je 0x48ecf0
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.0048ee81
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00404db0
mov al, bl
jmp 0x48ee7b
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.0048fba3
add esp, 0x30
cmp eax, 0xffffffff
je 0x48ed37
test byte [ebp + 0x38], 4
je 0x48ed29
test al, 0x10
je 0x48ed33
test byte [ebp + 0x38], 8
je 0x48ece1
test al, 0x10
je 0x48ece1
mov bl, 1
jmp 0x48ece1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x48ee71
cmp esi, 3
je 0x48ee71
cmp esi, 5
jne 0x48ee25
lea ecx, [ebp - 0xcc]
call fcn.0048db8a
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 2
push eax
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd4], ecx
push ebx
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.0048f92c
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x48edfc
lea ecx, [ebp - 0xd0]
call fcn.00411530
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x48edc8
test byte [ebp - 0xcc], 0x10
je 0x48edd7
test byte [ebp + 0x38], 8
je 0x48edd9
test byte [ebp - 0xcc], 0x10
je 0x48edd9
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00411530
lea ecx, [ebp - 0x70]
call fcn.00404db0
lea ecx, [ebp - 0xa0]
call fcn.00404db0
jmp 0x48ece1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00411530
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00404db0
lea ecx, [ebp - 0xa0]
call fcn.00404db0
test byte [ebp + 0x38], 0x20
je 0x48ece1
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00407160
push 1
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f110
push 0x519274
lea eax, [ebp - 0x90]
push eax
call fcn.0049b7fa
lea ecx, [ebp + 8]
call fcn.00404db0
xor al, al
call fcn.0049a019
ret
Function at 0x4909b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4909e8
push 0x4d28d4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4909e8
call eax
jmp 0x490a9d
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x1c], 0xa
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push VariantInit
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
jne 0x490a32
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4d7438
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x490a7e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push VariantInit
call esi
mov esi, eax
test esi, esi
jne 0x490a6b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.004353e0
test esi, esi
je 0x490a7e
mov esi, 0x409
jmp 0x490a90
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004a0e26
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x18]
call fcn.004353e0
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x4918d8
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4cef0a
call fcn.0049a06f
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 0x491a3c
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x491a3c
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 0x491a20
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.0049b6a0
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 0x491a20
cmp dword [ebp - 0x494], 0
je 0x491a20
lea ecx, [ebp - 0x444]
call fcn.0048dc08
mov eax, dword [ebp - 0x490]
lea ecx, [ebp - 0x43c]
push 0x4d7438
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00404270
mov eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
call fcn.0048dbd0
push dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
push 0
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 2
push eax
call fcn.0048d982
lea ecx, [ebp - 0x474]
call fcn.00404db0
lea ecx, [ebp - 0x440]
call fcn.00404db0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00411830
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x491937
call fcn.0049a019
ret

Function at 0x491b2a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00490eaf
test al, al
je 0x491b99
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 0x491b99
push esi
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
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.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x49211a
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.00413a20
mov esi, eax
test esi, esi
jne 0x492166
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 [0x5218e8], esi
call fcn.00413ad0
lea ecx, [ebp + 0xc]
call fcn.00404db0
lea ecx, [ebp + 0x3c]
call fcn.00404db0
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4921df
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x4cf032
call fcn.0049a06f
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x3c]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
cmp dword [ebp + 0x24], 8
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0x40]
cmovae ecx, dword [ebp + 0x10]
or eax, 0x20019
push eax
push ecx
push edx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00413a20
mov esi, eax
test esi, esi
jne 0x4922bc
push 0
lea eax, [ebp - 0x41]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00404c20
mov eax, 0x105
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x64]
push eax
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00404040
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push dword [eax]
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
call fcn.00409da0
cmp dword [ebp - 0x48], 0
jne 0x4922a5
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0040bf80
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00404db0
inc edi
cmp dword [ebp - 0x48], 0
je 0x49222b
lea ecx, [ebp - 0x58]
mov dword [0x5218e8], esi
call fcn.00413ad0
lea ecx, [ebp + 0xc]
call fcn.00404db0
test esi, esi
sete al
call fcn.0049a019
ret

Function at 0x4922dd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x49230f
xor al, al
jmp 0x492328
cmp dword [ebp - 0x108], 2
jne 0x492326
cmp dword [ebp - 0x114], 5
jb 0x492326
xor eax, eax
inc eax
jmp 0x492328
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x492b33
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
push 0x44
mov eax, 0x4cf16d
call fcn.0049a03b
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x50], 0x3c
inc eax
lea ecx, [ebp - 0x50]
push eax
mov dword [ebp - 0x10], eax
call fcn.0049309c
xor esi, esi
lea ecx, [ebp - 0x50]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.00493841
test eax, eax
je 0x492b7b
lea eax, [ebp - 0x50]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov eax, dword [ebp - 0x44]
mov ecx, 0x800000
push 2
pop edx
sub eax, 1
je 0x492bde
sub eax, 1
je 0x492bdb
sub eax, 1
je 0x492bd2
sub eax, 1
je 0x492bc4
mov eax, 0x2ee6
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
lea eax, [ebp - 0x14]
push eax
push 0x64
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.00492d67
jmp 0x492cfa
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], 3
or edi, ecx
jmp 0x492be1
mov dword [ebp - 0x10], 3
jmp 0x492bde
mov dword [ebp - 0x10], edx
mov edi, dword [ebp + 0x18]
test ecx, edi
jne 0x492c02
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
jmp 0x492cfa
mov eax, dword [ebx + 0x94]
cmp dword [eax + 4], esi
je 0x492c27
push dword [ebp - 0x40]
push dword [ebx + 0x98]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x492c27
mov ecx, ebx
call fcn.00411070
mov eax, dword [ebx + 0x94]
cmp dword [eax + 4], esi
jne 0x492c7b
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
pop ecx
push dword [ebp - 0x40]
mov dword [ebx + 0x98], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x18]
inc ecx
add eax, ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004996e0
pop ecx
push dword [ebp - 0x24]
mov dword [ebp + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x18], esi
je 0x492cbd
push dword [ebp - 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp + 0x1c]
mov eax, dword [ebx + 0x94]
mov ebx, dword [ebp + 0x18]
push edi
push esi
push esi
push esi
push ebx
push 0x4d2db8
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov edi, eax
call fcn.004996db
pop ecx
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x492cfa
mov esi, edi
lea ecx, [ebp - 0x50]
call fcn.00492f17
mov eax, esi
call fcn.0049a004
ret 0x18
Function at 0x4932f8
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x51c0b0]
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 - 0x840], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x83c], eax
call fcn.004112f0
cmp eax, 1
jne 0x4933f0
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 0x4933e5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], 4
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
mov dword [ebp - 0x830], 0x824
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
cmovne ecx, edx
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
mov dword [ebp - 0x834], ecx
call esi
movzx ecx, byte [ebp - 0x828]
xor edx, edx
mov esi, dword [ebp - 0x838]
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.004353e0
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
xor ecx, ecx
mov dword [edi + 4], eax
test eax, eax
pop edi
setne al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004996ca
mov esp, ebp
pop ebp
ret 0x14
Function at 0x493464
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4934a4
test byte [ebp - 4], 0x41
je 0x4934a4
push edi
push dword [ebx + 0x78]
call dword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
jne 0x4934a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
xor al, al
jmp 0x49358a
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4934d1
push eax
cmp dword [ebx + 0x40], edi
je 0x4934c0
push str.Range:_bytes_d__r_n
jmp 0x4934c5
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 0x4934e2
push dword [ebx + 0x40]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
cmp dword [ebx + 4], edi
jne 0x493547
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push dword [ebx + 0x50]
jmp 0x493516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49353b
mov eax, dword [ebx + 0x50]
test eax, 0x100
je 0x49353b
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.004a2bca
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 0x4934f7
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x493578
mov eax, dword [ebx]
lea ecx, [ebx + 0xc]
push 0
push ecx
mov ecx, ebx
jmp 0x49357f
cmp byte [ebp + 8], 0
je 0x493587
lea esi, [ebx + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push dword [ebx + 0x44]
call fcn.004a2bca
pop ecx
push eax
push dword [ebx + 0x44]
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov ecx, ebx
mov eax, dword [ebx]
je 0x49357d
call dword [eax + 0x28]
jmp 0x493589
push edi
push esi
push dword [ebx + 0x28]
call dword [eax + 8]
jmp 0x493589
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4