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

Disassembly:
push 0x50
mov eax, 0x100b8fad
call fcn.10077012
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.100018b0
test al, al
jne 0x100650f9
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001751
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.10068a89
call fcn.10020926
mov ecx, edi
mov ebx, eax
call fcn.100014c6
mov edi, eax
test edi, edi
je 0x1006503f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10065043
xor eax, eax
jmp 0x10065056
lea eax, [esi + esi]
call fcn.10081030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100348d3
push eax
lea ecx, [ebp - 0x5c]
call fcn.1000171b
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10068b9c
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10001789
mov ecx, edi
call fcn.10004ff5
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x100650f1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x100650e8
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.1006e2be
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100650e8
cmp dword [ebp - 0x34], esi
jne 0x100650e8
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10001789
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.1007705c
ret 8
Function at 0x10066002
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100b8680
call fcn.10076fa9
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.10071bb0
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.10071bb0
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x100fc398]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x100660aa
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.100640ae
jmp 0x100660df
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x100660df
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.1006422e
test eax, eax
je 0x100660df
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.10020ad0
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.100644ad
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.10064206
cmp ebx, edi
je 0x10066154
lea eax, [ebp]
push eax
push edi
push 0x100cfa88
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100cfa90
push eax
call fcn.100748a6
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10066154
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.10074a68
push esi
call fcn.10074b5c
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1006ef11
add ebp, 0x414
leave
ret

Function at 0x10068d5c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x1006bd70
Capabilities:
Parse pe header

Disassembly:
cmp edi, 0x40
jae 0x1006bd78
xor eax, eax
ret
cmp word [ecx], 0x5a4d
jne 0x1006bd75
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp edi, edx
jb 0x1006bd75
cmp dword [eax + ecx], 0x4550
jne 0x1006bd75
test byte [eax + ecx + 0x16], 2
je 0x1006bd75
cmp word [eax + ecx + 0x14], 0xe0
jne 0x1006bd75
push esi
lea esi, [eax + ecx + 0xf8]
movzx eax, word [eax + ecx + 6]
xor edx, edx
test eax, eax
jle 0x1006bdd3
lea ecx, [esi + 0x10]
jmp 0x1006bdc0
mov esi, dword [ecx + 4]
add esi, dword [ecx]
cmp esi, edi
ja 0x1006bdda
add edx, 1
add ecx, 0x28
cmp edx, eax
jl 0x1006bdc0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1006cdf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d50b8
push 0x10076320
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100e13e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x1006ce40
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1006ce8e
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006ce8e
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006ceae
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006ef11
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006cf83
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006cf83
test eax, 0x100
jne 0x1006cf83
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x1006cefd
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006ce60
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006cee8
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006cee8
cmp eax, 0x40
jb 0x1006cee8
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006cf3c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006ce60
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006cf5c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006ce60
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006ce90
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006ce60
Function at 0x1006dc30
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1006dc4b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
test eax, eax
je 0x1006dcb3
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006dc92
mov dword [esp + 4], ecx
mov eax, 1
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.1006d8e0
test eax, eax
jne 0x1006dcbc
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x1006dcdf
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
test bl, 4
jne 0x1006dceb
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006ef11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e13e0]
jne 0x1006ef1b
repz ret
jmp fcn.1007ad8f
Function at 0x1007ec1b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100e1b88]
je 0x1007ec36
inc edi
cmp edi, 0x17
jb 0x1007ec27
cmp edi, 0x17
jae 0x1007edb6
push ebp
push 3
call fcn.10087ff4
cmp eax, 1
pop ecx
je 0x1007ed82
push 3
call fcn.10087ff4
test eax, eax
pop ecx
jne 0x1007ec6a
cmp dword [0x100fc628], 1
je 0x1007ed82
cmp ebx, 0xfc
je 0x1007edb5
push 0x100bcaf8
mov ebx, 0x314
push ebx
mov ebp, 0x100fcb70
push ebp
call fcn.10076527
add esp, 0xc
test eax, eax
je 0x1007eca0
push esi
push esi
push esi
push esi
push esi
call fcn.1006ecf1
add esp, 0x14
push 0x104
mov esi, 0x100fcb89
push esi
push 0
mov byte [0x100fcc8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007ece4
push 0x100bcae0
push 0x2fb
push esi
call fcn.10076527
add esp, 0xc
test eax, eax
je 0x1007ece4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1006ecf1
add esp, 0x14
push esi
call fcn.1006ee70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007ed29
push esi
call fcn.1006ee70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100fce84
push 0x100bcadc
sub ecx, eax
push ecx
push eax
call fcn.10075c73
add esp, 0x14
test eax, eax
je 0x1007ed29
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1006ecf1
add esp, 0x14
jmp 0x1007ed2b
xor esi, esi
push 0x100bcad8
push ebx
push ebp
call fcn.100764b6
add esp, 0xc
test eax, eax
je 0x1007ed4b
push esi
push esi
push esi
push esi
push esi
call fcn.1006ecf1
add esp, 0x14
push dword [edi*8 + 0x100e1b8c]
push ebx
push ebp
call fcn.100764b6
add esp, 0xc
test eax, eax
je 0x1007ed6d
push esi
push esi
push esi
push esi
push esi
call fcn.1006ecf1
add esp, 0x14
push 0x12010
push 0x100bcab0
push ebp
call fcn.10087e37
add esp, 0xc
jmp 0x1007edb5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1007edb5
cmp ebp, 0xffffffff
je 0x1007edb5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100e1b8c]
push dword [esi]
call fcn.1006ee70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10087e37
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007a7a0
xor ebx, ebx
cmp dword [0x100fd0cc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10087f0d
push 0x100bdd44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10087fed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bdd38
push edi
call esi
cmp eax, ebx
je 0x10087fed
push eax
call fcn.1007a732
mov dword [esp], 0x100bdd28
push edi
mov dword [0x100fd0cc], eax
call esi
push eax
call fcn.1007a732
mov dword [esp], 0x100bdd14
push edi
mov dword [0x100fd0d0], eax
call esi
push eax
call fcn.1007a732
mov dword [0x100fd0d4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1007a32e
test eax, eax
pop ecx
pop ecx
je 0x10087edb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006ecf1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10087f0d
push 0x100bdcf8
push edi
call esi
push eax
call fcn.1007a732
cmp eax, ebx
pop ecx
mov dword [0x100fd0dc], eax
je 0x10087f0d
push 0x100bdce0
push edi
call esi
push eax
call fcn.1007a732
pop ecx
mov dword [0x100fd0d8], eax
mov eax, dword [0x100fd0d8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10087f92
cmp dword [0x100fd0dc], ecx
je 0x10087f92
push eax
call fcn.1007a7a9
push dword [0x100fd0dc]
mov esi, eax
call fcn.1007a7a9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10087f92
cmp edi, ebx
je 0x10087f92
call esi
cmp eax, ebx
je 0x10087f5f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10087f5f
test byte [ebp - 0x18], 1
jne 0x10087f92
lea eax, [ebp - 0x10]
push eax
call fcn.1007a365
test eax, eax
pop ecx
je 0x10087f7a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006ecf1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10087f89
or dword [ebp + 0x10], 0x200000
jmp 0x10087fcd
or dword [ebp + 0x10], 0x40000
jmp 0x10087fcd
mov eax, dword [0x100fd0d0]
cmp eax, dword [ebp - 8]
je 0x10087fcd
push eax
call fcn.1007a7a9
cmp eax, ebx
pop ecx
je 0x10087fcd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10087fcd
mov eax, dword [0x100fd0d4]
cmp eax, dword [ebp - 8]
je 0x10087fcd
push eax
call fcn.1007a7a9
cmp eax, ebx
pop ecx
je 0x10087fcd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100fd0cc]
call fcn.1007a7a9
cmp eax, ebx
pop ecx
je 0x10087fed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10087fef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008d3b9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100fd188], 0
push esi
jne 0x1008d32c
call fcn.1008d257
test eax, eax
je 0x1008d36f
mov eax, dword [0x100fd188]
cmp eax, 1
jne 0x1008d34d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1008d36f
pop esi
ret
push eax
call dword [0x100fd190]
test eax, eax
jne 0x1008d3b7
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 0x1008d373
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100fd188]
call dword [0x100fd190]
mov edi, eax
test edi, edi
je 0x1008d39a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1008d3b6
lea edi, [esi + 0xff0]
push esi
push dword [0x100fd188]
call dword [0x100fd18c]
add esi, 0x10
cmp esi, edi
jb 0x1008d3a0
mov eax, esi
pop edi
pop esi
ret
jmp 0x1008d319

Function at 0x1008d5b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x19c
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1008d5e7
xor eax, eax
jmp 0x1008d67f
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10071bb0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1008d625
jmp 0x1008d663
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008d63a
jmp 0x1008d663
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x1008d653
jmp 0x1008d663
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008d5f9
cmp dword [ebp - 4], 0
je 0x1008d67c
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1008e220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100fd308], 0
jne 0x1008e2b8
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071bb0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [0x100fd308], ecx
xor eax, eax
cmp dword [0x100fd308], 0
setne al
jmp 0x1008e2bd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ef11
mov esp, ebp
pop ebp
ret
Function at 0x1008ef00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x30], 0
je 0x1008ef47
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call fcn.1008ee40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call fcn.1008eec0
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0
je 0x1008ef69
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.1008e4f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x1008ef8b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.1008e4f0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x1008efab
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x34], 0
je 0x1008efcb
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0
je 0x1008efeb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
je 0x1008f03a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0xbb8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret
Function at 0x1008ff30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.10071bb0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1008ff85
mov eax, 1
jmp 0x1008ffd0
cmp dword [ebp - 0x124], 5
jne 0x1008ffbe
cmp dword [ebp - 0x120], 1
jne 0x1008ffa6
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x1008ffa6
xor eax, eax
jmp 0x1008ffd0
cmp dword [ebp - 0x120], 0
jne 0x1008ffbc
movzx eax, word [ebp - 0x14]
cmp eax, 3
jge 0x1008ffbc
xor eax, eax
jmp 0x1008ffd0
jmp 0x1008ffcb
cmp dword [ebp - 0x124], 5
jae 0x1008ffcb
xor eax, eax
jmp 0x1008ffd0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ef11
mov esp, ebp
pop ebp
ret

Function at 0x100904b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3e73
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001751
mov byte [ebp - 4], 1
mov ecx, dword [0x100cb588]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x100cb588]
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.10037726
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x100cb588]
je 0x1009056a
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000190b
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000179e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10001789
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.10001751
mov dword [ebp - 0x64], eax
call fcn.100904b0
add esp, 0x1c
push 0
lea ecx, [ebp + 8]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1009058c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100905b5
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001789
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001789
mov eax, dword [ebp - 0x54]
jmp 0x100905f7
mov dword [ebp - 0x58], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001789
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001789
mov eax, dword [ebp - 0x58]
jmp 0x100905f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006ef11
mov esp, ebp
pop ebp
ret