joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41af10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5257d6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x41af4a
call fcn.0041b190
cmp byte [0x561990], 0
jne 0x41af5d
mov eax, 0x80000001
jmp 0x41b16b
mov eax, dword [esi]
test eax, eax
jne 0x41afdd
push 8
call fcn.004ff533
mov edi, eax
add esp, 4
mov dword [ebp - 0x140], edi
mov dword [ebp - 4], 0
push 1
call fcn.004ff533
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.00502470
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41afcc
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x41b15a
call fcn.00429df0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x41b0f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x15c]
mov eax, dword [esi]
add eax, 4
mov byte [ebp - 0x139], 0
push str.Advapi32.dll
mov dword [ebp - 0x140], eax
call fcn.00402450
mov dword [ebp - 4], 2
lea eax, [ebp - 0x15c]
push eax
call fcn.0041d520
mov ecx, eax
call fcn.0041d5e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00402400
test edi, edi
je 0x41b15a
push str.OpenProcessToken
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x41b15a
push dword [ebp - 0x144]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41b15a
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
push 0x20008
push edi
call ebx
test eax, eax
je 0x41b0be
push dword [ebp - 0x138]
mov ecx, dword [ebp - 0x140]
call fcn.0042a350
mov bl, al
jmp 0x41b0c4
mov bl, byte [ebp - 0x139]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x41b0da
push ecx
call edi
test bl, bl
je 0x41b15a
mov ecx, dword [esi]
add ecx, 4
call fcn.00429910
call fcn.00429df0
test al, al
je 0x41b15a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Advapi32.dll
lea ecx, [ebp - 0x15c]
call fcn.00402450
mov dword [ebp - 4], 3
lea eax, [ebp - 0x15c]
push eax
call fcn.0041d520
mov ecx, eax
call fcn.0041d5e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00402400
test edi, edi
je 0x41b15a
push str.RegOpenCurrentUser
push edi
call ebx
test eax, eax
je 0x41b15a
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x41b15a
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x41b169
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret 4
Function at 0x41b350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525886
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.004024a0
mov dword [ebp - 4], 0
mov eax, dword [0x5619f4]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x63c], 0x5619f4
test eax, eax
je 0x41b3bc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x5619dc
call fcn.004023f0
test al, al
jne 0x41b403
mov ecx, 0x5619dc
call fcn.004024c0
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x41b4c7
mov ecx, 0x5619dc
call fcn.004024c0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41b3fa
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x41b4bc
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00502470
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41b56c
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.00502470
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41b4a5
test eax, eax
je 0x41b4a5
add eax, eax
cmp eax, 0x412
jae 0x41b5be
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.00402710
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x41b4bb
lea eax, [ebp - 0x220]
push eax
call fcn.00402710
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.00402540
mov byte [ebp - 4], 0
mov eax, dword [0x5619f4]
test eax, eax
je 0x41b4db
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x654]
mov dword [ebp - 0x63c], 0
push eax
mov ecx, esi
call fcn.0041b2e0
test al, al
je 0x41b500
mov bl, 1
jmp 0x41b58c
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00502470
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x41b58a
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.00402710
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00402540
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.0041b2e0
mov bl, al
jmp 0x41b58c
mov byte [ebp - 4], 0
mov eax, dword [0x5619f4]
test eax, eax
je 0x41b580
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x63c], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.00402400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret 8
call fcn.004ff8dd
int3
Function at 0x41e8f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5262b1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
push ecx
mov dword [ebp - 0x34], esi
mov ecx, ebx
push 0x25
mov dword [ebp - 0x2c], 0
call fcn.00403f40
push ebx
cmp eax, 0xffffffff
jne 0x41e956
mov ecx, esi
call fcn.00404b90
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x41ea0e
lea ecx, [ebp - 0x28]
call fcn.00404b90
mov dword [ebp - 4], 1
mov ecx, ebx
call fcn.004024c0
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x41e976
mov eax, dword [edi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x41e992
push ebx
mov ecx, esi
call fcn.00404b90
jmp 0x41e9fb
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ffc82
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 8
jb 0x41e9b8
mov edi, dword [edi]
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41e9e7
cmp eax, dword [ebp - 0x30]
ja 0x41e9e7
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00402710
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.00402540
push ebx
call fcn.004ffc74
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404230
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret

Function at 0x41f030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x55e068]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x41f0b2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x41f0b2
test ecx, ecx
je 0x41f0ae
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x41f070
xor eax, eax
jmp 0x41f0b7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41f0c1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ff522
add esp, 0xc
ret 0xc
Function at 0x41f950
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5265f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
test eax, eax
je 0x41f996
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push 0x2c
mov word [ebx + 4], 0
mov dword [ebp - 0x18], 0
call fcn.004ff533
mov esi, eax
lea ecx, [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.00402450
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
call fcn.0041d520
mov ecx, eax
call fcn.0041d5e0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402400
push 0
push 0
push edi
lea ecx, [ebp - 0x18]
call fcn.0042cac0
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x41fa2c
lea edi, [esi + 8]
jmp 0x41fa2e
xor edi, edi
mov ecx, dword [ebp - 0x1c]
call fcn.004023f0
test al, al
jne 0x41fa4c
mov ecx, dword [ebp - 0x1c]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x41fa4e
mov eax, dword [eax]
jmp 0x41fa4e
xor eax, eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
test eax, eax
je 0x41fa6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41fa6f
mov byte [ebx + 5], 1
cmp dword [ebx], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41fa98
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41faad
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004ff563
add esp, 8
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret 4
Function at 0x424980
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4249b8
mov edx, dword [esp + 4]
test edx, edx
je 0x4249b8
cmp dword [eax], 0xffffffff
je 0x4249b8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4249b8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4249c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4249fa
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4249fa
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4249fa
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4249fa
cmp edi, dword [esi]
jne 0x4249fa
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x424a10
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x55e068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x424a73
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x424a73
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424a73
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004ff522
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004ff522
add esp, 8
ret 4

Function at 0x4277d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524f5f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x55e068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00401f60
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.00404b90
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00404b90
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00404b90
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00404b90
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00404b90
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00404b90
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4291d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x55e068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004ff533
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00502470
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x42922c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004ff522
add esp, 0x120
ret
Function at 0x42c070
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x55e068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42c0d5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c0b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42c0d5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004ff522
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004ff522
add esp, 8
ret 4

Function at 0x42c220
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524158
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x42c257
xor al, al
jmp 0x42c2ca
and esi, 0xffffb1af
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x42c26a
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42c27a
mov al, 1
jmp 0x42c2ca
lea ecx, [ebp - 0x28]
call fcn.004024a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0042c7d0
test al, al
je 0x42c2b7
lea ecx, [ebp - 0x28]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x42c2a7
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42c2b7
mov bl, 1
jmp 0x42c2b9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret

Function at 0x42c2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524158
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x42c329
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c37c
lea ecx, [ebp - 0x28]
call fcn.004024a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0042c7d0
test al, al
je 0x42c36d
lea ecx, [ebp - 0x28]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x42c364
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret
Function at 0x42c3a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528120
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.004024c0
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x42c3df
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x42c3f3
mov al, 1
jmp 0x42c4fb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42c3fd
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402450
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042c2f0
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
cmp ebx, 0xffffffff
jne 0x42c435
xor al, al
jmp 0x42c4fb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42c43f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402450
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.0042c220
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
test bl, bl
je 0x42c42e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42c478
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x42c3ec
lea ecx, [ebp - 0x28]
call fcn.004024a0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.0042c7d0
test al, al
je 0x42c4bc
lea ecx, [ebp - 0x28]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x42c4b1
mov eax, dword [eax]
push eax
call edi
test eax, eax
je 0x42c4bc
mov bl, 1
jmp 0x42c4ea
cmp dword [esi + 0x14], 8
jb 0x42c4c4
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.00402450
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.0042c220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00402400
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret
Function at 0x42c520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x55e068]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00502470
add esp, 0xc
mov ecx, esi
call fcn.004024c0
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x42c567
mov esi, dword [esi]
mov ecx, edi
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x42c576
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42c5c7
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00402710
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00402540
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004ff522
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ff522
add esp, 0x210
ret
Function at 0x46d860
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.0043ea10
mov esi, eax
add esp, 8
test esi, esi
jne 0x46d888
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x55e8c4], 0
mov edi, dword [esp + 0x14]
je 0x46d8d0
mov eax, dword [0x55e9b4]
test eax, eax
je 0x46d8ac
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x46d8d0
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x441900
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.00513354
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x46d8dd
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x46d8f5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x47a700
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.0047f5d0
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x47a73a
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.0047f5d0
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x47f6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x47f77b
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x47f733
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x47f758
test edx, edx
jne 0x47f76a
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.004436b0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x47f7da
jmp 0x47f771
movzx ecx, byte [ecx + 0x53c2b8]
movzx edx, byte [edx + 0x53c2b8]
sub edx, ecx
jne 0x47f76d
inc eax
jmp 0x47f720
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x47f700
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x47f7a6
test ecx, ecx
jne 0x47f7b8
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x47f7bb
neg eax
sbb eax, eax
jmp 0x47f7ca
movzx eax, byte [eax + 0x53c2b8]
movzx ecx, byte [ecx + 0x53c2b8]
sub ecx, eax
jne 0x47f7d8
inc ebp
jmp 0x47f782
test eax, eax
je 0x47f7d8
mov edx, eax
call fcn.00442220
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x47f7d8
mov ebp, str.sqlite_temp_master
jmp 0x47f6f3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret