joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1066479
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x111121c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, ecx
jne 0x10664bc
lea eax, [ebp - 0x208]
push eax
mov edi, 0x100
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
je 0x10664f1
cmp eax, edi
jbe 0x10664d6
mov eax, 0x80020013
jmp 0x1066534
push 0x100
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov word [ebp - 8], bx
lea edi, [esi + 4]
push edi
push ebx
push 0x100ae88
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10664f8
call fcn.010663b1
jmp 0x1066534
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x214]
push ecx
push 0x2100
push 2
push ebx
push eax
push edi
mov ecx, esi
mov dword [ebp - 0x214], 0xc
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], 1
mov dword [esi + 0x208], eax
call fcn.01066406
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 8

Function at 0x1066548
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.010663ea
cmp dword [ebp + 8], 0
jne 0x106656c
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop esi
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x106658c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x106658c
push eax
call fcn.010663cb
jmp 0x1066567
push dword [ebp + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1066565
call fcn.010663b1
jmp 0x1066567

Function at 0x10666b7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x110c6e9
call fcn.01105bf8
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x106674e
push 0x5c
mov ecx, esi
call fcn.0105104b
cmp eax, 0xffffffff
je 0x1066717
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0106666f
and dword [ebp - 4], edi
lea eax, [ebp + 8]
push eax
call fcn.010666b7
mov ecx, dword [ebp + 8]
mov edi, eax
add ecx, 0xfffffff0
test edi, edi
jge 0x106670e
call fcn.01049fdf
jmp 0x1066757
or dword [ebp - 4], 0xffffffff
call fcn.01049fdf
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x106672a
xor edi, edi
jmp 0x1066757
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x106673c
call esi
mov edi, eax
jmp 0x1066757
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1066757
test al, 0x10
jne 0x1066757
mov edi, 0x800700b7
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10676da
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x10676fd
mov esi, 0x80004003
jmp 0x1067793
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x1067734
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1067722
call esi
mov esi, eax
jmp 0x1067792
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1067792
push ebx
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x106774a
mov esi, 0x8007000e
jmp 0x1067785
push ebx
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1067762
mov esi, 0x80004005
jmp 0x1067785
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x100ae50
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x106775b
mov eax, dword [ebp - 8]
mov ax, word [eax]
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
test ebx, ebx
je 0x1067791
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x1067a8d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0105efd0
mov dword [ebp - 4], esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1067b0f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, eax
and esi, 0x8000
neg esi
sbb esi, esi
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 4]
and esi, 0xfffffefd
add esi, 0x104
sub edi, ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x8000
neg eax
sbb eax, eax
and eax, 0xf
inc eax
inc eax
imul eax, ebx
add eax, dword [ebp - 8]
cmp edi, eax
jae 0x1067b13
xor eax, eax
jmp 0x1067b20
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1068610
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
je 0x10686d1
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x10686c5
push esi
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10686c4
push edi
call esi
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x10686bf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 8], eax
je 0x10686bf
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push edi
call esi
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push 0xcc0020
mov dword [ebp + 8], eax
xor eax, eax
push eax
push ecx
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
push edi
call esi
push edi
call ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call ebx
pop esi
push dword [ebp - 0xc]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10
Function at 0x106a1ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x111121c]
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push 0x100ba88
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106a27b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x100ba68
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0x20
call esi
test eax, eax
jne 0x106a242
cmp dword [ebp - 0x28], 3
jb 0x106a242
cmp dword [ebp - 0x28], 4
ja 0x106a242
mov eax, dword [ebp - 0x24]
test eax, eax
mov dword [ebp - 0x2c], eax
jne 0x106a270
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x100ba4c
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x106a270
cmp dword [ebp - 0x28], 3
jb 0x106a270
cmp dword [ebp - 0x28], 4
ja 0x106a270
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
call fcn.0105ec09
leave
ret

