joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000adb0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010106f
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x1000ade8
xor eax, eax
jmp 0x1000af94
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1000adf9
xor eax, eax
jmp 0x1000af94
mov edx, dword [ebp + 8]
push edx
call fcn.100ab667
add esp, 4
mov dword [ebp - 0x894], eax
cmp dword [ebp - 0x894], 0x104
jl 0x1000ae1e
xor eax, eax
jmp 0x1000af94
push 0x410
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.1008e2a0
add esp, 0xc
push 0x1010fd64
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x888], eax
cmp dword [ebp - 0x888], 0xffffffff
je 0x1000ae8e
mov ecx, dword [ebp - 0x888]
and ecx, 1
je 0x1000ae8e
mov edx, dword [ebp - 0x888]
and edx, 0xfffffffe
mov dword [ebp - 0x888], edx
mov eax, dword [ebp - 0x888]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x884]
call fcn.1000b3c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x884]
call fcn.1000b7a0
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 0
je 0x1000af5b
lea ecx, [ebp - 0x884]
call fcn.1000bcf0
test eax, eax
je 0x1000aee7
lea ecx, [ebp - 0x884]
call fcn.1000b900
mov dword [ebp - 0x88c], eax
jmp 0x1000aeb8
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x884]
call fcn.1000ba40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x884]
call fcn.1000bcd0
test eax, eax
je 0x1000af22
lea ecx, [ebp - 0x890]
call fcn.10007150
push eax
call fcn.1000adb0
add esp, 4
jmp 0x1000af36
lea ecx, [ebp - 0x890]
call fcn.10007150
push eax
call fcn.1000ad00
add esp, 4
lea ecx, [ebp - 0x884]
call fcn.1000b900
mov dword [ebp - 0x88c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.10006cb0
jmp 0x1000aeb8
lea ecx, [ebp - 0x884]
call fcn.1000b750
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000a630
add esp, 4
mov dword [ebp - 0x898], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x884]
call fcn.1000b400
mov eax, dword [ebp - 0x898]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x1000bb70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.100086a0
cmp eax, 0x104
jle 0x1000bb9d
xor eax, eax
jmp 0x1000bcc1
mov dword [ebp - 0x110c], 0x400
push 0x800
push 0
lea eax, [ebp - 0x1104]
push eax
call fcn.1008e2a0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x904]
push ecx
call fcn.1008e2a0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.10007150
push eax
lea edx, [ebp - 0x1104]
push edx
call fcn.1000b3a0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x1000bc0c
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x1000bc0c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x1110], 0xa
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x1108], 0
jmp 0x1000bc47
mov edx, dword [ebp - 0x1108]
add edx, 1
mov dword [ebp - 0x1108], edx
cmp dword [ebp - 0x1108], 0xa
jge 0x1000bcbf
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.1000bd80
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x1104]
push edx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea ecx, [ebp - 0x904]
push ecx
call fcn.1000b380
add esp, 8
lea edx, [ebp - 0x904]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000bcba
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.100070e0
mov eax, 1
jmp 0x1000bcc1
jmp 0x1000bc38
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x1000c140
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x14]
and eax, 0x8000000f
jns 0x1000c158
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
je 0x1000c163
xor al, al
jmp 0x1000c318
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000c18f
xor al, al
jmp 0x1000c318
mov dword [ebp - 0x40], 0
xor edx, edx
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000c1c9
cmp dword [ebp - 0x40], 0
je 0x1000c1c9
cmp dword [ebp - 0x3c], 0
jl 0x1000c1da
jg 0x1000c1c9
cmp dword [ebp - 0x40], 0x1000000
jbe 0x1000c1da
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000c318
push 0x1000000
call fcn.10081117
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000c21e
cmp dword [ebp - 0x14], 0
jne 0x1000c243
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 1
mov eax, dword [ebp - 0x20]
push eax
call fcn.10081109
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000c318
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.1000c4e0
mov dword [ebp - 4], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1000c2ae
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
push 1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10081109
add esp, 8
xor al, al
jmp 0x1000c318
mov dword [ebp - 0x30], 0
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000c2f8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
push 1
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10081109
add esp, 8
xor al, al
jmp 0x1000c318
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
push 1
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10081109
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000ca80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x1000ca9e
mov ecx, dword [ebp - 8]
call fcn.1000ccf0
jmp 0x1000cab1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x1000cab1
mov ecx, dword [ebp - 8]
call fcn.1000cb70
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1000cb70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x1000cb8b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jge 0x1000cbf7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1000cbcf
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x1000cbd6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1000cb82
jmp 0x1000cc02
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jge 0x1000cc6e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x1000cc46
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x1000cc4d
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1000cbf9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x1000ccac
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x1000ccb3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x1000ccf0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x1000cd0b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jge 0x1000cd77
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1000cd4f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x1000cd56
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1000cd02
mov esp, ebp
pop ebp
ret

