joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareInstallerLogger
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ce6a
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push esi
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
pop esi
add esp, 0xc
ret

Function at 0x40d3b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x21c]
test esi, esi
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
jne 0x40d423
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004148bb
add esp, 0x210
ret
test ecx, ecx
je 0x40d406
test edi, edi
je 0x40d406
test eax, eax
je 0x40d44f
cmp byte [eax], 0
je 0x40d44f
push eax
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00414a51
add esp, 0x14
jmp 0x40d462
push ecx
lea ecx, [esp + 0x1c]
push 0x200
push ecx
call fcn.00414ccb
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d4ac
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d4ac
mov esi, 2
jmp 0x40d4d7
push edi
call fcn.00415516
mov ecx, dword [esp + 0x10]
add esp, 4
push eax
push edi
push 1
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d4d3
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d4e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.004148bb
add esp, 0x210
ret
Function at 0x40d500
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x218]
push ebp
push esi
mov esi, dword [esp + 0x218]
test esi, esi
push edi
mov edi, dword [esp + 0x228]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ebp, 1
jne 0x40d569
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004148bb
add esp, 0x20c
ret
test ecx, ecx
je 0x40d54c
test eax, eax
je 0x40d591
cmp byte [eax], 0
je 0x40d591
push eax
push ecx
push str._s_s
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00414a51
add esp, 0x14
jmp 0x40d5a4
push ecx
lea ecx, [esp + 0x18]
push 0x200
push ecx
call fcn.00414ccb
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d5e7
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d605
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x230]
push ecx
push 4
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d60a
mov ebp, 2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d619
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004148bb
add esp, 0x20c
ret
Function at 0x40d640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x218]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x220]
test edi, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov ebp, 1
jne 0x40d69e
mov eax, 2
jmp 0x40d77b
test ecx, ecx
je 0x40d694
test eax, eax
je 0x40d6c6
cmp byte [eax], 0
je 0x40d6c6
push eax
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00414a51
add esp, 0x14
jmp 0x40d6d9
push ecx
lea ecx, [esp + 0x1c]
push 0x200
push ecx
call fcn.00414ccb
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d765
mov eax, dword [esi]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40d73c
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push ebx
push edx
call edi
test eax, eax
jne 0x40d765
mov eax, dword [esp + 0x10]
push eax
call fcn.00414c61
mov ecx, dword [esp + 0x14]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.00415190
mov eax, dword [esi]
add esp, 0x10
test eax, eax
jne 0x40d74f
jmp 0x40d765
push eax
call fcn.00415516
mov dword [esp + 0x14], eax
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x40d765
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push ebx
push eax
call edi
test eax, eax
je 0x40d76a
mov ebp, 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d779
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x20c
ret
Function at 0x40d7a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [esp + 0x224]
test edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esi], 0
mov dword [esp + 0x10], 1
jne 0x40d80e
mov eax, 2
jmp 0x40d8f6
test ecx, ecx
je 0x40d804
test eax, eax
je 0x40d836
cmp byte [eax], 0
je 0x40d836
push eax
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.00414a51
add esp, 0x14
jmp 0x40d849
push ecx
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.00414ccb
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi], eax
jne 0x40d8db
mov eax, dword [ebx]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40d8b0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push ebp
push edx
call edi
test eax, eax
mov dword [esi], eax
jne 0x40d8db
mov eax, dword [esp + 0x14]
push eax
call fcn.00414c61
mov ecx, dword [esp + 0x18]
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.00415190
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
jne 0x40d8c3
jmp 0x40d8db
push eax
call fcn.00415516
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x40d8db
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
push ebp
push eax
call edi
test eax, eax
mov dword [esi], eax
je 0x40d8e3
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d8f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x210
ret
Function at 0x40d910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
mov esi, dword [esp + 0x220]
test esi, esi
mov edx, 4
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
lea ebp, [edx - 3]
jne 0x40d971
mov eax, 2
jmp 0x40d9fa
test ecx, ecx
je 0x40d967
test eax, eax
je 0x40d999
cmp byte [eax], 0
je 0x40d999
push eax
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.00414a51
add esp, 0x14
jmp 0x40d9ac
push ecx
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.00414ccb
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d9e4
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d9e9
mov ebp, 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d9f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x210
ret

Function at 0x40da30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push ebx
push 0x800
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
jne 0x40da6f
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x800
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
test esi, esi
je 0x40dad3
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ebp, 0x800
xor edi, edi
sub ebp, esi
add esi, ebx
jmp 0x40da90
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x1e]
add ecx, edi
push ecx
push edx
push eax
push str.setup__02d_02d_03d_
push ebp
push esi
call fcn.00414a51
push ebx
call fcn.00416bd8
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x40dae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dad3
add edi, 1
cmp edi, 0xa
jle 0x40da90
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40db40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x470324]
test eax, eax
push ebx
mov ebx, dword [esp + 0x810]
push ebp
push edi
mov edi, dword [esp + 0x814]
mov ebp, 1
jne 0x40db99
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40db99
pop edi
lea eax, [ebp + 1]
pop ebp
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004148bb
add esp, 0x804
ret
cmp byte [esp + 0x81c], 0
push esi
je 0x40dbb6
lea eax, [esp + 0x10]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40dbc7
push 0x800
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
test esi, esi
je 0x40dc0b
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.004152ca
add esp, 8
test edi, edi
mov byte [eax], 0
je 0x40dbf5
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dbe8
sub eax, edx
jmp 0x40dbf7
xor eax, eax
add esi, eax
add esi, 0xa
push esi
call fcn.00414c61
add esp, 4
test eax, eax
mov dword [ebx], eax
jne 0x40dc12
mov eax, 2
jmp 0x40dc3e
test edi, edi
je 0x40dc2d
push edi
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push esi
push eax
call fcn.00414a51
add esp, 0x14
jmp 0x40dc3c
lea edx, [esp + 0x10]
push edx
push esi
push eax
call fcn.00414ccb
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x810]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x804
ret

Function at 0x40df70
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x298
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x294], eax
cmp dword [0x470330], 0
push esi
mov esi, dword [esp + 0x2a0]
jne 0x40e002
lea eax, [esp + 4]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40dfc0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004148bb
add esp, 0x298
ret
push 0x104
lea ecx, [esp + 0x198]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40dfa8
lea edx, [esp + 0x194]
push edx
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
mov eax, dword [esp + 0x2a8]
push eax
push esi
call fcn.00414ccb
add esp, 0xc
mov ecx, dword [esp + 0x298]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004148bb
add esp, 0x298
ret

Function at 0x40e110
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
push eax
push esi
call fcn.004158b6
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 3
push 0x43cebe
push 0x43cebe
push ecx
mov byte [edi + esi], 0
mov edx, dword [esi + 0x108]
push esi
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x40e16e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
pop edi
mov eax, 0xd
pop esi
ret 0xc
pop edi
mov eax, 1
pop esi
ret 0xc
Function at 0x40e1b0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40e1c4
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00415190
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x1c], 1
je 0x40e1f4
mov dword [esp + 0x18], eax
push edi
call fcn.00415516
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40e21b
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [esi], edx
movzx edx, word [esp + 0x20]
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
pop esi
mov dword [eax], edx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x40e250
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40e264
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00415190
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x38], 1
je 0x40e294
mov dword [esp + 0x34], eax
push edi
call fcn.00415516
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40e2bb
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov dword [esi], edx
pop esi
mov dword [eax], ecx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x40e2e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov eax, dword [esp + 4]
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionA]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0xd
ret

