joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474460
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50388b
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push esi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x4c]
mov ebx, ecx
mov dword [esp + 0x10], eax
call fcn.0043a2a0
xor esi, esi
mov dword [esp + 0x4c], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x39c], esi
mov dword [esp + 0x3a0], esi
push esi
push edi
lea ecx, [esp + 0x54]
push ecx
mov eax, ebx
mov dword [esp + 0x3c4], esi
call fcn.0043a3e0
test al, al
je 0x47458d
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x474518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x474518
xor ebx, ebx
mov eax, 0x34
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
lea ecx, [esp + 0x3a4]
mov dword [esp + 0x3a8], ebx
mov dword [esp + 0x24], 0x1332ba5
mov dword [esp + 0x28], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00441fe0
test al, al
jne 0x4745d3
mov ecx, edi
call fcn.00433db0
push 0x524050
jmp 0x474599
mov ecx, edi
call fcn.00433db0
push 0x51f1fc
push 0x51620c
mov edx, eax
call fcn.004351e0
mov dword [esp + 0x3c0], 0xffffffff
add esp, 8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0043a310
xor al, al
jmp 0x474610
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
mov dword [eax], edx
call fcn.0043a600
mov dword [esp + 0x3b8], 0xffffffff
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0043a310
mov al, 1
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.004c31a1
mov esp, ebp
pop ebp
ret
Function at 0x478470
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0xc
mov ecx, dword [edi + 0x26c]
push ebx
push ebp
xor ebp, ebp
cmp byte [esp + 0x1c], 0
mov ebx, eax
push esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
je 0x478495
cmp ebx, ecx
jge 0x478495
mov ecx, ebx
mov esi, dword [edi + 0x258]
call fcn.004174b0
cmp byte [esi + 0x114], 0
je 0x4784ae
add esi, 4
jmp 0x4784b0
mov esi, dword [esi]
add esi, 4
mov eax, dword [edi + 0x270]
test eax, eax
je 0x4784c7
mov al, byte [eax]
test al, al
jne 0x47858d
cmp byte [esp + 0x20], 0
mov eax, dword [edi + 0x26c]
je 0x4784da
cmp ebx, eax
jge 0x4784da
mov eax, ebx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x478568
add ebp, eax
cmp byte [esp + 0x20], 0
mov eax, dword [edi + 0x26c]
je 0x47850d
cmp ebx, eax
jge 0x47850d
mov eax, ebx
mov esi, dword [edi + 0x258]
lea ecx, [eax + ebp]
call fcn.004174b0
cmp byte [esi + 0x114], 0
je 0x478529
add esi, 4
jmp 0x47852b
mov esi, dword [esi]
mov eax, dword [edi + 0x264]
lea esi, [esi + ebp + 4]
test eax, eax
je 0x478557
cmp byte [esp + 0x20], 0
je 0x478546
mov ecx, dword [esp + 0x14]
jmp 0x478549
or ecx, 0xffffffff
mov edx, dword [edi + 0x268]
push edx
push ecx
push ebp
call eax
add esp, 0xc
cmp byte [esp + 0x20], 0
mov eax, dword [esp + 0xc]
je 0x478568
sub ebx, eax
test ebx, ebx
jle 0x478577
cmp dword [esp + 0x10], 0
je 0x478577
test eax, eax
ja 0x4784b3
xor eax, eax
cmp dword [esp + 0x10], eax
pop esi
mov dword [edi + 0x25c], ebp
pop ebp
setne al
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x478c30
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov ebx, 4
mov edi, eax
mov byte [esp + 0x16], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ebx
call fcn.00478410
test al, al
jne 0x478c60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [edi + 0x250]
push 0
shr eax, 1
push 0
and al, 1
push 0
mov byte [esp + 0x23], al
mov eax, dword [edi + 0x254]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0x478e32
mov eax, dword [edi + 0x248]
test eax, eax
jle 0x478cde
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 2
push ebp
mov dword [esp + 0x28], eax
call esi
push ebx
lea edx, [esp + 0x1c]
push edx
push 5
push ebp
call esi
push ebx
lea eax, [esp + 0x1c]
push eax
push 6
push ebp
call esi
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 7
push ebp
call esi
push ebx
lea edx, [esp + 0x1c]
push edx
push 8
push ebp
call esi
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x478ced
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x24c]
push 0
push ecx
push 0
push 0
add eax, 4
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x478e24
mov ecx, dword [edi + 0x24c]
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [esp + 0x1c], 0
test ecx, 0x200000
je 0x478d56
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [edi + 0x260]
push ebp
lea esi, [esp + 0x28]
mov ecx, edi
call fcn.00479da0
mov esi, dword [esp + 0x24]
add esp, 0xc
test al, al
jmp 0x478d6c
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x20000013
push esi
call ebx
test eax, eax
je 0x478e19
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x478d9b
cmp eax, 0x130
je 0x478da2
cmp eax, 0x194
jne 0x478e19
mov dword [edi + 0x260], 4
jmp 0x478e19
cmp eax, 0x130
jne 0x478db6
mov dword [edi + 0x260], 1
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
push 0x20000005
push esi
call ebx
test eax, eax
jne 0x478dd4
mov dword [esp + 0x20], eax
jmp 0x478dd8
mov eax, dword [esp + 0x20]
mov byte [esp + 0x18], 0
test eax, eax
jle 0x478de8
mov byte [esp + 0x18], 1
jmp 0x478ded
mov eax, 0x4000
cmp byte [esp + 0x17], 0
jne 0x478e04
mov ecx, dword [esp + 0x18]
push ecx
push esi
call fcn.00478470
add esp, 8
jmp 0x478e15
mov edx, dword [esp + 0x18]
push edx
push eax
push edi
mov edx, esi
call fcn.00478970
add esp, 0xc
mov byte [esp + 0x16], al
test esi, esi
je 0x478e24
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [esp + 0x16], 0
jne 0x478e3c
mov dword [edi + 0x25c], 0
mov al, byte [esp + 0x16]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x478e50
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x506116
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
mov esi, ecx
xor bl, bl
push eax
lea ecx, [esp + 0x144]
mov byte [esp + 0x17], bl
call fcn.00434b00
lea ecx, [esp + 0x18]
call fcn.004349d0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x478f86
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x18]
push eax
push 2
push esi
mov dword [esp + 0x24], 0xbb8
call edi
push 4
lea ecx, [esp + 0x18]
push ecx
push 5
push esi
call edi
push 4
lea edx, [esp + 0x18]
push edx
push 6
push esi
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 8
push esi
call edi
mov ecx, dword [esp + 0x144]
mov eax, 0x800
test ecx, ecx
jbe 0x478f45
cmp ecx, eax
jae 0x478f1c
mov eax, ecx
cmp byte [esp + 0x25c], 0
lea ecx, [esp + 0x14c]
jne 0x478f34
mov ecx, dword [esp + 0x148]
add ecx, 4
push ecx
lea ebx, [esp + 0x1c]
call fcn.00434c80
mov bl, byte [esp + 0x13]
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x478f57
mov eax, dword [esp + 0x20]
push 0
push 0x84200000
push 0
push 0
add eax, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x478f83
push eax
mov byte [esp + 0x17], 1
call edi
mov bl, byte [esp + 0x13]
push esi
call edi
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x478fae
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x478fae
push eax
call fcn.004c31b0
add esp, 4
cmp byte [esp + 0x25c], 0
mov dword [esp + 0x140], esi
jne 0x478fda
mov eax, dword [esp + 0x148]
lea edx, [esp + 0x14c]
cmp eax, edx
je 0x478fda
push eax
call fcn.004c31b0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004c31a1
add esp, 0x268
ret

Function at 0x479010
Capabilities:
Send data

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
test esi, esi
jbe 0x479048
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
nop
lea eax, [esp + 0x10]
push eax
push esi
push edi
push ebp
call ebx
test eax, eax
je 0x479050
mov eax, dword [esp + 0x10]
add edi, eax
sub esi, eax
jne 0x479030
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x479060
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x408
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push 0x3ff
xor esi, esi
lea eax, [esp + 0x19]
push esi
xor edi, edi
push eax
mov ebx, ecx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], 0
call fcn.004cab10
add esp, 0xc
test edi, edi
jbe 0x4790cb
mov ecx, dword [esp + 0x420]
mov eax, ecx
sub eax, esi
cmp edi, eax
jae 0x479103
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [ebx + esi]
push edx
call fcn.004c6cb2
add esp, 0x10
add esi, dword [esp + 0x10]
push 0x400
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004cab10
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47911c
mov edi, dword [esp + 0x10]
test edi, edi
ja 0x4790a5
jmp 0x47911c
mov eax, ecx
sub eax, esi
lea ecx, [eax - 1]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
add ebx, esi
push ebx
call fcn.004c6cb2
add esp, 0x10
mov ecx, dword [esp + 0x414]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c31a1
add esp, 0x408
ret
Function at 0x4792b0
Capabilities:
Parse url

Disassembly:
mov eax, 0x1098
call fcn.004ced80
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x1094], eax
mov eax, dword [esp + 0x109c]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
call fcn.00479140
mov edi, eax
test edi, edi
je 0x4794a7
push 0x7ff
lea edx, [esp + 0xa5]
push ebx
push edx
mov byte [esp + 0xac], bl
call fcn.004cab10
push 0x7ff
lea eax, [esp + 0x8b1]
push ebx
push eax
mov byte [esp + 0x8b8], bl
call fcn.004cab10
push 0x38
lea ecx, [esp + 0x68]
push ebx
push ecx
call fcn.004cab10
add esp, 0x24
lea edx, [esp + 0xa0]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x48]
push edx
push ebx
mov eax, 0x800
push ebx
lea ecx, [esp + 0x8ac]
push esi
mov dword [esp + 0x58], 0x3c
mov dword [esp + 0x6c], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov eax, dword [esp + 0x58]
push eax
mov ecx, edi
call fcn.004791b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4794a0
mov ecx, dword [esp + 0x74]
push ebx
push 0x84000000
push ebx
push ebx
push ebx
push ecx
push str.POST
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x479499
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [esp + 0x88]
call fcn.00426a40
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x4793db
lea eax, [esp + 0x88]
mov edx, dword [esp + 0x98]
push 0x20000000
push edx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
xor eax, eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10b0]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0x28
mov dword [esp + 0x40], eax
xor bl, bl
call fcn.00479230
add esp, 4
test eax, eax
je 0x479458
mov eax, dword [esp + 0x10b0]
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00479010
add esp, 4
test eax, eax
jne 0x479458
mov bl, 1
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test bl, bl
je 0x479482
mov edx, dword [esp + 0x10b4]
mov ecx, dword [esp + 0x18]
push edx
push esi
call fcn.00479060
add esp, 8
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x84]
call fcn.00426a80
mov ebx, dword [esp + 0x14]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x10a4]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004c31a1
add esp, 0x1098
ret
Function at 0x479b60
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x501ccb
mov eax, dword fs:[0]
push eax
mov eax, 0x1134
call fcn.004ced80
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x1130], eax
push ebp
push esi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x1140]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1158]
mov ebp, dword [esp + 0x1150]
mov esi, ecx
xor ecx, ecx
push 0xffe
push ecx
lea edx, [esp + 0x146]
push edx
mov dword [esp + 0x1c], eax
mov dword [ebx], 0
mov word [esp + 0x148], cx
call fcn.004cab10
mov edx, dword [esi]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x144]
push ecx
push 0x21
push edx
mov dword [esp + 0x20], 0x1000
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x479c08
mov dword [ebx], 5
jmp 0x479d4c
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
shr eax, 1
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x140], cx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x18]
call fcn.004349d0
mov dword [esp + 0x1148], 0
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x479c44
mov eax, dword [edi + 8]
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x144]
call fcn.004797a0
add esp, 8
test al, al
jne 0x479c99
mov dword [ebx], 7
mov dword [esp + 0x18], vtable.t_str.0
cmp byte [esp + 0x134], al
jne 0x479d4c
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x479d4c
push eax
call fcn.004c31b0
add esp, 4
jmp 0x479d4c
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x479cab
mov eax, dword [esp + 0x20]
add eax, 4
mov edx, edi
call fcn.00434c20
cmp byte [esp + 0x134], 0
lea ecx, [esp + 0x24]
jne 0x479cc7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1154]
push 0
or eax, 0x200000
push eax
push 0
push 0
add ecx, 4
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esi], eax
test eax, eax
jne 0x479d19
mov dword [ebx], 8
mov dword [esp + 0x18], vtable.t_str.0
cmp byte [esp + 0x134], al
jne 0x479d4c
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x479d4c
push eax
call fcn.004c31b0
add esp, 4
jmp 0x479d4c
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x20000013
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x479d74
mov dword [ebx], 6
lea ecx, [esp + 0x18]
call fcn.00434b70
xor al, al
mov ecx, dword [esp + 0x1140]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x1130]
xor ecx, esp
call fcn.004c31a1
add esp, 0x1140
ret
mov eax, dword [esi]
cmp eax, 0xc8
je 0x479d43
cmp eax, 0x12c
jb 0x479d43
cmp eax, 0x190
jae 0x479d43
lea ecx, [esp + 0x18]
call fcn.00434b70
mov al, 1
jmp 0x479d4e
Function at 0x479da0
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push esi
mov edi, ecx
mov ecx, dword [ebp]
push 0x20000013
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x479dda
pop edi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
cmp dword [esi], 0xc8
jne 0x479deb
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
mov dword [ebx], 0
mov eax, dword [esi]
cmp eax, 0x12c
jb 0x479e37
cmp eax, 0x190
jae 0x479e37
mov dword [esp + 0xc], 0
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push esi
push edx
push eax
mov ecx, ebp
call fcn.00479b60
add esp, 0xc
test al, al
je 0x479e37
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 5
mov dword [esp + 0xc], eax
jl 0x479e10
xor eax, eax
cmp dword [ebx], eax
pop edi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x479ec0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x500e68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov esi, dword [ebp + 4]
xor ebx, ebx
mov edi, ecx
cmp esi, ebx
je 0x479f14
mov ecx, esi
call fcn.004bf420
push esi
call fcn.004c55cd
add esp, 4
mov dword [ebp + 4], ebx
cmp edi, ebx
je 0x47a028
push ebx
push 0x518b78
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004092b0
mov dword [esp + 0x44], ebx
cmp byte [ebp], bl
jne 0x47a02c
push 0x51e2ac
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x24], ebx
call fcn.004c56b5
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x47a014
push 2
push ebx
push eax
call fcn.004c76c5
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call fcn.004c75cd
mov edx, dword [esp + 0x1c]
add esp, 4
push ebx
push ebx
push edx
mov esi, eax
call fcn.004c76c5
lea eax, [esi + 1]
add esp, 0xc
push eax
call fcn.004c669c
mov edi, eax
add esp, 4
mov byte [edi + esi], bl
mov ecx, dword [esp + 0x18]
push ecx
push esi
push 1
push edi
call fcn.004c7413
add esp, 0x10
cmp eax, esi
jne 0x479fc5
push edi
lea ecx, [esp + 0x20]
call fcn.00449420
mov edx, dword [esp + 0x18]
push edx
call fcn.004c6503
add esp, 4
push edi
call fcn.004c6691
mov eax, dword [esp + 0x24]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x34], esi
jae 0x479fee
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x30]
push ecx
push eax
mov eax, ebp
call fcn.0047a070
mov bl, al
cmp dword [esp + 0x34], esi
jb 0x47a010
mov edx, dword [esp + 0x20]
push edx
call fcn.004c55cd
add esp, 4
mov al, bl
jmp 0x47a042
cmp dword [esp + 0x34], 0x10
jb 0x47a028
mov eax, dword [esp + 0x20]
push eax
call fcn.004c55cd
add esp, 4
xor al, al
jmp 0x47a042
cmp dword [esp + 0x34], 0x10
jb 0x47a040
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c55cd
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c31a1
add esp, 0x34
ret 4
Function at 0x47d630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x501bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x38], 0
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0xc]
mov ecx, esi
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jbe 0x47d6b6
cmp ebp, esi
jbe 0x47d68b
call fcn.004c6862
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
push esi
push eax
lea eax, [esp + 0x48]
push eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ebx, ecx
push ebx
push edi
call fcn.0047e240
jmp 0x47d703
jae 0x47d703
cmp ebp, esi
jbe 0x47d6c1
call fcn.004c6862
mov ebp, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x20], edx
cmp ebp, dword [edi + 0x10]
jbe 0x47d6d4
call fcn.004c6862
mov eax, dword [edi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ebp
call fcn.0047e800
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push esi
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0047d750
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, esi
je 0x47d716
push eax
call fcn.004c55cd
add esp, 4
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.004c55cd
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18

Function at 0x480090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4800a5
mov esi, dword [eax]
test esi, esi
jne 0x4800a5
xor eax, eax
pop esi
ret 8
push edi
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4800c1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4800c8
pop edi
xor eax, eax
pop esi
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret 8
Function at 0x480ac0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
push edi
call fcn.004855a0
cmp eax, 6
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
jge 0x480ad7
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push esi
push str.SEContainer
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x480b23
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 8
push 0x18
push esi
push str.SEContainer
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
jne 0x480b1a
call ebx
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret

Function at 0x480b30
Capabilities:
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x3c
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
jne 0x480b4e
mov esi, str.vc8v7vghw7v278vn2v8239vh29vh890m
test ebx, ebx
jne 0x480b57
mov ebx, str.aqkeezgxijvlm2op
xor eax, eax
mov ecx, 8
mov byte [esp + 0x18], cl
mov word [esp + 0x1a], ax
mov byte [esp + 0x19], 2
mov dword [esp + 0x1c], 0x6610
mov dword [esp + 0x20], 0x20
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
mov eax, dword [esp + 0x58]
push 0x2c
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x480be1
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
mov edi, 1
push eax
mov dword [esp + 0x20], edi
call esi
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
push 3
push eax
mov dword [esp + 0x24], edi
call esi
mov ecx, dword [esp + 0xc]
push 0
push ebx
push edi
push ecx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c31a1
add esp, 0x3c
ret