joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418c36
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov esi, 0x3fe
push esi
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00423fe0
xor eax, eax
push esi
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.00423fe0
add esp, 0x18
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
call fcn.004130f7
call fcn.00418a96
push 5
push dword [edi + 4]
call fcn.0040b32d
mov ebx, 0x200
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0x848
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
lea esi, [ebp - 0x804]
call fcn.00416900
add esp, 0xc
mov eax, esi
push eax
push dword [edi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x80]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0x848
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.00416900
add esp, 0xc
mov eax, esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 0x80]
call esi
mov eax, dword [edi + 0x54]
add eax, 4
push eax
push dword [edi + 0xa4]
call esi
push 0
push 0
push 0xf1
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41917a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.00423fe0
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
call fcn.004130f7
lea esi, [edi + 0x54]
lea ecx, [edi + 0x60]
push 0x10b
mov eax, esi
call fcn.00417c0c
lea ecx, [edi + 0x84]
push 0x10e
mov eax, esi
call fcn.00417c0c
lea ecx, [edi + 0xa8]
push 0x10f
mov eax, esi
call fcn.00417c0c
lea ebx, [edi + 0xf0]
mov ecx, ebx
mov eax, esi
call fcn.0041971b
lea ecx, [edi + 0xcc]
push 0x112
mov eax, esi
call fcn.00417c0c
push 8
push dword [edi + 4]
call fcn.0040b32d
call fcn.00419518
push 0x104
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0xf4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or dword [ebx + 0x54], 2
push 0
push 0
push 0x31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov esi, ebx
call fcn.0041960b
lea eax, [ebp - 0x268]
push eax
call fcn.004083b5
lea eax, [ebp - 0x268]
push eax
lea esi, [ebx + 0x74]
call fcn.0040add8
lea eax, [ebp - 0x268]
push eax
mov eax, ebx
call fcn.00419827
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0xee0000
mov dword [edi + 0x158], eax
push ecx
mov eax, ebx
call fcn.0040836b
xor ebx, ebx
push ebx
push ebx
mov dword [edi + 0x15c], ebx
push 0x31
push dword [edi + 0xd0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
mov dword [ebp - 4], eax
cmp dword [edi + 0x5c], ebx
jne 0x419308
cmp eax, ebx
je 0x419308
push 0x58
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], ebx
call fcn.00423fe0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x43790c
lea eax, [ebp - 0x44]
push 0x20
push eax
mov dword [ebp - 0x60], 0xfffffff7
call fcn.0040a95b
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x5c]
cmp eax, ebx
je 0x41931c
push 1
push eax
push 0x30
push dword [edi + 0xd0]
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x419518
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
xor eax, eax
mov esi, 0x40e
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00423fe0
xor eax, eax
push esi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00423fe0
add esp, 0x18
mov esi, 0x208
push esi
lea eax, [ebp - 0x824]
push eax
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0xc
push eax
lea eax, [ebp - 0x824]
push eax
push esi
lea esi, [ebp - 0x414]
call fcn.00416900
add esp, 0xc
mov eax, esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 0x64]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 8]
dec eax
je 0x4195b7
dec eax
je 0x4195ac
dec eax
dec eax
je 0x4195b7
dec eax
jne 0x419608
push 0x29
mov dword [ebp - 4], 0x2a
jmp 0x4195c0
push 0x2b
mov dword [ebp - 4], 0x2c
pop eax
push ebx
mov ebx, 0x207
push ebx
push eax
lea eax, [ebp - 0x414]
call fcn.0040b37f
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0x88]
call esi
cmp dword [ebp - 4], 0
je 0x419607
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x414]
call fcn.0040b37f
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0xac]
call esi
pop ebx
pop esi
leave
ret
Function at 0x41b547
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.00423fe0
and dword [ebp - 8], 0
or ebx, 0xffffffff
add esp, 0xc
cmp dword [ebp + 8], 0
mov edi, 0x435584
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
jne 0x41b586
xor al, al
jmp 0x41b63d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, ebx
jne 0x41b5ab
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
je 0x41b5a4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41b63d
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00401897
test al, al
jne 0x41b5d6
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
je 0x41b57f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41b57f
push 0x40
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
call fcn.00401856
cmp eax, 0x40
jne 0x41b5c3
mov ax, word [ebp - 0x30]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x2e]
push 0
mov word [ebp - 6], ax
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.00401808
and eax, edx
cmp eax, ebx
je 0x41b5c3
lea eax, [ebp - 0x10]
push eax
call fcn.00401721
test al, al
je 0x41b621
cmp dword [esi + 0x14], 1
jne 0x41b60e
cmp dword [esi + 0x14], 1
mov dword [ebp - 0x10], edi
sete byte [ebp + 0xb]
cmp dword [ebp - 0xc], ebx
je 0x41b63a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41b644
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
xor edi, edi
lea eax, [ebp - 0x4e]
push edi
push eax
call fcn.00423fe0
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x41b676
xor al, al
jmp 0x41b72b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x41b66f
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
mov ebx, 0x435584
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.00401897
test al, al
jne 0x41b6bc
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], esi
je 0x41b66f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41b66f
push 0x40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
call fcn.00401856
cmp eax, 0x40
jne 0x41b6a9
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
push edi
mov word [ebp - 2], ax
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.00401808
and eax, edx
cmp eax, esi
je 0x41b6a9
push 2
push edi
push edi
lea eax, [ebp - 0x10]
call fcn.00401808
and eax, edx
cmp eax, esi
je 0x41b6a9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 8]
call fcn.00416680
cmp dword [ebp - 0xc], 0xffffffff
mov byte [ebp + 0xf], al
mov dword [ebp - 0x10], ebx
je 0x41b728
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c310
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x60], ax
xor ebx, ebx
lea eax, [ebp - 0x5e]
push ebx
push eax
call fcn.00423fe0
or esi, 0xffffffff
add esp, 0xc
mov edi, 0x435584
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
cmp dword [ebp + 0xc], ebx
je 0x41c460
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
jne 0x41c37c
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], esi
je 0x41c375
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41c462
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
call fcn.00401897
test al, al
jne 0x41c39c
cmp dword [ebp - 0x18], esi
jmp 0x41c452
push 0x40
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x1c]
call fcn.00401856
cmp eax, 0x40
jne 0x41c394
mov ax, word [ebp - 0x3c]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x3a]
push ebx
mov word [ebp - 6], ax
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
call fcn.00401808
and eax, edx
cmp eax, esi
je 0x41c394
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401721
test al, al
je 0x41c3ea
mov eax, esi
cmp dword [eax + 0x14], 4
jne 0x41c3d2
cmp dword [esi + 0x14], 4
jne 0x41c44e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
mov ecx, esi
call fcn.00416799
test al, al
je 0x41c44e
mov edx, dword [ebp - 0xc]
cmp edx, ebx
je 0x41c44e
mov eax, dword [ebp - 0x10]
cmp eax, 4
jb 0x41c44e
mov ecx, dword [edx]
cmp ecx, 1
ja 0x41c44e
lea ecx, [esi + 0x68]
mov ebx, dword [ecx]
lea esi, [ebp - 0x14]
push esi
lea esi, [edx + 4]
sub eax, esi
add eax, edx
push eax
push esi
call dword [ebx + 4]
test al, al
jne 0x41c437
mov byte [ebp - 1], al
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x41c449
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
jmp 0x41c462
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x41c460
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c469
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x41c486
xor al, al
jmp 0x41c5af
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x41c47f
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push edi
mov ebx, 0x435584
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.00423fe0
add esp, 0xc
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.00401897
test al, al
jne 0x41c4e1
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
je 0x41c47f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41c47f
push 0x40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
call fcn.00401856
cmp eax, 0x40
jne 0x41c4ce
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
push 2
push edi
mov word [ebp - 2], ax
push edi
lea eax, [ebp - 0x10]
call fcn.00401808
and eax, edx
cmp eax, esi
je 0x41c4ce
mov esi, dword [ebp + 8]
add esi, 0x68
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
add edi, 4
push 0x43e6c8
push edi
call fcn.00422533
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41c542
cmp dword [ebp - 0xc], 0xffffffff
jmp 0x41c4d1
mov dword [eax], 1
mov edx, dword [esi]
lea ecx, [ebp - 8]
push ecx
add eax, 4
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, eax
push ecx
add eax, 4
push eax
mov ecx, esi
call dword [edx + 8]
test al, al
jne 0x41c56d
mov byte [ebp + 0xb], al
jmp 0x41c591
mov esi, dword [ebp + 8]
push 4
call fcn.00401938
push dword [ebp + 0xc]
push 7
pop eax
call fcn.0041c06f
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 4]
call fcn.00416680
mov byte [ebp + 0xb], al
push dword [ebp + 0xc]
call fcn.0042209e
cmp dword [ebp - 0xc], 0xffffffff
pop ecx
mov dword [ebp - 0x10], ebx
je 0x41c5ac
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c827
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
push ebx
push esi
mov esi, 0x43f578
push edi
mov eax, esi
call fcn.0040adbe
test al, al
je 0x41ca31
lea eax, [ebp - 0x2e4]
call fcn.0040e9b1
lea eax, [ebp - 0x4f4]
call fcn.0040e9b1
push 8
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x2e4]
call fcn.0041e361
lea eax, [ebp - 0x4f4]
call fcn.0041e2b6
mov eax, dword [ebp - 0xc]
push 0x64
pop ecx
cdq
idiv ecx
push dword [ebp - 0x3c]
push edx
push eax
push 0x276
push dword [ebp + 8]
mov eax, esi
push str._s_5._d__Windows_NT__d._d___d
call fcn.004017c3
add esp, 0x18
push 0x437dc4
call fcn.0041681a
lea eax, [ebp - 0x4f4]
call fcn.0040adbe
test al, al
jne 0x41c8e5
push 0x437dcc
call fcn.0041681a
lea edi, [ebp - 0x4f4]
call fcn.0041e321
push 0x437dd4
call fcn.0041681a
xor eax, eax
push 0x7e
mov word [ebp - 0xd4], ax
lea eax, [ebp - 0xd2]
push ebx
push eax
call fcn.00423fe0
add esp, 0xc
mov edi, 0x80
push edi
push 0x435b60
mov ebx, str.SOFTWAREMetaQuotes_Software
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0xd4]
call fcn.0040ccab
add esp, 0x10
test al, al
jne 0x41c953
push edi
push 0x435b60
push ebx
push SysReAllocStringLen
call fcn.0040ccab
add esp, 0x10
test al, al
jne 0x41c953
xor eax, eax
mov word [ebp - 0xd4], ax
mov ebx, 0x43e428
push 0x435280
mov esi, ebx
call fcn.0040add8
cmp word [ebp - 0xd4], 0
je 0x41c990
lea eax, [ebp - 0xd4]
push eax
push 0x437dd8
mov eax, ebx
call fcn.004017c3
pop ecx
pop ecx
lea eax, [ebp - 0xd4]
mov byte [eax], 0
inc eax
dec edi
jne 0x41c989
xor eax, eax
mov byte [ebp - 0x2c], 0
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 4
pop ecx
lea edi, [ebp - 0x2c]
mov esi, 0x43f78c
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41c9b5
call fcn.0041e10d
mov esi, 0x43f78c
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str.tid
mov esi, ebx
call fcn.0041681a
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x1c]
push eax
push str._02X
lea eax, [ebp - 0x2e4]
call fcn.004017c3
pop ecx
pop ecx
lea edi, [ebp - 0x2e4]
mov esi, ebx
call fcn.0041e321
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jl 0x41c9d1
push 0x10
pop ecx
lea eax, [ebp - 0x1c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x41ca08
push 0x276
push str._build_d
lea eax, [ebp - 0x2e4]
call fcn.004017c3
pop ecx
pop ecx
lea edi, [ebp - 0x2e4]
call fcn.0041e321
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ca36
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea esi, [edi + 0x46c]
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x41ca56
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], ebx
jne 0x41ca62
xor al, al
jmp 0x41cb94
cmp dword [edi + 8], ebx
je 0x41ca90
push dword [ebp + 8]
lea ecx, [edi + 0x10]
call fcn.0041d294
test eax, eax
jne 0x41ca90
mov eax, dword [ebp + 0xc]
cmp dword [edi + 0x220], eax
jne 0x41ca90
mov al, byte [ebp + 0x10]
cmp byte [edi + 0x224], al
je 0x41cb92
mov eax, edi
call fcn.0041cb9a
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41cab3
mov cl, byte [ebp + 0x10]
cmp cl, byte [edi + 0x224]
je 0x41cab3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 4], ebx
mov al, byte [ebp + 0x10]
mov byte [edi + 0x224], al
mov eax, 0x43f578
call fcn.0040adbe
test al, al
je 0x41cad5
push 0x437e0c
call fcn.0041c827
pop ecx
cmp dword [edi + 4], ebx
jne 0x41cb1f
push ebx
push ebx
cmp byte [edi + 0x224], bl
je 0x41caef
mov eax, dword [edi + 0x22c]
push eax
push 3
jmp 0x41caf2
push ebx
push 1
push dword [0x43f57c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x41cb1f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.HTTP_session_creation_failed___d_
mov eax, esi
call fcn.004017c3
pop ecx
pop ecx
jmp 0x41ca5b
push dword [ebp + 8]
lea esi, [edi + 0x10]
call fcn.0040add8
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x220], eax
movzx ecx, word [edi + 0x220]
mov eax, dword [edi + 0x14]
push ebx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, edi
mov dword [edi + 8], eax
call fcn.0041d0dd
test al, al
jne 0x41cb5e
mov eax, edi
call fcn.0041cb9a
cmp dword [edi + 8], 0
jne 0x41cb92
cmp byte [edi + 0x224], 0
push dword [edi + 0x220]
mov eax, dword [ebp - 4]
push dword [edi + 0x14]
je 0x41cb80
push str._s:_d_via_proxy_failed
jmp 0x41cb85
push str._s:_d_failed
call fcn.004017c3
add esp, 0xc
jmp 0x41ca5b
mov al, 1
pop esi
pop ebx
leave
ret 0xc
Function at 0x41cbdd
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
call fcn.0041cfce
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x41cc4f
cmp dword [ebp + 0xc], ecx
je 0x41cc4f
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x41cc4f
xor edx, edx
mov edi, 0x1bb
cmp dword [esi + 0x220], edi
setne dl
dec edx
and edx, 0x800000
add edx, 0x100
push edx
push 0x43e614
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x41cc57
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.request_opening_failed___d_
lea eax, [esi + 0x46c]
call fcn.004017c3
pop ecx
pop ecx
xor al, al
pop edi
pop esi
leave
ret 8
cmp dword [esi + 0x458], 0
je 0x41cca4
cmp dword [esi + 0x45c], 0
je 0x41cca4
mov edx, dword [esi + 0x460]
test edx, edx
je 0x41cca4
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0x41cca4
push ecx
push edx
push dword [esi + 0x45c]
push dword [esi + 0x458]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x41cca4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.timeout_setting_failed___d_
jmp 0x41cc42
cmp byte [esi + 0x224], 0
je 0x41ccfd
lea eax, [esi + 0x338]
call fcn.0040adbe
test al, al
jne 0x41ccfd
lea eax, [esi + 0x3c8]
call fcn.0040adbe
test al, al
jne 0x41ccfd
mov eax, dword [esi + 0x3cc]
mov ecx, dword [esi + 0x33c]
push 0
push eax
push ecx
push 1
push 1
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x41ccfd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting
jmp 0x41cc42
push str.HEAD
push dword [ebp + 8]
call fcn.00422fc5
pop ecx
pop ecx
test eax, eax
jne 0x41cd17
mov al, 1
jmp 0x41cc51
cmp dword [esi + 0x220], edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x41cd4e
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
push dword [esi + 0xc]
mov dword [ebp - 4], 0x100
call edi
test eax, eax
jne 0x41cd4e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_ignore_unknown_CA_failed___d_
jmp 0x41cc42
cmp byte [esi + 0x468], 0
jne 0x41cd10
push 4
lea eax, [ebp - 4]
push eax
push 0x3f
push dword [esi + 0xc]
mov dword [ebp - 4], 2
call edi
test eax, eax
jne 0x41cd10
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_disable_redirects_failed___d_
jmp 0x41cc42
Function at 0x41cd80
Capabilities:
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
cmp eax, edi
jne 0x41cda0
xor eax, eax
jmp 0x41ce43
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
push 0xa0000000
push edx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41cdd3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_add_header__d_
lea eax, [esi + 0x46c]
call fcn.004017c3
pop ecx
pop ecx
jmp 0x41cd99
push edi
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x41cdfa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_send_request___d_
jmp 0x41cdc4
push edi
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x41ce16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_receive_response___d_
jmp 0x41cdc4
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20000013
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x41ce40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_query_status___d_
jmp 0x41cdc4
mov eax, dword [ebp - 4]
pop edi
leave
ret 8

Function at 0x41cfe1
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea edi, [eax + 0x46c]
and dword [edi + 8], 0
mov esi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41cfff
xor edx, edx
mov word [ecx], dx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41d044
mov ecx, dword [esi + 0xc]
push 0
lea ecx, [ecx + ecx - 2]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 4]
push ecx
push str.Content_Length
push 0xffff
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x41d04a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.get_header_failed___d_
mov eax, edi
call fcn.004017c3
pop ecx
pop ecx
xor al, al
pop edi
pop esi
leave
ret
call fcn.00406508
mov al, 1
jmp 0x41d046

Function at 0x41d090
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x41d0d3
cmp dword [ebp + 0xc], 1
jb 0x41d0d3
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41d0d3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x41d0d9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.read_failed___d_
lea eax, [esi + 0x46c]
call fcn.004017c3
pop ecx
pop ecx
xor al, al
pop ebp
ret 0xc
mov al, 1
jmp 0x41d0d5