joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a4f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41a505
push 0x28
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41a539
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0042472d
test al, al
jne 0x41a56c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411b64
lea eax, [ebp - 0x4c]
push 0x4399d8
push eax
call fcn.004292ec
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a56c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411991
lea eax, [ebp - 0x48]
push 0x4399c8
push eax
call fcn.004292ec
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41a574
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41a588
push 0x50
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41a5bc
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0042472d
test al, al
jne 0x41a5ef
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411b64
lea eax, [ebp - 0x4c]
push 0x4399d8
push eax
call fcn.004292ec
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a5ef
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411991
lea eax, [ebp - 0x48]
push 0x4399c8
push eax
call fcn.004292ec
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41ad16
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040104a
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x41adc6
dec eax
je 0x41adbb
dec eax
jne 0x41adcd
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x41adab
dec eax
je 0x41ada2
dec eax
jne 0x41adae
mov dword [ebp - 0x18], 5
jmp 0x41adae
mov dword [ebp - 0x18], 3
jmp 0x41adae
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x41adcd
mov dword [ebp - 0x14], esi
jmp 0x41adcd
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x41adcd
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0041c103
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x41f8f3
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x434f02
call fcn.00427498
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x436e74
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041feac
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x41f987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41fa0a
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004274b7
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.00427d00
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.0042013a
test eax, eax
je 0x41fa0a
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fa0a
cmp dword [ebp - 0x10], edi
je 0x41fa0a
mov ecx, esi
call fcn.0041faa6
test eax, eax
je 0x41fa0a
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x41fa0a
movzx eax, ax
push eax
mov ecx, esi
call fcn.0041fe28
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41fe28
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x41fea5
mov esi, 0x138
push esi
call fcn.004274b7
mov ebx, eax
push esi
push 0
push ebx
call fcn.00427d00
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fea5
cmp dword [ebp - 8], 0
je 0x41fea5
push ebx
lea ecx, [edi + 0x120]
call fcn.0042017b
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0042013a
test eax, eax
je 0x41fea5
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x41fe41
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41feac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push 0x80000000
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41fef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x41ff40
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.0042013a
test eax, eax
je 0x41ff40
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.0042013a
test eax, eax
jne 0x41ff44
xor eax, eax
jmp 0x41ff96
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x41ff80
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x41ff6a
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x41ff50
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0041ff9b
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4207e4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4208e7
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x420876
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.00420cfa
test eax, eax
je 0x42084e
lea eax, [ebp - 0x82c]
push eax
call fcn.00420aeb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x4208dd
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x4208d4
mov eax, 0x7fffffff
jmp 0x4208d4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4208dd
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x42093b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x43e984]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.00420c44
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x420980
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x420999
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x4209f2
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.004207a0
pop ecx
test eax, eax
pop ecx
je 0x4209f2
push esi
call fcn.0042093b
test eax, eax
pop ecx
jne 0x4209ff
inc ebx
cmp ebx, 0x1a
jl 0x4209bd
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x4209fb
Function at 0x420be0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00420bb6
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x420c3e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x420c39
cmp eax, 5
jne 0x420c3e
push 1
pop eax
jmp 0x420c40
xor eax, eax
leave
ret 4

Function at 0x420d5c
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.004274b7
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x43e0a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x420dd6
cmp byte [ebx], 0x5c
jne 0x420dc9
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x420dc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x420dd1
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x420da4
jmp 0x420dd6
and dword [esp + 0x10], 0
push esi
call fcn.00426aea
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x420de9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420e01
test al, 0x10
jne 0x420e01
push 1
pop eax
jmp 0x420e03
xor eax, eax
ret 4

Function at 0x420e06
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420e1e
test al, 0x10
je 0x420e1e
push 1
pop eax
jmp 0x420e20
xor eax, eax
ret 4

Function at 0x420e23
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.00420e06
test eax, eax
je 0x420e57
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x420e52
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x420e5d
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00420de9
test eax, eax
jne 0x420e71
push 1
pop eax
jmp 0x420eae
push ebx
push esi
xor ebx, ebx
call fcn.00420eb2
test eax, eax
jne 0x420eab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x420ea6
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x421166
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0042120d
test eax, eax
je 0x4211cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4211cb
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x42123b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
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 0x42129e
call esi
cmp eax, 0x3f0
jne 0x421295
lea eax, [ebp - 8]
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
je 0x42130d
cmp eax, ebx
je 0x42130d
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x42130d
call esi
cmp eax, 0x7a
jne 0x42130d
push dword [ebp - 4]
call fcn.004274b7
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x421301
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x421311
cmp byte [ebp - 0x24], bl
je 0x42130d
push esi
call fcn.00426aea
pop ecx
xor eax, eax
jmp 0x42135c
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x421344
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42133d
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x421320
jmp 0x421344
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x421359
push esi
call fcn.00426aea
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421ebd
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x435018
call fcn.00427498
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax + 0x4020]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push eax
push ebx
mov ecx, edi
push dword [0x436e78]
push dword [ebp + 8]
call fcn.00407585
lea eax, [ebp - 0x118]
push eax
call fcn.004288bc
cmp eax, 4
pop ecx
jne 0x421f34
mov eax, dword [ebp + 0xc]
push str.1.20.1827.0
add eax, 0xac
push eax
call fcn.00420ef7
pop ecx
test eax, eax
pop ecx
jl 0x421f2b
mov esi, 0x300
jmp 0x421f53
push esi
lea eax, [ebp - 0x21c]
jmp 0x421f3b
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x436e8c]
mov ecx, edi
push dword [ebp + 8]
call fcn.00407585
mov esi, eax
cmp esi, ebx
je 0x421fc1
mov dword [ebp + 8], ebx
push 0x20019
push str.SystemCurrentControlSetControlWindows
push 0x80000002
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040f736
test eax, eax
jne 0x421fb3
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.CSDVersion
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
jae 0x421fb3
cmp dword [ebp + 8], ebx
je 0x421faf
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x421fc4
cmp dword [ebp + 8], ebx
je 0x421fc1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x423266
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0042341b
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x42331f
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42330c
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x4232d0
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x4232f9
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x423306
cmp byte [ebp - 0x838], bl
je 0x42330c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x42331f
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x42331f
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00422eda
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x423344
cmp dword [ebp + 0xc], 4
jne 0x423384
cmp dword [ebp - 0x14], ebx
jne 0x423384
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x42335c
mov ecx, edi
call fcn.0042388b
jmp 0x423384
cmp ax, 4
jne 0x42336b
mov ecx, edi
call fcn.00423a71
jmp 0x423384
cmp ax, 8
jae 0x423378
push str.Mozilla
jmp 0x42337d
push str.Netscape
mov ecx, edi
call fcn.00423e44
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x42388b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00427bc0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x423a59
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x423a59
cmp dword [ebp - 0x14], 1
jne 0x423a59
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x423a1c
cmp byte [ebp - 0x148], al
je 0x423a1c
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x423a0e
lea eax, [ebp - 0x96c]
push 0x43f00c
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x43dfb0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x43dac8
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x423972
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.004230eb
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x423a6c
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x423a6c
push dword [ebp - 4]
call eax
pop edi
pop esi
pop ebx
leave
ret