joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001914e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xec]
call fcn.1001ac15
mov edi, dword [ebp + 8]
test eax, eax
jle 0x100191a4
push ebx
lea ecx, [esi + 0xec]
mov byte [ebp + 0xb], 0
call fcn.1001a7c5
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x100191ff
lea ecx, [esi + 0xec]
inc ebx
call fcn.1001ac15
cmp ebx, eax
jl 0x1001916d
sub edi, 0x100
je 0x10019266
sub edi, 4
je 0x10019203
dec edi
sub edi, 1
jne 0x1001925d
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.1006aaeb
pop ecx
mov ecx, dword [esi + 0x6c]
lea edx, [ebp + 8]
push reloc.OLEAUT32.dll_VariantCopyInd
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x1001a4da
call dword [eax + 0x100]
mov esi, eax
test esi, esi
je 0x1001925d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf4]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x1001925f
cmp dword [esi + 0x70], 0
je 0x1001925d
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x84]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.10017a2f
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x70]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x1001925d
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x100192b3
mov eax, dword [ecx]
call dword [eax + 0xcc]
test al, al
je 0x100192b3
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx]
call dword [eax + 0xd8]
test al, al
je 0x100192b3
mov ecx, dword [esi + 0x70]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.10058c5c
pop ecx
pop ecx
test eax, eax
je 0x100192b3
mov ecx, dword [esi + 0x70]
call fcn.10028bd7
test al, al
jne 0x1001925d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.1001a09a
jmp 0x1001925f
Function at 0x10029f51
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x10029fbb
cmp dword [ebp + 8], 0x100
jne 0x10029faa
cmp word [ebp + 0xc], 0xd
jne 0x10029faa
cmp byte [esi + 0x4f2], 0
je 0x10029f91
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10029faa
cmp byte [esi + 0x4f3], 0
jne 0x10029faa
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10029fa6
push edi
push edi
push edi
push str.return
push esi
call fcn.10019a3e
xor eax, eax
jmp 0x10029fbe
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002a3c9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002a483
movzx eax, word [esi]
test ax, ax
je 0x1002a483
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x1002a40b
cmp dx, 0x5c
jne 0x1002a40d
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002a3ff
cmp edi, esi
je 0x1002a456
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.1005e8cd
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x1002a491
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.1002a3c9
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.1006ace5
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1006acb4
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10056bff
leave
ret
call fcn.100574a1
int3

Function at 0x1002aa89
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x1002ab05
cmp dword [edi + 4], 0xffffffff
jne 0x1002ab05
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x100960f8
push esi
call fcn.1006acb4
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x1002aad7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1002aad7
mov eax, 0x2000000
jmp 0x1002ab0a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002d023
add esp, 0x10
test eax, eax
jne 0x1002aaf5
mov eax, dword [ebp - 4]
jmp 0x1002ab0a
push eax
call fcn.1002d7e8
mov dword [edi], eax
mov eax, dword [0x100a5804]
pop ecx
jmp 0x1002ab0a
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x1002d023
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
cmp eax, 1
je 0x1002d048
cmp eax, 2
je 0x1002d048
cmp eax, 3
je 0x1002d048
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10000
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov byte [ebp - 8], dl
mov ecx, edx
mov dword [ebp - 4], ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
cmp eax, 1
jne 0x1002d0a7
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push 2
push edx
push edx
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1002d08c
mov dword [edi], 0x100
jmp 0x1002d16a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb al, al
inc al
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x1002d156
push edx
push 0x80
push 3
push edx
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1002d0da
mov dword [edi], 0x200
jmp 0x1002d16a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
dec eax
neg eax
push 0
push dword [ebp - 4]
sbb al, al
inc al
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1002d146
push esi
call fcn.1005c90e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1002d146
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x800
test eax, eax
jne 0x1002d12e
mov dword [edi], ecx
mov eax, ecx
jmp 0x1002d130
mov eax, dword [edi]
cmp dword [ebp - 0x10], esi
je 0x1002d139
mov dword [edi], ecx
mov eax, ecx
test eax, eax
je 0x1002d146
push ebx
call fcn.1005c919
pop ecx
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x1002d15c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test ecx, ecx
jne 0x1002d16e
test ebx, ebx
jne 0x1002d16e
mov dword [edi], 0x300
xor eax, eax
jmp 0x1002d1ce
push 0x24
call fcn.1005723b
mov esi, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [esi + 4], eax
cmp dword [ebp - 4], edx
je 0x1002d1b2
mov ecx, dword [ebp - 8]
mov byte [esi], 1
mov byte [esi + 8], cl
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], dl
mov dword [esi + 0x14], edx
test cl, cl
je 0x1002d1ca
push 1
push edx
push edx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x14], eax
xor edx, edx
jmp 0x1002d1ca
mov eax, dword [ebp - 0xc]
mov byte [esi], dl
mov byte [esi + 8], 1
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x14], edx
mov dword [edi], edx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002d1d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x1002d206
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002d201
mov byte [edi + 0x10], 1
mov eax, dword [ebp + 0x10]
jmp 0x1002d230
mov edx, dword [edi + 0x20]
push esi
mov esi, dword [edi + 0x1c]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x1c]
cmovbe esi, ecx
mov ecx, dword [edi + 0x18]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.100590f0
add esp, 0xc
mov eax, esi
add dword [edi + 0x20], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x1002d3be
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1002d3cc
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x1002d48b
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
sub edi, 1
jne 0x1002d3e4
pop edi
test esi, esi
je 0x1002d4a7
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100853f0]
inc edx
sub esi, 1
jne 0x1002d48f
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x100423b1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x1004241e
cmp dword [esi + 0x10], 0
je 0x1004241e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.10057d50
mov ebx, esp
test ebx, ebx
je 0x1004241e
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c4
call fcn.1001a78c
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.10019a3e
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056bff
leave
ret 0x10

Function at 0x10042b20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
mov ebx, ecx
mov dword [ebp - 0x38], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001d230
mov ecx, dword [ebx + 0x5a8]
test ecx, ecx
je 0x10042c17
lea eax, [ebp - 0x14]
push eax
call fcn.10041b47
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x10042b87
mov ecx, dword [ebx + 0x5a8]
push 0
call fcn.1001ac15
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10042c17
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10042be4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
mov esi, eax
lea edi, [ebp - 0x24]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_UnionRect]
test eax, eax
je 0x10042bd7
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x10042c28
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov ebx, eax
test ebx, ebx
jne 0x10042b96
mov ecx, dword [ebp - 0x38]
inc eax
shl eax, 6
or eax, 0x14
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x5a8]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.1001ac15
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056bff
leave
ret 0x10
xor eax, eax
inc eax
jmp 0x10042be4
Function at 0x1004550e
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x1008094b
call fcn.10057ca2
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [edi + 4], ebx
jne 0x100455a0
lea eax, [ebp - 0xa8]
push eax
call fcn.100451e8
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.1000ed95
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.100519e2
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.1003cb8f
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.10017153
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.1001ad66
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.10001421
mov esi, 0x5a8
test bl, bl
je 0x100455db
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.10057c4c
ret 4
Function at 0x1004ec06
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x1004ec34
cmp eax, edi
jge 0x1004ec28
push esi
call fcn.1004b0ff
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x1004ec57
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x1004ec3d
mov dword [esi + 8], edx
jmp 0x1004ec6c
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x1004ec62
xor dl, dl
jmp 0x1004ec67
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x1004ec57
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1004eca6
push str.zlib_corrupt
call fcn.1004b02a
add esp, 4
jmp 0x1004ece6
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1004ecb6
push str.read_past_buffer
jmp 0x1004ec9c
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x1004ecd0
push edi
push ecx
push esi
call fcn.10051722
add esp, 0xc
test eax, eax
je 0x1004ece6
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.100590f0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x10051b74
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10051ba6
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x10052da8
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x10080d84
call fcn.10057c6e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10001a8b
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10052e3e
push eax
jmp 0x10052e2d
call fcn.10002060
push eax
lea ecx, [ebp - 0x14]
call fcn.10001827
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002819
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10002970
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000210b
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10052e20
push esi
call fcn.10062702
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.1000210b
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.1000a0ea
mov edi, eax
cmp edi, 0xffffffff
jne 0x10052dd3
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1000210b
call fcn.10057c37
ret
Function at 0x10053754
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x10080ff7
call fcn.10057c6e
call fcn.10002060
push eax
lea ecx, [ebp - 0x10]
call fcn.10001827
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.10001c05
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100029e4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x100537b9
mov ecx, dword [ebp + 8]
push 0x10095fe8
call fcn.10001a8b
lea ecx, [esi - 0x10]
call fcn.1000210b
mov eax, dword [ebp + 8]
jmp 0x10053812
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.100029c0
cmp ax, 0x5c
je 0x100537d8
push 1
push 0x100960f8
lea ecx, [ebp - 0x10]
call fcn.10001584
push 8
push str.2019Zip_
lea ecx, [ebp - 0x10]
call fcn.10001584
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x100537f7
push esi
call fcn.10052da8
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.1000122a
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.1000210b
mov eax, esi
call fcn.10057c37
ret

Function at 0x1005383f
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1008101a
call fcn.10057c6e
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10052f2e
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100027c1
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.1000210b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1000210b
mov eax, esi
call fcn.10057c37
ret
Function at 0x10054fc8
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x10081312
call fcn.10057c6e
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 4]
test eax, eax
je 0x100550cc
call fcn.10002060
push eax
lea ecx, [ebp + 0x10]
call fcn.10001827
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.10001954
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.10001d6b
push 0x5c
push dword [ebp + 0x10]
call fcn.10058994
pop ecx
pop ecx
test eax, eax
jne 0x1005502f
or eax, 0xffffffff
jmp 0x10055034
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10002819
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.10002970
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1000210b
mov esi, dword [ebp + 0x10]
push esi
call fcn.10052da8
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005507a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.10054d72
test eax, eax
js 0x100550b1
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.10055981
test eax, eax
js 0x100550b1
xor ebx, ebx
inc ebx
jmp 0x100550b3
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x100550c2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1000210b
mov eax, ebx
call fcn.10057c37
ret 0xc
Function at 0x10055d52
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.10057d80
mov eax, dword [0x100a3330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.10058f90
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10058f90
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.100560b7
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10055de1
mov al, 1
jmp 0x10055eea
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.10058f90
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.10058f90
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.10058f90
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10055e63
mov bl, 2
jmp 0x10055ee1
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10055ef9
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.10055ef9
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055ea4
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.100032d6
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055ec7
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.100032d6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056bff
leave
ret