joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x10055ac0
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x10055ce2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_sync_driver_thread:__d_n
call sym.vmtools.dll_Debug
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [ecx], 0xffffffff
xor al, al
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov al, 1
pop ebp
ret

Function at 0x10056740
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1005686d
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1005686d
cmp dword [ebp + 0x10], ebx
je 0x1005686d
push eax
push str.SELECT__FROM_Win32_NetworkAdapter_WHERE_MACAddress___s_and_Manufacturer___Microsoft
push ebx
call sym.vmtools.dll_Str_Asprintf
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10056793
pop edi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push esi
push ecx
mov ecx, edi
call fcn.10056650
mov esi, eax
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x10056842
lea edx, [ebp - 8]
push edx
push str.__Path
push eax
call fcn.1004d360
add esp, 0xc
test al, al
jne 0x100567cc
mov esi, 0x80004005
jmp 0x10056842
mov eax, dword [ebp - 8]
push eax
call fcn.10014300
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100567f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100567f3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10056842
push eax
push str.ASSOCIATORS_OF__s_where_ResultClass__Win32_NetworkAdapterConfiguration
push 0
call sym.vmtools.dll_Str_Asprintf
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10056814
mov esi, 0x8007000e
jmp 0x10056842
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
mov dword [ebp + 8], 0
call fcn.10056650
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x10056837
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.MSVCR90.dll_free]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
push ebx
call edi
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x405175
cmp dword [esp + 0x54], 0x40
jne 0x405175
cmp word [esp + 0x10], 0x5a4d
jne 0x405175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x405175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x40b960
push esi
call ebx
test eax, eax
je 0x405175
cmp dword [esp + 0x54], 0xf8
jne 0x405175
cmp dword [0x40b960], 0x4550
jne 0x405175
mov eax, dword [0x40b976]
test ah, 0x20
jne 0x405175
mov edx, dword [0x40ba80]
xor eax, eax
mov ax, word [0x40b966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x40ba58], eax
je 0x405175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x40ba6c], eax
xor eax, eax
mov ax, word [0x40b966]
mov edx, dword [0x40ba58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x405175
cmp dword [esp + 0x54], edi
jne 0x405175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x40ba80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x40b9b4]
cmp edx, eax
ja 0x405175
mov edi, dword [0x40ba58]
mov ecx, dword [0x40b988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x405175
xor eax, eax
push 2
mov ax, word [0x40b966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x405175
cmp dword [edi - 0x20], ebx
ja 0x405175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x407769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b190
cmp edx, dword [eax]
je 0x40778b
add eax, 8
inc ecx
cmp eax, 0x40b220
jl 0x40777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b190]
jne 0x4078b9
mov eax, dword [0x40bbb0]
cmp eax, 1
je 0x407893
test eax, eax
jne 0x4077bc
cmp dword [0x40b0e4], 1
je 0x407893
cmp edx, 0xfc
je 0x4078b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4077f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a45c
push edi
call fcn.00408f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408680
lea eax, [ebp - 0xa0]
push 0x40a43c
push eax
call fcn.00408680
push dword [esi + 0x40b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408e75
add esp, 0x2c
pop edi
jmp 0x4078b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40b194]
push 0
push eax
push dword [esi]
call fcn.00408490
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
Function at 0x404350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDowncDefaultFindAttachmentPerms
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4043a1
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDowncDefaultFindAttachmentPerms
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404423
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push esi
push str.tSearchAttachmentsWhiteList
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x4043c4
test eax, eax
jne 0x40441a
mov eax, dword [ebp - 4]
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.00405940
mov esi, eax
pop ecx
test esi, esi
je 0x40441a
push dword [ebp - 4]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push str.tSearchAttachmentsWhiteList
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404413
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslwr]
pop ecx
push esi
mov ecx, ebx
call fcn.0040401a
mov edi, eax
push esi
call fcn.004053e3
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4044cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesAdobeAdobe_AcrobatDCFeatureLockDown
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404539
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bEnableATL7Compat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404530
cmp dword [ebp - 8], 4
jne 0x404530
inc eax
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40453e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x20019
xor edi, edi
xor esi, esi
push edi
push str.SoftwareAdobeAdobe_AcrobatDCSecurity
push reloc.OLEAUT32.dll_SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4045a4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push edi
push 0x407554
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40459b
cmp dword [ebp - 4], eax
cmove esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x404735
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x230
mov eax, 0x406928
call fcn.0040545b
xor eax, eax
mov byte [ebp - 0x231], al
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x4048ac
push str.__alloweddir
mov byte [ebp - 0x231], 1
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov esi, eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x238], esi
pop ecx
cmp dword [ebp - 0x23c], eax
jle 0x4048a5
cmp dword [ebx + edi*4], 0
je 0x404898
push esi
push str.__alloweddir
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404898
mov eax, dword [ebx + edi*4]
xor ecx, ecx
mov byte [ebp - 0x231], cl
lea esi, [eax + esi*2]
cmp word [esi], cx
je 0x404892
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 0x104
jae 0x404892
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404892
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x404892
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00404698
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x220], eax
je 0x404883
mov ecx, 0x104
cmp dword [ebp - 0x220], ecx
jae 0x404883
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x404883
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x404883
lea eax, [ebp - 0x218]
mov ecx, section..data
push eax
call fcn.00404a3b
mov byte [ebp - 0x231], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401780
mov esi, dword [ebp - 0x238]
inc edi
cmp edi, dword [ebp - 0x23c]
jl 0x40479b
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 0x231]
call fcn.00405416
ret
Function at 0x404ace
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 1
call fcn.00404972
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00404735
test al, al
jne 0x404afd
xor eax, eax
inc eax
jmp 0x404b0c
push esi
call fcn.00404935
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret 0x10
Function at 0x401270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00401240
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4012f6
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4012f6
push 4
push 0x1000
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
jmp 0x401301
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401620
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov dword [ebp - 0xd4], 0x64
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0xd0]
push ecx
call sub.ntdll.dll__wtoi
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
push 0x100
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0x40236c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40176c
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401762
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401620
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401710
mov dword [ebp - 0x10], 0x2000
cmp dword [ebp - 0x10], 0
je 0x401762
push 4
push 0x1000
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x401751
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
jmp 0x401733
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov eax, dword [0x403008]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4018c6
push 0
push 0x50
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4018bc
push 0x100
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4018b2
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
cmp ecx, 0x50
jne 0x401832
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
jmp 0x40184b
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4018a8
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401620
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40187c
mov dword [ebp - 0x14], 0x500000
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4018e0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov eax, dword [0x403008]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401a3b
push 0
push 0x50
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401a31
push 0x100
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401a27
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x50
jne 0x4019a1
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
jmp 0x4019ba
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401a1d
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401620
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4019eb
mov dword [ebp - 0x14], 0x3e8
cmp dword [ebp - 0x14], 0
je 0x401a1d
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401a50
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
mov eax, dword [0x403008]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401aa1
push 0
push 0x50
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401aa1
mov eax, dword [ebp - 8]
jmp 0x401aa3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x346c3ff2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4651511e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x408190
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa1960b21
mov ecx, 0x18b71962
rorx edx, eax, 0xb
sarx ecx, ecx, ecx
mulx eax, edx, ecx
xor eax, edx
mov ecx, 0xf5f7ffbe
pext eax, eax, ecx
cmp eax, 0x22f270c
sete al
ret

Function at 0x425420
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ecx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42545f
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
xor ecx, esp
mov edx, dword [esp + 0x1c]
call fcn.0048471b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 4]
push ecx
push 0x2d
push str.FileReader:_unable_to_get_file_size__code__
push eax
lea ecx, [esp + 0x18]
call fcn.00429240
push 0x516930
lea eax, [esp + 0xc]
push eax
call fcn.00486900
int3