joyce8/EMBER2024-capa huggingface dataset:
Function at 0x99dde3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x99de2e
mov edx, ebx
and edx, 1
shr ebx, 1
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
mov edi, edx
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + esi*4]
add dword [ebp - 4], esi
add eax, eax
or edx, eax
mov eax, edx
dec ecx
test ecx, ecx
jne 0x99ddfe
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x9a2c30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
add edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x2c]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x9a2d63
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
jne 0x9a2cef
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x9a2ce9
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.008bab48
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x9a2cc7
mov byte [ebp - 0xd], 0
jmp 0x9a2d67
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
call fcn.00608354
add dword [ebp - 0x24], 0x28
jmp 0x9a2d57
push 4
push 0x1000
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.008bab48
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x9a2d1b
mov byte [ebp - 0xd], 0
jmp 0x9a2d67
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.00607bb0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
add dword [ebp - 0x24], 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x9a2c83
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x9a59d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x9a4f11
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00607dcc
mov eax, dword [0x9b4620]
inc dword [eax]
mov eax, 3
call fcn.00607df4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x9a5a1e
mov eax, dword [0x9b44cc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 1
jne 0x9a5a2e
mov eax, dword [0x9b44c0]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 2
jne 0x9a5a3e
mov eax, dword [0x9b4604]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0
je 0x9a5b07
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.00607dcc
mov eax, dword [0x9b4620]
inc dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fdiv dword [0x9a4f40]
call fcn.00608254
call fcn.00607df4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cmp byte [ebp - 1], 0
jne 0x9a5b07
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.00607bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x9a5b20
cmp dword [ebp - 0x10], 0
jne 0x9a5b35
mov eax, 0x64
call fcn.009a4a68
jmp 0x9a59e7
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402460
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5530ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], 0
push eax
push 0xcc
call fcn.0053e0f0
mov ecx, dword [0x5c2a74]
lea edi, [esi + 0x5c]
mov dword [edi], ecx
mov edx, dword [0x5c2a74]
lea ecx, [esi + 0x60]
mov dword [ecx], edx
mov eax, dword [0x5c2a74]
lea ebx, [esi + 0x64]
mov dword [ebx], eax
mov edx, dword [0x5c2a74]
lea ebp, [esi + 0x6c]
mov dword [ebp], edx
lea eax, [esp + 0x30]
mov byte [esp + 0x1c], 5
push eax
mov dword [esi], method.CDialog.virtual_0
call fcn.005422f7
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.005422f7
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.005422f7
mov eax, dword [esp + 0x34]
push 0x5c8010
and eax, 0xff
mov ecx, ebp
mov dword [esi + 0x68], eax
call fcn.005422f7
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 7
call fcn.005421be
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 6
call fcn.005421be
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x402478
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5530ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], 0
push eax
push 0xcc
call fcn.0053e0f0
mov ecx, dword [0x5c2a74]
lea edi, [esi + 0x5c]
mov dword [edi], ecx
mov edx, dword [0x5c2a74]
lea ecx, [esi + 0x60]
mov dword [ecx], edx
mov eax, dword [0x5c2a74]
lea ebx, [esi + 0x64]
mov dword [ebx], eax
mov edx, dword [0x5c2a74]
lea ebp, [esi + 0x6c]
mov dword [ebp], edx
lea eax, [esp + 0x30]
mov byte [esp + 0x1c], 5
push eax
mov dword [esi], method.CDialog.virtual_0
call fcn.005422f7
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.005422f7
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
call fcn.005422f7
mov eax, dword [esp + 0x34]
push 0x5c8010
and eax, 0xff
mov ecx, ebp
mov dword [esi + 0x68], eax
call fcn.005422f7
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 7
call fcn.005421be
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 6
call fcn.005421be
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x405850
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x4059d6
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x5a4098
push eax
call fcn.0053afda
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.0053c346
inc edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov ecx, 0x58
xor eax, eax
lea edi, [ebp - 0x1a8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x1a8]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x1a4]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x5c79e4
jne 0x405973
mov eax, 0x5c79e0
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.0053c441
mov edx, dword [esi + 0x98]
mov eax, dword [edx + 0x18]
mov ebx, dword [eax + ebx]
push ebx
lea ebx, [esi + 0x5c]
push 2
push edi
mov ecx, ebx
call fcn.0053c441
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, ebx
call fcn.0053c3c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x405891
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405cb0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55378b
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x405dc8
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x405dc8
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x5c6ff0
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405d5a
lea ecx, [esp + 0x20]
call fcn.0045eaa0
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], edi
call fcn.0045eb80
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
call fcn.0045eb70
jmp 0x405da0
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x5a43f0
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x5a43ec
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x405cf7
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x405dc8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x407ff0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 0x14]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408045
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408045
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x408054
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x409520
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5539ec
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x4095b2
push 0
lea ecx, [esp + 0x18]
call fcn.004a7040
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.0053e1a5
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.00549f10
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.0053c94c
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.00549f48
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.0053dde6
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409604
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a130
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
add ecx, 4
push ebx
push ebp
push esi
push edi
push str.IEXPLORE
call fcn.00407f90
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WSOCK32.dll_accept
call ebp
test eax, eax
jne 0x40a203
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a1d1
test ebx, ebx
je 0x40a1f8
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a1c8
test cl, cl
je 0x40a1c4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a1c8
add eax, 2
add esi, 2
test cl, cl
jne 0x40a1a4
xor eax, eax
jmp 0x40a1cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a1f8
mov edi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x40a2bd
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.DownloadUI
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a28b
test ebx, ebx
je 0x40a2b2
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40a282
test cl, cl
je 0x40a27e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40a282
add eax, 2
add esi, 2
test cl, cl
jne 0x40a25a
xor eax, eax
jmp 0x40a287
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a2b2
mov edi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40b360
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553c0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebx], 0x5691fc
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x48]
mov byte [ebp - 4], 3
cmp eax, edi
je 0x40b3a4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x50]
call fcn.00456300
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], edi
cmp edi, eax
jge 0x40b44e
mov eax, dword [ebx + 0x24]
push 0xffffffffffffffff
push 0
mov ecx, dword [eax + edi*4]
add ecx, 0x14
call fcn.004121f0
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx + edi*4]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40b448
lea esi, [eax + 0x14]
mov dword [ebp - 0x24], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov eax, dword [esi + 4]
mov byte [ebp - 4], 6
test eax, eax
je 0x40b422
mov ecx, dword [esi + 8]
mov edi, eax
mov edx, ecx
dec ecx
test edx, edx
mov dword [ebp - 0x1c], ecx
je 0x40b413
push 0
mov ecx, edi
call fcn.00412370
mov ecx, dword [ebp - 0x1c]
add edi, 0x24
jmp 0x40b3f8
mov esi, dword [esi + 4]
push esi
call fcn.00542796
mov edi, dword [ebp - 0x18]
add esp, 4
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [eax + 4]
call fcn.005421be
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.005421be
push esi
call fcn.00542796
add esp, 4
inc edi
jmp 0x40b3af
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x20]
call fcn.004452b0
jmp 0x40b465
lea esi, [ebx + 0x50]
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov eax, dword [esi + 4]
mov byte [ebp - 4], 8
test eax, eax
je 0x40b499
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.0053b067
mov esi, dword [esi + 4]
push esi
call fcn.00542796
add esp, 4
lea eax, [ebx + 0x20]
mov dword [ebp - 0x24], eax
mov dword [eax], method.CCommandLineInfo.virtual_0
mov eax, dword [eax + 4]
mov byte [ebp - 4], 9
test eax, eax
je 0x40b4b9
push eax
call fcn.00542796
add esp, 4
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00405c00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b4f0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
mov dword [esi + 0x34], edi
je 0x40b50f
call fcn.0040b740
test eax, eax
jne 0x40b50f
mov ecx, esi
call fcn.0040d4a0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b5d9
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40b5d9
push edi
push str.IntegrateMIE
mov ecx, esi
call fcn.0040b980
mov ecx, dword [0x5c74b0]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.IDMBIIEXPLORE
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b588
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x5a43ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [0x5c74b0]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.IDMBIIEXPLORE
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b5d9
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x5a43ec
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x40b5f0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x553c20
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push reloc.WSOCK32.dll_accept
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40b63e
mov ecx, dword [esp + 0xc]
push str.Download_with_IDMan
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SoftwareClassesPROTOCOLSName_Space_Handler_
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
je 0x40b66d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.http_
push ecx
call esi
test eax, eax
jne 0x40b6af
mov edx, dword [esp + 8]
push 0x5a4e7c
push edx
call edi
mov eax, dword [esp + 8]
push 0x5a4e78
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.https_
push edx
call esi
test eax, eax
jne 0x40b6df
mov eax, dword [esp + 8]
push 0x5a4e7c
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ftp_
push edx
call esi
test eax, eax
jne 0x40b71b
mov eax, dword [esp + 8]
push 0x5a4e7c
push eax
call edi
mov ecx, dword [esp + 8]
push 0x5a4e78
push ecx
call edi
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret