joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1080af9
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x1080be3
mov edi, dword [ebp + 8]
test edi, edi
je 0x1080be3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x10f3268]
mov ebx, 0x10f325c
cmp eax, 0xea60
jae 0x1080b4d
push edi
push ebx
call fcn.0104223c
test al, al
je 0x1080b4d
mov eax, dword [0x10f3258]
mov dword [esi], eax
jmp 0x1080bea
push esi
push edi
push 0x101cda8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.010809d6
cmp eax, 3
je 0x1080b68
cmp eax, 2
jne 0x1080b8c
push esi
push edi
push 0x101cd38
push SysReAllocStringLen
call fcn.010809d6
cmp eax, 3
je 0x1080b83
cmp eax, 2
jne 0x1080b8c
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x1080b9f
jle 0x1080b9c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1080bea
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x1080bea
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.01042587
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.01042ec9
mov eax, dword [esi]
mov dword [0x10f3258], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x10f3268], eax
call fcn.01042e75
jmp 0x1080bea
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1080c7e
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x1080d4d
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1080d4d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x10f327c]
mov edi, 0x10f3270
jae 0x1080cd2
push ebx
push edi
call fcn.0104223c
test al, al
je 0x1080cd2
mov eax, dword [0x10f326c]
mov dword [esi], eax
jmp 0x1080d54
push esi
push ebx
push 0x101cda8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01080bf9
test eax, eax
je 0x1080d0f
push esi
push ebx
push 0x101cd38
push SysReAllocStringLen
call fcn.01080bf9
test eax, eax
je 0x1080d0f
jle 0x1080d08
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x1080d54
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x1080d54
push 5
push edi
lea ecx, [ebp - 0x10]
call fcn.01042587
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10]
call fcn.01042ec9
mov eax, dword [esi]
mov dword [0x10f326c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x10f327c], eax
call fcn.01042e75
jmp 0x1080d54
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1081d35
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10cf230]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [0x10eb6c8]
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x38], ecx
je 0x1081d77
cmp eax, ebx
je 0x1081ef2
cmp ecx, ebx
je 0x1081ef2
mov dx, word [0x10f352c]
mov word [ecx], dx
jmp 0x1081ef2
push esi
push edi
mov dword [0x10eb6c8], ebx
call fcn.01081ce6
xor esi, esi
inc esi
cmp ax, bx
mov word [0x10f352c], ax
je 0x1081dbb
push 0x10
lea ecx, [ebp - 0x30]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1081e86
test byte [ebp - 0x21], 8
je 0x1081e86
jmp 0x1081e80
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1081e86
xor eax, eax
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push 0x101e194
push SysReAllocStringLen
mov dword [ebp - 0x3c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1081e86
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
mov byte [ebp - 5], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x10]
lea edx, [ebp - 0x10]
xor eax, eax
jmp 0x1081e68
shl eax, 4
cmp cl, 0x30
jl 0x1081e41
cmp cl, 0x39
jg 0x1081e41
movsx ecx, cl
lea eax, [eax + ecx - 0x30]
jmp 0x1081e65
cmp cl, 0x41
jl 0x1081e54
cmp cl, 0x46
jg 0x1081e54
movsx ecx, cl
lea eax, [eax + ecx - 0x37]
jmp 0x1081e65
cmp cl, 0x61
jl 0x1081e65
cmp cl, 0x66
jg 0x1081e65
movsx ecx, cl
lea eax, [eax + ecx - 0x57]
inc edx
mov cl, byte [edx]
cmp cl, bl
jne 0x1081e2b
and eax, 0x3ff
cmp eax, esi
je 0x1081e7a
cmp eax, 0xd
jne 0x1081e86
mov word [0x10f352c], ax
mov dword [0x10eb6c8], esi
mov eax, dword [0x10eb6c8]
cmp eax, ebx
jne 0x1081edf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x101e184
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1081ed6
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x1081ecf
mov dword [0x10eb6c8], esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x10eb6c8]
cmp eax, ebx
je 0x1081ef0
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x1081ef0
mov dx, word [0x10f352c]
mov word [ecx], dx
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01041c5f
leave
ret 4
Function at 0x1082ded
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jle 0x1082e0e
mov eax, 0x80070057
jmp 0x1082f8c
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1082e69
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1082e47
call esi
mov esi, eax
jmp 0x1082e57
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x1082f88
mov esi, 0x80004005
jmp 0x1082f88
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1082e89
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x1082ebd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1082e9b
call esi
mov esi, eax
jmp 0x1082eab
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x1082f7e
mov esi, 0x80004005
jmp 0x1082f7e
cmp ebx, edi
jbe 0x1082f4e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x1082efd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1082ee2
call esi
mov esi, eax
jmp 0x1082ef2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x1082f75
mov esi, 0x80004005
jmp 0x1082f75
push edi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1082f16
cmp dword [ebp - 8], ebx
je 0x1082f41
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1082f28
call esi
mov esi, eax
jmp 0x1082f38
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x1082f41
mov esi, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, edi
jl 0x1082f75
mov edi, dword [ebp + 0xc]
push edi
push 1
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
test esi, esi
jl 0x1082f75
mov eax, dword [edi]
mov edx, dword [eax]
xor ecx, ecx
push ecx
push ebx
push eax
call dword [edx + 0x18]
mov esi, eax
test esi, esi
jge 0x1082f7e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1084a76
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
mov esi, ecx
push 0x101eee8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1084bcf
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1084bc6
push edi
mov edi, dword [esi]
cmp edi, ebx
je 0x1084bc5
lea eax, [edi + edi*2]
lea eax, [eax*8 + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1084b11
push fcn.01083cce
push edi
mov dword [eax], edi
add eax, 4
push 0x18
push eax
mov dword [ebp - 0x18], eax
call fcn.0104101e
mov eax, dword [ebp - 0x18]
jmp 0x1084b13
xor eax, eax
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1084bc3
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x1084bc5
mov eax, dword [ebp - 0x10]
shr eax, 1
shl eax, 1
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x1084bb8
cmp dword [esi], ebx
mov dword [ebp - 4], ebx
jbe 0x1084baf
xor edi, edi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push ebx
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1084ba2
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push dword [ebp - 0x18]
add ecx, edi
call fcn.01042ec9
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push dword [ebp - 0x14]
lea ecx, [edi + eax + 0xc]
call fcn.01042ec9
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x18
cmp eax, dword [esi]
jb 0x1084b55
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1084bc5
mov dword [esi], ebx
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10891eb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x10cf230]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], ebx
call fcn.010424ee
lea ecx, [ebp - 0x280]
call fcn.010424ee
push 0x20019
push 0x10022e8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x25c]
call fcn.01040c93
test eax, eax
jne 0x1089265
cmp dword [ebp + 0xc], ebx
mov eax, 0x10022ac
je 0x1089253
mov eax, 0x1002340
push eax
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x28c]
call fcn.01043422
mov ecx, dword [ebp - 0x28c]
xor eax, eax
cmp ecx, ebx
je 0x1089277
cmp word [ecx], bx
setne al
cmp al, bl
je 0x108943d
push esi
or esi, 0xffffffff
push esi
push ecx
lea ecx, [ebp - 0x280]
call fcn.01042ec9
test eax, eax
jl 0x108943c
push esi
push 0x100229c
lea ecx, [ebp - 0x280]
call fcn.01043145
test eax, eax
jl 0x108943c
push edi
xor eax, eax
mov dword [ebp - 0x254], ebx
mov ecx, 0x93
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
mov dword [ebp - 0x264], eax
je 0x108943b
xor edi, edi
inc edi
lea ecx, [ebp - 0x270]
call fcn.010424ee
push esi
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x270]
call fcn.01042ec9
test eax, eax
jl 0x1089415
push esi
push 0x10023c0
lea ecx, [ebp - 0x270]
call fcn.01043145
test eax, eax
jl 0x1089415
push esi
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x270]
call fcn.01043145
test eax, eax
jl 0x1089415
lea ecx, [ebp - 0x300]
call fcn.0107e139
push dword [ebp - 0x270]
lea ecx, [ebp - 0x300]
push 2
mov dword [ebp - 0x258], ebx
call fcn.0107f141
test eax, eax
jl 0x1089390
lea eax, [ebp - 0x258]
push eax
push ebx
push 0x1002424
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x300]
push eax
push dword [ebp - 0x260]
call fcn.01088184
cmp dword [ebp + 0xc], edi
jne 0x10893fa
mov eax, dword [ebp - 0x258]
cmp eax, ebx
je 0x108940a
lea edx, [ebp - 0x274]
push edx
lea edx, [ebp - 0x2a4]
push edx
push ebx
push edi
lea edx, [ebp - 0x294]
push edx
mov word [ebp - 0x2a4], 0xb
mov word [ebp - 0x29c], si
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x294], 0x5000036
mov dword [ebp - 0x290], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10893fa
push edi
push ebx
push ebx
push dword [ebp - 0x258]
push dword [ebp - 0x260]
call fcn.01084418
mov eax, dword [ebp - 0x258]
cmp eax, ebx
je 0x108940a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x300]
call fcn.0104163c
lea ecx, [ebp - 0x270]
call fcn.01042e75
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10892eb
pop edi
pop esi
cmp dword [ebp + 0xc], ebx
pop ebx
mov eax, 0x101fe00
je 0x108944d
mov eax, 0x101fdec
push eax
push 0x101fdb0
call fcn.010a163c
lea ecx, [ebp - 0x280]
call fcn.01042e75
lea ecx, [ebp - 0x28c]
call fcn.01042e75
lea ecx, [ebp - 0x25c]
call fcn.01040c75
mov ecx, dword [ebp - 4]
call fcn.01041c5f
leave
ret 8
Function at 0x109d5b1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10cf230]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edi
call fcn.010424ee
mov ebx, 0x100
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
call fcn.01043096
mov esi, eax
cmp esi, edi
jl 0x109d68c
jmp 0x109d5ff
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x109d671
cmp eax, edi
jne 0x109d675
cmp dword [ebp - 0x18], 1
jne 0x109d687
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
cmp esi, edi
jl 0x109d68c
mov ecx, dword [ebp - 0x34]
push edi
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0109d488
test eax, eax
je 0x109d687
inc dword [ebp - 0x1c]
and dword [ebp - 0x18], 0
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
call fcn.01043096
mov esi, eax
test esi, esi
jge 0x109d5fd
jmp 0x109d68c
xor esi, esi
jmp 0x109d68c
jg 0x109d67b
mov esi, eax
jmp 0x109d68c
and eax, 0xffff
or eax, 0x80070000
jmp 0x109d677
mov esi, 0x80004005
lea ecx, [ebp - 0x30]
call fcn.01042e75
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.01041c5f
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x109e649
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10cf230]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
push eax
xor esi, esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x109e69a
cmp dword [ebp - 0x108], 2
jne 0x109e69a
cmp dword [ebp - 0x114], 5
ja 0x109e697
jne 0x109e69a
cmp dword [ebp - 0x110], esi
jbe 0x109e69a
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.01041c5f
leave
ret
Function at 0x10a1480
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
xor ebx, ebx
cmp byte [0x10ecb2c], bl
je 0x10a1632
lea ecx, [ebp - 0x88]
call fcn.0107e139
lea eax, [ebp - 0x88]
push eax
push 1
push 0x11
call fcn.0107c911
test eax, eax
lea ecx, [ebp - 0x88]
jl 0x10a162d
push 0xffffffffffffffff
push 0x10220d0
call fcn.0107e578
test eax, eax
jl 0x10a1627
lea ecx, [ebp - 0x20]
call fcn.010424ee
lea eax, [ebp - 0x20]
push eax
push ebx
lea ecx, [ebp - 0x88]
call fcn.0107f08b
test eax, eax
jl 0x10a161f
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10a1523
mov byte [0x10ecb2c], bl
jmp 0x10a161f
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x2c]
call fcn.010424ee
cmp dword [ebp + 0x10], ebx
movzx eax, word [ebp - 2]
je 0x10a1584
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0x1022078
push eax
call fcn.01043352
add esp, 0x30
jmp 0x10a15ba
push dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0x1022028
push eax
call fcn.01043352
add esp, 0x2c
cmp eax, ebx
jl 0x10a160e
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcstombs]
push ebx
push dword [ebp - 0x2c]
push ebx
call esi
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 0x10], eax
jbe 0x10a160d
push edi
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
je 0x10a160c
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
push edi
call esi
add esp, 0xc
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.01042e75
lea ecx, [ebp - 0x20]
call fcn.01042e75
lea ecx, [ebp - 0x88]
call fcn.0104163c
pop ebx
leave
ret 0xc
Function at 0x10a1901
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0x10223a8
push 0x1022348
call fcn.010a163c
mov ecx, 0x10f2bd4
call fcn.0108166c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xfffffffc
push eax
mov ecx, 0x10f2bd4
call fcn.010a1809
call fcn.010a18b9
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
inc eax
je 0x10a1964
jmp 0x10a195d
leave
ret 0x1c
Function at 0x10b84fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov eax, ecx
jne 0x10b8514
mov eax, 0x80004003
jmp 0x10b85b6
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
jne 0x10b8526
mov eax, 0x80004003
jmp 0x10b85b5
cmp dword [eax + 0x28], edi
push esi
mov dword [ebp + 0x10], edi
je 0x10b8554
mov edx, dword [eax + 0x30]
cmp dword [ebp + 0xc], edx
jae 0x10b853a
mov edx, dword [ebp + 0xc]
mov esi, dword [eax + 0x2c]
mov edi, dword [ebp + 8]
mov ecx, edx
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]
mov dword [ebx], edx
jmp 0x10b85b1
mov ecx, dword [eax + 0x20]
cmp ecx, 0xffffffff
jne 0x10b8565
mov dword [ebp + 0x10], 0x8000ffff
jmp 0x10b85b1
cmp dword [eax + 0x24], edi
je 0x10b855c
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10b85b1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jne 0x10b858e
push 0x57
pop eax
cmp eax, edi
jg 0x10b859b
call esi
cmp eax, edi
jne 0x10b85ae
push 0x57
pop eax
jmp 0x10b85ae
call esi
cmp eax, edi
jne 0x10b85a4
push 0x57
pop eax
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
pop edi
pop ebp
ret 0xc
Function at 0x10c120b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_RetrieveUrlCacheEntryFileW]
xor eax, eax
mov esi, ecx
push eax
lea ecx, [ebp - 8]
push ecx
push eax
lea ebx, [esi + 0x68]
push dword [ebx]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10c12ff
mov ecx, ebx
call fcn.010425a8
lea ecx, [esi + 0x19c]
lea edi, [eax + eax + 2]
mov dword [ebp - 0xc], ecx
call fcn.010425a8
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
lea eax, [eax + edi + 0x50]
mov dword [esi + 0x184], eax
add esi, 0x17c
push esi
push eax
call fcn.010c4350
test eax, eax
jl 0x10c1376
mov esi, dword [esi]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x18]
test eax, eax
jl 0x10c1376
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10c12a6
mov eax, 0x8000ffff
jmp 0x10c1376
mov dword [eax], 0x50
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x50]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
lea ecx, [edi + eax + 0x50]
mov dword [eax + 8], ecx
push dword [ebx]
mov eax, dword [ebp - 4]
push edi
push dword [eax + 4]
call fcn.010c0d8e
test eax, eax
jl 0x10c1376
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
push dword [eax + 8]
call fcn.010c0d8e
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jge 0x10c12fb
mov eax, esi
jmp 0x10c1376
xor eax, eax
jmp 0x10c1376
cmp eax, 0x7a
je 0x10c130a
test eax, eax
jle 0x10c1376
jmp 0x10c136c
lea eax, [esi + 0x17c]
push eax
push dword [ebp - 8]
call fcn.010c4350
test eax, eax
jl 0x10c1376
mov eax, dword [esi + 0x17c]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x10c1376
cmp dword [ebp - 4], 0
je 0x10c129c
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call edi
test eax, eax
je 0x10c135a
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [esi + 0x184], ecx
jmp 0x10c1376
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10c136a
call esi
jmp 0x10c1376
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret