joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
jne 0x40e71d
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push edi
call fcn.00402244
push edi
push str.writeValue:_Value_Data:__s
call fcn.0041c596
cmp dword [ebp + 0x10], 4
pop ecx
pop ecx
jne 0x40e756
push edi
call fcn.004653ce
pop ecx
push 4
push str.writeValue:__REG_DWORD____sizeOfInputData:__d
mov dword [ebp + 0xc], eax
call fcn.0041c596
pop ecx
pop ecx
jmp 0x40e777
cmp dword [ebp + 0x10], 1
jne 0x40e771
push edi
call fcn.0045ea48
pop ecx
inc eax
push eax
push str.writeValue:__Data_type_is_REG_SZ_or_REG_EXPAND_SZ_or_REG_BINARY:__d
call fcn.0041c596
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
push ecx
push ecx
lea ecx, [ebp + 0x14]
call fcn.0040ee60
lea ecx, [ebp + 0x14]
call fcn.004022a6
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
push esi
lea eax, [edi + 4]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004022af
push eax
push ebx
mov ecx, edi
call fcn.0040e475
mov edi, eax
test edi, edi
je 0x40e7b7
push edi
push str.writeValue:__WriteValue_failure_during_key_creation___d
jmp 0x40e885
mov ecx, dword [ebp - 0xc]
call fcn.00402642
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], esi
lea ecx, [ebp - 4]
push ecx
je 0x40e7d2
push 0xf013f
jmp 0x40e7d7
push 0xf003f
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40e87f
push esi
push str.writeValue:__Key_found_..._:__d
call fcn.0041c596
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.0041c596
add esp, 0xc
cmp dword [ebp + 0x10], 4
jne 0x40e818
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 4
push eax
push 4
jmp 0x40e82b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x14]
add eax, eax
push eax
push esi
call fcn.004022af
push eax
push dword [ebp + 0x10]
push esi
lea ecx, [ebp + 8]
call fcn.00402642
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x40e867
push esi
push str.Error_while_set_reg_value_:__d
call fcn.0041c596
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._________End_Of_writeValue_Method_________
call fcn.0041c596
pop ecx
jmp 0x40e88e
push edi
push str.writeValue:__Function_WriteValue_failure_:_d
call fcn.0041c596
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e88c
push edi
push str.writeValue:__Key_open_failure___d
call fcn.0041c596
pop ecx
pop ecx
mov esi, edi
lea ecx, [ebp + 0x14]
call fcn.0040223f
lea ecx, [ebp + 8]
call fcn.0040223f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e8a7
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xbd0
push ebx
push ebp
push esi
xor eax, eax
xor ebx, ebx
push edi
mov dword [esp + 0x14], eax
inc ebx
mov ax, word [0x497a60]
mov edi, ecx
push 0xbb6
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push 0
push eax
mov dword [esp + 0x2c], ebx
call fcn.0045b550
add esp, 0xc
mov dword [esp + 0x1c], 0x5dc
lea ecx, [edi + 4]
call fcn.00402642
xor ecx, ecx
push edi
cmp dword [edi + 0x10], ecx
je 0x40e8fe
push 0x101
jmp 0x40e8ff
push ebx
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x40e92e
push esi
lea ecx, [edi + 4]
call fcn.0040590f
push eax
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.0041c596
add esp, 0xc
jmp 0x40e9f9
push 0x497a60
lea ecx, [esp + 0x28]
call fcn.00402244
push 0x49a004
lea ecx, [edi + 0x18]
call fcn.00405892
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.WebServerName
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
js 0x40e997
mov eax, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
call fcn.00402244
mov ecx, eax
call fcn.0040229a
test al, al
jne 0x40e997
cmp dword [esp + 0x1c], 0
mov eax, ebx
jbe 0x40e99b
jmp 0x40e99d
mov eax, dword [esp + 0x14]
xor bl, bl
test al, 1
je 0x40e9aa
lea ecx, [esp + 0x18]
call fcn.0040223f
test bl, bl
je 0x40e9e3
lea eax, [esp + 0x28]
push eax
push str.webserver_name_read_from_reg:_s
call fcn.0041c596
pop ecx
pop ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402244
mov ecx, dword [esp + 0xbe4]
push eax
call fcn.0040222d
lea ecx, [esp + 0x18]
call fcn.0040223f
cmp dword [edi], 0
je 0x40e9f0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
call fcn.0040223f
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xbd0
ret 4
Function at 0x40ea08
Capabilities:
Delete registry key

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
push dword [ebx]
push str.DeleteRegistryFolder___SubkeyValue___s
call fcn.0041c596
pop ecx
pop ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.00402274
push 0x49a000
lea ecx, [esp + 0x18]
call fcn.004021f7
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402209
mov ecx, ebx
call fcn.00402642
mov ecx, dword [esi]
lea edx, [esp + 0x10]
xor edi, edi
push edx
cmp dword [esi + 0x10], edi
je 0x40ea63
push 0x102
jmp 0x40ea65
push 2
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x40ea7d
mov edi, esi
mov ebp, str.failed_accessing_key:_:__d____s
jmp 0x40eaab
push edi
lea ecx, [esp + 0x20]
call fcn.004022af
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40eabf
mov ebp, str.Failed_Delete_key:__d____s
lea ebx, [esp + 0x1c]
mov ecx, ebx
call fcn.0040590f
push eax
push esi
push ebp
call fcn.0041c596
add esp, 0xc
jmp 0x40eac2
xor edi, edi
inc edi
lea ecx, [esp + 0x14]
call fcn.0040223f
lea ecx, [esp + 0x1c]
call fcn.0040223f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x40eb61
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
push esi
mov dword [esp + 0x20], ecx
call ebx
test eax, eax
je 0x40ebab
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x20019
push ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ebbb
cmp eax, 2
jne 0x40ec6a
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x40ebd9
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x30]
push eax
push ebp
push dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x40ec4a
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040e403
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.0040eb61
test eax, eax
je 0x40ec44
xor ecx, ecx
mov dword [esp + 0x10], 0x104
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push dword [esp + 0x30]
call ebp
test eax, eax
je 0x40ec04
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov word [esi - 2], ax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x40ebab
xor eax, eax
jmp 0x40ebae
Function at 0x40ed3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1398
call fcn.004577a0
push ebx
push ebp
push esi
push edi
push 0x7ffe
mov esi, ecx
call fcn.00465f6e
mov dx, word [0x497a60]
mov ebx, eax
mov dword [esp], 0x1386
lea eax, [esp + 0x26]
xor ebp, ebp
mov dword [esp + 0x1c], 7
push ebp
push eax
mov word [esp + 0x2c], dx
call fcn.0045b550
add esp, 0xc
mov dword [esp + 0x14], 0x9c4
lea ecx, [esi + 4]
call fcn.00402642
push esi
cmp dword [esi + 0x10], ebp
je 0x40eda0
push 0x101
jmp 0x40eda2
push 1
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40edcb
push eax
push dword [esi + 4]
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.0041c596
add esp, 0xc
xor eax, eax
jmp 0x40ee53
push 0x497a60
lea ecx, [esp + 0x20]
call fcn.00402244
inc dword [esi + 0x14]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push ebp
lea ecx, [esi + 0x18]
call fcn.00402642
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430b64
mov edx, dword [esp + 0x18]
mov edi, eax
pop ecx
mov ecx, dword [esp + 0x13ac]
lea eax, [esp + 0x20]
push edx
push eax
push edi
mov dword [ecx], edx
call fcn.0045afd0
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40ee48
push ebx
call fcn.00462fb1
pop ecx
lea ecx, [esp + 0x1c]
call fcn.0040223f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1398
ret 4

Function at 0x40ef5d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 4]
xor ecx, ecx
push ecx
push ecx
push eax
push 0x400
push dword [esi + 0x48]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x50]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov edi, eax
push dword [esi + 0x48]
push str.CustomURLProtocol::Failed_with_error__d:__s
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
shr eax, 1
push eax
push edi
call fcn.0040eed9
add esp, 0x14
lea ecx, [esi + 0x4c]
push edi
call fcn.004065bf
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x40efdb
push dword [ebp - 4]
call esi
test edi, edi
je 0x40efe2
push edi
call esi
pop edi
pop esi
leave
ret
Function at 0x40f277
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov ebx, ecx
lea ecx, [esp + 0x14]
push edi
push ebx
call fcn.0040f47c
pop ecx
lea eax, [esp + 0x14]
xor edi, edi
push eax
push 0xf003f
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edi
call fcn.00405606
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push SysReAllocStringLen
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebx + 0x48], eax
test eax, eax
jne 0x40f370
lea ecx, [esp + 0x18]
call fcn.00405606
push eax
push str.Trying_to_delete_keys_from_HKCU_s
call fcn.0041c596
pop ecx
pop ecx
push str.DefaultIcon
push dword [esp + 0x18]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f36c
push str.ShellOpencommand
push dword [esp + 0x18]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f36c
push str.ShellOpen
push dword [esp + 0x18]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f36c
push str.Shell
push dword [esp + 0x18]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f36c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f36c
lea ecx, [esp + 0x18]
call fcn.00405606
push eax
push SysReAllocStringLen
call ebp
mov ecx, eax
mov dword [ebx + 0x48], ecx
test ecx, ecx
je 0x40f377
mov ecx, ebx
call fcn.0040ef5d
cmp dword [esp + 0x34], edi
je 0x40f464
lea eax, [esp + 0x34]
mov dword [esp + 0x34], edi
push eax
push 0xf003f
push edi
lea ecx, [esp + 0x24]
call fcn.00405606
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebx + 0x48], eax
test eax, eax
jne 0x40f45d
sub esp, 0x18
lea esi, [esp + 0x30]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.Trying_to_delete_keys_from_HKLM_s
call fcn.0041c596
add esp, 0x1c
push str.DefaultIcon
push dword [esp + 0x38]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f459
push str.ShellOpencommand
push dword [esp + 0x38]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f459
push str.ShellOpen
push dword [esp + 0x38]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f459
push str.Shell
push dword [esp + 0x38]
call ebp
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f459
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x40f459
lea ecx, [esp + 0x18]
call fcn.00405606
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov ecx, eax
mov dword [ebx + 0x48], ecx
test ecx, ecx
je 0x40f464
mov ecx, ebx
call fcn.0040ef5d
mov esi, dword [ebx + 0x48]
lea ecx, [esp + 0x18]
call fcn.0040563f
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x40f567
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ecx
mov dword [esp + 0x28], edi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
test ebp, ebp
je 0x40f5bf
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 1
call fcn.004639a4
pop ecx
pop ecx
push edi
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
jne 0x40f5c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
lea ecx, [esp + 0x14]
call fcn.004058df
lea ecx, [esp + 0x10]
call fcn.0040223f
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40fd16
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x54], esi
je 0x40fd4a
cmp dword [edi + 0x64], esi
je 0x40fd4a
cmp dword [edi + 0x68], esi
je 0x40fd4a
push dword [edi + 0x64]
push str.DCInitializeHTTPSession_:_Proxy_Server_Name_:__s
call fcn.0041c596
pop ecx
pop ecx
push esi
push dword [edi + 0x68]
push dword [edi + 0x64]
push 3
jmp 0x40fd4f
push esi
push esi
push esi
push 1
mov ecx, 0x4c3008
call fcn.00402642
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x7c], eax
test eax, eax
je 0x40fe17
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
push 0x54
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x40fd9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeHTTPSession_::_WinHttpSetOption_WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2____Failed_with_error___d
call fcn.0041c68c
pop ecx
jmp 0x40fda5
push str.InitializeHTTPSession_::_WinHttpSetOption_WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2____Succeeded
call fcn.0041c68c
pop ecx
push dword [edi + 0x28]
lea ecx, [ebp - 4]
call fcn.00402244
push esi
push str.cloudfront
lea ecx, [ebp - 4]
call fcn.0040580b
test eax, eax
je 0x40fdd6
push dword [edi + 0x2c]
push dword [edi + 0x28]
push str.Server_Name__s___Server_Port__d
call fcn.0041c596
add esp, 0xc
movzx eax, word [edi + 0x2c]
push esi
push eax
push dword [edi + 0x28]
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x40fe0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DCInitializeHTTPSession_:__Error_in_WinHttpConnect______d
call fcn.0041c596
pop ecx
pop ecx
push esi
call fcn.0040f7b4
lea ecx, [ebp - 4]
call fcn.0040223f
jmp 0x40fe32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DCInitializeHTTPSession_:__Error_in_WinHttpOpen______d
call fcn.0041c596
pop ecx
pop ecx
push esi
call fcn.0040f7b4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40fe3f
Capabilities:
Prepare http request

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
xor edx, edx
mov esi, edx
mov ecx, 0x497a60
mov eax, dword [edi + 0x24]
cmp eax, 2
je 0x40fe88
cmp eax, 4
je 0x40fe88
cmp eax, 1
je 0x40fe81
cmp eax, 6
je 0x40fe81
cmp eax, 3
jne 0x40fe70
mov ecx, str.POST
jmp 0x40fe8d
cmp eax, 7
jne 0x40fe7c
mov ecx, 0x4a3cf0
jmp 0x40fe8d
push 0xd
pop esi
jmp 0x40fe8d
mov ecx, str.HEAD
jmp 0x40fe8d
mov ecx, 0x4a83f8
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x30], edx
je 0x40fe9d
or eax, 0x800000
mov dword [edi + 0x20], eax
push eax
push edx
push edx
push edx
push dword [edi + 0x34]
push ecx
push dword [edi + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x80], eax
test eax, eax
jne 0x40fed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DCInitializeHTTPRequest_:__Error_in_WinHttpOpenRequest______d
call fcn.0041c596
pop ecx
pop ecx
push esi
call fcn.0040f7b4
jmp 0x40ff01
mov ecx, edi
call fcn.00410028
test eax, eax
jne 0x40fef9
mov ecx, edi
call fcn.0040ff11
test eax, eax
jne 0x40fef9
mov ecx, edi
call fcn.004100b8
test eax, eax
je 0x40ff01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40ff11
Capabilities:
Set http header

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, str.Connection:_Keep_Alive
cmp dword [ebp + 4], ebx
jne 0x40ff2d
mov eax, str.Connection:_close
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, 0x20000000
push edi
push 0xffffffffffffffff
push eax
push dword [ebp + 0x80]
call esi
test eax, eax
jne 0x40ff5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.DCInitializeHTTPHeaders_:__Error_in_WinHttpAddRequestHeaders______d
jmp 0x41000c
cmp dword [ebp + 0x24], 5
jne 0x40ff8d
push edi
push 0xffffffffffffffff
push str.Content_Type:_multipart_form_data
push dword [ebp + 0x80]
call esi
test eax, eax
jne 0x40ff8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.DCInitializeHTTPHeaders_:__Error_in_WinHttpAddRequestHeaders______d__n
call fcn.0041c613
jmp 0x410011
cmp dword [ebp + 0x10], ebx
je 0x410019
push dword [ebp + 0x10]
call fcn.0045ea48
pop ecx
mov edi, str.If_Modified_Since:
mov esi, eax
push edi
call fcn.0045ea48
add eax, 2
pop ecx
add esi, eax
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.0040f545
push edi
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.00465700
add esp, 0xc
push dword [ebp + 0x10]
push esi
push edi
call fcn.004666c7
add esp, 0xc
push edi
push str.DCInitializeHTTPHeaders_:__s
call fcn.0041c596
pop ecx
pop ecx
push 0x20000000
push 0xffffffffffffffff
push edi
push dword [ebp + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x410019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.DCInitializeHTTPHeaders_:__Error_in_IF_MODIFIED_SINCE_WinHttpAddRequestHeaders______d
call fcn.0041c596
pop ecx
pop ecx
push ebx
call fcn.0040f7b4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x41015e
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov esi, eax
mov ebx, eax
cmp ebx, 5
jge 0x4102c2
cmp dword [edi + 0x24], 2
je 0x410194
cmp dword [edi + 0x24], 4
je 0x410194
cmp dword [edi + 0x24], 1
je 0x410194
push eax
push dword [edi + 0x44]
push dword [edi + 0x44]
push dword [edi + 0x38]
jmp 0x410198
push eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x41020c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2eef
je 0x41027c
cmp esi, 0x2ef1
je 0x41027c
cmp esi, 0x2f8f
jne 0x41029e
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x3300
push eax
push 0x1f
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x41029e
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Secure_data_decode_warning_and_sending_request_again:__s
call fcn.0041c596
pop ecx
pop ecx
xor eax, eax
jmp 0x410276
push 0
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4102c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2f00
jne 0x41024e
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Resending_the_data_to_the_server__s
call fcn.0041c596
pop ecx
pop ecx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410208
cmp esi, 0x2eef
je 0x41025e
cmp esi, 0x2f78
jne 0x4102b3
push esi
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Going_to_close_the_request_handle_and_going_to_resending_the_data_to_the_server__S_as_the_error_code_received_is__d
call fcn.0041c596
xor eax, eax
add esp, 0xc
cmp dword [edi + 0x48], eax
je 0x4102bb
inc ebx
jmp 0x41016d
push dword [edi + 0x28]
push str.InternetSendRequestEx_:_Going_to_close_the_request_handle_and_going_to_resending_the_data_to_the_server__s
call fcn.0041c596
xor eax, eax
pop ecx
pop ecx
cmp dword [edi + 0x48], eax
jne 0x41029e
mov dword [edi + 0x48], 1
jmp 0x41016b
push esi
push str.InternetSendRequestEx_:__Error_in_WinHttpSendRequest_____d
call fcn.0041c596
pop ecx
pop ecx
push esi
call fcn.0040f7b4
jmp 0x4102c2
push esi
push str.InternetSendRequestEx_:__Error___WinHttpReceiveResponse______d
jmp 0x4102a4
mov dword [edi + 0x48], 1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4102d0
Capabilities:
Prepare http request

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4102eb
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and dword [esi + 0x80], 0
mov ecx, esi
pop esi
jmp fcn.0040fe3f