Function at 0x10010580
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10010604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100105db
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x100105d2
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x10010606
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.100126f0
mov ecx, dword [ebp - 8]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10010770
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x100107ba
jmp 0x10010893
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10010803
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10010893
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [ebp - 0x228]
je 0x1001086f
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.100ab682
add esp, 8
test eax, eax
jne 0x1001086f
mov ecx, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x240]
call fcn.100108b0
test eax, eax
je 0x1001086f
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x238], edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100126d0
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10010819
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 8
Function at 0x100188f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x130], ecx
cmp dword [0x10146008], 0
jl 0x1001893c
cmp dword [0x10146008], 0
je 0x10018927
mov dword [ebp - 0x124], 1
jmp 0x10018931
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
jmp 0x10018a1a
mov dword [0x10146008], 0
push 0x24
push 0
lea eax, [ebp - 0x154]
push eax
call fcn.1008e2a0
add esp, 0xc
push 0x11c
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x100189b4
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100189b4
xor eax, eax
jmp 0x10018a1a
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x100189e9
lea ecx, [ebp - 0x154]
push ecx
call dword [ebp - 0x128]
jmp 0x100189ed
xor eax, eax
jmp 0x10018a1a
movzx edx, word [ebp - 0x154]
cmp edx, 9
je 0x10018a05
movzx eax, word [ebp - 0x154]
cmp eax, 6
jne 0x10018a18
mov dword [0x10146008], 1
mov eax, 1
jmp 0x10018a1a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x10020bc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x101103ac]
mov word [ebp - 0x4004], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4002]
push ecx
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x4008], 0
mov dword [ebp - 0x4010], 0
cmp dword [ebp + 0xc], 0
je 0x10020c1a
cmp dword [ebp + 0x10], 0
jne 0x10020c21
xor eax, eax
jmp 0x10020d22
lea edx, [ebp - 0x4010]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x4008], eax
cmp dword [ebp - 0x4008], 0
je 0x10020c4c
cmp dword [ebp - 0x4008], 0x3fff
jbe 0x10020c53
xor eax, eax
jmp 0x10020d22
lea ecx, [ebp - 0x4004]
push ecx
mov edx, dword [ebp - 0x4008]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10020d20
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x400c]
push edx
push 0x101103b0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10020d20
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.1008e2a0
add esp, 0xc
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x101103b4
mov eax, dword [ebp + 0x14]
sub eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10021e30
add esp, 0x1c
mov eax, 1
jmp 0x10020d22
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10020d40
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x10020d73
mov ecx, dword [ebp - 4]
and ecx, 2
jne 0x10020d6c
mov edx, dword [ebp - 4]
and edx, 1
jne 0x10020d6c
mov eax, dword [ebp - 4]
and eax, 4
je 0x10020d73
mov eax, 1
jmp 0x10020d81
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10021080
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010224e
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x424], 0
cmp dword [ebp + 8], 0
je 0x10021155
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10021155
cmp dword [ebp + 0xc], 0
je 0x100210e6
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x10021134
push 0x410
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x10021132
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x424], 1
jmp 0x10021155
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x10021155
mov dword [ebp - 0x424], 1
lea ecx, [ebp + 0x10]
call fcn.10021830
movzx ecx, al
test ecx, ecx
je 0x10021173
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebp + 0x10]
call fcn.10021860
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.10021770
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 0x30
Function at 0x100211b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ecx
mov ecx, dword [ebp - 0x418]
add ecx, 8
call fcn.10008ae0
movzx eax, al
test eax, eax
je 0x1002121b
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 8
call fcn.1001b110
push eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [edx + 0x14]
call ecx
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 8
call fcn.1001b240
mov ecx, dword [ebp - 0x418]
add ecx, 0x18
call fcn.10008ae0
movzx edx, al
test edx, edx
je 0x10021261
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 0x18
call fcn.1001b110
push eax
call fcn.10021990
add esp, 8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 0x18
call fcn.1001b240
mov ecx, dword [ebp - 0x418]
add ecx, 4
call fcn.10008ae0
movzx eax, al
test eax, eax
je 0x10021307
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10110190
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 4
call fcn.1001b110
push eax
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 4]
call eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 4
call fcn.1001b240
mov ecx, dword [ebp - 0x418]
add ecx, 0x10
call fcn.10008ae0
movzx ecx, al
test ecx, ecx
je 0x10021377
mov dword [ebp - 0x41c], 0x104
mov dword [ebp - 0x420], 1
lea edx, [ebp - 0x41c]
push edx
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 0x10
call fcn.1001b110
push eax
lea eax, [ebp - 0x420]
push eax
push 0x101101ac
push 0x101101b4
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 0x10
call fcn.1001b240
mov ecx, dword [ebp - 0x418]
add ecx, 0x14
call fcn.10008ae0
movzx ecx, al
test ecx, ecx
je 0x100213fa
push 0x208
push 0
lea edx, [ebp - 0x414]
push edx
call fcn.1008e2a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 0x14
call fcn.1001b110
push eax
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x418]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [eax + 4]
call edx
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 0x14
call fcn.1001b240
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret