joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c07
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c46
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c46
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c46
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c46
cmp dword [ecx + 0x74], 0xe
jbe 0x401c46
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405598
Capabilities:
Get file version info

Disassembly:
push 0x118
mov eax, 0x4d8374
call fcn.004d631c
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x114], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov dword [ebp - 0x11c], ebx
mov word [ebx], ax
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], ecx
jb 0x4055f9
mov eax, dword [esi]
lea ecx, [ebp - 0x108]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x104], eax
test eax, eax
je 0x4057d9
push eax
call fcn.004d63c4
cmp dword [esi + 0x14], 8
mov edi, eax
pop ecx
mov dword [ebp - 0x120], edi
jb 0x40562b
mov esi, dword [esi]
push edi
push dword [ebp - 0x104]
push dword [ebp - 0x108]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4057d2
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x4ebfb4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4057d2
cmp dword [ebp - 0x10c], 0
je 0x4057d2
mov eax, dword [ebp - 0x110]
cmp dword [eax], 0xfeef04bd
jne 0x4057d2
movzx ebx, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx esi, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0041a096
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.0041a096
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0041a096
mov esi, eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.0041a096
mov edi, 0x4ec070
mov byte [ebp - 4], 4
push edi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004029e1
push esi
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
call fcn.00403119
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push eax
call fcn.004029e1
add esp, 0x44
push dword [ebp - 0x104]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403119
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
call fcn.004029e1
push dword [ebp - 0x118]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403119
mov ebx, dword [ebp - 0x11c]
add esp, 0x24
mov ecx, ebx
push eax
call fcn.00402b70
lea ecx, [ebp - 0x28]
call fcn.00401f5a
lea ecx, [ebp - 0x40]
call fcn.00401f5a
lea ecx, [ebp - 0x58]
call fcn.00401f5a
lea ecx, [ebp - 0x70]
call fcn.00401f5a
lea ecx, [ebp - 0x88]
call fcn.00401f5a
lea ecx, [ebp - 0xa0]
call fcn.00401f5a
lea ecx, [ebp - 0xb8]
call fcn.00401f5a
lea ecx, [ebp - 0xd0]
call fcn.00401f5a
lea ecx, [ebp - 0xe8]
call fcn.00401f5a
lea ecx, [ebp - 0x100]
call fcn.00401f5a
mov edi, dword [ebp - 0x120]
push edi
call fcn.004d63cd
pop ecx
mov eax, ebx
call fcn.004d62c6
ret
Function at 0x40662c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.004d6520
mov eax, dword [0x566f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2058]
push edi
mov edi, dword [ebp + 0x14]
push 0x44
pop ebx
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x2058], ebx
xor ebx, ebx
push 0x10
mov word [ebp - 0x2028], ax
lea eax, [ebp - 0x2014]
push ebx
push eax
mov dword [ebp - 0x202c], 0x101
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x406695
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2058]
push eax
push ebx
push ebx
push 0x80
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jle 0x4066f3
mov eax, dword [ebp - 0x2014]
test edi, edi
je 0x4066e1
mov dword [edi], eax
cmp byte [ebp + 0x10], bl
je 0x4066ef
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
jmp 0x4066f5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d62a0
leave
ret
Function at 0x406fb1
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x6c
mov eax, 0x4d8634
call fcn.004d631c
mov esi, ecx
push 0x4ebbbc
lea ecx, [ebp - 0x44]
call fcn.004019e2
xor edi, edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00404c3c
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.00401b47
lea ecx, [ebp - 0x28]
call fcn.00401f34
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401f34
lea ebx, [esi + 0x1c]
cmp dword [ebx], edi
lea edi, [esi + 0x20]
je 0x40706d
cmp dword [edi], 0
je 0x40706d
push str.Cryptographic_provider_already_acquired_
lea ecx, [ebp - 0x44]
call fcn.004019e2
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x44]
push eax
call fcn.00404c3c
mov eax, dword [ebp - 0x2c]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401b47
lea ecx, [ebp - 0x28]
call fcn.00401f34
lea ecx, [ebp - 0x44]
call fcn.00401f34
xor al, al
jmp 0x407125
mov eax, dword [esi + 0x24]
push 0xf0000020
push 1
push 0
push 0
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4070ad
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x44]
call fcn.004019e2
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
jmp 0x407036
push edi
xor edi, edi
push edi
push edi
push 0x8003
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x407123
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x78]
call fcn.004019e2
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4c], edi
push eax
mov dword [ebp - 0x48], edi
call fcn.00404c3c
mov eax, dword [ebp - 0x60]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401b47
lea ecx, [ebp - 0x5c]
call fcn.00401f34
lea ecx, [ebp - 0x78]
call fcn.00401f34
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx], edi
jmp 0x407066
mov al, 1
call fcn.004d62c6
ret
Function at 0x407b27
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x6c
mov eax, 0x4d8863
call fcn.004d631c
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push 0x4ebbbc
call fcn.004019e2
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404c3c
mov eax, dword [ebp - 0x2c]
lea edi, [esi + 4]
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.00401b47
lea ecx, [ebp - 0x28]
call fcn.00401f34
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401f34
cmp dword [esi + 0x1c], 0
je 0x407bf7
cmp dword [esi + 0x20], 0
je 0x407bf7
push 0
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x407bf3
push str.Updating_hash_failed_
lea ecx, [ebp - 0x78]
call fcn.004019e2
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x5c]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push eax
call fcn.00404c3c
mov eax, dword [ebp - 0x60]
mov ecx, edi
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00401b47
lea ecx, [ebp - 0x5c]
call fcn.00401f34
lea ecx, [ebp - 0x78]
jmp 0x407c3d
mov al, 1
jmp 0x407c44
push str.Cryptographic_provider_not_acquired_
lea ecx, [ebp - 0x44]
call fcn.004019e2
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404c3c
mov eax, dword [ebp - 0x2c]
mov ecx, edi
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401b47
lea ecx, [ebp - 0x28]
call fcn.00401f34
lea ecx, [ebp - 0x44]
call fcn.00401f34
xor al, al
call fcn.004d62c6
ret 8
Function at 0x40b073
Capabilities:
Create directory

Disassembly:
push 0x90
mov eax, 0x4d8f68
call fcn.004d631c
mov esi, dword [ebp + 8]
push esi
call fcn.0040afc0
pop ecx
test al, al
jne 0x40b1ee
xor ebx, ebx
lea ecx, [ebp - 0x9c]
push ebx
push ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.0040a284
mov edi, eax
mov dword [ebp - 0x9c], edi
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00408089
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x40b115
lea eax, [ebp - 0x34]
push eax
push dword [edi]
lea ecx, [ebp - 0x9c]
call fcn.00408d03
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
call fcn.00408584
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00408125
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00402dce
lea ecx, [ebp - 0x58]
call fcn.00401f5a
mov edi, dword [ebp - 0x9c]
jmp 0x40b0c7
mov esi, dword [edi]
jmp 0x40b1bc
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.00408089
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x94]
call fcn.00408923
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.004080c5
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
call fcn.0040afc0
pop ecx
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00402dce
lea ecx, [ebp - 0x58]
call fcn.00401f5a
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00401f5a
test bl, bl
jne 0x40b1a3
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x94]
call fcn.00408923
cmp dword [eax + 0x14], 8
jb 0x40b192
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x70]
call fcn.00401f5a
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00402dce
lea ecx, [ebp - 0x94]
call fcn.00401f5a
mov esi, dword [esi]
cmp esi, edi
jne 0x40b11c
lea ecx, [ebp - 0x1c]
call fcn.00402dce
lea ecx, [ebp - 0x34]
call fcn.00401f5a
lea ecx, [ebp - 0x9c]
call fcn.0040a43b
push 0x2c
push dword [ebp - 0x9c]
call fcn.0040137e
pop ecx
pop ecx
mov al, 1
call fcn.004d62c6
ret
Function at 0x40d110
Capabilities:
Initialize winsock library

