joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008b7c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf013f
push 0
mov esi, edx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008b80c
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1008b835
mov eax, dword [ebp - 4]
test eax, eax
je 0x1008b835
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x1008b83c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1008b850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1008b863
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push edi
sub esi, ecx
push 0x80000001
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008b8a8
lea eax, [ebp - 4]
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1008b8d5
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1008b8d5
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x1008b8dd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1008b8f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push str.SoftwarePPStreammain
push 0x80000001
mov esi, edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008b93e
lea eax, [ebp - 4]
push eax
push str.SoftwarePPStreammain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1008b964
mov eax, dword [ebp - 4]
test eax, eax
je 0x1008b964
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x1008b96b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008b980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1008b990
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsSaferCodeIdentifiers0Paths13283283_0000_0000_0000_210505232252
sub esi, ecx
push 0x80000002
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008b9dd
lea eax, [ebp - 4]
push eax
push str.SOFTWAREPoliciesMicrosoftWindowsSaferCodeIdentifiers0Paths13283283_0000_0000_0000_210505232252
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1008ba08
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1008ba08
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x1008ba10
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1008ba30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
mov esi, ecx
mov edi, edx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1008ba70
lea eax, [ebp - 4]
push eax
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1008ba96
mov eax, dword [ebp - 4]
test eax, eax
je 0x1008ba96
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
je 0x1008ba9e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008eb70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x28]
cmp ax, 9
je 0x1008eba8
cmp ax, 6
je 0x1008eba8
push 1
mov edx, str.PreventFirstRunPage
mov ecx, str.SOFTWAREPoliciesMicrosoftMicrosoftEdge
call fcn.1008ba30
add esp, 4
mov esp, ebp
pop ebp
ret
push 4
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push str.PreventFirstRunPage
mov edx, str.SOFTWAREPoliciesMicrosoftMicrosoftEdge
call fcn.1008b7c0
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x1008ebd0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10140c92
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10184f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call fcn.1011a970
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1008ec6a
mov eax, dword [esi]
jmp 0x1008ec6c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x218], cx
je 0x1008ec92
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008ec83
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10073cf0
push 0xe
mov dword [ebp - 4], 0
mov ecx, esi
push str.SogouExplorer
mov dword [ebp - 0x21c], 1
call fcn.10074860
cmp dword [esi + 0x14], 8
jb 0x1008ecca
mov eax, dword [esi]
jmp 0x1008eccc
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xe
push str._favorite3.dat
mov ecx, esi
call fcn.10074860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10116580
mov esp, ebp
pop ebp
ret
Function at 0x1008ed00
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10140cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10184f40]
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
xor edi, edi
mov dword [ebp - 0x38], edi
push 0x10175af8
push 0x85
mov dword [ebp - 4], edi
push dword [0x1018adf8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1008ed6e
push esi
push dword [0x1018adf8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
xor eax, eax
test edi, edi
mov dword [ebp - 0x38], edi
cmove esi, eax
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x28]
call fcn.1008ebd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10175a5c
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.1011e9fa
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x1008ee06
test edi, edi
jne 0x1008edba
xor ebx, ebx
jmp 0x1008edc3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test esi, esi
jne 0x1008edd4
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x38]
jmp 0x1008ede8
push esi
push dword [0x1018adf8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], 0
test ebx, ebx
je 0x1008edfb
push dword [ebp - 0x2c]
push eax
push 1
push ebx
call fcn.10126cc0
add esp, 0x10
push dword [ebp - 0x2c]
call fcn.1011e260
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1008ee1b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1006f8c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test edi, edi
je 0x1008ee3a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
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.10116580
mov esp, ebp
pop ebp
ret

