joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10073a5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10018b0
call fcn.01007594
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x10073f8
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10073f8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1007410
cmp ecx, 0x20b
je 0x10073fd
mov dword [ebp - 0x1c], ebx
jmp 0x1007424
cmp dword [eax + 0x84], 0xe
jbe 0x10073f8
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x100741e
cmp dword [eax + 0x74], 0xe
jbe 0x10073f8
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x100ae9c], edi
mov dword [0x100aea0], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009db8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009db4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100aea4], eax
call fcn.01007620
cmp dword [0x10095f0], ebx
jne 0x1007481
push fcn.01007620
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007609
push 0x1001354
push 0x1001350
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009db0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009dac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100134c
push 0x1001344
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x100750c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10074ec
cmp cl, 0x22
jne 0x10074dd
cmp byte [eax], 0x22
jne 0x10074f5
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1007500
cmp cl, 0x20
jbe 0x10074f1
test byte [ebp - 0x54], 1
je 0x1007517
movzx ecx, word [ebp - 0x50]
jmp 0x100751a
cmp byte [eax], 0x20
jbe 0x10074f5
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100750c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01002956
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1007538
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1007574
mov eax, esi
jmp 0x1007588
call fcn.010075cf
ret

Function at 0x5d8ac7
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
mov ecx, esi
call fcn.005d8afe
mov ecx, ecx
dec esi
mov ecx, 0xc6397515
xor dword [eax], edx
mov esi, 0x50312967
add ecx, 1
add eax, 2
add esi, ecx
cmp eax, edi
jl fcn.005d8ac7
sub ecx, 0x2d09a44a
dec ecx
ret
Function at 0x4045d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1774
call fcn.0054e3f0
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xafc]
lea eax, [ebp - 0x1784]
push 0x7cf
push eax
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40464c
lea edx, [ebp - 0x7e4]
push 0x7d0
lea eax, [ebp - 0x1784]
push edx
push eax
call fcn.00403b20
add esp, 0xc
lea ecx, [ebp - 0x7e4]
push ecx
mov ecx, esi
call fcn.00404280
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405f80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b6b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.0054e3f0
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e0]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x4f4]
lea eax, [ebp - 0x1780]
push 0x7cf
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x405ff9
lea edx, [ebp - 0x7e0]
push 0x7d0
lea eax, [ebp - 0x1780]
push edx
push eax
call fcn.00403b20
add esp, 0xc
lea ecx, [ebp - 0x7e0]
lea edx, [esi + 0x4d0]
push ecx
push 0x615e9c
push edx
call fcn.00562ecb
add esp, 0xc
mov ecx, esi
call fcn.00406650
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b818
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 0x406f56
mov ecx, dword [0x639ad4]
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 0x61616c
push eax
call fcn.00562ecb
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.00564237
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, 0x63eb2c
jne 0x406ef3
mov eax, 0x63eb28
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.00564332
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.00564332
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.005642b9
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0056a100
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x406e11
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407230
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57b88b
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 0x407348
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x407348
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 0x63e040
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4072da
lea ecx, [esp + 0x20]
call fcn.0046f750
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.0046f830
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
call fcn.0046f820
jmp 0x407320
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 0x6164c8
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 0x6164c4
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 0x407277
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x407348
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 0x409570
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 0x4095c5
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 0x4095c5
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x4095d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x40aaa0
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57baec
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x40ab32
push 0
lea ecx, [esp + 0x18]
call fcn.004be450
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.00566096
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.00571d9b
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.0056483d
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.00571dd3
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00565cd7
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 0x40ab84
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 0x40b750
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.00409510
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 0x40b823
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 0x40b7f1
test ebx, ebx
je 0x40b818
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b7e8
test cl, cl
je 0x40b7e4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b7e8
add eax, 2
add esi, 2
test cl, cl
jne 0x40b7c4
xor eax, eax
jmp 0x40b7ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b818
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 0x40b8dd
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 0x40b8ab
test ebx, ebx
je 0x40b8d2
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 0x40b8a2
test cl, cl
je 0x40b89e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40b8a2
add eax, 2
add esi, 2
test cl, cl
jne 0x40b87a
xor eax, eax
jmp 0x40b8a7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b8d2
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 0x40c990
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bd0c
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], 0x594a6c
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x48]
mov byte [ebp - 4], 3
cmp eax, edi
je 0x40c9d4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x50]
call fcn.00463e80
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], edi
cmp edi, eax
jge 0x40ca7e
mov eax, dword [ebx + 0x24]
push 0xffffffffffffffff
push 0
mov ecx, dword [eax + edi*4]
add ecx, 0x14
call fcn.00413ae0
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx + edi*4]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40ca78
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 0x40ca52
mov ecx, dword [esi + 8]
mov edi, eax
mov edx, ecx
dec ecx
test edx, edx
mov dword [ebp - 0x1c], ecx
je 0x40ca43
push 0
mov ecx, edi
call fcn.00413c60
mov ecx, dword [ebp - 0x1c]
add edi, 0x24
jmp 0x40ca28
mov esi, dword [esi + 4]
push esi
call fcn.005664c5
mov edi, dword [ebp - 0x18]
add esp, 4
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [eax + 4]
call fcn.0056a100
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0056a100
push esi
call fcn.005664c5
add esp, 4
inc edi
jmp 0x40c9df
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x20]
call fcn.00451ac0
jmp 0x40ca95
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 0x40cac9
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.00562f58
mov esi, dword [esi + 4]
push esi
call fcn.005664c5
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 0x40cae9
push eax
call fcn.005664c5
add esp, 4
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407180
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb20
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 0x40cb3f
call fcn.0040cd70
test eax, eax
jne 0x40cb3f
mov ecx, esi
call fcn.0040ead0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40cc09
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40cc09
push edi
push str.IntegrateMIE
mov ecx, esi
call fcn.0040cfb0
mov ecx, dword [0x63e518]
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 0x40cbb8
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x6164c4
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 [0x63e518]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x63e040
push 0
push str.IDMBIIEXPLORE
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cc09
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x6164c4
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 0x40cc20
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57bd20
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 0x40cc6e
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 0x40cc9d
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 0x40ccdf
mov edx, dword [esp + 8]
push 0x616f64
push edx
call edi
mov eax, dword [esp + 8]
push 0x616f60
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 0x40cd0f
mov eax, dword [esp + 8]
push 0x616f64
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 0x40cd4b
mov eax, dword [esp + 8]
push 0x616f64
push eax
call edi
mov ecx, dword [esp + 8]
push 0x616f60
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
Function at 0x40ce20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bd71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
mov edx, dword [0x63e518]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
mov ebx, 4
push edi
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40ce8c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
jne 0x40cf26
mov ecx, dword [0x63e518]
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0
push edi
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40cf0e
lea ecx, [ebp - 0x124]
call fcn.0046f750
mov edx, dword [0x639ad4]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.RegSetValueEx_err__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], 2
call fcn.00562ecb
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x124]
call fcn.0046f830
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0056a100
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0046f820
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x124]
call fcn.0046f750
mov edx, dword [0x639ad4]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.Error__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], bl
call fcn.00562ecb
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x124]
call fcn.0046f830
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0056a100
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
jmp 0x40cf09

Function at 0x40cfb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bd9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 4
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x63e518]
push 4
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40d016
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x11c]
call fcn.0046f750
mov ecx, dword [0x639ad4]
mov dword [ebp + 0xc], ecx
push esi
lea edx, [ebp + 0xc]
push str.RegSetValueEx_err__ld_in_CBrInt:SaveIntToReg_n
push edx
mov byte [ebp - 4], 2
call fcn.00562ecb
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x11c]
push 1
push eax
call fcn.0046f830
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0056a100
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], bl
call fcn.0046f820
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8