joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x80b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x80b4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80b4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80b4b8
mov eax, 1
add ebx, ebx
jne 0x80b4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80b4d0
jne 0x80b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b4d0
xor ecx, ecx
sub eax, 3
jb 0x80b500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80b572
mov ebp, eax
add ebx, ebx
jne 0x80b50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80b518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80b53c
inc ecx
add ebx, ebx
jne 0x80b528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80b51d
jne 0x80b539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80b55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80b54d
jmp 0x80b4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80b55c
add edi, ecx
jmp 0x80b4be
pop esi
mov edi, esi
mov ecx, 0x147
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80b57a
cmp byte [edi], 1
jne 0x80b57a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x80b57f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x80b5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80b5ac
mov ecx, edi
jns 0x80b5db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb590]
or eax, eax
je 0x80b5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x80b5c9
call dword [esi + 0xb594]
popal
jmp 0x802d68
Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0xeda8
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047950e
Function at 0x4021b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040470b
xor ebx, ebx
cmp dword [0x40edd4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40228c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4021f7
xor eax, eax
jmp 0x402350
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4021f0
push eax
call fcn.004023f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40edd4], eax
call esi
push eax
call fcn.004023f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40edd8], eax
call esi
push eax
call fcn.004023f9
mov dword [0x40eddc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040542c
test eax, eax
pop ecx
pop ecx
je 0x40225a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406830
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40228c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004023f9
cmp eax, ebx
pop ecx
mov dword [0x40ede4], eax
je 0x40228c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004023f9
pop ecx
mov dword [0x40ede0], eax
mov eax, dword [0x40ede0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x402305
cmp dword [0x40ede4], esi
je 0x402305
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
je 0x4022d2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ede4]
call fcn.00401faa
pop ecx
call eax
test eax, eax
je 0x4022d2
test byte [ebp - 0x18], 1
jne 0x402305
lea eax, [ebp - 0xc]
push eax
call fcn.004066fb
test eax, eax
pop ecx
je 0x4022ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406830
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4022fc
or dword [ebp + 0x10], 0x200000
jmp 0x402336
or dword [ebp + 0x10], 0x40000
jmp 0x402336
mov eax, dword [0x40edd8]
cmp eax, esi
je 0x402336
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402336
mov eax, dword [0x40eddc]
cmp eax, esi
je 0x402336
push dword [ebp - 4]
push eax
call fcn.00401faa
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40edd4]
call fcn.00401faa
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403097
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40df18]
jne 0x4030a1
repz ret
jmp fcn.00401818
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x433cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405a2f
cmp eax, ebx
je 0x401533
push ebx
push dword [0x433cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x433cb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c

Function at 0x402d89
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41f97c]
sub esi, dword [0x423988]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x433c20], eax
cmp esi, ebx
jle 0x402ee7
push dword [0x423984]
call fcn.00402d72
push ebx
push ebx
push dword [0x423988]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f978], esi
mov dword [0x40f8ec], ebx
mov ebp, 0x417978
mov eax, dword [0x423980]
sub eax, dword [0x423984]
mov edi, 0x4000
cmp eax, edi
jg 0x402dfe
mov edi, eax
push edi
mov esi, 0x41f980
push esi
call fcn.00402d40
test eax, eax
je 0x402ef9
add dword [0x423984], edi
mov dword [0x417908], esi
mov dword [0x41790c], edi
cmp dword [0x433bcc], ebx
je 0x402e55
cmp dword [0x433ca0], ebx
jne 0x402e55
mov eax, dword [0x41f978]
sub eax, dword [0x41f97c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x423988]
mov dword [0x40f8ec], eax
call fcn.00402ca1
pop ecx
mov ecx, 0x4178f0
mov dword [0x417910], ebp
mov dword [0x417914], 0x8000
call fcn.0040699f
test eax, eax
js 0x402efe
mov esi, dword [0x417910]
sub esi, ebp
je 0x402eb3
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f03
cmp esi, dword [esp + 0x10]
jne 0x402f03
add dword [0x423988], esi
cmp dword [0x41790c], ebx
jne 0x402e24
jmp 0x402ebf
cmp dword [0x41790c], ebx
jne 0x402efe
cmp edi, ebx
je 0x402efe
mov eax, dword [0x41f97c]
mov ecx, eax
sub ecx, dword [0x423988]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de8
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402ca1
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402ef1
push 0xfffffffffffffffd
pop eax
jmp 0x402ef1
push 0xfffffffffffffffe
jmp 0x402f00
Function at 0x402f07
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f31
add eax, dword [0x433c18]
push edi
push edi
push eax
push dword [0x40a014]
mov dword [0x41f97c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d89
cmp eax, edi
jl 0x40302a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x403026
cmp dword [ebp - 4], esi
jne 0x403026
push dword [ebp + 8]
add dword [0x41f97c], esi
call fcn.00402d89
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403029
cmp dword [ebp + 0x10], edi
jne 0x402ff5
cmp dword [ebp + 8], edi
jle 0x403021
mov esi, 0x41f980
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa5
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x403026
cmp edi, dword [ebp - 4]
jne 0x403026
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff1
cmp dword [ebp + 0x14], edi
jne 0x402ff1
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41f97c], eax
cmp dword [ebp + 8], 0
jg 0x402f98
jmp 0x403021
push 0xfffffffffffffffe
jmp 0x403028
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403000
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x403026
mov eax, dword [ebp - 4]
add dword [0x41f97c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403029
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x405615
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004046e6
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
invalid
invalid
sahf
cld
Function at 0x40690e
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x60
mov ebp, esp
add ebp, 0x24
push esp
call fcn.00404708
retf 0x47bc
call fcn.00404708
jae 0x4068a6
rcl byte [0x3245a8b], cl
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ecx, dword [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00404708
pop esi
cmp eax, 0x75ff76f5
or bh, bh
jne 0x40693e
push dword [ebp]
call fcn.00404f08
inc ecx
cmp ecx, 0x100
jl 0x40691d
invalid
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406979
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695a
not eax
pop ebp
ret 0xc
Function at 0x609071f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
test edx, edx
jle 0x6090721d
mov eax, ebx
shl eax, 3
xor ebx, eax
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x6090105c]
xor ebx, eax
inc ecx
dec edx
test edx, edx
jg 0x60907204
mov eax, ebx
pop ebx
leave
ret

Function at 0x60907f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
and eax, 0x7fffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 4]
push eax
push edx
push dword [esi + 4]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x60907fd8
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x60907fd8
mov dword [esi + 0xc], eax
mov eax, 0xd
jmp 0x60908026
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [esi + 4]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
jne 0x60908004
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
mov eax, 0x10a
jmp 0x60908026
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x60908024
add esp, 0xfffffffc
sub ebx, eax
push ebx
push 0
add eax, edi
push eax
call sym._memset
mov eax, 0x20a
jmp 0x60908026
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x60908030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
and eax, 0x7fffffff
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 4]
push eax
push edx
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.KERNEL32.dll_SetFilePointer
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6090807c
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x6090807c
jmp 0x609080b4
sub esi, eax
add edi, eax
test esi, esi
jle 0x609080a6
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x609080af
mov eax, dword [ebp - 8]
test eax, eax
jne 0x60908078
test ebx, ebx
je 0x609080af
cmp esi, dword [ebp - 8]
jle 0x609080c4
call sub.KERNEL32.dll_GetLastError
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, 0xd
jmp 0x609080c6
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x60908164
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push ebx
mov esi, dword [ebp + 8]
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x6090819c
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x6090819c
mov dword [esi + 0xc], eax
mov eax, 0x70a
jmp 0x609081b5
mov eax, dword [ebp - 4]
xor edx, edx
mov edx, eax
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
add dword [ecx], ebx
adc dword [ecx + 4], 0
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
leave
ret

Function at 0x60908660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push edi
push esi
push ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [0x60960a34]
test eax, eax
je 0x60908694
push eax
push 0x60908652
lea eax, [ebp - 0x110]
push eax
push 0xe6
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0x10
jmp 0x6090870f
call sym._isNT
test eax, eax
je 0x609086bc
add esp, 0xfffffff8
lea ebx, [ebp - 0x320]
push ebx
push 0xe6
call sub.KERNEL32.dll_GetTempPathW
add esp, 0xfffffffc
push ebx
call sym._unicodeToUtf8
jmp 0x609086d9
add esp, 0xfffffff8
lea ebx, [ebp - 0x430]
push ebx
push 0xe6
call sub.KERNEL32.dll_GetTempPathA
add esp, 0xfffffffc
push ebx
call sym.sqlite3.dll_sqlite3_win32_mbcs_to_utf8
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x609086ec
mov eax, 7
jmp 0x609087a2
push ebx
push 0x60908652
lea eax, [ebp - 0x110]
push eax
push 0xe6
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0xfffffff4
push ebx
call sym._free
add esp, 0x20
add esp, 0xfffffff4
lea ebx, [ebp - 0x110]
push ebx
call sym._sqlite3Strlen30
mov edi, eax
add esp, 0x10
test edi, edi
je 0x60908734
cmp byte [ebx + edi - 1], 0x5c
jne 0x60908734
dec edi
jne 0x60908727
lea esi, [esi]
lea eax, [ebp - 0x110]
mov byte [edi + eax], 0
push eax
push 0x60908655
push esi
mov eax, dword [ebp + 8]
add eax, 0xffffffe2
push eax
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0xfffffff4
push esi
call sym._sqlite3Strlen30
mov ebx, eax
add esp, 0x20
add esp, 0xfffffff8
lea eax, [ebx + esi]
push eax
push 0x14
call sym.sqlite3.dll_sqlite3_randomness
xor edi, edi
nop
movzx ax, byte [ebx + esi]
mov word [ebp - 0x442], ax
mov ecx, 0x3e
xor dx, dx
div cx
mov al, dl
movzx eax, al
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + esi], al
inc edi
inc ebx
cmp edi, 0x13
jbe 0x60908770
mov byte [ebx + esi], 0
xor eax, eax
lea esp, [ebp - 0x468]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x609089f0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
xor edi, edi
mov dword [ebp - 4], 0
add esp, 0xfffffff4
push dword [ebp + 0xc]
call sym._convertUtf8Filename
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x60908a20
mov eax, 7
jmp 0x60908ad2
call sym._isNT
test eax, eax
je 0x60908a70
lea esi, [esi]
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_DeleteFileW
add esp, 0xc
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_GetFileAttributesW
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x60908a58
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x60908ab4
inc edi
cmp edi, 4
jg 0x60908ab4
add esp, 0xfffffff4
push 0x64
call sub.KERNEL32.dll_Sleep
add esp, 0xc
jmp 0x60908a2c
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x60908a9c
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x60908ab4
inc edi
cmp edi, 4
jg 0x60908ab4
add esp, 0xfffffff4
push 0x64
call sub.KERNEL32.dll_Sleep
add esp, 0xc
jmp 0x60908a70
add esp, 0xfffffff4
push esi
call sym._free
cmp ebx, 0xffffffff
jne 0x60908ac8
cmp dword [ebp - 4], 2
je 0x60908ad0
mov eax, 0xa0a
jmp 0x60908ad2
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x60908adc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
add esp, 0xfffffff4
push dword [ebp + 0xc]
call sym._convertUtf8Filename
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x60908b0c
mov eax, 7
jmp 0x60908b6c
call sym._isNT
test eax, eax
je 0x60908b20
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
jmp 0x60908b29
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
mov esi, eax
add esp, 0xc
add esp, 0xfffffff4
push ebx
call sym._free
cmp edi, 1
je 0x60908b58
jg 0x60908b44
test edi, edi
je 0x60908b49
jmp 0x60908b62
cmp edi, 2
jne 0x60908b62
cmp esi, 0xffffffff
setne al
movzx eax, al
mov dword [ebp - 4], eax
jmp 0x60908b62
xor esi, 1
mov dword [ebp - 4], esi
and dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret