joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433150
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447928
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x456020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f5f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407b40
movzx ecx, al
test ecx, ecx
jne 0x4331c7
lea ecx, [ebp - 0x10]
call fcn.00404e70
sub eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0041cdb0
movzx edx, ax
cmp edx, 0x5c
je 0x4331c7
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041c460
push 0
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041cee0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x43329a
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041ce60
lea ecx, [ebp - 0x1c]
call fcn.00433de0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x433279
push 0
lea ecx, [ebp - 0x1c]
call fcn.00433de0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x43325f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x433236
call fcn.00411d50
mov dword [ebp - 0x34], eax
jmp 0x43323d
mov dword [ebp - 0x34], 0x80004005
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x1c]
call fcn.0040fa10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040fa10
mov eax, dword [ebp - 0x28]
jmp 0x4332b2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00433de0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041cee0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
call fcn.0040fa10
jmp 0x4331d6
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040fa10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x434c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov ax, word [0x44b954]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0x208
mov dword [ebp - 4], 1
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 4]
push ecx
push str.OrgOEM
push str.SoftwareKSafeCoop
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f670
mov ecx, dword [ebp + 8]
call fcn.00404e70
test eax, eax
jne 0x434cb7
xor eax, eax
jmp 0x434cbc
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043a53a
mov esp, ebp
pop ebp
ret
Function at 0x4350d8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
mov ebx, ecx
push ebx
call edi
mov dword [ebp - 0x80], eax
mov eax, 0x104
cmp dword [ebp - 0x80], eax
pop ecx
jae 0x435111
mov eax, dword [ebp - 0x80]
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x435122
xor eax, eax
jmp 0x435193
push 0
push dword [ebp + 0x198]
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43511e
lea eax, [ebp - 0x7c]
call fcn.00434f66
lea eax, [ebp - 0x7c]
push eax
call edi
push esi
mov ebx, eax
call edi
mov edx, dword [ebp - 0x80]
pop ecx
pop ecx
mov ecx, eax
sub ecx, edx
add eax, ebx
cmp eax, edx
lea edi, [ecx + ebx]
jbe 0x43511e
lea eax, [edi + 1]
cmp eax, 0x104
jae 0x43511e
lea eax, [ecx + ecx]
push eax
lea eax, [esi + edx*2]
push eax
add ebx, ebx
lea eax, [ebx + esi]
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
push ebx
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.MSVCR80.dll_memcpy
and word [esi + edi*2], 0
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp + 0x18c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043a53a
add ebp, 0x190
leave
ret
Function at 0x43557e
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x44621c
call fcn.00445e60
xor eax, eax
inc eax
cmp dword [esi + 8], eax
jne 0x4355d4
xor eax, eax
cmp dword [esi], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043a53a
add ebp, 0x20c
leave
ret
lea ecx, [ebp - 0x28]
mov dword [esi + 8], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor edi, edi
push 0x206
lea eax, [ebp + 2]
push edi
mov dword [ebp - 4], edi
push eax
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp ebx, edi
push 0x104
lea eax, [ebp]
push eax
jne 0x43560b
push edi
jmp 0x435613
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x435633
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__]
lea eax, [ebp - 0x28]
push eax
call fcn.00435765
push str.kispublic.dll
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
jne 0x435669
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x4355b1
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esi], eax
jne 0x435690
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
jmp 0x4355b1
xor edi, edi
inc edi
jmp 0x43567c
Function at 0x435933
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and word [ebp - 0x20c], 0
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, edi
call fcn.00433de0
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a53a
leave
ret 4

Function at 0x4359dc
Capabilities:
Read .ini file

Disassembly:
push ebp
push edi
mov edi, eax
mov ecx, edi
call fcn.00433de0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 1
push str.Mode
push str.Proxy
call ebp
test eax, eax
mov dword [esi], eax
je 0x435aa1
cmp eax, 2
push ebx
jne 0x435a3e
lea eax, [esi + 4]
push eax
mov ebx, str.Host
call fcn.00435933
lea ecx, [esi + 4]
call fcn.00433de0
mov ecx, edi
call fcn.00433de0
push eax
push 0x1f90
push str.Port
push str.Proxy
call ebp
mov dword [esi + 8], eax
mov ecx, edi
call fcn.00433de0
push eax
push 0
push str.Needauth
push str.Proxy
call ebp
test eax, eax
mov dword [esi + 0xc], eax
je 0x435a87
lea eax, [esi + 0x10]
push eax
mov ebx, str.Login
call fcn.00435933
lea ecx, [esi + 0x10]
call fcn.00433de0
lea eax, [esi + 0x14]
push eax
mov ebx, str.Password
call fcn.00435933
lea ecx, [esi + 0x14]
call fcn.00433de0
mov ecx, edi
call fcn.00433de0
push eax
push 1
push str.Bypassproxyserverforlocaladdress
push str.Proxy
call ebp
mov dword [esi + 0x18], eax
pop ebx
pop edi
pop ebp
ret
Function at 0x435b21
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4477fe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x456020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea edi, [esi + 8]
mov ecx, edi
mov dword [esi], vtable.CDownload.0
mov dword [esi + 4], 4
call fcn.0040fa30
xor ebx, ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
push 3
pop ebp
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
lea ecx, [esi + 0x48]
mov dword [edi + 4], ebp
call fcn.0040fa30
mov dword [esi + 0x88], vtable.TDownStat.0
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
lea eax, [esi + 0x70]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
or dword [esi + 0xec], 0xffffffff
mov eax, 0x7530
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], 0x1388
mov dword [esi + 0xe4], ebp
mov dword [esi + 0xe8], 1
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x435dcf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00435e86
mov eax, esi
call fcn.00435eca
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jle 0x435df1
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x54], eax
je 0x435e1f
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x435f72
push edi
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x50], eax
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 4

Function at 0x435f35
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x435f6b
push dword [esi + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x435f5e
push 0
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x50], 0
call fcn.00435e86
pop esi
ret
Function at 0x437e4f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [esi], edi
je 0x437f1f
cmp dword [esi + 4], edi
je 0x437e77
xor eax, eax
inc eax
jmp 0x437f21
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00433de0
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push edi
mov word [ebp - 0xc], ax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
mov word [ebp - 6], di
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x437f1f
mov eax, dword [esi + 0xc]
cmp eax, edi
mov ecx, dword [esi + 8]
ja 0x437ed1
cmp ecx, edi
jbe 0x437f1f
mov edx, dword [ebp - 0x10]
cmp edx, eax
jb 0x437f1f
ja 0x437ee1
mov edx, dword [ebp - 0x14]
cmp edx, ecx
jbe 0x437f1f
mov ecx, eax
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
sar ecx, 0x1f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x437e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x437e6f
mov eax, dword [esi]
cmp eax, edi
je 0x437f1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043a53a
leave
ret 8
Function at 0x4381fb
Capabilities:
Write file on windows

Disassembly:
push 0x70
mov eax, 0x4481f8
call fcn.00445ec9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
xor eax, eax
mov byte [ebp - 0x4c], 0
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push 0
push eax
mov ebx, ecx
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x4c]
push str.kdown_
push eax
call sub.MSVCR80.dll_strcpy
add esp, 0x14
mov eax, ebx
call fcn.004371a0
mov esi, eax
mov eax, dword [ebp + 0xc]
imul esi, esi, 0x28
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
add esi, 0x38
mov eax, ebx
mov dword [ebp - 0x40], esi
call fcn.004371a0
push esi
mov dword [ebp - 0x1c], eax
call fcn.0043a3f2
push dword [ebp - 0x40]
mov edi, eax
push 0
push edi
call sub.MSVCR80.dll_memset
push 0x38
lea eax, [ebp - 0x4c]
push eax
push edi
call sub.MSVCR80.dll_memcpy
and dword [ebp - 0x54], 0
lea eax, [edi + 0x38]
mov dword [ebp - 0x50], eax
add esp, 0x1c
mov eax, ebx
call fcn.004371a0
test eax, eax
jbe 0x4382f9
mov eax, ebx
call fcn.004371a0
mov esi, dword [ebp - 0x54]
cmp esi, eax
jb 0x4382b9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 4]
mov esi, dword [eax + esi*4]
push 0x28
push esi
push dword [ebp - 0x50]
call sub.MSVCR80.dll_memcpy
push dword [esi + 0x14]
add dword [ebp - 0x50], 0x28
push dword [esi + 0x10]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00438ca7
add esp, 0x28
inc dword [ebp - 0x54]
mov eax, ebx
call fcn.004371a0
cmp dword [ebp - 0x54], eax
jb 0x4382a5
lea ecx, [ebp - 0x58]
call fcn.0040fa30
and dword [ebp - 4], 0
push str._kti
lea eax, [ebp - 0x50]
push eax
call fcn.004370a1
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.00422610
add esp, 0xc
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00414130
lea ecx, [ebp - 0x54]
call fcn.0040fa10
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0040fa10
lea ecx, [ebp - 0x58]
call fcn.00433de0
push eax
lea esi, [ebp - 0x7c]
call fcn.00437de1
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
call fcn.00437e10
test eax, eax
je 0x43839e
cmp dword [ebp - 0x78], ebx
je 0x438377
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
jmp 0x438395
push ebx
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x40]
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x43839e
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x40]
jne 0x43839e
mov dword [ebp - 0x50], 1
jmp 0x4383a1
mov dword [ebp - 0x50], ebx
cmp edi, ebx
je 0x4383ac
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
lea esi, [ebp - 0x7c]
call fcn.00437f30
lea ecx, [ebp - 0x6c]
call fcn.0040fa10
lea ecx, [ebp - 0x58]
call fcn.0040fa10
mov eax, dword [ebp - 0x50]
call fcn.00445f13
ret 0x14
Function at 0x4383cf
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x447768
call fcn.00445e60
lea ecx, [ebp - 0x10]
call fcn.0040fa30
and dword [ebp - 4], 0
push str._kti
lea eax, [ebp - 0x14]
push eax
call fcn.004370a1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00422610
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00414130
lea ecx, [ebp - 0x18]
call fcn.0040fa10
lea ecx, [ebp - 0x14]
call fcn.0040fa10
lea ecx, [ebp - 0x10]
call fcn.00433de0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.0040fa10
call fcn.00445eff
ret 4

Function at 0x438bd3
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x3c], 0
push edi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.MSVCR80.dll_memset
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
push 0xc38
push 0
push esi
call sub.MSVCR80.dll_memset
lea eax, [esi + 0x210]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x418]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x620]
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x828]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0xa30]
add esp, 0x24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], edi
mov edi, 0x104
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x438ca2
cmp dword [ebp - 0x30], 3
je 0x438c7b
cmp dword [ebp - 0x30], 4
jne 0x438ca2
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov ax, word [ebp - 0x24]
mov word [esi + 0x208], ax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x20c], eax
xor eax, eax
add esp, 0xc
inc eax
jmp 0x438ca4
xor eax, eax
pop edi
leave
ret
Function at 0x4397b8
Capabilities:
Connect to http server
Create http request

Disassembly:
push 4
mov eax, 0x4483a8
call fcn.00445e60
lea ecx, [ebp - 0x10]
xor edi, edi
xor ebx, ebx
call fcn.0040fa30
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xd10]
cmp eax, edi
jne 0x4397e0
inc ebx
jmp 0x439813
cmp eax, 2
jne 0x439813
push 3
pop ebx
lea eax, [esi + 0xd14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00414130
mov eax, dword [esi + 0xd18]
cmp eax, edi
jle 0x439813
push eax
lea eax, [ebp - 0x10]
push 0x44c378
push eax
call fcn.0041d010
add esp, 0xc
push 0x10000000
push edi
lea ecx, [ebp - 0x10]
call fcn.00433de0
push eax
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.8888.8888__
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x439855
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00438ca7
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.0040fa10
xor eax, eax
call fcn.00445eff
ret
push 0x43970a
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
je 0x439835
push 4
lea eax, [esi + 0xca4]
push eax
push 2
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, word [esi + 0x21c]
push esi
push edi
push 3
push edi
push edi
push eax
lea eax, [esi + 0x224]
push eax
push dword [esi + 8]
xor ebx, ebx
inc ebx
mov dword [esi + 0xca0], ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x4398c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00438ca7
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.0040fa10
mov eax, edi
jmp 0x43984f
mov edi, ebx
jmp 0x4398b8

Function at 0x439f40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x456020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00439e7f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x439f8f
cmp dword [ebp - 0x1c], 5
jb 0x439fa7
jmp 0x439fa3
cmp dword [ebp - 0x10], 1
jne 0x439fa7
cmp dword [ebp - 0x1c], 4
ja 0x439fa3
jne 0x439fa7
cmp dword [ebp - 0x18], 0
jbe 0x439fa7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44979c
call fcn.0041c8c0
test eax, eax
jge 0x439fc8
mov byte [0x457628], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043a53a
add ebp, 0x78
leave
ret
Function at 0x43a363
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4571a0], 0
push esi
jne 0x43a2d6
call fcn.0043a201
test eax, eax
je 0x43a319
mov eax, dword [0x4571a0]
cmp eax, 1
jne 0x43a2f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43a319
pop esi
ret
push eax
call dword [0x4571a8]
test eax, eax
jne 0x43a361
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43a31d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4571a0]
call dword [0x4571a8]
mov edi, eax
test edi, edi
je 0x43a344
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x43a360
lea edi, [esi + 0xff0]
push esi
push dword [0x4571a0]
call dword [0x4571a4]
add esi, 0x10
cmp esi, edi
jb 0x43a34a
mov eax, esi
pop edi
pop esi
ret
jmp 0x43a2c3

Function at 0x43a53a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x456020]
jne 0x43a544
repz ret
jmp fcn.0043a9be