joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439a70
Capabilities:
Delete file

Disassembly:
mov eax, 0x46701f
call fcn.0045a480
sub esp, 0x134
and dword [ebp - 0x10], 0
push esi
mov esi, ecx
mov eax, dword [esi + 0x330]
mov dword [ebp - 4], 1
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 4]
push dword [ecx + eax + 8]
mov eax, dword [esi + 0x31c]
lea ecx, [ebp - 0x140]
mov al, byte [eax + 0x14]
push dword [esi + 0x48c]
shr al, 5
and al, 1
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00427c67
push dword [esi + 0x318]
mov eax, dword [esi + 0x31c]
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 2
push dword [eax + 0x3e]
call fcn.0043b6f9
test al, al
je 0x439b5f
lea eax, [ebp + 8]
push 0x80
push eax
call fcn.00439ba4
sub esp, 0x20
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], 0x46bb80
mov dword [ecx + 0x20], 0x46bb78
call fcn.00408c11
lea ecx, [ebp - 0x140]
call fcn.0044d5a2
mov eax, dword [esi + 0x318]
lea ecx, [ebp - 0x18]
push ecx
mov cx, word [eax + 0x46]
mov ax, word [eax + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x140]
push eax
mov eax, dword [esi + 0x318]
push dword [eax + 0x40]
call fcn.0044d65d
jmp 0x439b6e
lea ecx, [ebp + 8]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.0044d32e
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040c1bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x50

Function at 0x439ba4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x439bdb
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
leave
ret

Function at 0x43b3e4
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 0x43b3fa
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b42e
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x43b461
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
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 0x43b461
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x43b469
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 0x43b47f
mov eax, 0x286
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b4b3
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x43b4e6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
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 0x43b4e6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x43b4ee
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 0x43b501
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b535
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x43b568
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
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 0x43b568
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x43b570
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 0x43b584
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b5b8
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x43b5eb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
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 0x43b5eb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x43b5f3
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 0x43b607
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b63b
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x43b66e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
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 0x43b66e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x43b676
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 0x43b68a
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b6be
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x43b6f1
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
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 0x43b6f1
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x448dd8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x448e0d
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
leave
ret

Function at 0x44d32e
Capabilities:
Delete file

Disassembly:
mov eax, 0x469211
call fcn.0045a480
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi - 4], 0x46c61c
mov dword [esi], 0x46c618
mov dword [ebp - 4], 5
call fcn.00427de2
cmp dword [esi + 0xc8], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x44d376
lea ecx, [esi + 0xbc]
call fcn.0041711a
push eax
call edi
cmp dword [esi + 0xf0], 0
je 0x44d38d
lea ecx, [esi + 0xe4]
call fcn.0041711a
push eax
call edi
mov eax, dword [esi + 0x114]
mov byte [ebp - 4], 4
test eax, eax
je 0x44d3a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x110]
mov byte [ebp - 4], 3
test eax, eax
je 0x44d3b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 2
call fcn.0040c1bb
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 1
call fcn.0040c1bb
and byte [ebp - 4], 0
lea ecx, [esi + 0x94]
call fcn.0040c1bb
lea edi, [esi - 4]
neg edi
sbb edi, edi
and edi, esi
mov dword [ebp - 0x10], edi
mov dword [edi], 0x46c624
mov ecx, edi
mov dword [ebp - 4], 6
call fcn.00427de2
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44d7fb
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4692d0
call fcn.0045a480
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
lea eax, [ebp + 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044df8c
pop ecx
test al, al
pop ecx
je 0x44d833
and byte [ebp - 4], 0
jmp 0x44d915
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00417993
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0044d966
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x44d866
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00416dd9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x30]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44d8bf
call edi
mov esi, eax
cmp esi, 3
je 0x44d8bf
cmp esi, 2
je 0x44d8bf
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00417993
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 4
push esi
call fcn.0044d9cc
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x44d86c
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00416dd9
jmp 0x44d86c
lea ecx, [ebp + 8]
call fcn.0041711a
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.0041711a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x44d911
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00417993
push dword [eax + 8]
mov byte [ebp - 4], 5
call edi
push eax
mov ecx, ebx
call fcn.0044d9cc
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x44d8bf
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00416dd9
jmp 0x44d8bf
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040c1bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50

Function at 0x44d966
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 0x114]
push esi
push eax
call fcn.0042a4c9
pop ecx
test al, al
pop ecx
je 0x44d9c5
mov ecx, esi
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041711a
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x44d9c5
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.0044d9cc
push ebx
mov ecx, esi
call fcn.0041711a
push eax
jmp 0x44d9a5
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4514ad
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x469a7c
call fcn.0045a480
sub esp, 0x168
push ebx
push esi
push 0x4822a0
lea eax, [ebp - 0x34]
push dword [ebp + 8]
push eax
call fcn.0042a111
add esp, 0xc
lea ecx, [ebp - 0x174]
xor ebx, ebx
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp + 8], esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040c1bb
cmp esi, 0xffffffff
jne 0x451507
mov al, 1
jmp 0x451536
lea eax, [ebp - 0x174]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push esi
call edi
test eax, eax
je 0x45152a
lea eax, [ebp - 0x174]
push eax
push esi
call edi
test eax, eax
jne 0x45152c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x451e70
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x1c]
mov ebp, ecx
call fcn.0042a4c9
pop ecx
test al, al
pop ecx
je 0x451ed2
mov ecx, esi
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041711a
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x451ed2
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push esi
mov ecx, ebp
call fcn.00451d99
push ebx
mov ecx, esi
call fcn.0041711a
push eax
jmp 0x451eac
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x451ed9
Capabilities:
Delete file

Disassembly:
mov eax, 0x469b9c
call fcn.0045a480
push esi
push edi
mov edi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00451e70
lea ecx, [ebp + 8]
call fcn.0041711a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x451f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x451f39
cmp eax, 2
je 0x451f39
push dword [ebp + 0x34]
mov ecx, edi
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x30]
push eax
call fcn.00451d99
lea ecx, [ebp + 8]
call fcn.0041711a
push eax
jmp 0x451f06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x30
Function at 0x451f55
Capabilities:
Delete directory

Disassembly:
mov eax, 0x469bc0
call fcn.0045a480
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00451e70
lea ecx, [ebp + 8]
call fcn.0041711a
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call edi
test eax, eax
jne 0x45207e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 3
je 0x45207e
cmp ebx, 2
je 0x45207e
cmp ebx, 5
jne 0x451fc2
lea eax, [ebp + 8]
push eax
call fcn.004514ad
test al, al
pop ecx
jne 0x451fca
mov ebx, 0x91
cmp ebx, 0x91
je 0x451fe7
push dword [ebp + 0x34]
lea eax, [ebp + 8]
mov ecx, esi
push ebx
push dword [ebp + 0x30]
push eax
call fcn.00451d99
lea ecx, [ebp + 8]
call fcn.0041711a
push eax
jmp 0x451f86
xor edi, edi
mov dword [ebp + 0x30], edi
mov eax, dword [esi]
mov dword [ebp - 0x10], edi
lea edx, [ebp + 0x30]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
push edx
push 0x482470
push 0x46d3e8
mov eax, dword [eax + esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, edi
jl 0x452020
mov eax, dword [ebp + 0x30]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp word [ebp - 0x10], di
je 0x45206d
sub esp, 0x28
lea eax, [ebp + 0x37]
mov dword [ebp - 0x14], esp
mov ecx, esp
push edi
push eax
push 0x484e80
mov dword [ecx], 0x46bb80
mov dword [ecx + 0x20], 0x46bb78
call fcn.00416d3d
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
mov byte [ebp - 4], 2
call fcn.00429f19
mov byte [ebp - 4], 1
call fcn.00458ecf
add esp, 0x50
mov eax, dword [ebp + 0x30]
and byte [ebp - 4], 0
cmp eax, edi
je 0x45207e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30

Function at 0x456971
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x45797f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 1
xor ebx, ebx
mov esi, ecx
pop edi
mov dword [ebp - 4], ebx
call fcn.00457a7b
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4579e1
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4579e1
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.ProxyEnable
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4579e1
cmp dword [ebp - 0xc], ebx
je 0x4579e1
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.004576e1
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [esi + 4], eax
je 0x457a04
cmp dword [ebp + 0xc], 4
jne 0x457a1e
cmp dword [ebp - 0x10], ebx
jne 0x457a1e
cmp word [esi + 0x14], 3
mov ecx, esi
jne 0x457a19
call fcn.00457b82
jmp 0x457a1e
call fcn.00457dae
cmp dword [esi + 4], ebx
pop edi
pop esi
setne byte [ebp + 0xf]
cmp dword [ebp - 4], ebx
pop ebx
je 0x457a36
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0xf]
leave
ret 0x14

Function at 0x457a7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x258]
push eax
mov edi, SysReAllocString
push str..htm
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x457b7b
lea eax, [ebp - 0x258]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
push edi
call esi
test eax, eax
jne 0x457b7b
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x154]
push str.netscape.exe
push eax
call fcn.0045bab0
pop ecx
test eax, eax
pop ecx
je 0x457b7b
lea ecx, [ebp - 0x154]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x50]
call fcn.00429491
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x50]
push eax
call fcn.00458bc2
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov edx, ecx
mov dword [ebp - 0x50], 0x46c678
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x50]
mov word [eax + 0x14], dx
call fcn.004294f9
xor eax, eax
jmp 0x457b7e
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x457b82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0045a620
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 SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x457d50
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 0x457d50
cmp dword [ebp - 0x14], 1
jne 0x457d50
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 0x457d13
cmp byte [ebp - 0x148], al
je 0x457d13
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 0x457d05
lea eax, [ebp - 0x96c]
push 0x483c34
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x483c30
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 0x483c2c
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x457c69
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.00457845
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x457d5e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret