joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10089110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x10c], 0x104
mov ebx, 3
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call esi
test eax, eax
jne 0x100892de
push edi
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.1006b407
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100892d6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x100892ce
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x100892ce
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x100892bf
push ebx
lea eax, [ebp - 0x108]
push 0x100fafb4
push eax
call fcn.100a19a0
add esp, 0xc
test eax, eax
jne 0x1008928d
xor ebx, ebx
jmp 0x100892ce
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x100892bf
push 3
lea eax, [ebp - 0x108]
push 0x100fafb4
push eax
call fcn.100a19a0
add esp, 0xc
test eax, eax
je 0x100892b9
mov ebx, 2
jmp 0x100892ce
mov eax, dword [ebp - 0x114]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x118]
call esi
push dword [ebp - 0x11c]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x10089960
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0x10
lea eax, [esi + 0x20]
jb 0x10089981
mov eax, dword [eax]
push eax
push 0x100
lea eax, [ebp - 0x114]
push eax
push 0x100d3e22
push str.Guid
push str.ActiveGuid
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x114]
call fcn.10075490
test eax, eax
je 0x100899dc
movups xmm0, xmmword [ebp - 0x14]
mov al, byte [ebp - 0xf4]
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x114]
movups xmmword [esi + 0x48], xmm0
movups xmm0, xmmword [ebp - 0x104]
movups xmmword [esi + 0x58], xmm0
mov byte [esi + 0x68], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x100899f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x1010e070]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, ecx
call edi
mov esi, eax
add esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
call edi
cmp esi, eax
jae 0x10089afd
lea eax, [ebx + 0x48]
test eax, eax
jne 0x10089b1a
cmp dword [ebx + 0x34], 0x10
lea edi, [ebx + 0x20]
jb 0x10089a3c
mov eax, dword [edi]
jmp 0x10089a3e
mov eax, edi
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x10089a63
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x10089a6b
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 0x70]
mov esi, dword [ebx + 0x74]
cmp edx, eax
jne 0x10089a79
cmp ecx, esi
je 0x10089ae2
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x14], 0x10
jb 0x10089a8b
mov edi, dword [edi]
lea eax, [esp + 0x40]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x10089ab0
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x10089ab8
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jne 0x10089aca
cmp edi, edx
je 0x10089adb
mov ecx, ebx
call fcn.10089960
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x18], eax
lea eax, [ebx + 0x48]
jb 0x10089a27
lea eax, [ebx + 0x48]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x64]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4

Function at 0x100a874e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a85cd
Function at 0x100b2cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.1008f060
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x100b2e53
mov dword [ebp - 0x420], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x424], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.1008f060
add esp, 0xc
mov ecx, dword [ebp - 0x428]
add ecx, 0x24
call fcn.10001e70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x418], eax
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x100d6cf4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x100b2e1a
cmp dword [ebp - 0x418], 0
je 0x100b2dec
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
test edx, edx
je 0x100b2dec
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
lea edx, [ebp - 0x414]
push edx
push str._sQX_d._s
push 0x102
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.10001eb4
add esp, 0x1c
jmp 0x100b2e18
mov ecx, dword [ebp - 0x424]
push ecx
lea edx, [ebp - 0x414]
push edx
push str._sQX_d.tmp
push 0x102
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.10001eb4
add esp, 0x18
jmp 0x100b2e44
cmp dword [ebp - 0x418], 0
je 0x100b2e44
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
test edx, edx
je 0x100b2e44
mov eax, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10001442
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4
Function at 0x100b30b0
Capabilities:
Check if file exists
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.1008f060
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.100a15c0
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100b3154
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x100b3154
mov ecx, dword [ebp - 0x214]
push ecx
push 0x100d6b90
push 2
push 0x100d6c28
call fcn.1006b794
add esp, 0x10
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x218]
add ecx, 0x24
call fcn.10001e70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 0xc], 0
je 0x100b3190
mov ecx, dword [ebp - 0x218]
add ecx, 0x24
call fcn.10001e70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
push eax
push str.CHttpDownloadImp::MoveDownloadFile__target:_s
push 2
push str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadHttpDownloadHttpDownload.cpp
call fcn.1006b794
add esp, 0x10
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 8
Function at 0x100b3740
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
jne 0x100b3756
xor eax, eax
jmp 0x100b3899
mov dword [ebp - 8], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.1005fea0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.1005ff40
push eax
lea ecx, [ebp - 0x14]
call fcn.1005fe70
movzx eax, al
test eax, eax
je 0x100b37d9
lea ecx, [ebp - 0x38]
call fcn.1005fd90
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.10060a10
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov dword [ebp - 8], 0
jmp 0x100b3896
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
call fcn.1005fe50
add eax, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
sub eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jbe 0x100b388d
cmp dword [ebp - 0x18], 0x12c
jbe 0x100b388d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 8]
jbe 0x100b388d
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
cvtsi2sd xmm0, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100fb100]
divsd xmm0, qword [0x100fb080]
movsd qword [ebp - 0x2c], xmm0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
sub edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
cvtsi2sd xmm0, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100fb100]
divsd xmm0, qword [ebp - 0x2c]
call fcn.100bb5f1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x100b3896
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100b4420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c579b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x230]
push eax
call fcn.100b4610
add esp, 4
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.1008f060
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push str.qmdl
lea ecx, [ebp - 0x230]
call fcn.10001e70
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x100b44f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.10001e70
push eax
push str._sqmdl_u.tmp
push 0xffffffffffffffff
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.10001eb4
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.100028c0
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10001faa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x100b4540
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c57cb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100b4610
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10002800
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.10002804
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x100b45a8
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.1000f6ae
push str.QMDownload
lea ecx, [ebp - 0x28]
call fcn.1000557b
push 0
lea ecx, [ebp - 0x28]
call fcn.10001e70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000289b
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001faa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x100b4610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.1008f060
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
call fcn.100028c0
mov ecx, dword [ebp - 0x214]
or ecx, 1
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x100b50d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x118
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100b5125
mov eax, 1
jmp 0x100b5170
cmp dword [ebp - 0x11c], 5
jne 0x100b515e
cmp dword [ebp - 0x118], 1
jne 0x100b5146
movzx edx, word [ebp - 0xc]
cmp edx, 1
jge 0x100b5146
xor eax, eax
jmp 0x100b5170
cmp dword [ebp - 0x118], 0
jne 0x100b515c
movzx eax, word [ebp - 0xc]
cmp eax, 3
jge 0x100b515c
xor eax, eax
jmp 0x100b5170
jmp 0x100b516b
cmp dword [ebp - 0x11c], 5
jae 0x100b516b
xor eax, eax
jmp 0x100b5170
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x100b5180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100b51f0
cmp dword [ebp - 0x114], 6
jb 0x100b51e9
cmp dword [ebp - 0x114], 6
jne 0x100b51f0
cmp dword [ebp - 0x110], 0
jne 0x100b51f0
mov eax, 1
jmp 0x100b51f2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x100b5340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100b5383
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100b536c
xor eax, eax
jmp 0x100b53d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x100b5320
push 0
push 0
call fcn.100974fc
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x100b53ca
mov dword [ebp - 8], 1
jmp 0x100b53d1
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100b7de0
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0xffffffff
jne 0x100b7df6
xor eax, eax
jmp 0x100b7e75
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100b7e0f
xor eax, eax
jmp 0x100b7e75
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x100b7e33
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jne 0x100b7e33
mov eax, 1
jmp 0x100b7e75
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jg 0x100b7e54
jl 0x100b7e50
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x1c]
jae 0x100b7e54
xor eax, eax
jmp 0x100b7e75
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.100b7d40
test eax, eax
jne 0x100b7e68
xor eax, eax
jmp 0x100b7e75
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x100b7ee0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0xffffffff
jne 0x100b7ef6
xor eax, eax
jmp 0x100b7f3d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100b7f0f
xor eax, eax
jmp 0x100b7f3d
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jne 0x100b7f33
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jne 0x100b7f33
mov dword [ebp - 8], 1
jmp 0x100b7f3a
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x100badf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10112cfc], 0
jne 0x100baea5
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.1008f060
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
mov dword [0x10112cfc], edx
cmp dword [0x10112cfc], 0
je 0x100bae91
mov dword [ebp - 0x218], 1
jmp 0x100bae9b
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
jmp 0x100baeaa
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x4012a3e2
Capabilities:
Encode data using xor

Disassembly:
call 0x4012a35b
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x4012a38b
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x4012a3a7
xor edx, 0
jmp 0x4012a3b2
xor edx, edx
jmp 0x4012a3c9
jmp 0x4012a3d5
xor eax, eax
push 0x8427d7c0
call 0x4012a3e2
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x4012a41e
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x4012a3f7
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x4012a435
add eax, 0
jno 0x4012a43a
add esi, 0
ret 0x10

Function at 0x4012b1a3
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x4012b1c5
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x4012b367
cmp edi, dword [ebp + 0x10]
jb 0x4012b367
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.4012ac8f
inc edi
jmp 0x4012b24e
jmp 0x4012b25b
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.4012ac8f
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.4012ac8f
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x4012b2af
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x4012b293
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.4012b2dd
add dword [eax], 0x39
jle 0x4012b2b9
sub al, 0xf5
mov ch, al
call fcn.4012b2f2
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10