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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
xor esi, esi
push str.SOFTWAREMicrosoftInternet_Explorer
inc esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49a5e5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Version
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49a5dc
lea eax, [ebp - 0x810]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x49a5d9
mov byte [eax], bl
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, 5
pop ecx
jl 0x49a5d5
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push edi
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x49
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x4a
push ebx
call esi
and edi, eax
pop edi
je 0x49a5d5
mov esi, dword [ebp + 8]
jmp 0x49a5dc
push 2
jmp 0x49a5db
push 4
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x49bf44
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
call fcn.0049b9c8
push dword [esp + 0x14]
lea eax, [edi + 0x14]
call fcn.0040305d
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_2
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49bf89
mov dword [edi + 0x24], 2
xor al, al
jmp 0x49bff8
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, eax
call esi
cmp ebp, ebx
jne 0x49bfbd
mov dword [edi + 0x24], 2
xor al, al
jmp 0x49bff7
push dword [esp + 0x18]
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebp
mov dword [esp + 0x14], eax
call esi
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x49bfb2
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
call fcn.0049cb13
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
cmp dword [edi + 0x24], ebx
sete al
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x49bfff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov ebx, eax
je 0x49c01b
push dword [ebp + 8]
lea eax, [ebx + 0x14]
call fcn.0040305d
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x49c03f
xor al, al
jmp 0x49c0a6
mov esi, 0x4d0600
push 0x2000
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [ebp - 8], 0x2000
call dword [eax + 8]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, bl
pop esi
pop ebx
leave
ret 8

Function at 0x49d827
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x20], 0
je 0x49d83b
cmp dword [esi + 0x14], 0
je 0x49d83b
call fcn.0040d3c8
mov ecx, esi
call fcn.0049d73c
push edx
push eax
push esi
call fcn.0040d305
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x49d857
xor eax, eax
pop esi
ret
push dword [esi]
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x49da08
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor eax, eax
cmp esi, eax
mov ebx, ecx
je 0x49db52
cmp dword [esi], 0x18
jne 0x49db52
push edi
push dword [esi + 8]
lea edi, [ebp - 4]
call fcn.00413b62
mov ecx, dword [esi + 4]
xor eax, eax
cmp ecx, eax
jne 0x49da4a
push 0x10000000
push eax
push eax
push 1
jmp 0x49db30
cmp ecx, 1
je 0x49db28
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], eax
je 0x49db28
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
call fcn.00401721
pop ecx
mov edi, eax
pop ecx
lea eax, [ebx + 0x18]
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x49da8c
push eax
call fcn.00401377
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [esi + 0x14]
call fcn.00401721
pop ecx
mov edi, eax
pop ecx
lea eax, [ebx + 0x1c]
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x49daba
push eax
call fcn.00401377
mov eax, dword [0x4e4150]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 4]
call fcn.00401721
push dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 8]
push str.httphttp:___s:_d
push eax
call fcn.004058d5
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
add esp, 0x18
cmp eax, dword [0x4e4154]
je 0x49dafa
push eax
call fcn.00401377
mov esi, dword [ebp - 8]
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebx], eax
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x49db3b
push eax
call fcn.00401377
jmp 0x49db3b
push 0x10000000
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop edi
je 0x49db65
push eax
call fcn.00401377
jmp 0x49db65
push 0x10000000
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebx], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x49db6f
xor eax, eax
jmp 0x49db85
push 0x49dedc
push ebx
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
leave
ret 4
Function at 0x49e357
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
lea esi, [ebx + 0x70]
mov dword [ebx + 0x6c], edi
call fcn.0049d88f
mov eax, dword [ebx + 0x74]
cmp eax, edi
je 0x49e393
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebx + 0x78], eax
jne 0x49e38a
mov eax, 0x8007000e
jmp 0x49e3f9
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], edi
push edi
lea ecx, [ebx + 4]
mov eax, 0x4e6308
call fcn.0049da08
test eax, eax
jne 0x49e3ac
mov eax, 0x80004014
jmp 0x49e3f9
push dword [ebp + 0x10]
mov dword [ebx + 0x64], edi
push dword [ebp + 0xc]
mov dword [ebx + 0x68], edi
xor edi, edi
mov esi, ebx
call fcn.0049e567
test eax, eax
jl 0x49e3f9
and dword [ebp + 8], edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea esi, [ebx + 0x64]
push esi
push 0x20000005
push dword [ebx + 0x5c]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [esi]
neg eax
sbb eax, eax
and eax, 0x7ffbff9b
add eax, 0x80040065
pop edi
pop esi
leave
ret 0xc

Function at 0x49e6cc
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
push edi
lea edi, [edx + eax]
cmp edi, ecx
jb 0x49e6e3
sub ecx, edx
mov eax, ecx
xor edi, edi
cmp eax, edi
je 0x49e73f
mov ecx, dword [ebp + 8]
push edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
push 1
lea eax, [esi + 0x34]
push eax
push dword [esi + 0x5c]
mov dword [esi + 0x48], ecx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x49e743
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49e73f
push dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
xor eax, eax
cmp ebx, edi
setne al
mov dword [ebp - 4], ebx
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x49e73f
cmp dword [esi + 0x4c], edi
jne 0x49e743
xor eax, eax
jmp 0x49e749
mov eax, dword [esi + 0x4c]
add dword [esi + 0x68], eax
pop edi
leave
ret 8

Function at 0x49faeb
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push edi
je 0x49fb53
cmp byte [ebp], 0
je 0x49fb53
mov ebx, 0x8000
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
je 0x49fb53
push esi
push ebx
push edi
mov ebx, str.PATH
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x49fb46
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4cb6fc
push edi
call esi
push ebp
push edi
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, esi
pop esi
jmp 0x49fb55
xor eax, eax
pop edi
pop ebp
pop ebx
ret
Function at 0x4a2d27
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call fcn.00401721
mov eax, dword [ebp - 8]
mov eax, dword [eax - 8]
cdq
sub eax, edx
pop ecx
mov esi, eax
pop ecx
lea eax, [ebp - 0x24]
push eax
lea edi, [ebp + 0xc]
sar esi, 1
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x64
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x29
mov byte [ebp - 0x1b], 0x25
mov byte [ebp - 0x1a], 0x21
mov byte [ebp - 0x19], 0x24
mov byte [ebp - 0x18], 0
call fcn.00402faf
jmp 0x4a2da2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00403081
mov eax, dword [ebp + 0xc]
cmp dword [eax - 8], esi
jl 0x4a2d95
mov eax, esi
lea ecx, [ebp + 0xc]
call fcn.0040310e
mov eax, dword [0x4e4150]
mov dword [ebp - 4], eax
lea eax, [esi + 1]
lea ecx, [ebp - 4]
call fcn.004030e2
lea edi, [esi - 1]
test edi, edi
jl 0x4a2e1b
mov ecx, eax
sub ecx, edi
lea ecx, [ecx + esi - 1]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 8]
mov al, byte [eax + edi*2]
call fcn.00499033
mov bl, al
mov eax, dword [ebp - 8]
mov al, byte [eax + edi*2 + 1]
call fcn.00499033
test bl, bl
jl 0x4a2e1b
test al, al
jl 0x4a2e1b
mov ecx, dword [ebp - 0x14]
shl bl, 4
add bl, al
mov eax, dword [ebp - 0xc]
xor bl, byte [ecx + eax]
dec edi
mov byte [eax], bl
inc eax
test edi, edi
mov dword [ebp - 0xc], eax
jge 0x4a2de1
mov eax, esi
lea ecx, [ebp - 4]
call fcn.0040310e
push ecx
lea ecx, [ebp - 4]
mov esi, esp
mov dword [ebp - 0x14], esp
call fcn.00402f86
lea eax, [ebp - 0x10]
push eax
call fcn.0049f98a
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
call fcn.00401809
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
add esp, 0x10
cmp eax, dword [0x4e4154]
je 0x4a2e60
push eax
call fcn.00401377
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4a2e74
push eax
call fcn.00401377
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4a2e88
push eax
call fcn.00401377
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4a2e9c
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a59a5
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [edi + 0x10], 1
push ebx
push esi
jne 0x4a5a1c
call dword [0x4e41a8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4a59d2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4a5a09
mov esi, dword [edi + 4]
test esi, esi
jne 0x4a59dd
xor eax, eax
jmp 0x4a5a02
push esi
call fcn.004aec13
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.004bf900
mov eax, esp
push dword [ebp - 4]
push ebx
push esi
mov esi, eax
call fcn.004243a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a5a1c
test al, 1
je 0x4a5a18
and dword [edi + 0x10], 0xfffffffb
jmp 0x4a5a1c
or dword [edi + 0x10], 4
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x4aa5d7
Capabilities:
Create directory

Disassembly:
mov eax, 0x4c13c3
call fcn.004bf97c
sub esp, 0x214
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4aa5f8
xor eax, eax
jmp 0x4aa70b
test edx, edx
je 0x4aa607
cmp byte [edx], 0
je 0x4aa607
push edx
call fcn.0040305d
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
call fcn.0049bf30
and dword [ebp - 4], 0
push 0x4c9160
push str.UTF_8
push 0x4c9138
lea esi, [ebp - 0x9c]
call fcn.0049c2ae
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0049ba05
push 0x4d1b6c
lea edi, [ebp - 0x70]
call fcn.0049bb59
push 0xa
lea eax, [ebp - 0x11c]
push eax
push 3
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push str.version
mov ebx, edi
call fcn.0049bc40
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.0049ba05
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.004aaa6f
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x104
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4aa6ca
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esi]
push ebx
push esi
lea eax, [ebp - 0x38]
call fcn.0049bfff
lea ecx, [ebp - 0x70]
movzx esi, al
mov byte [ebp - 4], 1
call fcn.0049bba8
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.00401a40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x4c8fe0
call fcn.0049b999
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4aefc0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000013
push dword [esi + 0x34]
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4aefee
leave
ret
cmp dword [ebp - 4], 0x197
push edi
jne 0x4af034
cmp dword [esi + 0x40], 0
jne 0x4af077
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x4af018
inc ecx
push ecx
push eax
push 0x2b
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af02c
inc ecx
push ecx
push eax
push 0x2c
push dword [esi + 0x34]
call edi
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
jmp 0x4af07e
cmp dword [ebp - 4], 0x191
jne 0x4af06e
cmp dword [esi + 0x40], 0
jne 0x4af077
mov eax, dword [esi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x4af05d
inc ecx
push ecx
push eax
push 0x1c
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af02c
inc ecx
push ecx
push eax
push 0x1d
jmp 0x4af027
cmp dword [ebp - 4], 0x190
jb 0x4af07b
xor eax, eax
jmp 0x4af07e
push 2
pop eax
pop edi
leave
ret
Function at 0x4af370
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x126c
call fcn.004bf900
push ebx
xor ebx, ebx
cmp dword [edi + 0x34], ebx
push esi
jne 0x4af452
push 0x10000000
push ebx
lea esi, [ebp - 0x126c]
call fcn.00416cc3
mov eax, dword [edi + 0x20]
push 0x10000000
push eax
mov eax, esi
call fcn.00416d24
test eax, eax
je 0x4af4d3
push ebx
push ebx
push 3
push dword [ebp - 0x1248]
push dword [ebp - 0x1250]
push dword [ebp - 0x1254]
push dword [ebp - 0x125c]
push dword [edi + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [edi + 0x30], eax
je 0x4af4d3
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00416d8b
mov esi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x126c]
call fcn.00416def
mov esi, dword [esi]
mov eax, dword [eax]
lea ecx, [edi + 0x44]
push ecx
push 0x84400200
push ebx
push esi
push ebx
push eax
push 0x4cc0e4
push dword [edi + 0x30]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4af435
push eax
call fcn.00401377
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4af449
push eax
call fcn.00401377
cmp dword [edi + 0x34], ebx
je 0x4af4d3
mov eax, dword [0x4e4150]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
lea eax, [ebp - 4]
push ecx
push str.Range:_bytes_u__r_n
push eax
call fcn.004058d5
mov esi, dword [ebp - 4]
mov eax, dword [esi - 8]
add esp, 0xc
push ebx
push ebx
push eax
push esi
push dword [edi + 0x34]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4af4a2
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x4af49d
push eax
call fcn.00401377
push 2
pop eax
jmp 0x4af4d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
lea eax, [esi - 0xc]
jne 0x4af4c5
cmp eax, dword [0x4e4154]
je 0x4af4c0
push eax
call fcn.00401377
xor eax, eax
inc eax
jmp 0x4af4d5
cmp eax, dword [0x4e4154]
je 0x4af4d3
push eax
call fcn.00401377
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4b08e4
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x2c], edi
je 0x4b08fa
call fcn.004b0a7f
cmp ebx, edi
je 0x4b0a36
cmp dword [ebx], 0x18
jne 0x4b0a36
push dword [ebx + 8]
lea edi, [ebp - 4]
call fcn.00413b62
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, eax
jne 0x4b092d
push 0x10000000
push eax
push eax
push 1
jmp 0x4b0a14
cmp ecx, 1
je 0x4b0a0c
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], eax
je 0x4b0a0c
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x10]
call fcn.00401721
pop ecx
mov edi, eax
pop ecx
lea eax, [esi + 0x24]
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b096f
push eax
call fcn.00401377
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebx + 0x14]
call fcn.00401721
pop ecx
mov edi, eax
pop ecx
lea eax, [esi + 0x28]
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b099d
push eax
call fcn.00401377
mov eax, dword [0x4e4150]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 4]
call fcn.00401721
push dword [ebx + 0xc]
push dword [eax]
lea eax, [ebp - 8]
push str.httphttp:___s:_d
push eax
call fcn.004058d5
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
add esp, 0x18
cmp eax, dword [0x4e4154]
je 0x4b09dd
push eax
call fcn.00401377
mov edi, dword [ebp - 8]
push 0x10000000
push str._local_
push edi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x2c], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x4b0a20
push eax
call fcn.00401377
jmp 0x4b0a20
push 0x10000000
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4b0a4a
push eax
call fcn.00401377
jmp 0x4b0a4a
push 0x10000000
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4b0a55
push 0xfffffffffffffffd
jmp 0x4b0a68
push 0x4b22ce
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4b0a76
push 0xfffffffffffffff9
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
jmp 0x4b0a79
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x4b1a04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4b1a2b
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4b1a1c
mov dword [eax], edi
mov eax, dword [esi + 0x74]
mov dword [eax + 0xc], 2
xor eax, eax
inc eax
jmp 0x4b1a76
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x74]
mov dword [ebp - 4], edi
push dword [eax]
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4b1a61
mov ecx, dword [ebp - 4]
add dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x74]
sbb ecx, ecx
add ecx, 3
mov dword [edx + 0xc], ecx
jmp 0x4b1a67
mov ecx, dword [esi + 0x74]
mov dword [ecx + 0xc], edi
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 8]
cmp ecx, edi
je 0x4b1a76
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop edi
leave
ret 4

Function at 0x4b5834
Capabilities:
Read data from internet
Receive data

Disassembly:
test eax, eax
jne 0x4b5839
ret
push 0
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
push 1
lea eax, [esi + 0x78]
push eax
push dword [esi + 0xa0]
mov dword [esi + 0x8c], ecx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4b5888
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b5884
push 0xffffffffffffffff
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x90], 0
jne 0x4b5888
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x90]
ret

Function at 0x4b6696
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp byte [0x4e53f8], al
push esi
mov esi, 0x4e53f8
jne 0x4b66c8
lea ecx, [ebp - 4]
push ecx
push esi
push 0x104
push eax
push str.mp3PRO.dll
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x4b66e1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b66e1
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
jmp 0x4b66e3
xor eax, eax
pop esi
leave
ret

Function at 0x4b7cd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [edi]
mov cx, word [eax + 0x10]
push ebx
push esi
movzx esi, cx
add esi, 0x12
cmp esi, 0x12
jne 0x4b7cf9
cmp word [eax], 1
jne 0x4b7cf9
test cx, cx
jne 0x4b7cf9
push 0x10
pop esi
mov eax, dword [edi + 0x1c]
lea eax, [esi + eax + 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
lea ebx, [edi + 4]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 0x46464952
mov dword [ebp - 0xc], 0x45564157
call fcn.0049feb9
push 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.004a63bd
mov eax, dword [edi + 0x1c]
push 1
push 0
add esi, 8
push esi
mov ecx, ebx
mov dword [ebp - 8], 0x61746164
mov dword [ebp - 4], eax
call fcn.0049feb9
push 8
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004a63bd
pop esi
pop ebx
leave
ret