joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486aa0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x213c
call fcn.004c20e0
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 8], 0
jne 0x486acf
cmp dword [ebx + 4], 0
je 0x486c92
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x486b10
test esi, esi
je 0x486c88
test eax, eax
js 0x486c88
push esi
push ecx
call fcn.004c53fb
add esp, 8
test eax, eax
je 0x486c88
sub eax, dword [ebx + 0x10]
sar eax, 1
js 0x486c88
push 0x2002
lea eax, [ebp - 0x2108]
push 0
push eax
call fcn.004c4ac0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x2108]
push 0xfff
push eax
call fcn.00416f70
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004cb5ac
add esp, 0x1c
test eax, eax
js 0x486b5e
cmp eax, 0xfff
ja 0x486b5e
jne 0x486b67
xor eax, eax
mov word [ebp - 0x10a], ax
push 0
call fcn.004ce6ff
mov dword [ebp - 0x213c], eax
lea eax, [ebp - 0x213c]
push eax
lea eax, [ebp - 0x212c]
mov dword [ebp - 0x2138], edx
push eax
call fcn.004ce675
add esp, 0xc
test eax, eax
jne 0x486ca2
lea eax, [ebp - 0x212c]
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004ce3cc
add esp, 0x10
test eax, eax
jne 0x486bc3
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x2130]
call fcn.00483710
call fcn.00483350
mov ecx, eax
test ecx, ecx
je 0x486cac
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov edi, dword [ebp - 0x2130]
add eax, 0x10
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2108]
push eax
push esi
push edi
lea eax, [ebp - 0x2134]
push str._s___s___s_r_n
push eax
call fcn.00483270
mov esi, dword [ebp - 0x2134]
add esp, 0x14
cmp dword [ebx + 8], 0
je 0x486c29
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebx + 4], 0
je 0x486c58
mov ecx, dword [ebx + 0xc]
cmp ecx, 0xffffffff
je 0x486c58
push 0
lea eax, [ebp - 0x2130]
mov dword [ebp - 0x2130], 0
push eax
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486c72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x486c87
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004831b0
push 0x80004005
call fcn.004831b0
int3
Function at 0x489290
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x48932e
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4892b4
mov eax, dword [edi + 0x30]
push ebx
push esi
push eax
push 0
mov ecx, edi
call fcn.00488bd0
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x48930a
mov edi, edi
test esi, esi
js 0x489333
cmp esi, dword [edi + 0xc]
jge 0x489333
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 8], 0x103
jne 0x4892fc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x4892d0
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop esi
pop ebx
pop edi
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.004835d0
int3
Function at 0x489bd0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5319e8
push 0x4c4c60
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x489c1f
mov dword [eax], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x489c84
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x489c84
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x489c84
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x20], 0
je 0x489d33
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x10
push 1
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x489d03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x489d03
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x489d03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x489d03
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x489cfb
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x489d08
mov edi, 0xd
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x489d38
mov edi, 0xd
test ebx, ebx
je 0x489d43
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x489d53
push eax
call ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x489d5e
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x489d82
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489da0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x531a08
push 0x4c4c60
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x10], 2
jae 0x489e06
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x489e6c
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x489e6c
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x489e6c
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x489f2a
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x489f28
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x489f28
mov dword [ebp - 4], esi
movzx esi, word [edx]
mov dword [ebp - 0x28], esi
lea eax, [esi*2 + 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jbe 0x489ed2
mov esi, ecx
shr esi, 1
sub esi, 4
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x10], 1
jmp 0x489ed9
mov dword [ebp + 0x10], 0
push esi
push edx
push dword [ebp + 0x14]
call fcn.004c4540
add esp, 0xc
mov eax, dword [0x539d18]
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx], eax
cmp dword [ebp + 0x10], 0
je 0x489efa
mov word [ecx], si
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x489f2a
xor esi, esi
test edi, edi
je 0x489f35
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x489f42
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x489f4d
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c030
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4920
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53ac84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
call fcn.00483350
mov ecx, eax
test ecx, ecx
je 0x48c113
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp dword [ebp - 0x18], 0
je 0x48c0ee
mov dword [ebp - 4], 0
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.0048b7d0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00484350
lea ecx, [ebp - 0x24]
call fcn.004840e0
mov dword [ebp - 4], 0xffffffff
jmp 0x48c0ee
push 0x50fb94
push 0x4fa0cc
mov ecx, edi
call fcn.0048d0c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004831b0
int3
Function at 0x48eef0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x214], 4
push eax
push str.EnableLUA
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x218], 4
call esi
cmp dword [ebp - 0x210], 0
je 0x48f016
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.ConsentPromptBehaviorAdmin
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x48efbf
cmp dword [ebp - 0x210], eax
jne 0x48efbf
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.PromptOnSecureDesktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x48efbf
cmp dword [ebp - 0x210], eax
je 0x48f016
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c4ac0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48f002
push str.UsersAdministratorAppDataLocal
lea eax, [ebp - 0x206]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x48f016
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004c20c9
mov esp, ebp
pop ebp
ret

Function at 0x48f030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004c4ac0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48f08c
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
Function at 0x48f650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x48f6c2
test esi, esi
je 0x48f6c2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c4ac0
push esi
push edi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00483070
add esp, 0x20
test eax, eax
js 0x48f6c2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
Function at 0x48f950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [0x543714], 0
jne 0x48fb2f
mov eax, dword [0x543020]
test eax, eax
jne 0x48f98f
push 0x543eb0
push 0x2c
call fcn.004c211f
add esp, 8
test eax, eax
je 0x48f988
mov ecx, eax
call fcn.00485620
jmp 0x48f98a
xor eax, eax
mov dword [0x543020], eax
push 0x4fabe0
push str.proxy
push eax
call fcn.00486aa0
add esp, 0xc
mov byte [0x543714], 1
call fcn.0048fb40
test eax, eax
jne 0x48f9bf
call fcn.0048fcc0
test eax, eax
je 0x48fb2f
push edi
push 1
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.0048fe10
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x48fa3d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.proxytype
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48fa33
cmp dword [ebp - 0xc], 4
jne 0x48fa33
cmp dword [ebp - 4], eax
jne 0x48fa3d
mov dword [0x543710], 1
jmp 0x48fa3d
mov dword [0x543710], 0
mov eax, dword [0x543020]
test eax, eax
jne 0x48fa69
push 0x543eb0
push 0x2c
call fcn.004c211f
add esp, 8
test eax, eax
je 0x48fa62
mov ecx, eax
call fcn.00485620
jmp 0x48fa64
xor eax, eax
mov dword [0x543020], eax
push dword [0x543710]
push str._LiveUpdate360__read_bad_proxy:_d
push str.proxy
push eax
call fcn.00486aa0
add esp, 0x10
cmp dword [0x543710], 0
jne 0x48fb23
push esi
push 1
push str.SOFTWARE360Safe_softmgr
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0048fe10
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x48fb17
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.badproxy
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48faf7
cmp dword [ebp - 0x10], 4
jne 0x48faf7
mov eax, dword [ebp - 8]
jmp 0x48faf9
xor eax, eax
push eax
push str._softmgr__read_bad_proxy:_d
push str.proxy
mov dword [0x543710], eax
call fcn.00486540
push eax
call fcn.00486aa0
add esp, 0x10
test esi, esi
je 0x48fb22
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test edi, edi
je 0x48fb2e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [0x543710]
mov esp, ebp
pop ebp
ret
Function at 0x48fb40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.gdiplus.dll_Ordinal_1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0048fe10
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x48fbfe
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProxyEnable
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48fbaa
cmp dword [ebp - 0xc], 4
je 0x48fbb1
mov dword [ebp - 4], 0
mov ecx, dword [0x543020]
test ecx, ecx
jne 0x48fbe1
push 0x543eb0
push 0x2c
call fcn.004c211f
add esp, 8
test eax, eax
je 0x48fbd9
mov ecx, eax
call fcn.00485620
mov ecx, eax
jmp 0x48fbdb
xor ecx, ecx
mov dword [0x543020], ecx
xor eax, eax
cmp dword [ebp - 4], 1
sete al
push eax
push str.hkcu_enable_ie_proxy:_d
push str.proxy
push ecx
call fcn.00486aa0
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x48fca2
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0048fe10
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x48fca2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ProxyEnable
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48fc4e
cmp dword [ebp - 8], 4
je 0x48fc55
mov dword [ebp - 4], 0
mov ecx, dword [0x543020]
test ecx, ecx
jne 0x48fc85
push 0x543eb0
push 0x2c
call fcn.004c211f
add esp, 8
test eax, eax
je 0x48fc7d
mov ecx, eax
call fcn.00485620
mov ecx, eax
jmp 0x48fc7f
xor ecx, ecx
mov dword [0x543020], ecx
xor eax, eax
cmp dword [ebp - 4], 1
sete al
push eax
push str.hklm_enable_ie_proxy:_d
push str.proxy
push ecx
call fcn.00486aa0
add esp, 0x10
xor ebx, ebx
cmp dword [ebp - 4], 1
sete bl
test esi, esi
je 0x48fcb6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48fcc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
xor esi, esi
lea ecx, [ebp - 0x224]
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
call fcn.0048fe10
mov edi, dword [ebp - 0x224]
test eax, eax
jne 0x48fda7
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004c4ac0
add esp, 0xc
mov dword [ebp - 0x214], 0x414
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push str.AutoConfigURL
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48fda7
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x48fd63
cmp eax, 2
jne 0x48fda7
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x48fd7f
test al, 1
jne 0x48fda7
shr eax, 1
cmp word [ebp + eax*2 - 0x212], si
je 0x48fd88
jmp 0x48fda7
xor eax, eax
mov word [ebp - 0x210], ax
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fd91
sub ecx, edx
sar ecx, 1
je 0x48fda7
mov esi, 1
mov eax, dword [0x543020]
test eax, eax
jne 0x48fdd3
push 0x543eb0
push 0x2c
call fcn.004c211f
add esp, 8
test eax, eax
je 0x48fdcc
mov ecx, eax
call fcn.00485620
jmp 0x48fdce
xor eax, eax
mov dword [0x543020], eax
push esi
push str.use_pac_proxy:_d
push str.proxy
push eax
call fcn.00486aa0
add esp, 0x10
test edi, edi
je 0x48fdf2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
Function at 0x4901e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
test eax, eax
je 0x4903b6
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4903b6
call fcn.0048af80
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push esi
push 0x50f730
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.0048af20
add esp, 0x14
cmp eax, 0xffffffff
je 0x49039b
push edi
test eax, eax
jne 0x490379
mov edx, dword [0x54546c]
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x49026d
mov dword [ebp - 0x30], 0x50f730
mov eax, dword [ebp - 0x24]
add eax, eax
mov edx, dword [esi + eax*8]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490290
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00407020
mov esi, dword [ebx]
mov eax, esi
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x4902da
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00408ee0
test al, al
je 0x4902ce
mov edi, dword [edi + 8]
jmp 0x4902d2
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x4902b6
mov eax, dword [ebx]
cmp esi, eax
je 0x4902f1
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408ee0
test al, al
je 0x49031f
lea eax, [ebp - 0x1c]
mov ecx, ebx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x4fad12
call fcn.00418930
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00418990
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490327
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x28]
call fcn.00407020
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x490376
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49036c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4903c8
push edx
push ecx
call fcn.004c1e27
add esp, 8
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
push esi
push 0x50f730
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.0048af20
add esp, 0x14
cmp eax, 0xffffffff
jne 0x490251
pop edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
call fcn.004c7d81
int3