Disassembly:
push 0x24c
mov eax, 0x4d9380
call fcn.004d631c
mov esi, ecx
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a8], esi
call fcn.00465d5b
xor ebx, ebx
mov dword [esi], vtable.Http.0
mov dword [esi + 0xc], ebx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], ax
mov byte [esi + 0x1a], 1
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x5c], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0x60], ebx
call fcn.0041baab
xor eax, eax
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], 7
mov word [esi + 0xc0], ax
mov byte [ebp - 4], 5
mov word [esi + 0xd8], 0x100
cmp byte [0x569cbc], al
jne 0x40d266
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 1
lea ecx, [ebp - 0x258]
mov edi, eax
push 3
call fcn.004038fa
test edi, edi
je 0x40d202
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 6
push 0x4ecb3c
push eax
call fcn.00402f9e
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x258]
push eax
push str.Http::Http
push 0x21
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
jmp 0x40d23c
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 7
push str.WinSock_init_ok__version
push eax
call fcn.00402f9e
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_short_int_]
lea eax, [ebp - 0x258]
push eax
push str.Http::Http
push 0x23
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push 1
call fcn.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0x1f0]
call fcn.00403ad6
lea ecx, [ebp - 0x1f0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov byte [0x569cbc], 1
mov eax, esi
call fcn.004d62c6
ret
Function at 0x40d964
Capabilities:
Read http header

Disassembly:
push 0x24
mov eax, 0x4d94b5
call fcn.004d631c
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
push 0x4ebbc4
mov dword [ebp - 0x2c], esi
call fcn.00401a11
xor edx, edx
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], edx
jb 0x40d99d
mov eax, dword [edi]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
push 0xffff
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40da28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40da28
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d63c4
cmp dword [edi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x40d9e7
mov edi, dword [edi]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push ebx
push edi
push 0xffff
push dword [eax + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40da28
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401ffb
push ebx
call fcn.004d63cd
pop ecx
xor eax, eax
mov ecx, esi
mov byte [ebp - 0x30], al
push dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402bfb
lea ecx, [ebp - 0x28]
call fcn.00401f5a
mov eax, esi
call fcn.004d62c6
ret 0xc
Function at 0x40db43
Capabilities:
Initialize winhttp library
Reference http user-agent string

Disassembly:
push 0xcc
mov eax, 0x4d94f8
call fcn.004d631c
mov esi, ecx
call fcn.0040d694
xor eax, eax
mov word [esi + 0xd8], 0x100
xor ebx, ebx
mov word [esi + 0x18], ax
lea ecx, [esi + 0x28]
mov dword [esi + 0x60], ebx
call fcn.0040d67c
push 0x4ed150
lea ecx, [ebp - 0x28]
call fcn.00401a11
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40dbef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0xd8]
mov dword [esi + 0x60], eax
call fcn.004038fa
push dword [esi + 0x60]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 1
push str.WinHttpOpen_last_error
push eax
call fcn.0040898a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0xd8]
push eax
push str.Http::init
push 0x24e
jmp 0x40dc49
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x40dc6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 3
lea ecx, [ebp - 0xd8]
mov dword [esi + 0x60], eax
call fcn.004038fa
push dword [esi + 0x60]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 2
push str.WinHttpSetTimeouts_last_error
push eax
call fcn.0040898a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0xd8]
push eax
push str.Http::init
push 0x255
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push ebx
call fcn.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0x70]
call fcn.00403ad6
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x40dc70
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00401f5a
mov al, bl
call fcn.004d62c6
ret
Function at 0x40e5c4
Capabilities:
Resolve dns

Disassembly:
push 0xf8
mov eax, 0x4d964a
call fcn.004d631c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402f2c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
call sub.WS2_32.dll_gethostbyname
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.00401f34
test ebx, ebx
jne 0x40e680
push 1
push 3
lea ecx, [ebp - 0x104]
call fcn.004038fa
push dword [ebp - 0x44]
lea eax, [ebp - 0xf4]
xor esi, esi
push str.Yow__Bad_host_lookup_for
push eax
mov dword [ebp - 4], esi
call fcn.00402f9e
pop ecx
pop ecx
push eax
call fcn.00407c4c
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push str.Http::resolveHost
push 0x215
push str.C:workprojects_rubilnik_srccommonHttp.cpp
push esi
call fcn.00405a66
mov ecx, eax
call fcn.0040f202
lea ecx, [ebp - 0x9c]
call fcn.00403ad6
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x40e6f6
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], 1
mov eax, dword [eax]
jmp 0x40e6df
push 4
push eax
lea eax, [ebp - 0x48]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x48]
call sub.WS2_32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041b3d5
pop ecx
pop ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00403837
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401f5a
mov eax, dword [ebx + 0xc]
inc esi
mov eax, dword [eax + esi*4]
test eax, eax
jne 0x40e699
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.0040d0e0
lea ecx, [ebp - 0x54]
call fcn.00402dce
mov eax, edi
call fcn.004d62c6
ret
Function at 0x40e7a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004d6520
mov eax, dword [0x566f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], ebx
je 0x40e8c0
call fcn.0040d956
mov ecx, 0xc8
cmp ax, cx
jne 0x40e8c0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x100c], ebx
jb 0x40e7f8
mov esi, dword [esi]
push ebx
push ebx
push 0x80
push 2
push 2
push 0x40000000
push esi
lea ecx, [ebp - 0x1010]
call fcn.004041db
test eax, eax
js 0x40e8ab
mov ecx, edi
call fcn.0040d86c
mov esi, dword [ebp - 0x1010]
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1008], ebx
push 0x1000
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.0040e578
mov dword [ebp - 0x1014], eax
test eax, eax
je 0x40e888
add dword [ebp - 0x1008], eax
lea ecx, [ebp - 0x100c]
push ebx
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e87a
call fcn.00403ee6
jmp 0x40e87c
mov eax, ebx
test eax, eax
js 0x40e888
cmp dword [ebp - 0x1014], ebx
ja 0x40e835
test esi, esi
je 0x40e895
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov eax, dword [ebp - 0x1018]
test eax, eax
je 0x40e8a7
cmp dword [ebp - 0x1008], eax
jne 0x40e8b1
mov bl, 1
jmp 0x40e8b1
mov esi, dword [ebp - 0x1010]
test esi, esi
je 0x40e8bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40e8c2
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d62a0
leave
ret 4
Function at 0x40eab5
Capabilities:
Read .ini file

Disassembly:
push 0x3c
mov eax, 0x4d96f1
call fcn.004d631c
mov edi, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push ecx
xor ebx, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
inc ebx
mov dword [ebp - 0x14], 7
push 0xa000
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x28], ax
call fcn.0040ea6a
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x40eb08
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0x4ebbc4
lea ecx, [ebp - 0x40]
mov ebx, eax
call fcn.00401a11
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
test ebx, ebx
je 0x40eba4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + edi*2]
push eax
call fcn.0040ec9c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
cmp word [eax + edi*2], cx
jne 0x40eb9f
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x40eb79
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00407e34
jmp 0x40eb85
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, esi
call fcn.00407e56
push 0x4ebbc4
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push 0x4ebbc4
lea ecx, [ebp - 0x40]
call fcn.00401ffb
inc edi
cmp edi, ebx
jb 0x40eb39
lea ecx, [ebp - 0x40]
call fcn.00401f5a
lea ecx, [ebp - 0x28]
call fcn.00401f5a
mov eax, esi
call fcn.004d62c6
ret 4

Function at 0x40ebbe
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d972c
mov eax, dword fs:[0]
push eax
mov eax, 0x4038
call fcn.004d6520
mov eax, dword [0x566f9c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x4044], esi
jb 0x40ec05
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x40ec0d
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x40ec15
mov eax, dword [eax]
push ecx
push 0x2000
lea ecx, [ebp - 0x4010]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4010]
push eax
lea ecx, [ebp - 0x4028]
call fcn.00401a11
and dword [ebp - 4], 0
lea eax, [ebp - 0x4028]
push eax
lea eax, [ebp - 0x4040]
push eax
call fcn.0041991b
pop ecx
pop ecx
lea ecx, [ebp - 0x4028]
mov byte [ebp - 4], 2
call fcn.00401f5a
lea eax, [ebp - 0x4040]
push eax
push esi
call fcn.00402f4a
pop ecx
pop ecx
lea ecx, [ebp - 0x4040]
call fcn.00401f34
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d62a0
leave
ret 0xc