Function at 0x1008ee60
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10184f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1011a970
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x1008eecf
xor ecx, ecx
jmp 0x1008eeef
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008eee0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10073cf0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10116580
mov esp, ebp
pop ebp
ret
Function at 0x10096d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x10187008], 0
je 0x10096de7
mov eax, dword [0x1018ae30]
test eax, eax
je 0x10096dc0
push eax
call dword [0x10187060]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.10094470
mov eax, dword [0x1018ae30]
test eax, eax
je 0x10096de2
push eax
call dword [0x10187068]
mov esi, dword [ebp - 4]
jmp 0x10096df1
mov esi, dword [ebp - 4]
jmp 0x10096df4
push 0x14
call dword [0x10187030]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10096e02
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x1018700c], 0
mov ebx, dword [ebp + 8]
je 0x10096e4c
mov eax, dword [0x10187110]
test eax, eax
je 0x10096e25
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10096e4c
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10096d60
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.1012c4d1
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10096e59
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10096e72
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b7130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov ecx, ebx
call fcn.100aa250
mov edi, dword [ebx + 0x18]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x100b7181
mov eax, 0x1010
mov dword [ebp - 0x24], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], esi
jmp 0x100b71a0
lea eax, [ebp - 0x34]
xor edx, edx
push eax
push esi
mov ecx, ebx
call fcn.100b1f60
add esp, 8
test eax, eax
jne 0x100b7261
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov al, byte [edi]
cmp al, 0x80
jae 0x100b71ab
movzx ebx, al
jmp 0x100b71b8
lea edx, [ebp - 8]
mov ecx, edi
call fcn.10098770
mov ebx, dword [ebp - 8]
cmp ebx, 3
jb 0x100b7227
cmp ebx, esi
jg 0x100b7227
lea ecx, [edi - 1]
add ecx, ebx
mov al, byte [ecx]
cmp al, 0x80
jae 0x100b71d1
movzx edx, al
jmp 0x100b71dc
lea edx, [ebp - 8]
call fcn.10098770
mov edx, dword [ebp - 8]
lea eax, [edx - 1]
cmp eax, 8
ja 0x100b7227
cmp edx, 7
je 0x100b7227
movzx ecx, byte [edx + 0x10172f28]
lea eax, [ecx + ebx]
cmp esi, eax
jb 0x100b7227
sub esi, ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + esi]
call fcn.100b5d90
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x34]
call fcn.100b16c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x2c], 0x2460
jne 0x100b7236
cmp dword [ebp - 0x1c], 0
je 0x100b723e
lea ecx, [ebp - 0x34]
call fcn.100b1620
push 0x10178af8
push 0x1273c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10096b90
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b7270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [edx + 0x28]
mov ebx, ecx
mov ecx, edi
call fcn.100aa250
mov esi, dword [edi + 0x1c]
xor eax, eax
mov edx, esi
add edx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x100b7331
jb 0x100b72a8
cmp edx, 0x7ffffffe
ja 0x100b7331
xor eax, eax
mov dword [ebp - 8], ebx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x10], eax
movsx eax, byte [edi + 0x44]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [edi + 0x20]
sub ecx, edx
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x100b72e2
mov eax, 0x1010
mov dword [ebp - 0x18], edx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], esi
jmp 0x100b72fd
lea eax, [ebp - 0x28]
xor edx, edx
push eax
push esi
mov ecx, edi
call fcn.100b1f60
add esp, 8
test eax, eax
jne 0x100b735d
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push 0
push dword [ebp + 8]
mov ecx, esi
call fcn.100b66e0
mov ecx, dword [ebp + 0xc]
add esp, 8
test dword [ebp - 0x20], 0x2460
mov dword [ecx], eax
jne 0x100b7320
cmp dword [ebp - 0x10], 0
je 0x100b7328
lea ecx, [ebp - 0x28]
call fcn.100b1620
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x10178af8
push 0x1275d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
mov dword [eax], 0
call fcn.10096b90
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c8ae0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
mov ebx, ecx
mov dword [esp + 0x18], eax
test edi, edi
je 0x100c8c4a
push 0
push 0x44
mov ecx, ebx
call fcn.10094c40
mov esi, eax
add esp, 8
test esi, esi
je 0x100c8c3f
push dword [ebp + 8]
mov edx, dword [edi]
mov ecx, ebx
call fcn.100c8540
add esp, 4
mov dword [esi], eax
mov edx, dword [edi + 0x1c]
mov ecx, ebx
push dword [ebp + 8]
call fcn.100c8760
add esp, 4
mov dword [esi + 0x1c], eax
mov edx, dword [edi + 0x20]
mov ecx, ebx
push dword [ebp + 8]
call fcn.100c8510
add esp, 4
mov dword [esi + 0x20], eax
mov edx, dword [edi + 0x24]
mov ecx, ebx
push dword [ebp + 8]
call fcn.100c8540
add esp, 4
mov dword [esi + 0x24], eax
mov edx, dword [edi + 0x28]
mov ecx, ebx
push dword [ebp + 8]
call fcn.100c8510
add esp, 4
mov dword [esi + 0x28], eax
mov edx, dword [edi + 0x2c]
mov ecx, ebx
push dword [ebp + 8]
call fcn.100c8540
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x2c], eax
mov ecx, ebx
mov al, byte [edi + 4]
lea edi, [esi + 0x30]
mov byte [esi + 4], al
mov eax, dword [esp + 0x1c]
push dword [ebp + 8]
mov dword [esi + 0x34], eax
mov dword [edi], 0
mov edx, dword [edx + 0x38]
call fcn.100c8510
mov dword [esi + 0x38], eax
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, ebx
push dword [ebp + 8]
mov edx, dword [eax + 0x3c]
call fcn.100c8510
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ecx + 8]
and eax, 0xffffffdf
mov dword [esi + 8], eax
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov ax, word [ecx + 6]
mov word [esi + 6], ax
mov edx, dword [ecx + 0x40]
mov ecx, ebx
call fcn.100c83d0
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
mov dword [eax], esi
mov edi, dword [edi + 0x30]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x100c8b14
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100d2440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
xor edi, edi
cmp dword [ecx + 0x14], edi
jle 0x100d24da
nop dword [eax + eax]
mov eax, edi
mov ecx, edi
xor eax, 1
cmp edi, 2
cmovl ecx, eax
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x100d2526
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 4]
add edx, edx
mov eax, esi
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x10173378]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x10173378]
sub esi, ecx
jne 0x100d24cb
sub edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
test bl, bl
je 0x100d251c
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x10173378]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x10173378]
sub esi, edx
mov edx, dword [ebp - 0xc]
je 0x100d24a7
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
mov esi, dword [ebp + 8]
cmp edi, dword [ecx + 0x14]
jl 0x100d2460
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10173378]
sub eax, 0x73
jne 0x100d2513
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x100d2553
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x10173378]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10173378]
sub eax, ecx
je 0x100d24f2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100d24cb
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x10]
add ecx, ecx
push eax
mov eax, dword [ebp - 4]
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.10098ff0
add esp, 4
test eax, eax
je 0x100d24ce
mov eax, dword [eax + 8]
test eax, eax
jne 0x100d2515
jmp 0x100d24ce
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x10]
test esi, esi
jne 0x100d2569
neg eax
sbb eax, eax
jmp 0x100d2579
test eax, eax
je 0x100d2513
mov edx, eax
mov ecx, esi
call fcn.10097960
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x100d2513
mov ebx, str.sqlite_temp_master
mov dword [ebp - 8], ebx
jmp 0x100d2454
Function at 0x100d2740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 0x14]
push edi
mov dword [ebp - 0xc], edx
xor edi, edi
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
test eax, eax
jle 0x100d280c
mov edx, dword [ecx + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
mov ecx, edi
mov eax, edi
xor ecx, 1
cmp edi, 2
cmovl eax, ecx
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100d27d9
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x10173378]
movzx ecx, al
movzx ecx, byte [ecx + 0x10173378]
sub ecx, edx
jne 0x100d27c7
sub ebx, esi
test al, al
je 0x100d27d5
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x10173378]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x10173378]
sub ecx, edx
je 0x100d27a6
mov edx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x100d27fc
mov edx, dword [ebp - 0x14]
jmp 0x100d2767
test ecx, ecx
jne 0x100d27c7
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.10098ff0
add esp, 4
test eax, eax
je 0x100d2805
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
je 0x100d27ca
pop esi
pop ebx
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x100d27ca
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10113340
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebx, edx
mov dword [esp + 0xc], ecx
mov esi, dword [edi]
test esi, esi
jne 0x1011335b
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x400000
mov dword [edi], 0
nop dword [eax]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call ebp
mov ecx, dword [esp + 0x18]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x101133b7
test ecx, ecx
je 0x101133af
mov ecx, dword [esp + 0x10]
mov edx, 0x400000
test esi, esi
jne 0x10113370
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

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

Disassembly:
sub esp, 0x24
xor eax, eax
push esi
push edi
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x1018b018], ecx
inc eax
cmp eax, 0x100
jb 0x101135e7
cmp eax, 0x800
jae 0x101136b6
mov edx, dword [eax*4 + 0x1018ac18]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1018b018]
mov dword [eax*4 + 0x1018b018], edx
inc eax
cmp eax, 0x800
jb 0x10113693
lea ecx, [esp + 8]
mov dword [0x1018d334], 0x101143a0
call fcn.101144b0
test eax, eax
je 0x10113743
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
mov esi, edi
shr edi, 4
shr esi, 8
and edi, 0xf00f
and esi, 0xff00f
call fcn.10114540
sub eax, 0
je 0x1011372a
sub eax, 1
je 0x10113719
sub eax, 1
jne 0x10113743
cmp esi, 6
jb 0x10113743
jne 0x10113739
cmp edi, 0xf
jb 0x10113743
mov dword [0x1018d334], 0x10114440
pop edi
pop esi
add esp, 0x24
ret
cmp esi, 5
jb 0x10113743
jne 0x10113739
cmp edi, 6
jb 0x10113743
cmp edi, 0xa
jmp 0x10113737
cmp esi, 6
jb 0x10113743
jne 0x10113739
cmp edi, 0x100c
je 0x10113743
mov dword [0x1018d334], 0x10114440
pop edi
pop esi
add esp, 0x24
ret