joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ddb0
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 0x40de09
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40de09
pop edi
lea eax, [ebp + 1]
pop ebp
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00414b5b
add esp, 0x804
ret
cmp byte [esp + 0x81c], 0
push esi
je 0x40de26
lea eax, [esp + 0x10]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40de37
push 0x800
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
test esi, esi
je 0x40de7b
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.004157aa
add esp, 8
test edi, edi
mov byte [eax], 0
je 0x40de65
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40de58
sub eax, edx
jmp 0x40de67
xor eax, eax
add esi, eax
add esi, 0xa
push esi
call fcn.00415141
add esp, 4
test eax, eax
mov dword [ebx], eax
jne 0x40de82
mov eax, 2
jmp 0x40deae
test edi, edi
je 0x40de9d
push edi
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push esi
push eax
call fcn.00414cec
add esp, 0x14
jmp 0x40deac
lea edx, [esp + 0x10]
push edx
push esi
push eax
call fcn.004151ab
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x810]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x804
ret

Function at 0x40e1e0
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 0x40e272
lea eax, [esp + 4]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40e230
xor eax, eax
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00414b5b
add esp, 0x298
ret
push 0x104
lea ecx, [esp + 0x198]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40e218
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.004151ab
add esp, 0xc
mov ecx, dword [esp + 0x298]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00414b5b
add esp, 0x298
ret

Function at 0x40e380
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.00415d40
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 3
push 0x43cf6e
push 0x43cf6e
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 0x40e3de
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 0x40e420
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40e434
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00415670
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 0x40e464
mov dword [esp + 0x18], eax
push edi
call fcn.004159a0
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 0x40e48b
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 0x40e4c0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40e4d4
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00415670
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 0x40e504
mov dword [esp + 0x34], eax
push edi
call fcn.004159a0
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 0x40e52b
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 0x40e550
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 0x40e920
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.0040e5a0
cmp eax, 1
jne 0x40e970
lea eax, [esp]
push eax
call fcn.00414df0
add esp, 4
cmp eax, 0xc8
je 0x40e96b
cmp eax, 0xce
mov eax, 0x14
jne 0x40e970
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00414b5b
add esp, 0x108
ret 4
Function at 0x40e990
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0xfb0
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0xfac], eax
mov eax, dword [esp + 0xfb4]
push ebp
mov ebp, dword [esp + 0xfbc]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
xor esi, esi
push eax
mov dword [esp + 0x20], 0x7530
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.0040e4c0
add esp, 0xc
cmp eax, 1
jne 0x40eabb
push ebx
mov ebx, dword [esp + 0xfcc]
cmp ebx, esi
jne 0x40e9fc
push ebp
call fcn.004159a0
add esp, 4
mov ebx, eax
push 0xf9f
lea eax, [esp + 0x21]
push esi
push eax
mov byte [esp + 0x28], 0
call fcn.00415670
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00415d40
push ebx
lea eax, [esp + esi + 0x38]
push ebp
push eax
call fcn.00415d40
mov edx, dword [edi + 0x10c]
add esp, 0x24
push 0
push 0x4480000
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x43cf7c
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
pop ebx
jne 0x40ea72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x110], eax
mov eax, 0xf
jmp 0x40eabb
push 4
lea eax, [esp + 0x18]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40eaa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x110], eax
mov edi, 0xf
jmp 0x40eab2
push esi
mov ecx, edi
call fcn.0040e920
mov edi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
mov ecx, dword [esp + 0xfb8]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00414b5b
add esp, 0xfb0
ret 0xc
Function at 0x40eae0
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 0x40eb05
mov esi, eax
push esi
call fcn.00414604
mov ebp, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [ebp], eax
jne 0x40eb27
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10
ret 0xc
push edi
push esi
push 0
push eax
call fcn.00415670
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 0x40ebdf
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebx]
cmp ecx, esi
jbe 0x40eb86
add esi, esi
push esi
call fcn.00414604
mov edx, dword [ebp]
push ebx
mov edi, eax
push edx
push edi
call fcn.00417bb0
mov eax, dword [ebp]
push eax
call fcn.00414c52
add esp, 0x14
mov dword [ebp], edi
add edi, ebx
jmp 0x40ebc3
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 0x40ebf9
mov eax, dword [esp + 0x18]
add edi, eax
add ebx, eax
test eax, eax
je 0x40ec1b
mov ecx, dword [esp + 0x14]
push eax
call fcn.0040e570
cmp eax, 1
mov dword [esp + 0x10], eax
jne 0x40ec13
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 0x40eb53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x110], eax
mov dword [esp + 0x10], 0xe
jmp 0x40ec1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x110], eax
mov dword [esp + 0x10], 0xe
jmp 0x40ec1b
mov dword [esp + 0x10], 0x12
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
test eax, eax
pop edi
je 0x40ec39
cmp eax, ebx
je 0x40ec39
cmp dword [esp + 0xc], 1
jne 0x40ec39
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 0x40ec50
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov eax, 0x186c0
call fcn.00416170
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 0x40eccb
push 2
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0040fe10
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jne 0x40ee71
lea edx, [esp + 0x10]
push edx
call fcn.0040fe70
add esp, 4
push 3
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00410330
add esp, 0xc
cmp eax, 1
je 0x40ecea
mov ebx, 7
jmp 0x40ee71
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 0x40edbd
jmp 0x40ed10
mov eax, dword [esp + 0x14]
lea edx, [eax + esi]
cmp edx, 0x186a0
jbe 0x40ed5e
test esi, esi
je 0x40ed48
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.00410030
add esp, 0x10
cmp eax, 1
jne 0x40ee4c
mov eax, dword [esp + 0x14]
cmp eax, 0x186a0
lea edi, [esp + 0x2c]
jbe 0x40ed5c
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 0x40edf9
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
add edi, eax
add esi, eax
test eax, eax
je 0x40ee2b
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040e570
mov ebx, eax
cmp ebx, 1
jne 0x40ee26
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 0x40ed10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x110], eax
jne 0x40eddb
mov ebx, 0xe
jmp 0x40ee2b
cmp eax, 0x2eff
jne 0x40ede9
mov ebx, 0x17
jmp 0x40ee2b
xor ebx, ebx
cmp eax, 0x2f83
setne bl
lea ebx, [ebx + ebx + 0x16]
jmp 0x40ee2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x110], eax
jne 0x40ee13
lea ebx, [eax - 0x65]
jmp 0x40ee2b
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0xe
mov ebx, eax
jmp 0x40ee2b
mov ebx, 0x12
test esi, esi
je 0x40ee51
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.00410030
add esp, 0x10
cmp eax, 1
je 0x40ee51
mov ebx, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
test eax, eax
je 0x40ee6b
cmp eax, dword [esp + 0x18]
je 0x40ee6b
cmp ebx, 1
jne 0x40ee6b
mov ebx, 0x10
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040fe70
mov ecx, dword [esp + 0x186d0]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x186c0
ret 0x10
Function at 0x40eea0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x410
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x418]
push ebx
push esi
push edi
mov edi, dword [esp + 0x420]
push 2
push eax
mov ebx, ecx
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call fcn.00410330
mov esi, eax
add esp, 0xc
cmp esi, 1
jne 0x40ef68
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push edi
call ebp
test eax, eax
je 0x40ef67
lea esp, [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ef67
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00410030
mov esi, eax
add esp, 0x10
cmp esi, 1
jne 0x40ef67
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0040e570
mov esi, eax
cmp esi, 1
jne 0x40ef62
lea edx, [esp + 0x10]
push edx
push 0x400
lea eax, [esp + 0x24]
push eax
push edi
call ebp
test eax, eax
jne 0x40ef10
jmp 0x40ef67
mov esi, 0x12
pop ebp
lea ecx, [esp + 0x10]
push ecx
call fcn.0040fe70
mov ecx, dword [esp + 0x41c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x410
ret 8

Function at 0x40f2d0
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push edi
lea eax, [esp + 0x10]
mov edi, ecx
push eax
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], 0x7530
mov dword [esp + 0x10], 0
call fcn.0040e4c0
add esp, 0xc
cmp eax, 1
jne 0x40f3c6
mov eax, dword [esp + 4]
mov ecx, dword [edi + 0x10c]
push esi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x43cf7c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x40f348
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x110], eax
lea eax, [esi + 0xf]
pop esi
pop edi
add esp, 8
ret 0xc
push ebx
push 4
lea edx, [esp + 0x14]
push edx
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f38f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi + 0x110], eax
mov ebx, 0xf
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret 0xc
push esi
mov ecx, edi
call fcn.0040e920
mov ebx, eax
cmp ebx, 1
jne 0x40f3bb
cmp dword [esp + 0x20], 0
jne 0x40f3ac
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40f3b1
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov ecx, edi
call fcn.0040eea0
mov ebx, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret 0xc
Function at 0x40f4a0
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0x11c
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x118], eax
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x120]
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x18], 0x7530
mov dword [esp + 0x10], 0
call fcn.0040e4c0
add esp, 0xc
cmp eax, 1
jne 0x40f645
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 0x10c]
push edi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x43cf7c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40f53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
lea eax, [edi + 0xf]
jmp 0x40f644
mov ecx, dword [esp + 0x134]
test ecx, ecx
mov eax, dword [esp + 0x138]
jne 0x40f5c9
test eax, eax
je 0x40f592
push eax
push ecx
push str.Range:_bytes_d__d
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00414cec
add esp, 0x14
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f575
push 0xa0000000
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push esi
push 4
lea edx, [esp + 0x18]
push edx
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 0x40f5e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
mov esi, 0xf
jmp 0x40f63a
test eax, eax
jne 0x40f555
push ecx
push str.Range:_bytes_d_
lea edx, [esp + 0x24]
push 0x104
push edx
call fcn.00414cec
add esp, 0x10
jmp 0x40f56e
push edi
mov ecx, ebp
call fcn.0040e920
mov esi, eax
cmp esi, 1
jne 0x40f63a
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.0040eae0
mov esi, eax
cmp esi, 1
je 0x40f630
mov edx, dword [esp + 0xc]
push edx
call fcn.00414c52
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], 0
jmp 0x40f63a
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x11c]
pop ebp
xor ecx, esp
call fcn.00414b5b
add esp, 0x11c
ret 0x14
Function at 0x40f660
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0x220
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x21c], eax
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 0x224]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x22c]
push ebp
mov ebp, dword [esp + 0x238]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x20], 0x7530
mov dword [esp + 0x14], 0
call fcn.0040e4c0
add esp, 0xc
cmp eax, 1
jne 0x40f81d
mov eax, dword [esp + 8]
mov ecx, dword [ebx + 0x10c]
push edi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x43cf7c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40f707
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
lea eax, [edi + 0xf]
jmp 0x40f81c
mov ecx, dword [esp + 0x244]
test ecx, ecx
mov eax, dword [esp + 0x248]
jne 0x40f794
test eax, eax
je 0x40f75d
push eax
push ecx
push str.Range:_bytes_d__d
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00414cec
add esp, 0x14
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f740
push 0xa0000000
sub eax, edx
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push esi
push 4
lea edx, [esp + 0x20]
push edx
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 0x40f7b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
mov esi, 0xf
jmp 0x40f812
test eax, eax
jne 0x40f71d
push ecx
push str.Range:_bytes_d_
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.00414cec
add esp, 0x10
jmp 0x40f736
push edi
mov ecx, ebx
call fcn.0040e920
mov esi, eax
cmp esi, 1
jne 0x40f812
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
jne 0x40f7fa
lea eax, [esp + 0x128]
push eax
push 5
push edi
mov ecx, ebx
call fcn.0040e5a0
test eax, eax
jne 0x40f7e5
lea esi, [eax + 0x10]
jmp 0x40f812
lea ecx, [esp + 0x128]
push ecx
call fcn.00414df0
mov dword [esi], eax
add esp, 4
mov dword [ebp], eax
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 0x14]
push edx
push ebp
push eax
push edi
mov ecx, ebx
call fcn.0040ec50
mov esi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x224]
pop ebp
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x220
ret 0x1c

Function at 0x40fea0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 1
mov dword [esi], 0
jne 0x40fec1
pop edi
mov eax, 2
pop esi
ret
cmp eax, 0xffffffff
jne 0x40fece
pop edi
mov eax, 5
pop esi
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40fee2
mov edi, 7
mov eax, edi
pop edi
pop esi
ret
Function at 0x40fef0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x40ff05
mov eax, 2
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ff20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ff20
mov esi, 2
mov eax, esi
pop esi
ret

Function at 0x40ffe0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x40fff5
mov eax, 2
pop esi
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40ffee
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ffee
cmp eax, 0xffffffff
jne 0x410011
mov eax, 7
pop esi
ret
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
jne 0x41002c
mov esi, 2
mov eax, esi
pop esi
ret

Function at 0x410030
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x410045
mov eax, 2
pop esi
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x41003e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41003e
cmp eax, 0xffffffff
jne 0x410061
mov eax, 7
pop esi
ret
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x41007c
mov esi, 2
mov eax, esi
pop esi
ret