joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4589f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f7e37
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x519af0
mov dword [edi + 8], 0x518cdc
mov dword [edi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00458ed0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.004540f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x538c04]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x45f350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f3018
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
sub esp, 0xc
lea edi, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x24], esp
call fcn.0046dd00
sub esp, 0xc
lea edi, [esp + 0x48]
mov eax, esp
mov byte [esp + 0x40], 2
mov dword [esp + 0x34], esp
call fcn.0046dd00
mov byte [esp + 0x40], 1
call fcn.0045f5c0
add esp, 0x24
mov esi, eax
mov byte [esp + 0x1c], 0
call fcn.00402680
lea edi, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00402680
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4649a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f38d1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0xc]
push eax
push ecx
push edx
sub esp, 0xc
mov dword [esp + 0x24], esp
mov eax, esp
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.00464460
sub esp, 0xc
mov byte [esp + 0x48], 4
lea edx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00464cc0
sub esp, 8
lea ecx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov byte [esp + 0x58], 5
call fcn.00464cc0
add esp, 4
push esi
mov byte [esp + 0x58], 3
call fcn.00464cf0
add esp, 0x34
lea edi, [esp + 0x30]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call fcn.00402680
lea edi, [esp + 0x3c]
mov byte [esp + 0x24], 1
call fcn.00402680
lea edi, [esp + 0x48]
mov byte [esp + 0x24], 0
call fcn.00402680
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x464a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f38d1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0xc]
push eax
push ecx
push edx
sub esp, 0xc
mov dword [esp + 0x24], esp
mov eax, esp
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.00464460
sub esp, 0xc
mov byte [esp + 0x48], 4
lea edx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00464cc0
sub esp, 8
lea ecx, [esp + 0x60]
mov eax, esp
mov dword [esp + 0x48], esp
push ecx
mov byte [esp + 0x58], 5
call fcn.00464cc0
add esp, 4
push esi
mov byte [esp + 0x58], 3
call fcn.00464e20
add esp, 0x34
lea edi, [esp + 0x30]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call fcn.00402680
lea edi, [esp + 0x3c]
mov byte [esp + 0x24], 1
call fcn.00402680
lea edi, [esp + 0x48]
mov byte [esp + 0x24], 0
call fcn.00402680
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x466740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f4b80
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [eax], vtable.Json::StyledWriter.0
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x30], ecx
mov edx, 0xf
mov dword [eax + 0x34], edx
mov byte [eax + 0x20], cl
mov dword [eax + 0x38], ecx
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], ecx
mov byte [eax + 0x40], cl
mov dword [eax + 0x58], 0x4a
mov dword [eax + 0x5c], 3
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 4
Function at 0x46b0a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46b0a5
sub eax, edx
push edi
mov edi, eax
xor ecx, ecx
test edi, edi
jle 0x46b0dc
jmp 0x46b0c0
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea eax, [edx + edx*4]
mov edx, ecx
sub edx, eax
mov al, byte [ebx + edx*4]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x46b0c0
pop edi
ret
Function at 0x46b0e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x4f3738
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x52f4a8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1bc]
mov esi, ecx
xor ebx, ebx
push 0x50d198
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
call fcn.00401f10
mov edi, 1
mov dword [esp + 0x1b4], edi
cmp ebp, ebx
jne 0x46b184
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00406050
mov byte [esp + 0x1b4], bl
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x14], edi
jb 0x46b177
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00476350
add esp, 4
mov dword [esp + 0x58], 0xf
jmp 0x46b320
mov eax, 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov al, 0x62
mov cl, 0x63
mov byte [esp + 0x195], al
mov byte [esp + 0x196], al
mov al, 0x64
mov byte [esp + 0x1a0], bl
mov edi, 4
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x190]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
mov byte [esp + 0x190], 0x72
mov byte [esp + 0x191], 0x70
mov byte [esp + 0x192], 0x36
mov byte [esp + 0x193], cl
mov byte [esp + 0x194], 0x67
mov byte [esp + 0x197], al
mov byte [esp + 0x198], al
mov byte [esp + 0x199], 0x30
mov byte [esp + 0x19a], 0x37
mov byte [esp + 0x19b], 0x31
mov byte [esp + 0x19c], al
mov byte [esp + 0x19d], cl
mov byte [esp + 0x19e], 0x61
mov byte [esp + 0x19f], 0x66
call fcn.0046b0a0
mov edx, dword [esp + 0x190]
mov eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x198]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
lea edi, [esp + 0x5c]
mov dword [esp + 0x74], 0xa
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
call fcn.0046ec60
mov eax, edi
push eax
mov edx, ebp
lea ecx, [esp + 0x20]
call fcn.0046f640
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1c0], 2
call fcn.00401fc0
mov edi, 0x10
mov byte [esp + 0x1b4], 1
cmp dword [esp + 0x38], edi
jb 0x46b2d0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00476350
add esp, 4
mov ebp, 0xf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401050
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00406050
mov byte [esp + 0x1b4], bl
mov dword [esp + 0x14], 1
cmp dword [esp + 0x58], edi
jb 0x46b31c
mov eax, dword [esp + 0x44]
push eax
call fcn.00476350
add esp, 4
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00401050
mov eax, esi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00476050
add esp, 0x1a4
ret
Function at 0x46eed0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
mov edi, ecx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x46ef20
mov ebx, ecx
and ebx, 0x80000003
jns 0x46ef01
dec ebx
or ebx, 0xfffffffc
inc ebx
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov dl, byte [ecx + esi]
sar eax, 2
add eax, edi
mov byte [eax + ebx*4], dl
mov eax, dword [edi + 0x10]
add eax, eax
inc ecx
add eax, eax
cmp ecx, eax
jl 0x46eef2
mov ecx, dword [edi + 0x18]
lea ebx, [edi + 4]
shl ecx, 4
mov eax, ebx
lea ecx, [ecx + edi + 0x3e]
mov esi, 4
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub esi, 1
jne 0x46ef34
mov eax, dword [edi + 0x18]
dec eax
cmp eax, 1
jl 0x46efc3
mov ecx, eax
shl ecx, 4
push ebp
lea ebp, [ecx + edi + 0x3e]
mov dword [esp + 0x10], eax
mov edi, edi
push edi
call fcn.0046f0a0
mov eax, edi
call fcn.0046f050
mov eax, ebx
mov ecx, ebp
mov esi, 4
jmp 0x46ef90
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub esi, 1
jne 0x46ef90
call fcn.0046f170
sub ebp, 0x10
sub dword [esp + 0x10], 1
jne 0x46ef70
pop ebp
push edi
call fcn.0046f0a0
mov eax, edi
call fcn.0046f050
mov eax, ebx
lea ecx, [edi + 0x3d]
mov esi, 4
lea ebx, [ebx]
movzx edx, byte [ecx - 1]
xor byte [eax - 4], dl
movzx edx, byte [ecx]
xor byte [eax], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 2]
xor byte [eax + 8], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x46efe0
mov eax, dword [edi + 0x10]
add eax, eax
add eax, eax
xor ecx, ecx
test eax, eax
jle 0x46f042
mov esi, ecx
and esi, 0x80000003
jns 0x46f01f
dec esi
or esi, 0xfffffffc
inc esi
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, edi
mov dl, byte [eax + esi*4]
mov eax, dword [esp + 0x14]
mov byte [ecx + eax], dl
mov edx, dword [edi + 0x10]
add edx, edx
inc ecx
add edx, edx
cmp ecx, edx
jl 0x46f010
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x46f050
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add eax, 4
mov ecx, 4
jmp 0x46f060
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x533f00]
mov byte [eax - 4], dl
movzx edx, byte [eax]
movzx edx, byte [edx + 0x533f00]
mov byte [eax], dl
movzx edx, byte [eax + 4]
movzx edx, byte [edx + 0x533f00]
mov byte [eax + 4], dl
movzx edx, byte [eax + 8]
movzx edx, byte [edx + 0x533f00]
mov byte [eax + 8], dl
inc eax
sub ecx, 1
jne 0x46f060
ret

Function at 0x476050
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52f4a8]
jne 0x47605a
repz ret
jmp fcn.00487c80
Function at 0x478ab0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x478acf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x478ad6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x478aed
mov ecx, dword [ebp - 4]
push ecx
call fcn.00481910
add esp, 4
or eax, 0xffffffff
jmp 0x478aef
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4b5cdd
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
jne 0x4b5d19
push 1
push 0x14
call fcn.004b74ac
add esp, 8
mov dword [ebp - 4], eax
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00488300
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x4b5d1f
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x30]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4b5d59
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004b7482
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push 0
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4b5d99
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x10
push eax
call fcn.004b74ac
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4b5ef2
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4b5f0b
cmp dword [ebp + 0xc], 0
jne 0x4b5f0f
xor eax, eax
jmp 0x4b5f7c
call fcn.004b5f80
test eax, eax
jne 0x4b5f1d
or eax, 0xffffffff
jmp 0x4b5f7c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [0x538374]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4b5f79
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4b5f6f
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x6801
mov ecx, dword [0x538374]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4b5f80
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x538374], 0
je 0x4b5f93
mov eax, 1
jmp 0x4b5fd0
push 0
push 1
push 0x5309c4
push 0
push 0x538374
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4b5fcb
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x538374
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4b5fcb
xor eax, eax
jmp 0x4b5fd0
mov eax, 1
pop ebp
ret
Function at 0x4c7a8d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004c7b35
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4c7af2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c7ae4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp edx, 3
jge 0x4c7ae4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x4c7aaf
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b7482
add esp, 4
jmp 0x4c7b27
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c7b27
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp ecx, 3
jge 0x4c7b27
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
test eax, eax
jne 0x4c7af2
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xa
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004c7b35
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c7c4e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
call fcn.004b7482
add esp, 4
jmp 0x4c7c63
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4c7f22
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
cmp dword [0x5383a4], 0
je 0x4c7f54
push 0x118
mov eax, dword [0x5383a4]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0047f5e0
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x4c7fcf
call fcn.004c7bbd
test eax, eax
je 0x4c7fbd
lea edx, [ebp - 0x3ac]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x3ac]
push eax
call fcn.004c80c6
add esp, 4
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0
je 0x4c7fbb
push 0x118
mov ecx, dword [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.0047f5e0
add esp, 0xc
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.004b7482
add esp, 4
jmp 0x4c7fcf
lea ecx, [ebp - 0x13c]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x13c]
push edx
call fcn.00481880
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4c7fec
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4c8004
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x13d]
cmp edx, 0x5c
jne 0x4c8004
jmp 0x4c7fe3
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x13c], 0
lea ecx, [ebp - 0x13c]
push ecx
push str._s_sqlite_
mov edx, dword [ebp + 8]
push edx
call fcn.00478d90
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00481880
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
push ecx
push 0xf
call fcn.004d4e60
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4c806e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
cmp dword [ebp - 4], 0xf
jge 0x4c809d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov ecx, 0x3e
div ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x140]
mov cl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [eax], cl
jmp 0x4c8056
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x140]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004c7c09
add esp, 4
test eax, eax
jne 0x4c80bb
jmp 0x4c80c0
jmp 0x4c800f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4c837c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4c838c
xor eax, eax
jmp 0x4c8407
call fcn.004c7bbd
test eax, eax
jne 0x4c83ac
mov eax, dword [ebp + 8]
push eax
call fcn.00481880
add esp, 4
cmp eax, 0x104
jbe 0x4c83ac
xor eax, eax
jmp 0x4c8407
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c7b35
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c83dc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004b7482
add esp, 4
jmp 0x4c83e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4c83f3
xor eax, eax
jmp 0x4c8407
mov edx, dword [ebp - 8]
and edx, 0x10
cmp edx, 0x10
je 0x4c8402
xor eax, eax
jmp 0x4c8407
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4c8a04
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x5383ac], 0
jne 0x4c8a4e
call fcn.004c897c
cmp dword [0x5383ac], 0
jne 0x4c8a49
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x538398], eax
cmp dword [0x538398], 0xffffffff
jne 0x4c8a3f
call fcn.004c898e
xor eax, eax
jmp 0x4c8af3
mov dword [0x5383ac], 1
call fcn.004c898e
mov eax, dword [0x538398]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jle 0x4c8aab
cmp dword [ebp - 4], 0
jne 0x4c8aa9
push 0xc
call fcn.004c7a40
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c8aa9
mov ecx, dword [ebp - 4]
mov edx, dword [0x50a520]
mov dword [ecx], edx
mov eax, dword [0x50a524]
mov dword [ecx + 4], eax
mov edx, dword [0x50a528]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x538398]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4c8af0
cmp dword [ebp - 4], 0
je 0x4c8af0
cmp dword [ebp + 8], 0
jge 0x4c8af0
push 0xc
push 0x50a520
mov edx, dword [ebp - 4]
push edx
call fcn.0049c590
add esp, 0xc
test eax, eax
jne 0x4c8af0
mov eax, dword [ebp - 4]
push eax
call fcn.004c7a75
add esp, 4
push 0
mov ecx, dword [0x538398]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4d5ae5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 2
jge 0x4d5afb
mov eax, 0x17
jmp 0x4d5bad
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
xor edx, edx
mov dl, byte [ecx + 0x50a3a8]
mov eax, edx
shl eax, 2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx - 1]
xor ecx, ecx
mov cl, byte [edx + 0x50a3a8]
imul ecx, ecx, 3
xor eax, ecx
xor eax, dword [ebp + 0xc]
cdq
mov ecx, 0x7f
idiv ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + str.Pk_]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4d5b59
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x50aae4]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jl 0x4d5ba8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x50ab58]
cmp ecx, dword [ebp + 0xc]
jne 0x4d5ba6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx*2 + 0x50abcc]
add edx, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHERE
push edx
call fcn.004b7954
add esp, 0xc
test eax, eax
jne 0x4d5ba6
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x50acb4]
mov eax, ecx
jmp 0x4d5bad
jmp 0x4d5b48
mov eax, 0x17
mov esp, ebp
pop ebp
ret