joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d722
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40d814
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40d7a7
push dword [ebp + 8]
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x828]
push eax
call fcn.0040db70
test eax, eax
je 0x40d789
lea eax, [ebp - 0x828]
push eax
call fcn.0040da19
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x828]
push eax
call edi
test eax, eax
je 0x40d80a
mov eax, dword [ebp - 0x18]
jmp 0x40d802
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x428], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x427], cl
mov byte [ebp - 0x426], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 0x425], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40d80a
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 4]
shr eax, 0xa
push 1
mov dword [esi], eax
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40d8cb
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 0x40d924
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0040d6de
pop ecx
test eax, eax
pop ecx
je 0x40d924
push esi
call fcn.0040d867
test eax, eax
pop ecx
jne 0x40d931
inc ebx
cmp ebx, 0x1a
jl 0x40d8ef
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x40d92d
Function at 0x40db8f
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.00412977
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4218dc
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 0x40dc09
cmp byte [ebx], 0x5c
jne 0x40dbfc
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40dbf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dc04
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x40dbd7
jmp 0x40dc09
and dword [esp + 0x10], 0
push esi
call fcn.00412014
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

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

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

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

Function at 0x40dc56
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.0040dc39
test eax, eax
je 0x40dc8a
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 0x40dc85
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x40dc90
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0040dc1c
test eax, eax
jne 0x40dca4
push 1
pop eax
jmp 0x40dce1
push ebx
push esi
xor ebx, ebx
call fcn.0040dce5
test eax, eax
jne 0x40dcde
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 0x40dcd9
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x40ddba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00412770
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00412770
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x44], si
push 1
pop edi
mov dword [ebp - 0x48], edi
je 0x40ddfd
mov word [ebp - 0x44], di
push dword [ebp + 8]
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x474]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40de8c
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x40de69
cmp eax, edi
jne 0x40de69
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x2c], 0x11
je 0x40de69
cmp dword [ebp - 0x2c], 0x10
je 0x40de69
cmp dword [ebp - 0x2c], 0x12
jne 0x40de2e
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov dword [0x42704c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40de91
mov eax, 0xcccccccc
pop edi
pop esi
leave
ret 8

Function at 0x40de97
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00412770
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.00412770
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x24], si
push 1
pop edi
mov dword [ebp - 0x28], edi
je 0x40ded7
mov word [ebp - 0x24], di
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push edi
push esi
lea eax, [ebp - 0x454]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret 8
Function at 0x40df0a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0040df83
test eax, eax
je 0x40df6f
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 0x40df6f
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 0x40dfb1
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 0x40e014
call esi
cmp eax, 0x3f0
jne 0x40e00b
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 0x40e083
cmp eax, ebx
je 0x40e083
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 0x40e083
call esi
cmp eax, 0x7a
jne 0x40e083
push dword [ebp - 4]
call fcn.00412977
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 0x40e077
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 0x40e087
cmp byte [ebp - 0x24], bl
je 0x40e083
push esi
call fcn.00412014
pop ecx
xor eax, eax
jmp 0x40e0d2
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x40e0ba
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 0x40e0b3
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x40e096
jmp 0x40e0ba
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x40e0cf
push esi
call fcn.00412014
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e0d7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x427058], ecx
jne 0x40e0f2
mov eax, dword [0x421d30]
cmp eax, 0xffffffff
jne 0x40e132
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x40e12c
lea eax, [ebp - 0x14]
push eax
call fcn.00412985
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x40e12c
movsx eax, word [ebp - 0x34]
mov dword [0x421d30], eax
mov ax, word [0x421d30]
leave
ret

Function at 0x40e480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 0xcccccccc
call fcn.00412770
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00412770
add esp, 0x18
xor eax, eax
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
push 1
setne al
mov word [ebp - 0x44], ax
pop edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x48], edi
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40e576
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x40e550
cmp eax, edi
jne 0x40e550
push edi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call ebx
test eax, eax
je 0x40e4eb
cmp dword [ebp - 0x2c], 0xf
jne 0x40e52e
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x2c], 0x113
jne 0x40e540
mov ecx, dword [ebp + 0x10]
push edi
call fcn.0040bbd3
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e4eb
jmp 0x40e506
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42704c], eax
call esi
push dword [ebp - 0x14]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x40e57f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [0x42679c]
mov ebx, str._04x
lea eax, [ebp - 0x14]
push ebx
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call edi
push eax
call edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x426180
call fcn.0040d935
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0040dae4
lea eax, [ebp - 0x428]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x4253a0
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40e639
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_VerLanguageNameA
leave
ret

Function at 0x40ed75
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.0040eeb4
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40ee29
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40ee1b
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 0x40eddf
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 0x40ee08
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x40ee15
cmp byte [ebp - 0x838], bl
je 0x40ee1b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x40ee29
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040e9e9
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x40ee4e
cmp dword [ebp + 0xc], 4
jne 0x40ee68
cmp dword [ebp - 0x14], ebx
jne 0x40ee68
cmp word [edi + 0x14], 3
mov ecx, edi
jne 0x40ee63
call fcn.0040f073
jmp 0x40ee68
call fcn.0040f29f
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x40eeb4
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, SysReAllocStringLen
push str..htm
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x40efb4
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 0x40efb4
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.004138e0
pop ecx
test eax, eax
pop ecx
je 0x40efb4
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.0040efbb
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x50]
push eax
call fcn.004105e4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov edx, ecx
mov dword [ebp - 0x50], 0x41da4c
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x50]
mov word [eax + 0x14], dx
call fcn.0040f018
xor eax, eax
jmp 0x40efb7
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40f073
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00412fd0
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f241
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 0x40f241
cmp dword [ebp - 0x14], 1
jne 0x40f241
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 0x40f204
cmp byte [ebp - 0x148], al
je 0x40f204
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 0x40f1f6
lea eax, [ebp - 0x96c]
push 0x422070
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x421820
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 0x421c24
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x40f15a
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.0040ebfa
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40f24f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fe0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x40fe44
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x40fe50
mov eax, dword [esi + 0x5c]
jmp 0x40fe99
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x40fe97
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x40fe75
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x40fe59
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4105e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x410636
push eax
call fcn.00412977
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x410636
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4218dc
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41063a
xor al, al
jmp 0x41069b
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x410699
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00412977
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x410699
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x410687
mov al, 1
pop ebx
leave
ret 4
Function at 0x419562
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x424ca0
cmp edx, dword [eax]
je 0x419584
add eax, 8
inc ecx
cmp eax, 0x424d30
jl 0x419575
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x424ca0]
jne 0x4196b2
mov eax, dword [0x427118]
cmp eax, 1
je 0x41968c
test eax, eax
jne 0x4195b5
cmp dword [0x4223f4], 1
je 0x41968c
cmp edx, 0xfc
je 0x4196b2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4195ec
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412860
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41962f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413280
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e004
push edi
call fcn.00413140
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412860
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412870
lea eax, [ebp - 0xa0]
push 0x41dfe4
push eax
call fcn.00412870
push dword [esi + 0x424ca4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412870
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041adc2
add esp, 0x2c
pop edi
jmp 0x4196b2
lea eax, [ebp + 8]
lea esi, [esi + 0x424ca4]
push 0
push eax
push dword [esi]
call fcn.00413280
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret