joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1101a07
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1101a2e
xor eax, eax
jmp 0x1101b23
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp edi, eax
jbe 0x1101b20
push esi
push esi
push eax
push dword [ebp + 8]
sub edi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1101b20
mov eax, 0x10000
cmp edi, eax
mov dword [ebp + 0xc], edi
jb 0x1101a65
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.0105f04e
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x1101b20
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
sub edi, dword [ebp - 8]
and dword [ebp - 4], 0
cmp edi, dword [ebp + 0xc]
jbe 0x1101a96
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1101aec
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x1101aec
mov ecx, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov byte [eax + ecx], 0
push dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.011019b0
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1101aec
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
jae 0x1101aec
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
inc esi
add dword [ebp - 8], eax
jmp 0x1101a87
push dword [ebp - 0xc]
call fcn.0105eff6
cmp dword [ebp - 0x10], 0xffffffff
pop ecx
je 0x1101b20
imul esi, dword [ebp + 0xc]
add esi, dword [ebp - 0x10]
push 0
add dword [ebx], esi
mov ebx, dword [ebx]
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1101b22
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x1101bb9
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1101c3b
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x1101c2c
lea eax, [esi + 1]
push eax
call fcn.0105f04e
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1101c2c
push ebx
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1101c2c
cmp dword [ebp + 8], esi
jne 0x1101c2c
mov byte [esi + edi], bl
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop esi
jne 0x1101c44
push edi
call fcn.0105eff6
pop ecx
xor edi, edi
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x1102414
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x111121c]
push esi
push edi
push 0x10284e8
mov esi, 0x80000001
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x110]
push eax
push 0xf003f
xor edi, edi
push edi
push 0x1028558
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x110], edi
je 0x11024b6
push ebx
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x1102491
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0
push dword [ebp - 0x110]
call edi
test eax, eax
je 0x1102474
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1028558
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0105eca9
leave
ret

Function at 0x1102543
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x28]
xor ebx, ebx
test al, 4
push edi
mov dword [ebp - 4], ebx
mov edi, 0x80000000
jne 0x110256a
test edi, eax
je 0x1102634
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.01100cf2
mov eax, dword [esi + 0x28]
test al, 4
je 0x11025af
test eax, 0x20000000
je 0x11025af
mov ecx, dword [ebp - 0xc]
sub ecx, dword [esi + 0x30]
mov eax, dword [ebp - 8]
sbb eax, dword [esi + 0x34]
cmp eax, 0xc9
jl 0x1102639
jg 0x1102634
cmp ecx, 0x2a69c000
jmp 0x1102632
test edi, eax
je 0x11025ba
test eax, 0x40000000
jmp 0x1102615
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x11025df
cmp dword [esi], ebx
je 0x11025df
push eax
push dword [ebp + 8]
call fcn.01100f3d
test eax, eax
jne 0x11025df
test byte [esi + 0x28], 0x40
je 0x1102639
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1102611
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x1102634
mov edi, dword [ebp + 0x14]
cmp edi, dword [esi + 0x38]
jne 0x1102634
cmp dword [ebp - 4], ebx
jne 0x1102639
xor edx, edx
cmp edi, ebx
jbe 0x1102611
sub ecx, eax
mov ebx, dword [eax]
cmp ebx, dword [ecx + eax]
jne 0x1102634
inc edx
add eax, 4
cmp edx, edi
jb 0x1102602
test byte [esi + 0x2b], 0x40
je 0x1102639
mov ecx, dword [ebp - 0xc]
sub ecx, dword [esi + 0x30]
mov eax, dword [ebp - 8]
sbb eax, dword [esi + 0x34]
cmp eax, 0x580
jl 0x1102639
jg 0x1102634
cmp ecx, 0x28e44000
jbe 0x1102639
xor eax, eax
inc eax
jmp 0x110263b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1102647
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x1102667
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi], ebx
push ebx
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1102678
xor eax, eax
jmp 0x11026ca
mov eax, dword [eax + 0xc]
push esi
xor esi, esi
cmp dword [eax], ebx
je 0x11026c7
add eax, 4
inc esi
cmp dword [eax], ebx
jne 0x1102682
cmp esi, ebx
je 0x11026c7
mov eax, esi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [edi], eax
jne 0x11026a7
push 8
pop eax
jmp 0x11026c9
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
cmp esi, ebx
jbe 0x11026c7
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + eax*4]
mov edx, dword [edi]
mov ecx, dword [ecx]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, esi
jb 0x11026b2
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1102710
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x834], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x820], eax
je 0x1102767
lea eax, [ebp - 0x82c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x81c], eax
jne 0x110276e
xor eax, eax
jmp 0x1102912
lea eax, [ebp - 0x804]
mov dword [ebp - 0x810], eax
mov esi, 0x400
cmp dword [ebp - 0x820], esi
lea eax, [ebp - 0x404]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x80c], ebx
jbe 0x11027bc
push dword [ebp - 0x820]
push 0x40
call edi
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x81c], esi
jbe 0x11027d4
push dword [ebp - 0x81c]
push 0x40
call edi
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x810], ebx
je 0x11028e9
cmp dword [ebp - 0x808], ebx
je 0x11028cf
push dword [ebp - 0x810]
push dword [ebp - 0x820]
push ebx
push dword [ebp - 0x830]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
mov dword [ebp - 0x80c], eax
je 0x11028cf
push dword [ebp - 0x808]
push dword [ebp - 0x81c]
push ebx
push dword [ebp - 0x834]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
mov dword [ebp - 0x80c], eax
je 0x11028cf
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x824]
push eax
mov esi, 0x100ae94
push esi
push dword [ebp - 0x810]
mov dword [ebp - 0x818], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x11028c9
cmp dword [ebp - 0x818], ebx
je 0x11028c9
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x828]
push eax
push esi
push dword [ebp - 0x808]
mov dword [ebp - 0x814], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x11028c9
cmp dword [ebp - 0x814], ebx
je 0x11028c9
mov ecx, dword [ebp - 0x818]
cmp dword [ebp - 0x814], ecx
jne 0x11028c9
mov edi, dword [ebp - 0x828]
mov esi, dword [ebp - 0x824]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x11028ba
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x80c], ecx
jmp 0x11028cf
mov dword [ebp - 0x80c], ebx
lea eax, [ebp - 0x804]
cmp eax, dword [ebp - 0x810]
je 0x11028e9
push dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x808], ebx
pop edi
je 0x110290c
lea eax, [ebp - 0x404]
cmp eax, dword [ebp - 0x808]
je 0x110290c
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0105eca9
leave
ret 8
Function at 0x1102925
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x111121c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x105
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x324], ecx
call ebx
push 0x2e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
jne 0x1102983
push esi
push 0x102884c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
lea ecx, [ebp - 0x320]
push ecx
lea ecx, [ebp - 0x214]
push ecx
xor eax, eax
mov esi, 0x104
push esi
push eax
lea ecx, [ebp - 0x10c]
push ecx
push eax
mov dword [ebp - 0x320], eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x1102a80
cmp eax, esi
ja 0x1102a80
mov eax, dword [ebp - 0x320]
mov byte [eax - 1], 0
lea eax, [ebp - 0x31c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1102a00
cmp eax, esi
ja 0x1102a00
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1102a00
test al, 0x10
je 0x1102a00
test ax, 0x1007
lea eax, [ebp - 0x31c]
je 0x1102a05
mov eax, 0x1028848
push dword [ebp - 0x320]
push eax
push 0x1026a20
push dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [ebp - 0x320]
add esp, 0x14
push 0x2e
push 0
push edi
mov byte [eax - 1], 0x5c
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x1102a48
push dword [ebp + 0x10]
push 0x1028840
push edi
call dword [sym.imp.SHLWAPI.dll_StrCatBuffA]
jmp 0x1102a58
mov ecx, edi
sub ecx, eax
add ecx, dword [ebp + 0x10]
push ecx
push 0x1028840
push eax
call ebx
mov ecx, dword [ebp - 0x324]
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.01102710
test eax, eax
jne 0x1102a82
push eax
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x1102a82
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 0xc
Function at 0x110355f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x111121c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov dword [esi], 0x70000
and dword [edi], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x11035b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1103676
and eax, 0xffff
or eax, 0x80070000
jmp 0x1103676
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x11035ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1103675
and eax, 0xffff
or eax, 0x80070000
jmp 0x1103675
push ebx
call fcn.0105f04e
test eax, eax
pop ecx
mov dword [ebp - 0x210], eax
jne 0x1103607
mov eax, 0x8007000e
jmp 0x1103675
push eax
push ebx
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1103651
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1002e78
push dword [ebp - 0x210]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1103651
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
xor esi, esi
jmp 0x1103667
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1103665
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x210]
call fcn.0105eff6
pop ecx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0105eca9
leave
ret 8
Function at 0x1105fcf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1114c40], 0
push esi
jne 0x1105f3d
call fcn.01105e34
test eax, eax
je 0x1105f80
mov eax, dword [0x1114c40]
cmp eax, 1
jne 0x1105f5e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1105f80
pop esi
ret
push eax
call dword [0x1114c48]
test eax, eax
jne 0x1105fc8
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1105f84
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1114c40]
call dword [0x1114c48]
mov edi, eax
test edi, edi
je 0x1105fa9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1105fc5
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1114c40]
call dword [0x1114c44]
add edi, 0x10
cmp edi, esi
jb 0x1105fb1
mov eax, edi
pop edi
pop esi
ret
jmp 0x1105f2a

Function at 0x1106a45
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
je 0x1106b5c
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1106b5c
push edi
push 0x17
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esi], 0x5c
jne 0x1106a7e
mov eax, 0xb000000e
or eax, 0x8000000
mov dword [esi + 4], eax
mov al, byte [ebx + 0x17]
mov byte [esi + 0x18], al
cmp byte [ebx + 0x17], 0x58
jne 0x1106a98
mov byte [esi + 0x18], 0x88
jmp 0x1106aae
cmp byte [ebx + 0x17], 0
jne 0x1106aae
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp ax, 0x804
jne 0x1106aae
mov byte [esi + 0x18], 0x86
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x1106ac4
test byte [ebp + 0x10], 1
jne 0x1106ac0
cmp dword [ebp + 0x10], eax
jne 0x1106ac4
or dword [esi + 4], 1
cmp dword [ebx + 0x10], 0x2bc
jl 0x1106ad7
test byte [esi + 4], 1
je 0x1106ad7
or dword [esi + 8], 1
cmp byte [ebx + 0x14], 0
je 0x1106ae7
test byte [esi + 4], 2
je 0x1106ae7
or dword [esi + 8], 2
cmp byte [ebx + 0x15], 0
je 0x1106af7
test byte [esi + 4], 4
je 0x1106af7
or dword [esi + 8], 4
cmp byte [ebx + 0x16], 0
je 0x1106b07
test byte [esi + 4], 8
je 0x1106b07
or dword [esi + 8], 8
test byte [esi + 7], 0x80
je 0x1106b29
push eax
mov eax, dword [ebx]
cdq
xor eax, edx
lea edi, [esi + 0xc]
push edi
sub eax, edx
push eax
call fcn.011069e1
test eax, eax
jne 0x1106b29
mov dword [edi], 0x3e8
mov eax, dword [esi + 4]
test eax, 0x40000000
pop edi
je 0x1106b3a
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x14], ecx
test eax, 0x20000000
mov cl, byte [ebx + 0x1b]
mov byte [esi + 0x19], cl
je 0x1106b57
push 0x20
add ebx, 0x1c
push ebx
add esi, 0x1a
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
xor eax, eax
inc eax
jmp 0x1106b66
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x11086c8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x80004005
je 0x1108760
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1108760
push esi
push edi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x1108756
cmp esi, edi
je 0x1108756
push ebx
push esi
call fcn.0105f04e
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x1108755
push edi
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x110874e
cmp dword [ebp + 8], esi
jne 0x110874e
mov ecx, dword [ebp - 0xc]
push esi
push ebx
call fcn.01108275
mov dword [ebp - 8], eax
push ebx
call fcn.0105eff6
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 8]
pop edi
leave
ret 4

Function at 0x110a1c9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x18]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x110a21e
cmp eax, 0xffffffff
je 0x110a21e
cmp dword [ebp + 8], edi
je 0x110a2d0
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x830]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x110a2d0
mov eax, dword [ebp - 8]
add dword [ebx + 0x28], eax
jmp 0x110a2d0
mov edx, dword [ebp + 8]
cmp edx, edi
je 0x110a2d0
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x1c]
add eax, edx
cmp eax, ecx
push esi
mov dword [ebp - 4], 1
jbe 0x110a2b0
add ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
jbe 0x110a257
mov eax, dword [ebx + 0x28]
add eax, edx
mov ecx, dword [ebp - 4]
add ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
ja 0x110a24b
push dword [ebp - 4]
call fcn.0105f04e
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
je 0x110a29f
mov esi, dword [ebx + 0x20]
cmp esi, edi
je 0x110a296
mov ecx, dword [ebx + 0x28]
cmp ecx, edi
je 0x110a287
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push dword [ebx + 0x20]
call fcn.0105eff6
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebx + 0x20], edi
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], ecx
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
mov dword [ebp - 4], ecx
je 0x110a2cf
mov edx, dword [ebp + 8]
mov edi, dword [ebx + 0x20]
add edi, dword [ebx + 0x28]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [ebx + 0x830]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x28], edx
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4
Function at 0x110a589
Capabilities:
Read data from internet
Receive data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov eax, dword [edi]
test eax, eax
je 0x110a5a6
push eax
call fcn.0110a1c9
and dword [edi], 0
test eax, eax
je 0x110a5d2
push edi
push 0x400
lea eax, [esi + 0x830]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x110a5d2
mov eax, dword [edi]
test eax, eax
je 0x110a5ef
push eax
mov ecx, esi
call fcn.0110a1c9
jmp 0x110a5a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
sub ebx, 0x3e5
neg ebx
sbb ebx, ebx
inc ebx
je 0x110a600
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
jne 0x110a600
push esi
push 2
push 0x8000
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x110a60b
Capabilities:
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
xor eax, eax
push edi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x1448]
push edi
push dword [esi + 0x1444]
mov dword [ebp - 0x10], 4
push 0x16
push dword [esi + 0x14]
call ebx
test eax, eax
jne 0x110a6a8
push dword [esi + 0x1444]
call fcn.0105eff6
and dword [esi + 0x1444], 0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x110a6a5
inc dword [edi]
mov eax, dword [edi]
add eax, eax
push eax
call fcn.0105f04e
test eax, eax
pop ecx
mov dword [esi + 0x1444], eax
je 0x110a6a5
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x16
push dword [esi + 0x14]
call ebx
test eax, eax
jne 0x110a6a8
push dword [esi + 0x1444]
call fcn.0105eff6
and dword [esi + 0x1444], 0
pop ecx
and dword [edi], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push dword [esi + 0x14]
call ebx
mov eax, dword [ebp - 8]
mov dword [esi + 0xc38], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x2c]
push eax
push 0x20000005
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x110a6f2
mov ecx, esi
mov dword [esi], 3
call fcn.0110a589
test eax, eax
jne 0x110a703
push esi
push 4
push 0x8000
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x110ae6c
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x419
push dword [esi + 4]
call edi
push dword [ebp + 0xc]
push eax
push 0x41d
push dword [esi + 4]
call edi
push 2
push dword [ebp + 0xc]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
pop edi
pop esi
pop ebp
ret 8