Function at 0x40e6b0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x108
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
lea edx, [esp]
push edx
push 0x13
push eax
call fcn.0040e330
cmp eax, 1
jne 0x40e700
lea eax, [esp]
push eax
call fcn.0041546b
add esp, 4
cmp eax, 0xc8
je 0x40e6fb
cmp eax, 0xce
mov eax, 0x14
jne 0x40e700
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004148bb
add esp, 0x108
ret 4
Function at 0x40e720
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
push ebp
push esi
lea eax, [esp + 8]
mov ebp, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push edx
mov dword [esp + 0x1c], 0x7530
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.0040e250
add esp, 0xc
cmp eax, 1
jne 0x40e833
push ebx
mov ebx, dword [esp + 0x24]
cmp ebx, esi
jne 0x40e771
mov eax, dword [esp + 0x20]
push eax
call fcn.00415516
add esp, 4
mov ebx, eax
push edi
mov edi, dword [esp + 0x10]
lea ecx, [edi + ebx + 1]
push ecx
call fcn.00414364
mov edx, dword [esp + 0x18]
push edi
mov esi, eax
push edx
push esi
call fcn.004158b6
mov eax, dword [esp + 0x34]
push ebx
push eax
lea ecx, [esi + edi]
push ecx
call fcn.004158b6
mov edx, dword [ebp + 0x10c]
add esp, 0x1c
push 0
push 0x4480000
push 0
push 0
push 0
push esi
push 0x43cecc
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40e7df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
lea eax, [edi + 0xf]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 0xc
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40e815
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
mov ebx, 0xf
jmp 0x40e81f
push edi
mov ecx, ebp
call fcn.0040e6b0
mov ebx, eax
push esi
call fcn.004149b7
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 0xc
Function at 0x40e840
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push ebx
push ebp
push esi
mov esi, 0x400
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
jbe 0x40e865
mov esi, eax
push esi
call fcn.00414364
mov ebp, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [ebp], eax
jne 0x40e887
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10
ret 0xc
push edi
push esi
push 0
push eax
call fcn.00415190
mov edx, dword [esp + 0x30]
mov edi, dword [ebp]
add esp, 0xc
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40e93f
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebx]
cmp ecx, esi
jbe 0x40e8e6
add esi, esi
push esi
call fcn.00414364
mov edx, dword [ebp]
push ebx
mov edi, eax
push edx
push edi
call fcn.00417720
mov eax, dword [ebp]
push eax
call fcn.004149b7
add esp, 0x14
mov dword [ebp], edi
add edi, ebx
jmp 0x40e923
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40e959
mov eax, dword [esp + 0x18]
add edi, eax
add ebx, eax
test eax, eax
je 0x40e97b
mov ecx, dword [esp + 0x14]
push eax
call fcn.0040e300
cmp eax, 1
mov dword [esp + 0x10], eax
jne 0x40e973
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x24]
push 0
push 0
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x40e8b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x110], eax
mov dword [esp + 0x10], 0xe
jmp 0x40e97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x110], eax
mov dword [esp + 0x10], 0xe
jmp 0x40e97b
mov dword [esp + 0x10], 0x12
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
test eax, eax
pop edi
je 0x40e999
cmp eax, ebx
je 0x40e999
cmp dword [esp + 0xc], 1
jne 0x40e999
mov dword [esp + 0xc], 0x10
mov eax, dword [esp + 0xc]
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40e9b0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov eax, 0x186c0
call fcn.00415ce0
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x186bc], eax
mov eax, dword [esp + 0x186cc]
push ebx
push ebp
mov ebp, dword [esp + 0x186cc]
push esi
xor esi, esi
cmp dword [esp + 0x186dc], esi
push edi
mov edi, dword [esp + 0x186d8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
lea ebx, [esi + 1]
je 0x40ea2b
push 2
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0040fb70
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jne 0x40ebd1
lea edx, [esp + 0x10]
push edx
call fcn.0040fbd0
add esp, 4
push 3
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00410090
add esp, 0xc
cmp eax, 1
je 0x40ea4a
mov ebx, 7
jmp 0x40ebd1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebp
lea edi, [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40eb1d
jmp 0x40ea70
mov eax, dword [esp + 0x14]
lea edx, [eax + esi]
cmp edx, 0x186a0
jbe 0x40eabe
test esi, esi
je 0x40eaa8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.0040fd90
add esp, 0x10
cmp eax, 1
jne 0x40ebac
mov eax, dword [esp + 0x14]
cmp eax, 0x186a0
lea edi, [esp + 0x2c]
jbe 0x40eabc
mov eax, 0x186a0
mov dword [esp + 0x14], eax
xor esi, esi
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40eb59
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
add edi, eax
add esi, eax
test eax, eax
je 0x40eb8b
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040e300
mov ebx, eax
cmp ebx, 1
jne 0x40eb86
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x40ea70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x110], eax
jne 0x40eb3b
mov ebx, 0xe
jmp 0x40eb8b
cmp eax, 0x2eff
jne 0x40eb49
mov ebx, 0x17
jmp 0x40eb8b
xor ebx, ebx
cmp eax, 0x2f83
setne bl
lea ebx, [ebx + ebx + 0x16]
jmp 0x40eb8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x110], eax
jne 0x40eb73
lea ebx, [eax - 0x65]
jmp 0x40eb8b
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0xe
mov ebx, eax
jmp 0x40eb8b
mov ebx, 0x12
test esi, esi
je 0x40ebb1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.0040fd90
add esp, 0x10
cmp eax, 1
je 0x40ebb1
mov ebx, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
test eax, eax
je 0x40ebcb
cmp eax, dword [esp + 0x18]
je 0x40ebcb
cmp ebx, 1
jne 0x40ebcb
mov ebx, 0x10
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040fbd0
mov ecx, dword [esp + 0x186d0]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x186c0
ret 0x10