joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418bbc
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.00424920
xor eax, eax
push esi
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.00424920
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.00419020
call fcn.00418a1c
push 5
push dword [edi + 4]
call fcn.0040b506
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.004165b7
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.004165b7
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 0x4195de
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.00424920
xor eax, eax
push esi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00424920
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.004165b7
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 0x41967d
dec eax
je 0x419672
dec eax
dec eax
je 0x41967d
dec eax
jne 0x4196ce
push 0x29
mov dword [ebp - 4], 0x2a
jmp 0x419686
push 0x2b
mov dword [ebp - 4], 0x2c
pop eax
push ebx
mov ebx, 0x207
push ebx
push eax
lea eax, [ebp - 0x414]
call fcn.0040b558
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0x88]
call esi
cmp dword [ebp - 4], 0
je 0x4196cd
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x414]
call fcn.0040b558
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0xac]
call esi
pop ebx
pop esi
leave
ret
Function at 0x41b59d
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.00424920
and dword [ebp - 8], 0
or ebx, 0xffffffff
add esp, 0xc
cmp dword [ebp + 8], 0
mov edi, 0x4365b0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
jne 0x41b5dc
xor al, al
jmp 0x41b693
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, ebx
jne 0x41b601
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
je 0x41b5fa
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41b693
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00401897
test al, al
jne 0x41b62c
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
je 0x41b5d5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41b5d5
push 0x40
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
call fcn.00401856
cmp eax, 0x40
jne 0x41b619
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 0x41b619
lea eax, [ebp - 0x10]
push eax
call fcn.00401721
test al, al
je 0x41b677
cmp dword [esi + 0x14], 1
jne 0x41b664
cmp dword [esi + 0x14], 1
mov dword [ebp - 0x10], edi
sete byte [ebp + 0xb]
cmp dword [ebp - 0xc], ebx
je 0x41b690
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 0x41b69a
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.00424920
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x41b6cc
xor al, al
jmp 0x41b781
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x41b6c5
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
mov ebx, 0x4365b0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.00401897
test al, al
jne 0x41b712
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], esi
je 0x41b6c5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41b6c5
push 0x40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
call fcn.00401856
cmp eax, 0x40
jne 0x41b6ff
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 0x41b6ff
push 2
push edi
push edi
lea eax, [ebp - 0x10]
call fcn.00401808
and eax, edx
cmp eax, esi
je 0x41b6ff
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 8]
call fcn.00416314
cmp dword [ebp - 0xc], 0xffffffff
mov byte [ebp + 0xf], al
mov dword [ebp - 0x10], ebx
je 0x41b77e
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 0x41bf79
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.00424920
or esi, 0xffffffff
add esp, 0xc
mov edi, 0x4365b0
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 0x41c0c9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
jne 0x41bfe5
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], esi
je 0x41bfde
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41c0cb
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
call fcn.00401897
test al, al
jne 0x41c005
cmp dword [ebp - 0x18], esi
jmp 0x41c0bb
push 0x40
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x1c]
call fcn.00401856
cmp eax, 0x40
jne 0x41bffd
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 0x41bffd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401721
test al, al
je 0x41c053
mov eax, esi
cmp dword [eax + 0x14], 4
jne 0x41c03b
cmp dword [esi + 0x14], 4
jne 0x41c0b7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
mov ecx, esi
call fcn.0041642a
test al, al
je 0x41c0b7
mov edx, dword [ebp - 0xc]
cmp edx, ebx
je 0x41c0b7
mov eax, dword [ebp - 0x10]
cmp eax, 4
jb 0x41c0b7
mov ecx, dword [edx]
cmp ecx, 1
ja 0x41c0b7
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 0x41c0a0
mov byte [ebp - 1], al
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x41c0b2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
jmp 0x41c0cb
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x41c0c9
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 0x41c0d2
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 0x41c0ef
xor al, al
jmp 0x41c218
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x41c0e8
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push edi
mov ebx, 0x4365b0
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call fcn.00424920
add esp, 0xc
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.00401897
test al, al
jne 0x41c14a
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
je 0x41c0e8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41c0e8
push 0x40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
call fcn.00401856
cmp eax, 0x40
jne 0x41c137
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 0x41c137
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 0x43f708
push edi
call fcn.00422ead
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41c1ab
cmp dword [ebp - 0xc], 0xffffffff
jmp 0x41c13a
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 0x41c1d6
mov byte [ebp + 0xb], al
jmp 0x41c1fa
mov esi, dword [ebp + 8]
push 4
call fcn.00401938
push dword [ebp + 0xc]
push 7
pop eax
call fcn.0041bcd8
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 4]
call fcn.00416314
mov byte [ebp + 0xb], al
push dword [ebp + 0xc]
call fcn.00422a18
cmp dword [ebp - 0xc], 0xffffffff
pop ecx
mov dword [ebp - 0x10], ebx
je 0x41c215
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 0x41c490
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
push ebx
push esi
mov esi, 0x4405b8
push edi
mov eax, esi
call fcn.0040afd2
test al, al
je 0x41c69a
lea eax, [ebp - 0x2e4]
call fcn.0040ebac
lea eax, [ebp - 0x4f4]
call fcn.0040ebac
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.0041dfca
lea eax, [ebp - 0x4f4]
call fcn.0041df1f
mov eax, dword [ebp - 0xc]
push 0x64
pop ecx
cdq
idiv ecx
push dword [ebp - 0x3c]
push edx
push eax
push 0x28f
push dword [ebp + 8]
mov eax, esi
push str._s_5._d__Windows_NT__d._d___d
call fcn.004017c3
add esp, 0x18
push 0x438d94
call fcn.004164ab
lea eax, [ebp - 0x4f4]
call fcn.0040afd2
test al, al
jne 0x41c54e
push 0x438d9c
call fcn.004164ab
lea edi, [ebp - 0x4f4]
call fcn.0041df8a
push 0x438da4
call fcn.004164ab
xor eax, eax
push 0x7e
mov word [ebp - 0xd4], ax
lea eax, [ebp - 0xd2]
push ebx
push eax
call fcn.00424920
add esp, 0xc
mov edi, 0x80
push edi
push 0x436b88
mov ebx, str.SOFTWAREMetaQuotes_Software
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0xd4]
call fcn.0040ce67
add esp, 0x10
test al, al
jne 0x41c5bc
push edi
push 0x436b88
push ebx
push SysReAllocStringLen
call fcn.0040ce67
add esp, 0x10
test al, al
jne 0x41c5bc
xor eax, eax
mov word [ebp - 0xd4], ax
mov ebx, 0x43f428
push 0x436288
mov esi, ebx
call fcn.0040afec
cmp word [ebp - 0xd4], 0
je 0x41c5f9
lea eax, [ebp - 0xd4]
push eax
push 0x438da8
mov eax, ebx
call fcn.004017c3
pop ecx
pop ecx
lea eax, [ebp - 0xd4]
mov byte [eax], 0
inc eax
dec edi
jne 0x41c5f2
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, 0x4407cc
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41c61e
call fcn.0041dd76
mov esi, 0x4407cc
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.004164ab
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.0041df8a
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jl 0x41c63a
push 0x10
pop ecx
lea eax, [ebp - 0x1c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x41c671
push 0x28f
push str._build_d
lea eax, [ebp - 0x2e4]
call fcn.004017c3
pop ecx
pop ecx
lea edi, [ebp - 0x2e4]
call fcn.0041df8a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c69f
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 0x41c6bf
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], ebx
jne 0x41c6cb
xor al, al
jmp 0x41c7fd
cmp dword [edi + 8], ebx
je 0x41c6f9
push dword [ebp + 8]
lea ecx, [edi + 0x10]
call fcn.0041cefd
test eax, eax
jne 0x41c6f9
mov eax, dword [ebp + 0xc]
cmp dword [edi + 0x220], eax
jne 0x41c6f9
mov al, byte [ebp + 0x10]
cmp byte [edi + 0x224], al
je 0x41c7fb
mov eax, edi
call fcn.0041c803
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41c71c
mov cl, byte [ebp + 0x10]
cmp cl, byte [edi + 0x224]
je 0x41c71c
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, 0x4405b8
call fcn.0040afd2
test al, al
je 0x41c73e
push str.MetaTrader_5
call fcn.0041c490
pop ecx
cmp dword [edi + 4], ebx
jne 0x41c788
push ebx
push ebx
cmp byte [edi + 0x224], bl
je 0x41c758
mov eax, dword [edi + 0x22c]
push eax
push 3
jmp 0x41c75b
push ebx
push 1
push dword [0x4405bc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x41c788
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 0x41c6c4
push dword [ebp + 8]
lea esi, [edi + 0x10]
call fcn.0040afec
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.0041cd46
test al, al
jne 0x41c7c7
mov eax, edi
call fcn.0041c803
cmp dword [edi + 8], 0
jne 0x41c7fb
cmp byte [edi + 0x224], 0
push dword [edi + 0x220]
mov eax, dword [ebp - 4]
push dword [edi + 0x14]
je 0x41c7e9
push str._s:_d_via_proxy_failed
jmp 0x41c7ee
push str._s:_d_failed
call fcn.004017c3
add esp, 0xc
jmp 0x41c6c4
mov al, 1
pop esi
pop ebx
leave
ret 0xc
Function at 0x41c846
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
call fcn.0041cc37
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x41c8b8
cmp dword [ebp + 0xc], ecx
je 0x41c8b8
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x41c8b8
xor edx, edx
mov edi, 0x1bb
cmp dword [esi + 0x220], edi
setne dl
dec edx
and edx, 0x800000
add edx, 0x100
push edx
push 0x43f64c
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 0x41c8c0
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 0x41c90d
cmp dword [esi + 0x45c], 0
je 0x41c90d
mov edx, dword [esi + 0x460]
test edx, edx
je 0x41c90d
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0x41c90d
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 0x41c90d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.timeout_setting_failed___d_
jmp 0x41c8ab
cmp byte [esi + 0x224], 0
je 0x41c966
lea eax, [esi + 0x338]
call fcn.0040afd2
test al, al
jne 0x41c966
lea eax, [esi + 0x3c8]
call fcn.0040afd2
test al, al
jne 0x41c966
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 0x41c966
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting
jmp 0x41c8ab
push str.HEAD
push dword [ebp + 8]
call fcn.004239c6
pop ecx
pop ecx
test eax, eax
jne 0x41c980
mov al, 1
jmp 0x41c8ba
cmp dword [esi + 0x220], edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x41c9b7
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 0x41c9b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_ignore_unknown_CA_failed___d_
jmp 0x41c8ab
cmp byte [esi + 0x468], 0
jne 0x41c979
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 0x41c979
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_disable_redirects_failed___d_
jmp 0x41c8ab
Function at 0x41c9e9
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 0x41ca09
xor eax, eax
jmp 0x41caac
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 0x41ca3c
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 0x41ca02
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 0x41ca63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_send_request___d_
jmp 0x41ca2d
push edi
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x41ca7f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_receive_response___d_
jmp 0x41ca2d
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 0x41caa9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_query_status___d_
jmp 0x41ca2d
mov eax, dword [ebp - 4]
pop edi
leave
ret 8

Function at 0x41cc4a
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 0x41cc68
xor edx, edx
mov word [ecx], dx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41ccad
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 0x41ccb3
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.004064fd
mov al, 1
jmp 0x41ccaf

Function at 0x41ccf9
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x41cd3c
cmp dword [ebp + 0xc], 1
jb 0x41cd3c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41cd3c
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 0x41cd42
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 0x41cd3e
Function at 0x41db70
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x41dbe2
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.00422645
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x41dbe5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe84
push esi
push edi
lea eax, [ebp - 0x210]
call fcn.0040ebac
mov eax, dword [ebp + 8]
call fcn.0040bdf6
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x41dc2f
lea eax, [ebp - 0x210]
push eax
call fcn.0041d25c
pop ecx
movzx eax, al
test eax, eax
je 0x41dc2d
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041df8a
jmp 0x41dc51
lea eax, [ebp - 0x210]
push eax
call fcn.0041dadf
pop ecx
movzx eax, al
test eax, eax
je 0x41dc51
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041df8a
lea eax, [ebp - 0x210]
push eax
call fcn.0041db26
pop ecx
movzx eax, al
test eax, eax
je 0x41dc73
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041df8a
call fcn.0041db70
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x41dcad
push dword [ebp - 0x214]
push 0x43986c
lea eax, [ebp - 0x210]
call fcn.004017c3
pop ecx
pop ecx
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041df8a
mov eax, dword [ebp + 8]
call fcn.0040afd2
movzx eax, al
test eax, eax
jne 0x41dccc
lea eax, [ebp - 0x210]
call fcn.0040eb9d
jmp 0x41dd72
and dword [ebp - 0x238], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp - 0x218]
test eax, eax
je 0x41dd41
movzx eax, word [ebp - 0x216]
test eax, eax
je 0x41dd41
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x218]
push eax
push str._u._u
lea eax, [ebp - 0x210]
call fcn.004017c3
add esp, 0xc
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041df8a
lea eax, [ebp - 0x210]
call fcn.0040eb9d
jmp 0x41dd72
call fcn.004197e0
push eax
push 0x43986c
lea eax, [ebp - 0x210]
call fcn.004017c3
pop ecx
pop ecx
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041df8a
lea eax, [ebp - 0x210]
call fcn.0040eb9d
pop edi
pop esi
leave
ret