joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480d18
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ade6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0049e9cc
mov dword [esi], 0xa4d940
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0xa4d86c
call fcn.004838c0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.004838c0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.004838c0
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.004838c0
mov dword [edi], 0xa4d864
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.0049bb35
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0xa4d934
mov eax, dword [0xa68e60]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.004838c0
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.0049bb35
mov ecx, dword [esp + 0x10]
mov dword [esi], 0xa4d874
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x480e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adef4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0xa4d874
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.0049bb5e
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0xa4d860
call fcn.00483ac0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.0049d3a8
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xa4d9f8
mov byte [esp + 0x18], 6
call fcn.004a4196
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.0049bb5e
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0xa4d860
call fcn.00483ac0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0xa4d860
call fcn.00483ac0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xa4d860
call fcn.00483ac0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0xa4d860
call fcn.00483ac0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0049b797
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100012c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 8
mov byte [esi + 0x10], 1
cmp eax, 0xffffffff
je 0x100012f2
test eax, eax
je 0x100012f2
push 0x3e8
push eax
call fcn.1000801c
mov eax, dword [esi]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, dword [0x10102400]
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], 0
test eax, eax
je 0x10001341
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 6
push eax
call edi
mov edx, dword [0x10102404]
mov eax, dword [0x10102400]
mov dword [eax], edx
mov cx, word [0x10102408]
lea edx, [ebp - 8]
push edx
mov word [eax + 4], cx
mov ecx, dword [ebp - 4]
push ecx
push 6
push eax
call edi
pop edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10001354
call fcn.10007ea6
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10001369
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100017c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002db48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100ff120]
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
push str.Logon.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x100018d6
xor ecx, ecx
mov byte [esi + 0x11], al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], eax
call fcn.10001500
mov eax, dword [ebp - 0x1c]
add esp, 4
push str.5.4.800.0
mov edi, 9
lea ecx, [ebp - 0x2c]
call fcn.10001e30
test eax, eax
jne 0x10001846
mov dword [esi + 0x14], 0xf7b5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100018c4
add eax, ebx
je 0x100018c4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x38]
push edx
mov dword [0x101023fc], eax
add eax, 0xfffffffa
push 0x40
mov ecx, 0x100017a0
sub ecx, eax
push 6
sub ecx, 5
push eax
mov dword [0x10102400], eax
mov byte [ebp - 0x34], 0xe9
mov byte [ebp - 0x2f], 0x90
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
call esi
mov eax, dword [0x10102400]
mov ecx, dword [eax]
mov dword [0x10102404], ecx
movzx edx, word [eax + 4]
mov ecx, dword [ebp - 0x34]
mov word [0x10102408], dx
movzx edx, word [ebp - 0x30]
mov dword [eax], ecx
lea ecx, [ebp - 0x3c]
push ecx
mov word [eax + 4], dx
mov edx, dword [ebp - 0x38]
push edx
push 6
push eax
call esi
cmp dword [ebp - 0x18], 8
jb 0x100018d6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100157f1
add esp, 4
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.10015100
mov esp, ebp
pop ebp
ret
Function at 0x10002290
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d5ab
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], ax
push 0x7fe
lea edx, [ebp - 0x80e]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x810], cx
call fcn.100174f0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1000232e
cmp dword [ebp - 0x818], 8
jb 0x10002326
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.100157f1
add esp, 4
or eax, 0xffffffff
jmp 0x1000243e
lea edx, [ebp - 0x810]
push edx
call fcn.10008523
lea eax, [ebp - 0x810]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10002346
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.10001b40
push 0x13
push str.duowanyyimgroup_
lea ecx, [ebp - 0x82c]
call fcn.10002930
mov eax, dword [0x10102440]
xor ecx, ecx
mov word [ebp - 0x810], cx
cmp eax, esi
jne 0x100023cf
push 0x10004660
call fcn.100157da
push 0x3c
call fcn.1001584d
add esp, 8
cmp eax, esi
je 0x100023c8
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], esi
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x30], 7
mov dword [eax + 0x2c], esi
xor ecx, ecx
mov word [eax + 0x1c], cx
mov dword [eax + 0x38], esi
jmp 0x100023ca
xor eax, eax
mov dword [0x10102440], eax
mov edx, dword [eax + 0x38]
push edx
lea eax, [ebp - 0x810]
push str._u_buddylist
push eax
call fcn.10001150
lea eax, [ebp - 0x810]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100023f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x82c]
call fcn.10002930
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebx + 0x20]
call fcn.100019f0
cmp dword [ebp - 0x818], 8
jb 0x1000243c
mov eax, dword [ebp - 0x82c]
push eax
call fcn.100157f1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret
Function at 0x10004400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002db48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100ff120]
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
push str.appmain.dll
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x10004591
xor ecx, ecx
mov byte [ebx + 0x11], al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], eax
call fcn.10004090
lea esi, [ebp - 0x2c]
call fcn.10004360
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000457f
cmp dword [ebx + 0x18], 0
jbe 0x1000457f
add eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x100044f7
lea edx, [ebp - 0x30]
push edx
mov dword [0x10102418], eax
add eax, 0xfffffffa
push 0x40
mov ecx, 0x10004330
sub ecx, eax
push 6
sub ecx, 5
push eax
mov dword [0x10102424], eax
mov byte [ebp - 0x38], 0xe9
mov byte [ebp - 0x33], 0x90
mov dword [ebp - 0x37], ecx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], 0
call esi
mov eax, dword [0x10102424]
mov ecx, dword [eax]
mov dword [0x1010242c], ecx
movzx edx, word [eax + 4]
mov ecx, dword [ebp - 0x38]
mov word [0x10102430], dx
movzx edx, word [ebp - 0x34]
mov dword [eax], ecx
lea ecx, [ebp - 0x3c]
push ecx
mov word [eax + 4], dx
mov edx, dword [ebp - 0x30]
push edx
push 6
push eax
call esi
mov eax, dword [ebx + 0x18]
add eax, edi
je 0x10004573
lea ecx, [eax + 5]
mov dword [0x1010241c], ecx
mov edx, dword [eax + 1]
lea ecx, [edx + eax + 5]
mov dword [0x10102420], ecx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
mov edx, 0x10004350
sub edx, eax
push 5
sub edx, 5
push eax
mov dword [0x10102428], eax
mov byte [ebp - 0x38], 0xe9
mov dword [ebp - 0x37], edx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], 0
call esi
mov eax, dword [0x10102428]
mov edx, dword [eax]
mov dword [0x10102434], edx
movzx ecx, byte [eax + 4]
mov edx, dword [ebp - 0x38]
mov byte [0x10102438], cl
movzx ecx, byte [ebp - 0x34]
mov dword [eax], edx
lea edx, [ebp - 0x3c]
push edx
mov byte [eax + 4], cl
mov ecx, dword [ebp - 0x30]
push ecx
push 5
push eax
call esi
cmp dword [ebp - 0x18], 8
jb 0x10004591
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x10004589
cmp dword [ebp - 0x18], 8
jb 0x10004591
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100157f1
add esp, 4
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.10015100
mov esp, ebp
pop ebp
ret
Function at 0x100045b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10102424]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], 0
test eax, eax
je 0x10004604
lea ecx, [ebp - 4]
push ecx
push 0x40
push 6
push eax
call esi
mov edx, dword [0x1010242c]
mov eax, dword [0x10102424]
mov dword [eax], edx
mov cx, word [0x10102430]
lea edx, [ebp - 8]
push edx
mov word [eax + 4], cx
mov ecx, dword [ebp - 4]
push ecx
push 6
push eax
call esi
mov eax, dword [0x10102428]
test eax, eax
je 0x1000463b
lea edx, [ebp - 4]
push edx
push 0x40
push 5
push eax
call esi
mov ecx, dword [0x10102434]
mov eax, dword [0x10102428]
mov dword [eax], ecx
mov dl, byte [0x10102438]
lea ecx, [ebp - 8]
push ecx
mov byte [eax + 4], dl
mov edx, dword [ebp - 4]
push edx
push 5
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d758
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100ff120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], vtable.CSqliteQueryResult.0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [esi + 0x84], 7
mov dword [esi + 0x80], edi
mov word [esi + 0x70], ax
mov byte [ebp - 4], 1
push 0x1c
mov dword [esi + 0x94], edi
call fcn.1001584d
add esp, 4
cmp eax, edi
je 0x10004f17
mov dword [esi + 0x90], eax
mov dword [eax], eax
mov eax, dword [esi + 0x90]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x90]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x90]
mov byte [ecx + 0x18], 1
mov edx, dword [esi + 0x90]
mov byte [edx + 0x19], 1
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.10015197
push 0x100fcd9c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.1001b87b
int3
Function at 0x10005220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.100174f0
add esp, 0xc
lea edx, [ebp - 0x804]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1000527f
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
call fcn.10008523
lea eax, [ebp - 0x804]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005297
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x804]
add esi, 0x70
push ecx
mov ecx, esi
call fcn.10001b40
push 0x13
push str.duowanyyimgroup_
mov ecx, esi
call fcn.10002930
mov eax, dword [0x10102440]
xor edx, edx
mov word [ebp - 0x804], dx
test eax, eax
jne 0x1000531c
push 0x10004660
call fcn.100157da
push 0x3c
call fcn.1001584d
add esp, 8
test eax, eax
je 0x10005315
mov ecx, 7
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], 0
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x30], ecx
xor ecx, ecx
mov dword [eax + 0x2c], edx
mov word [eax + 0x1c], cx
mov dword [eax + 0x38], ecx
jmp 0x10005317
xor eax, eax
mov dword [0x10102440], eax
mov eax, dword [eax + 0x38]
push eax
push eax
lea edx, [ebp - 0x804]
push str._uyydb_u.yydb
push edx
call fcn.10001150
lea eax, [ebp - 0x804]
add esp, 0x10
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005340
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call fcn.10002930
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10015100
mov esp, ebp
pop ebp
ret
Function at 0x10005490
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002da7b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100ff120]
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, dword [ebp + 0xc]
mov ebx, edx
mov dword [eax], 0
mov dword [ebp - 0x438], eax
mov eax, dword [ebx + 4]
push eax
mov edi, ecx
mov ecx, dword [ebx]
push ecx
lea eax, [ebp - 0x434]
push eax
push ebx
mov dword [ebp - 0x430], edi
call fcn.10006190
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov byte [ebp - 0x410], 0
call fcn.100174f0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push str.SELECT_name_FROM_sqlite_master_WHERE_name_LIKE_u__u__U_____ORDER_BY_name
push eax
call fcn.10015d26
mov edx, dword [edi + 0x44]
mov eax, dword [edx + 0x14]
lea esi, [edi + 0x44]
add esp, 0x18
mov ecx, esi
call eax
mov eax, dword [edi + 0x3c]
lea ecx, [edi + 0x40]
push ecx
mov ecx, dword [edi + 0x14]
push esi
push 0x10007630
lea edx, [ebp - 0x410]
push edx
push eax
call ecx
add esp, 0x14
test eax, eax
jne 0x10005660
mov edx, dword [edi + 0x44]
mov eax, dword [edx]
lea esi, [edi + 0x44]
mov ecx, esi
mov dword [ebp - 0x434], esi
call eax
test eax, eax
je 0x10005610
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
jmp 0x10005590
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005590
sub ecx, edx
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x42c]
call fcn.10006300
xor esi, esi
lea ecx, [ebp - 0x42c]
mov edi, ebx
mov dword [ebp - 4], esi
call fcn.10006060
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x418], 0x10
jb 0x100055d9
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.100157f1
add esp, 4
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], esi
mov byte [ebp - 0x42c], 0
call eax
cmp eax, esi
jne 0x10005569
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x434]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10005660
lea ecx, [edi + 0x8c]
lea ebx, [ebp + 8]
lea eax, [ebp - 0x430]
call fcn.10006130
mov eax, dword [ebp - 0x430]
cmp eax, dword [edi + 0x90]
je 0x10005660
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x438]
mov dword [eax], edx
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.10015100
mov esp, ebp
pop ebp
ret 8
Function at 0x10007200
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push str.sqlite3.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x10007227
push str.sqlite3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10007324
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push edi
call ebx
push str.sqlite3_close
push edi
mov dword [esi], eax
call ebx
push str.sqlite3_key
push edi
mov dword [esi + 0xc], eax
call ebx
push str.sqlite3_exec
push edi
mov dword [esi + 8], eax
call ebx
push str.sqlite3_prepare
push edi
mov dword [esi + 0x10], eax
call ebx
push str.sqlite3_step
push edi
mov dword [esi + 0x14], eax
call ebx
push str.sqlite3_finalize
push edi
mov dword [esi + 0x2c], eax
call ebx
push str.sqlite3_column_count
push edi
mov dword [esi + 0x30], eax
call ebx
push str.sqlite3_column_int64
push edi
mov dword [esi + 0x18], eax
call ebx
push str.sqlite3_column_name16
push edi
mov dword [esi + 0x24], eax
call ebx
push str.sqlite3_column_text16
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.sqlite3_column_type
push edi
mov dword [esi + 0x28], eax
call ebx
push str.sqlite3_free
push edi
mov dword [esi + 0x20], eax
call ebx
push str.sqlite3_open16
push edi
mov dword [esi + 0x34], eax
call ebx
cmp dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x38], 0
pop ebx
je 0x10007324
cmp dword [esi + 0xc], 0
je 0x10007324
cmp dword [esi + 8], 0
je 0x10007324
cmp dword [esi + 0x10], 0
je 0x10007324
cmp dword [esi + 0x14], 0
je 0x10007324
cmp dword [esi + 0x2c], 0
je 0x10007324
cmp dword [esi + 0x30], 0
je 0x10007324
cmp dword [esi + 0x20], 0
je 0x10007324
cmp dword [esi + 0x18], 0
je 0x10007324
cmp dword [esi + 0x24], 0
je 0x10007324
cmp dword [esi + 0x1c], 0
je 0x10007324
cmp dword [esi + 0x28], 0
je 0x10007324
cmp dword [esi + 0x34], 0
je 0x10007324
test eax, eax
je 0x10007324
xor eax, eax
pop edi
ret
or eax, 0xffffffff
pop edi
ret

Function at 0x10007fdb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10008007
mov dword [ecx], eax
jmp 0x10008017
cmp eax, 0xffffffff
je 0x10008017
test eax, eax
je 0x10008017
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100084ec
test al, 0x10
jne 0x100084ec
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10008555
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
je 0x100085c0
mov eax, dword [esi + 4]
test eax, eax
je 0x100085c0
push eax
call fcn.1001ac81
pop ecx
test eax, eax
jne 0x100085c0
cmp dword [ebp + 8], eax
je 0x100085c0
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1001af1b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100085a4
push dword [esi + 4]
call fcn.1001ac81
pop ecx
test eax, eax
jne 0x100085a4
or eax, 0xffffffff
jmp 0x100085c2
push dword [esi + 4]
call fcn.1001aca9
pop ecx
test eax, eax
je 0x100085bc
push dword [esi + 4]
call fcn.1001ac76
pop ecx
jmp 0x1000859f
mov eax, edi
jmp 0x100085c2
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x10015100
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ff120]
jne 0x1001510a
repz ret
jmp fcn.1001bde8
Function at 0x10027fc3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001fa82
and dword [ebp - 0x14], 0
cmp dword [0x101023d4], 0
mov dword [ebp - 0x18], eax
jne 0x10028076
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1002811e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1002811e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101023d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101023d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101023dc], eax
call edi
push eax
call esi
mov dword [0x101023e4], eax
test eax, eax
je 0x10028076
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101023e0], eax
mov eax, dword [0x101023e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100280cf
cmp dword [0x101023e4], ecx
je 0x100280cf
push eax
call esi
push dword [0x101023e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100280cf
test ebx, ebx
je 0x100280cf
call edi
test eax, eax
je 0x100280c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100280c6
test byte [ebp - 8], 1
jne 0x100280cf
or dword [ebp + 0x10], 0x200000
jmp 0x10028102
mov eax, dword [0x101023d8]
cmp eax, dword [ebp - 0x18]
je 0x10028102
push eax
call esi
test eax, eax
je 0x10028102
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10028102
mov eax, dword [0x101023dc]
cmp eax, dword [ebp - 0x18]
je 0x10028102
push eax
call esi
test eax, eax
je 0x10028102
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101023d4]
call esi
test eax, eax
je 0x1002811e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10028120
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015100
leave
ret