Function at 0x106a3eb
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x111121c]
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0xfffffffe
mov dword [ebp - 4], eax
jne 0x106a443
push edi
push 0x45
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x106a44c
mov eax, dword [ebp - 0x108]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x114]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x18]
dec eax
je 0x106a466
dec eax
je 0x106a450
xor eax, eax
jmp 0x106a46d
cmp dword [esi + 0x1c], 5
mov ecx, esi
jne 0x106a45f
call fcn.0106a39c
jmp 0x106a46d
call fcn.0106a28d
jmp 0x106a46d
mov ecx, esi
call fcn.0106a1ca
mov ecx, dword [ebp - 4]
pop esi
call fcn.0105ec09
leave
ret

Function at 0x106a5f0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xf003f
push 1
push reloc.WSOCK32.dll_accept
push 0x100bc38
lea ecx, [ebp - 0x1c]
call fcn.01064063
push 3
push 1
mov esi, 0x100bcac
push esi
lea ecx, [ebp - 0x1c]
call fcn.01063d70
push 1
call fcn.0106ad40
push 1
push 0x11137d8
push 0x100bcc0
push 0x11139e0
push 0x1008568
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x106a65f
push esi
lea ecx, [ebp - 0x1c]
call fcn.01063e5e
mov esi, 0x80004005
jmp 0x106a661
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.0106409d
mov eax, esi
pop esi
leave
ret 4
Function at 0x106b66f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x1113be8], 0
mov eax, dword [0x111121c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x218], eax
je 0x106b69e
xor eax, eax
inc eax
jmp 0x106b780
call fcn.011060c8
test eax, eax
mov dword [ebp - 0x214], eax
jl 0x106b780
cmp eax, 1
jne 0x106b6c0
mov eax, 0x80070005
jmp 0x106b780
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x106b6e1
test al, 2
je 0x106b6e1
test al, 4
je 0x106b6e1
test al, 8
je 0x106b6e1
test al, 0x10
je 0x106b6e1
mov eax, 0x80070057
jmp 0x106b780
push esi
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100c05c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x106b77a
cmp eax, esi
ja 0x106b77a
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
inc esi
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x11137d8
push ebx
call edi
push esi
push ebx
mov ebx, 0x11139e0
push ebx
call edi
cmp dword [ebp - 0x218], 0
je 0x106b768
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call fcn.0106b562
test eax, eax
mov dword [ebp - 0x214], eax
jl 0x106b77f
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push esi
push 0x1002e70
push ebx
call edi
push esi
push dword [ebp - 0x210]
push ebx
call edi
mov eax, dword [ebp - 0x214]
mov dword [0x1113be8], 1
jmp 0x106b77f
mov eax, 0x80070057
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0105ec09
leave
ret 8

