joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b94
Capabilities:
Query service status
Stop service
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x4d8]
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x1002bb5
xor eax, eax
jmp 0x1002d8a
mov eax, dword [esi + 0x4b0]
dec eax
push edi
je 0x1002c8e
dec eax
je 0x1002bcd
xor eax, eax
jmp 0x1002d89
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1002bc6
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp + 8], ebx
je 0x1002bc6
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1002c5c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], ebx
mov ebx, 0x3e8
push ebx
call edi
jmp 0x1002c35
cmp dword [ebp - 0x1c], 1
je 0x1002c5a
push ebx
call edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3c
jae 0x1002c46
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1002c23
cmp dword [ebp - 0x1c], 1
je 0x1002c5a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1002bc6
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
dec dword [esi + 0x4d8]
mov dword [esi + 0x4e0], ebx
mov dword [esi + 0x8dc], ebx
mov dword [esi + 0xcd8], ebx
jne 0x1002d86
mov dword [esi + 0x4dc], ebx
jmp 0x1002d86
test ebx, ebx
jbe 0x1002d00
lea edi, [esi + 0x8dc]
mov dword [ebp + 8], ebx
cmp dword [edi + 0x3fc], 0
jne 0x1002cb2
push 0
push esi
call fcn.010029c3
test eax, eax
jne 0x1002cb2
and dword [edi], eax
cmp dword [edi], 0
je 0x1002cf8
push dword [edi - 0x3fc]
call fcn.01002ae9
test eax, eax
jne 0x1002cd0
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi]
and dword [edi - 0x3fc], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
and dword [edi + 0x3fc], 0
dec dword [esi + 0x4d8]
jne 0x1002cf8
and dword [esi + 0x4dc], 0
add edi, 4
dec dword [ebp + 8]
jne 0x1002c9b
cmp ebx, dword [esi + 0x4d8]
je 0x1002d86
and dword [ebp + 8], 0
lea eax, [ebx - 1]
test eax, eax
jbe 0x1002d86
lea eax, [esi + 0x4e0]
cmp dword [eax + 0x3fc], 0
jne 0x1002d78
sub ebx, dword [ebp + 8]
lea esi, [eax + 4]
lea edx, [ebx*4 - 4]
mov ecx, edx
mov ebx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
shr ecx, 2
lea esi, [eax + 0x400]
lea edi, [eax + 0x3fc]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
shr ecx, 2
lea esi, [eax + 0x7fc]
lea edi, [eax + 0x7f8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebp + 8]
lea ecx, [ebx - 1]
add eax, 4
cmp dword [ebp + 8], ecx
jb 0x1002d19
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002d95
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x100702c]
push 0x104
lea ecx, [ebp - 0x20c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.010026d1
test eax, eax
je 0x1002e31
xor edx, edx
xor eax, eax
cmp word [ebp - 0x20c], dx
je 0x1002e31
push esi
push edi
push 0x11
pop ecx
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push edx
push edx
push 0x4000000
push edx
push edx
push edx
push edx
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x260], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0x218]
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.0100508f
leave
ret 4

Function at 0x100304a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
mov dword [ebp - 4], esi
call fcn.010027ed
mov edi, eax
cmp edi, esi
je 0x10030ab
push esi
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10030a2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
push 0x420
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030d4
call fcn.01002b11
test eax, eax
je 0x10030d4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push 0x10013fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x10030e1
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x100702c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x4dc], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c4], eax
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x520]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4d4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x4bc]
push eax
mov dword [ebp - 0x520], 0x44
call fcn.01001bdd
xor edi, edi
cmp dword [ebp - 0xc], 3
mov dword [ebp - 0x4c0], edi
je 0x1003194
lea eax, [ebp - 0x264]
mov dword [ebp - 0x518], eax
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x520]
push eax
push ebx
push esi
call fcn.0100304a
cmp eax, edi
mov dword [ebp - 0x4c0], eax
jne 0x10031d1
cmp dword [ebp - 0xc], 3
je 0x1003194
call fcn.01002b4a
test eax, eax
je 0x10031c9
cmp dword [ebp + 0x10], edi
je 0x10031c9
cmp dword [ebp + 0x10], edi
je 0x100321f
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x520]
push eax
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push ebx
push esi
mov dword [ebp - 0x518], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], edi
je 0x100321f
mov eax, dword [ebp - 0x4dc]
cmp eax, edi
je 0x10031e3
mov ecx, dword [ebp - 0x4cc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4d8]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10031fd
mov ecx, dword [ebp - 0x4d4]
mov dword [eax], ecx
jmp 0x1003205
push dword [ebp - 0x4d4]
call esi
mov eax, dword [ebp - 0x4c4]
cmp eax, edi
je 0x1003217
mov ecx, dword [ebp - 0x4c8]
mov dword [eax], ecx
push dword [ebp - 0x4d0]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c0]
pop edi
pop esi
pop ebx
call fcn.0100508f
leave
ret 0x18
Function at 0x1003239
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x100702c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x4d8]
cmp eax, dword [esi + 0x4b8]
jb 0x1003265
xor eax, eax
jmp 0x10033df
mov eax, dword [esi + 0x4b0]
dec eax
push ebx
push edi
je 0x1003371
dec eax
jne 0x10033c6
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [ebp - 0x2dc], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x10033c6
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2d8], ebx
call edi
test ebx, ebx
je 0x10033c0
and word [ebp - 0x194], 0
lea eax, [ebp - 0x194]
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e4]
push eax
push 1
push ebx
mov dword [ebp - 0x2e4], 0x10013fc
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10032f7
push ebx
call edi
jmp 0x10033c0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
jmp 0x1003325
cmp dword [ebp - 0x2fc], 4
je 0x100334d
push 0x3e8
call ebx
inc dword [ebp - 0x2dc]
cmp dword [ebp - 0x2dc], 0x3c
jae 0x100333c
lea eax, [ebp - 0x300]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1003306
cmp dword [ebp - 0x2fc], 4
je 0x100334d
push dword [ebp - 0x2d8]
jmp 0x10032f0
push dword [ebp - 0x2d8]
call edi
inc dword [esi + 0x4d8]
xor eax, eax
mov dword [esi + 0x4e0], eax
mov dword [esi + 0xcd8], eax
mov dword [esi + 0x8dc], eax
jmp 0x10033d0
push 0x104
lea eax, [ebp - 0x2d4]
push eax
push esi
call fcn.01002623
test eax, eax
je 0x10033c6
mov eax, dword [esi + 0x4d8]
lea ecx, [esi + eax*4 + 0xcd8]
push ecx
lea ecx, [esi + eax*4 + 0x8dc]
push ecx
lea eax, [esi + eax*4 + 0x4e0]
push eax
push dword [esi + 0x4c4]
lea eax, [ebp - 0x2d4]
push 0x10013fc
push eax
call fcn.010030e1
test eax, eax
jne 0x10033ca
push esi
call fcn.01002d95
xor eax, eax
jmp 0x10033dd
inc dword [esi + 0x4d8]
xor eax, eax
mov dword [esi + 0x4dc], 1
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100508f
leave
ret 8

Function at 0x1003484
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov word [eax], si
cmp dword [ebx + 8], esi
jne 0x10034a1
push 8
pop eax
jmp 0x10034f8
push edi
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov edi, eax
cmp edi, esi
jne 0x10034f5
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x1001408
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
test edi, edi
jne 0x10034f5
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
push dword [ebx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003607
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0100358f
test eax, eax
je 0x1003629
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 4

Function at 0x1003764
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x100702c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wsplitpath]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x14
lea eax, [ebp - 0x614]
push eax
call edi
test eax, eax
je 0x10037c0
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x100384d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10014ec
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1003801
push 0x10014dc
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1003801
push 0x10014c8
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1003801
xor eax, eax
jmp 0x100384c
push 0x10014bc
lea eax, [ebp - 0x40c]
push eax
call esi
test eax, eax
jne 0x10037fd
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x1003849
push 0x104
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10037fd
push eax
lea eax, [ebp - 0x81c]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10037fd
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100508f
leave
ret 4

Function at 0x1003c1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 3
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0x14]
mov ecx, eax
xor eax, eax
test ecx, ecx
stosd dword es:[edi], eax
jne 0x1003c89
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1003c89
cmp dword [ebp - 4], 4
jne 0x1003c89
xor eax, eax
inc eax
jmp 0x1003c8b
xor eax, eax
pop edi
leave
ret 0x10
Function at 0x1004151
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf003f
push edi
push 0
push 0x1001348
push 0x80000002
call esi
test eax, eax
jne 0x10041c9
lea eax, [ebp - 8]
push eax
push edi
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x100419b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10041c9
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x1001700
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
leave
ret 8
Function at 0x1004ea5
Capabilities:
Accept command line arguments
Get common file path
Set current directory

Disassembly:
push 0x224
push 0x1001988
call fcn.010053dc
mov eax, dword [0x100702c]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [0x1007554], eax
and dword [ebp - 4], 0
mov esi, 0x100194c
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x22c], eax
xor ecx, ecx
test eax, eax
setne cl
lea ecx, [ecx*4 + 4]
mov dword [ebp - 0x228], ecx
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1004f1d
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, 0x100753c
push edi
call fcn.01001b65
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x228]
push eax
mov ecx, ebx
call fcn.01004a09
mov dword [ebp - 0x230], eax
push dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
and eax, 4
push eax
call fcn.01004783
test eax, eax
je 0x1005000
mov ebx, dword [ebp - 0x22c]
test ebx, ebx
jne 0x1004f81
push 1
push ebx
push ebx
push esi
call fcn.01001e18
mov dword [0x1007550], eax
mov eax, dword [ebp - 0x228]
sub eax, 0x15
je 0x1004fb5
sub eax, 4
je 0x1004fac
sub eax, 0xc
je 0x1004fa5
dec eax
je 0x1004fa1
sub eax, 3
je 0x1004fa5
dec eax
jne 0x1004fbc
push 1
jmp 0x1004fb7
call fcn.0100368f
jmp 0x1004fbc
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1004fbc
push 0
call fcn.01003b66
test ebx, ebx
je 0x1004fc7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x230], 0
je 0x1004fd5
call fcn.01004d0c
call fcn.01003860
push dword [0x1007550]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.01001bab
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1005000
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x1c]
call fcn.0100508f
call fcn.01005417
ret 0x10
Function at 0x10051a7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001998
call fcn.010053dc
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10051e4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10051e4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10051fc
cmp eax, 0x20b
je 0x10051e9
mov dword [ebp - 0x1c], ebx
jmp 0x1005210
cmp dword [ecx + 0x84], 0xe
jbe 0x10051e4
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100520a
cmp dword [ecx + 0x74], 0xe
jbe 0x10051e4
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100756c], 0xffffffff
or dword [0x1007570], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007564]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1007560]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007574], eax
call fcn.01005468
cmp dword [0x1007030], ebx
jne 0x100526b
push fcn.01005468
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005451
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100755c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007558]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1005301
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10052d5
cmp al, 0x22
jne 0x10052c7
cmp byte [esi], 0x22
jne 0x10052de
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10052e8
cmp al, 0x20
jbe 0x10052da
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100530c
movzx eax, word [ebp - 0x50]
jmp 0x100530f
cmp byte [esi], 0x20
jbe 0x10052de
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005301
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100532c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005361
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005417
ret
Function at 0x1003abd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.100049e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003ac00
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x1011d0fc], 0
mov edi, dword [ebp + 8]
je 0x1003ac4b
mov eax, dword [0x1011d1f8]
test eax, eax
je 0x1003ac23
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1003ac4b
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10008360
push 0
push 0
mov dword [esi + 0xc], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1003ac58
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1003ac71
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a630
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [ebx + 0x10], 1
push edi
push edi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push ebx
call fcn.10052380
add esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x1004a671
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push ebx
call fcn.10052380
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
Function at 0x100529b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0xc], edx
push esi
xor edx, edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 8]
cmp dword [eax + 0x14], edx
jle 0x10052a6d
push ebx
mov eax, dword [eax + 0x10]
mov ebx, esi
xor ebx, 1
cmp esi, 2
cmovge ebx, esi
mov ecx, ebx
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
test edi, edi
je 0x10052a32
mov eax, dword [eax + ecx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x10052a08
test edx, edx
je 0x10052a32
inc eax
jmp 0x100529f6
movzx ecx, byte [ecx + 0x10114750]
movzx edx, byte [edx + 0x10114750]
sub edx, ecx
jne 0x10052a1d
inc eax
jmp 0x100529f6
test ebx, ebx
jne 0x10052a51
mov edx, dword [ebp + 8]
mov ecx, str.main
call fcn.10008d80
test eax, eax
jne 0x10052a51
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0
lea ecx, [ecx + 0x18]
call fcn.1000a490
add esp, 4
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x10052a64
jmp 0x10052a54
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
inc esi
mov edi, dword [ebp + 8]
cmp esi, dword [eax + 0x14]
jl 0x100529d4
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret