joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100065af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [edi + 8], eax
test eax, eax
js 0x100065cd
cmp eax, 3
jl 0x100065d0
mov dword [edi + 8], esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000664d
cmp ecx, 0x1869f
ja 0x1000664d
mov eax, dword [ebp + 0x14]
push esi
push esi
push esi
push esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10006608
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e8480
mov dword [ebx], eax
jmp 0x10006655
push esi
push esi
push edi
push 0x1000665e
push esi
push esi
call fcn.10096108
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x10006636
push esi
push esi
push edi
push 0x1000665e
push esi
push esi
call fcn.10096108
add esp, 0x18
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], esi
jne 0x10006648
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x2dc6c0
jmp 0x10006604
xor esi, esi
inc esi
jmp 0x10006655
add ecx, 0xf4240
mov dword [ebx], ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10006b67
Capabilities:
Get common file path

Disassembly:
push 0x43c
mov eax, 0x100bbfcb
call fcn.1008b481
mov ebx, ecx
mov esi, 0x20a
lea eax, [ebp - 0x430]
push esi
xor edi, edi
push edi
push eax
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push edi
push eax
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edi, [ebx + 0x20]
cmp dword [edi], 0
jne 0x10006bd7
push edi
call fcn.100b2310
mov ecx, dword [edi]
test ecx, ecx
je 0x10006c79
mov esi, dword [ecx]
lea eax, [ebx + 4]
mov edx, ebx
neg edx
sbb edx, edx
and edx, eax
push edx
call dword [esi + 4]
xor ecx, ecx
mov dword [ebp - 0x434], 7
xor eax, eax
mov dword [ebp - 0x438], ecx
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
mov dword [ebp - 4], ecx
push eax
mov ecx, ebx
call fcn.1000676f
lea edx, [ebp - 0x220]
lea ecx, [ebx + 0x28]
xor ebx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10006c2c
sub edx, esi
lea eax, [ebp - 0x220]
sar edx, 1
push edx
push eax
call fcn.10005c3c
mov ecx, dword [edi]
lea edx, [ebp - 0x448]
cmp dword [ebp - 0x434], 8
lea esi, [ebp - 0x220]
push esi
cmovae edx, dword [ebp - 0x448]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
push ebx
push 1
lea ecx, [ebp - 0x448]
call fcn.10001f53
call fcn.1008b42b
ret
Function at 0x10006dcf
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x10006ef5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006ef5
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x10006ef3
cmp ebx, 0xffffffff
je 0x10006ef3
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [ebp - 8], edi
jne 0x10006eec
lea ecx, [esi - 1]
cmp ecx, 0x27ff
ja 0x10006eec
push esi
call fcn.1008aae9
mov edi, eax
pop ecx
test edi, edi
je 0x10006eec
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x14], eax
call fcn.1008aae9
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x10006e83
push edi
call fcn.1008aaf2
jmp 0x10006eeb
push esi
push 0
push edi
call fcn.1008dc90
lea eax, [esi + 0x40]
push eax
push 0
push dword [ebp - 0x10]
call fcn.1008dc90
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
add esp, 0x18
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006edc
cmp dword [ebp - 0xc], esi
jne 0x10006edc
lea eax, [ebp - 0x14]
mov edx, esi
push eax
push dword [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.10006246
add esp, 0xc
test al, al
je 0x10006edc
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.1001b747
push edi
call fcn.1008aaf2
push dword [ebp - 0x10]
call fcn.1008aaf2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret 8
Function at 0x10007af0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
cmp dword [ebp + 8], ebx
je 0x10007baf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
cmp dword [esi + 4], ebx
je 0x10007bc9
xor ecx, ecx
lea eax, [esi + 0xc]
inc ecx
cmp dword [eax], ebx
je 0x10007bc9
push 0x4ff
push 0x64
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x10007bab
cmp eax, 0xffffffff
je 0x10007bc9
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x20]
inc edi
push edi
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10007b87
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0x12
cmove eax, edi
mov dword [ebp - 0x24], eax
jmp 0x10007b8a
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10007b9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, 0x2710
ja 0x10007bc9
lea eax, [esi + 0xc]
push 1
pop ecx
cmp dword [esi + 4], ebx
jne 0x10007b2b
jmp 0x10007bc9
xor eax, eax
jmp 0x10007bc6
cmp dword [esi + 0xc], ebx
je 0x10007bc9
push 0xbb8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
lea ebx, [eax + 1]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
Function at 0x1000838a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x48c], ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x42
mov edi, eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.1008dc90
add esp, 0xc
cmp edi, 0xffffffff
je 0x100084b0
test edi, edi
je 0x100084b0
mov ebx, 0x22c
lea eax, [ebp - 0x488]
push ebx
push esi
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x488], ebx
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000849c
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
je 0x1000848e
push 0x208
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x103
push ebx
push eax
call fcn.100957f5
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [ebp - 0x258]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x10008455
sub edx, ecx
lea eax, [ebp - 0x50]
sar edx, 1
lea ecx, [ebp - 0x258]
push eax
add edx, edx
call fcn.1004ba47
pop ecx
test al, al
je 0x1000848e
push dword [ebp - 0x48c]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100084a6
lea eax, [ebp - 0x488]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10008402
jmp 0x100084a9
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret

Function at 0x1000850c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
cmp ecx, 3
je fcn.100085b4
cmp ecx, 0xe
je fcn.10008834
cmp ecx, 1
je fcn.1000852a
xor eax, eax
ret

Function at 0x1000852a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1008dc90
lea eax, [ebp - 0x210]
mov edx, str.InstallDir
push eax
mov ecx, str.SOFTWARETencentQQPCMgr
call fcn.1001ae46
add esp, 0x10
test eax, eax
je 0x100085a6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.QQPCTray.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10095d66
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x100085b4
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x100bc232
call fcn.1008b481
lea eax, [ebp - 0x22c]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008708
mov edi, 0x20a
mov dword [ebp - 0x228], esi
push edi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push str.ProgramPath
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10008708
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1000864e
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x21e], ax
je 0x1000868b
mov word [ebp + ecx*2 - 0x21c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, edi
jae 0x10008710
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
push eax
lea ecx, [ebp - 0x220]
call fcn.1000564f
push str.kxetray.exe
lea edx, [ebp - 0x220]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x230]
call fcn.10001474
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x220]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.10005601
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp - 0x22c]
test eax, eax
cmovne esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.100018f3
mov eax, esi
call fcn.1008b42b
ret
call fcn.1008ac56
int3

Function at 0x10008b5f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008c27
push edi
mov edi, 0x100
mov dword [ebp - 0x10c], esi
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x108], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push str.KAVINSTALLNEEDREBOOT
push dword [ebp - 0x110]
call edi
test eax, eax
je 0x10008c17
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x10008c1a
xor esi, esi
inc esi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x10009060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x10009094
call fcn.10011411
test eax, eax
js 0x1000909e
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
Function at 0x10012f51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push dword [esi]
push 1
push dword [esi + 8]
push dword [ebp + 8]
call fcn.1009ea0f
mov ecx, dword [esi + 8]
add esp, 0x10
lea ebx, [eax - 1]
mov eax, ecx
neg ebx
cdq
sbb bl, bl
idiv dword [esi + 0x18]
inc bl
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x1c], eax
test bl, bl
je 0x100130be
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push ecx
mov ecx, esp
jb 0x10012fa2
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.read
call fcn.10011699
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, dword [esi + 0x18]
add esp, 0x10
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
test eax, eax
je 0x10013074
mov ebx, ecx
dec eax
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], 1
jne 0x10012fe6
cmp byte [edi], al
jmp 0x10012fee
xor ebx, ebx
cmp word [edi], bx
mov ebx, dword [ebp - 4]
sete al
test eax, eax
je 0x1001301b
test ecx, ecx
je 0x10013011
cmp edi, ecx
je 0x10013011
mov eax, edi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call fcn.1008c960
add esp, 0xc
mov edx, dword [esi + 0x18]
inc ebx
mov dword [ebp - 4], ebx
lea ecx, [edx + edi]
mov eax, dword [ebp - 0xc]
add edi, edx
test eax, eax
jne 0x10012fd6
mov ebx, dword [ebp - 0x10]
test ecx, ecx
je 0x10013049
cmp edi, ecx
je 0x10013049
mov eax, dword [esi + 0x18]
sub edi, ecx
push edi
mov edi, dword [ebp - 4]
imul eax, edi
push ecx
sub ecx, eax
push ecx
call fcn.1008c960
add esp, 0xc
jmp 0x1001304c
mov edi, dword [ebp - 4]
test edi, edi
je 0x10013074
push 0xffffffffffffffff
push edi
push ecx
mov eax, esp
xor ecx, ecx
push ecx
xor edx, edx
inc edx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.nulls_removed
call fcn.10011699
add esp, 0x10
sub dword [esi + 0x1c], edi
cmp dword [esi + 0x18], 1
jle 0x100130c5
test byte [esi + 4], 0x80
je 0x100130c5
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1001309b
mov edx, dword [ebp + 8]
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x1001308a
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor ecx, ecx
push ecx
mov edx, ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.10011699
add esp, 0x10
jmp 0x100130c5
mov ecx, esi
call fcn.10012a8e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10013473
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi + 0x18]
imul eax, dword [esi + 0x1c]
cmp dword [ebp + 0xc], 0
cmovne edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
test byte [esi + 4], 0x80
mov dword [esi + 8], eax
je 0x10013505
test edx, edx
jne 0x100134d0
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008aae9
mov ecx, dword [esi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 0xc], ebx
push ecx
push edi
push ebx
call fcn.1008d710
add esp, 0x10
mov edx, ebx
mov edi, ebx
mov ecx, dword [esi + 0x1c]
jmp 0x100134e2
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x100134d5
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
and dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.10011699
add esp, 0x10
push dword [esi]
push 1
push dword [esi + 8]
push edi
call fcn.1009ecf7
add esp, 0x10
lea ebx, [eax - 1]
mov eax, dword [ebp + 0xc]
neg ebx
sbb bl, bl
inc bl
test eax, eax
je 0x1001352c
push eax
call fcn.1008aaf2
pop ecx
test bl, bl
je 0x10013564
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push 0xffffffffffffffff
push dword [esi + 0x1c]
push ecx
mov ecx, esp
jb 0x10013549
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.write
call fcn.10011699
add esp, 0x10
jmp 0x1001356b
mov ecx, esi
call fcn.10012a8e
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x10016ea0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x218
mov eax, 0x100bd59f
call fcn.1008b481
mov esi, dword [0x1010faac]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x220], 0
push str.RT_RCDATA
push 0x6f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10016eda
xor eax, eax
jmp 0x10016fb0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10016ed3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10016ed3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10016ed3
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1008dc90
push 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.100957f5
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016f5d
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10016f89
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10016ed3
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x224]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10016f7d
xor eax, eax
inc eax
call fcn.1008b42b
ret
Function at 0x100173bc
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x100bd6bf
call fcn.1008b481
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push 0x40
push 0
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x81
xor eax, eax
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x7c], xmm0
push 0x100d1f58
mov word [ebp - 0x3c], ax
call fcn.100028c0
and dword [ebp - 4], 0
lea esi, [edi + 4]
cmp dword [esi + 0x14], 8
jb 0x10017414
mov esi, dword [esi]
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10005760
mov esi, 0x100d1f58
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10005760
mov esi, 0x100d1ccc
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10005760
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10005760
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x100174b5
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], ecx
lea ecx, [edi + 0x38]
push eax
call fcn.1001943d
cmp dword [ebp - 0x80], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100174ae
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x78]
call esi
jmp 0x100174cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10018a1a
mov dword [eax + 0x20], esi
mov dword [eax + 0x154], esi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10001f53
mov eax, ebx
call fcn.1008b42b
ret 4
Function at 0x100175a7
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100176b8
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100175cf
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x100176b8
add esi, esi
mov eax, esi
call fcn.1008b5e0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.10019409
mov esi, eax
test esi, esi
je 0x100176b8
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.1008dc90
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.100177c2
push str.Txdlproxy.dat
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001765c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100f0424
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.1009df0c
add esp, 0xc
cmp dword [ebp - 0x214], ebx
je 0x100176b8
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001768a
push dword [ebp - 0x214]
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.1009ecf7
push dword [ebp - 0x214]
call fcn.1009edc5
xor eax, eax
add esp, 0x14
inc eax
jmp 0x100176ba
xor eax, eax
lea esp, [ebp - 0x220]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4

Function at 0x100176d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
mov esi, ecx
call fcn.1008dc90
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.100177c2
push 0x100f0428
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x40
lea eax, [ebp - 0x250]
push edi
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x254], 0x44
lea eax, [ebp - 0x264]
mov dword [ebp - 0x228], 0x80
xorps xmm0, xmm0
movups xmmword [ebp - 0x264], xmm0
push eax
lea eax, [ebp - 0x254]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x100177b0
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], ecx
lea ecx, [esi + 0x38]
push eax
call fcn.1001943d
cmp dword [ebp - 0x268], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100177a8
push dword [ebp - 0x268]
call esi
push dword [ebp - 0x260]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1008a777
mov esp, ebp
pop ebp
ret