Function at 0x106b8e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
and dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x106b949
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [esi + 0x24]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x106b949
mov eax, dword [ebp - 4]
add dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
xor edx, edx
test ecx, ecx
je 0x106b929
imul eax, eax, 0x64
div ecx
jmp 0x106b933
push 0x64
shr eax, 0xa
pop ecx
div ecx
mov eax, edx
push 0
push eax
push 0x402
push 0x9dca
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x106ba16
Capabilities:
Read data from internet
Receive data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov eax, dword [edi]
test eax, eax
je 0x106ba31
push eax
call fcn.0106b8e1
and dword [edi], 0
jmp 0x106ba58
push edi
push 0x400
lea eax, [esi + 0x24]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x106ba5c
mov eax, dword [edi]
test eax, eax
je 0x106ba79
push eax
mov ecx, esi
call fcn.0106b8e1
test eax, eax
jne 0x106ba31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
sub ebx, 0x3e5
neg ebx
sbb ebx, ebx
inc ebx
je 0x106ba8a
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x106ba8a
push esi
push 2
push 0x8000
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x106ba19
Capabilities:
Read data from internet
Receive data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov eax, dword [edi]
test eax, eax
je 0x106ba31
push eax
call fcn.0106b8e1
and dword [edi], 0
jmp 0x106ba58
push edi
push 0x400
lea eax, [esi + 0x24]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x106ba5c
mov eax, dword [edi]
test eax, eax
je 0x106ba79
push eax
mov ecx, esi
call fcn.0106b8e1
test eax, eax
jne 0x106ba31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
sub ebx, 0x3e5
neg ebx
sbb ebx, ebx
inc ebx
je 0x106ba8a
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x106ba8a
push esi
push 2
push 0x8000
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x106bb73
Capabilities:
Check http status code
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov esi, ecx
push 0x20000013
push dword [esi + 0x14]
mov dword [ebp - 0xc], 4
call edi
test eax, eax
je 0x106bbe7
cmp dword [ebp - 4], 0xc8
jne 0x106bbe7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x20]
push eax
push 0x20000005
push dword [esi + 0x14]
call edi
test eax, eax
je 0x106bbe7
mov ecx, esi
mov dword [esi], 3
call fcn.0106ba16
test eax, eax
je 0x106bbe7
xor edi, edi
inc edi
jmp 0x106bbf3
xor edi, edi
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x106bc70
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x10000000
push 0
mov esi, ecx
push 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
push 0
push 0x10087e4
mov dword [esi + 0x10], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0xc], eax
je 0x106bcc5
push esi
push 0x106bbfe
push dword [ebp + 0xc]
push 0x9c51
push dword [0x1112f58]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x106bcc5
xor ebx, ebx
inc ebx
jmp 0x106bcc7
xor ebx, ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x106bcd9
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
and dword [esi + 0xc], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x106c40e
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x108c
call fcn.0105efd0
mov eax, dword [0x111121c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x10000000
push esi
lea ecx, [ebp - 0x1050]
push ecx
lea ecx, [ebp - 0x104c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
xor edi, edi
mov dword [ebp - 0x1050], 0x824
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x106c49c
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x108c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1078], eax
lea eax, [ebp - 0x108c]
push eax
push esi
push dword [ebp - 0x1050]
lea eax, [ebp - 0x104c]
push eax
mov dword [ebp - 0x108c], 0x3c
mov dword [ebp - 0x107c], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 0xc

Function at 0x106c989
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1718]
push dword [edi]
mov dword [esi], fcn.010c8efc
push dword [esi + 0x171c]
mov dword [esi + 0xc], 0x100c280
call fcn.010b769e
mov edi, dword [edi]
test edi, edi
je 0x106c9bb
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esi + 0x1720]
cmp eax, 0xffffffff
je 0x106c9fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x192c], 1
jne 0x106c9f5
cmp dword [esi + 0x1934], 8
je 0x106c9f5
cmp dword [esi + 0x1930], 1
jne 0x106c9f5
lea eax, [esi + 0x1724]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esi + 0x1720], 0xffffffff
pop edi
mov ecx, esi
pop esi
jmp fcn.010712f1
Function at 0x106c98b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1718]
push dword [edi]
mov dword [esi], fcn.010c8efc
push dword [esi + 0x171c]
mov dword [esi + 0xc], 0x100c280
call fcn.010b769e
mov edi, dword [edi]
test edi, edi
je 0x106c9bb
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esi + 0x1720]
cmp eax, 0xffffffff
je 0x106c9fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x192c], 1
jne 0x106c9f5
cmp dword [esi + 0x1934], 8
je 0x106c9f5
cmp dword [esi + 0x1930], 1
jne 0x106c9f5
lea eax, [esi + 0x1724]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esi + 0x1720], 0xffffffff
pop edi
mov ecx, esi
pop esi
jmp fcn.010712f1
Function at 0x106d04a
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x111121c]
and dword [ebp - 0x114], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10c], eax
jbe 0x106d11c
cmp word [esi + 0x1c56], 0
jne 0x106d0a5
cmp byte [ebx], 1
je 0x106d104
mov ax, word [ebx + 1]
sub dword [ebp + 8], 3
sub dword [ebp - 0x10c], 3
mov word [esi + 0x1c56], ax
add ebx, 3
movzx eax, word [esi + 0x1c56]
mov ecx, dword [ebp + 8]
cmp ecx, eax
mov dword [ebp - 0x110], ecx
jb 0x106d0bf
mov dword [ebp - 0x110], eax
movzx edi, word [ebp - 0x110]
push 0
lea eax, [ebp - 0x118]
push eax
push edi
push ebx
push dword [esi + 0x1720]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [ebp - 0x118]
jne 0x106d110
mov ax, word [ebp - 0x110]
sub dword [ebp + 8], edi
sub word [esi + 0x1c56], ax
add ebx, edi
cmp dword [ebp + 8], 0
ja 0x106d07d
jmp 0x106d11c
mov dword [ebp - 0x114], 1
jmp 0x106d11c
push 0x80070005
mov ecx, esi
call fcn.0106ccff
lea eax, [esi + 0x1940]
mov ecx, dword [eax]
cmp dword [ebp - 0x10c], ecx
ja 0x106d136
sub ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
jmp 0x106d139
and dword [eax], 0
cmp dword [eax], 0
jne 0x106d1c5
lea edi, [esi + 0x1720]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
and dword [esi + 0x16fc], 0
cmp dword [esi + 0x1934], 2
jne 0x106d17f
push esi
push 0x1000305
mov eax, dword [esi + 0x1944]
push dword [esi + 0x1938]
mov ecx, dword [eax]
push eax
call dword [ecx]
jmp 0x106d22b
mov eax, 0x1000305
push eax
push 0x100c310
mov dword [esi + 0x1c58], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
mov dword [esi + 0x1934], 8
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov edx, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
push eax
push 0x20455942
mov ecx, esi
call dword [edx + 0x4c]
jmp 0x106d224
cmp dword [ebp - 0x114], 0
je 0x106d22b
lea edi, [esi + 0x1720]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
and dword [esi + 0x16fc], 0
cmp dword [esi + 0x1930], 1
jne 0x106d1fc
lea eax, [esi + 0x1724]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x1934], 2
jne 0x106d210
push esi
push 0x81000332
jmp 0x106d169
mov dword [esi + 0x1934], 8
mov dword [esi + 0x1c58], 0x81000332
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 8
Function at 0x106d23f
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x111121c]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x1934], 0x24
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
jne 0x106d36a
xor ebx, ebx
inc ebx
push ebx
push 2
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0106cbdb
test eax, eax
je 0x106d36a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x1718]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x106d2ea
lea eax, [esi + 0x1948]
push eax
lea ecx, [ebp - 0x28]
call fcn.01064dbf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x106d2ea
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], ebx
call fcn.01064439
mov ecx, eax
call fcn.01064509
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x106d2ea
mov bl, bl
jmp 0x106d2ec
xor bl, bl
test byte [ebp - 0x18], 1
je 0x106d2fa
lea ecx, [ebp - 0x34]
call fcn.01064479
test bl, bl
je 0x106d33d
push edi
push dword [esi + 0x1720]
mov dword [esi + 0x1934], 0x28
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x100c314
lea eax, [ebp - 0x10]
push 0xb
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov edx, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x204c4946
mov ecx, esi
call dword [edx + 0x4c]
jmp 0x106d349
push 0x81000303
mov ecx, esi
call fcn.0106ccff
lea ecx, [ebp - 0x28]
call fcn.01064b19
cmp dword [ebp - 0x14], edi
je 0x106d376
cmp dword [ebp - 0x14], 0x1111298
je 0x106d376
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x106d376
mov ecx, esi
push 0x80004005
call fcn.0106ccff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 4