joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040bd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0xa90d1b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10061277
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xa94df40
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xa94cfb8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0xa90e090]
push eax
mov ecx, edi
call fcn.100668df
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.10067dfb
test eax, eax
je 0x10040cec
mov ecx, dword [esp + 0x3c]
call fcn.1006690c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0xa90e3bc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10040cb0
push edi
mov ecx, esi
call fcn.10063f5a
mov ecx, esi
call fcn.10040e50
cmp dword [esp + 0x38], 1
jne 0x10040ce5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.10064095
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x10043720
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10043753
push esi
call fcn.10046830
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004374c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x100437d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100437c2
mov eax, dword [esi + 8]
test eax, eax
je 0x10043777
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100437be
cmp eax, 2
je 0x100437c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004376a
cmp eax, 3
je 0x1004379d
cmp eax, 1
jne 0x1004376a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1004376a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004376a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10043800
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100437e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10043800
add esp, 4
pop esi
ret
Function at 0x401177
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x405d6c
mov eax, 0x4282d2
call fcn.00426c0c
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], 0x431e30
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call fcn.0040122b
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], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4013c5
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x418b9d
mov eax, 0x4291a3
call fcn.00426c0c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], esi
call fcn.00402d74
xor edi, edi
mov dword [ebp - 4], 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], edi
lea ebx, [esi + 0x7c]
mov dword [ebx], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x90], edi
push 0x447204
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x2c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
call fcn.00403099
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00401bfe
push dword [ebp - 0x10]
call dword [0x456c6c]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
pop edi
mov dword [esi + 0x6c], 2
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405d77
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x405d6c
mov eax, 0x4282d2
call fcn.00426c0c
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], 0x431e30
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
call fcn.0040122b
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], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x411370
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x411370
jmp 0x418850
push esi
mov esi, ecx
mov dword [esi], 0x439914
mov dword [esi + 4], 0x4398e0
mov dword [esi + 8], 0x43981c
mov dword [esi + 0xc], 0xc0000001
call fcn.00401271
mov ecx, dword [0x453df0]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp 0x40240f
mov eax, 0x4290ec
call fcn.00426c0c
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
push 2
push 0x43ce9c
push 0
mov dword [ebp - 4], 0xa
call fcn.0040193d
mov ecx, eax
call fcn.00402c7a
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41888f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi + 0x2c], 0
push dword [esi + 0x90]
mov edi, dword [0x456c6c]
call edi
push dword [esi + 0x88]
call edi
push dword [esi + 0x84]
call edi
push dword [esi + 0x7c]
call edi
push dword [esi + 0x44]
call edi
push dword [esi + 0x40]
call edi
push dword [esi + 0x3c]
call edi
push dword [esi + 0x38]
call edi
push dword [esi + 0x34]
call edi
push dword [esi + 0x30]
call edi
lea ecx, [esi + 0xc]
call fcn.00401429
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x100bad2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1038418]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x424], 0
and dword [ebp - 0x420], 0
xor eax, eax
movzx ecx, word [eax + 0x1001ee8]
mov word [ebp + eax - 0x41c], cx
inc eax
inc eax
test cx, cx
jne 0x100baf7
mov eax, str.SQLDIAG
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100bb14
push esi
push edi
sub eax, edx
lea edi, [ebp - 0x41c]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x100bb2a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100bc24
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
pop edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
push 1
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x42c], edi
call sub.MPR.dll_WNetGetUniversalNameW
test eax, eax
jne 0x100bbbb
push esi
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
and word [ebp - 8], 0
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100bbc9
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0
push 0x1001ec0
push dword [ebp - 0x420]
call esi
test eax, eax
jne 0x100bc24
push edi
lea eax, [ebp - 0x430]
push eax
push edi
push 0
push 0x1001ea0
push dword [ebp - 0x420]
mov dword [ebp - 0x430], 7
call esi
test eax, eax
je 0x100bc30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x420], 0
pop edi
pop esi
je 0x100bc47
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
xor ecx, ebp
call fcn.01025a6c
leave
ret
Function at 0x100c61b
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1038418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x400
push eax
lea eax, [ebp - 0x804]
push eax
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
lea eax, [ebp - 0x804]
add esp, 0xc
mov word [ebp - 6], bx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x100c65c
sub eax, ecx
sar eax, 1
add eax, eax
mov dword [ebp - 0x80c], eax
lea eax, [esi + 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push str.SQLDIAG
lea eax, [ebp - 0x80c]
lea ecx, [ebp - 0x804]
push eax
mov dword [ebp - 0x808], ecx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x100c6c4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push edi
mov edi, dword [eax + esi + 4]
push ebx
push 0xc000c452
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi + 0x10]
pop edi
jmp 0x100c6c6
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01025a6c
leave
ret 4

Function at 0x100c6dd
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1038418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x15], bl
mov dword [ebp - 0x808], ecx
je 0x100c716
push 0x10016d0
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x100c7d2
push edi
lea edi, [esi + 0x1c]
cmp dword [edi], ebx
push 0x10016d0
jne 0x100c72e
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x100c7d1
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100c7ab
mov edi, dword [ebp - 0x810]
mov esi, 0x800
cmp edi, esi
jbe 0x100c762
mov edi, esi
push esi
lea eax, [ebp - 0x804]
push ebx
push eax
call sub.MSVCR80.dll_memset
push edi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [ebp - 0x808]
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
mov word [ebp - 6], bx
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea eax, [ebp - 0x804]
mov byte [eax], bl
inc eax
dec esi
jne 0x100c7a3
jmp 0x100c7d1
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push ebx
push 0xc000c453
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01025a6c
leave
ret 4
Function at 0x100d04d
Capabilities:
Create pipe
Get system information on windows

Disassembly:
push 0x2c
mov eax, 0x102e7ff
call fcn.01025fed
mov esi, ecx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
and dword [ebp - 4], 0
push dword [esi + 0xc]
lea eax, [ebp - 0x14]
push dword [esi + 8]
push str.SQLDIAG
push 0x10023fc
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x14
push 0
push 0xffffffffffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
push dword [ebp - 0x34]
push 0xff
push 6
push 0x40000001
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
mov dword [esi + 0x28], eax
jne 0x100d0ea
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push 0
push 0xc000c48a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi + 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, byte [ebp - 0xd]
call fcn.010260d9
ret
Function at 0x100d2f0
Capabilities:
Get common file path

Disassembly:
push 0x448
push 0x10328f0
call fcn.01026420
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov esi, dword [ebp + 0xc]
push 0x10384a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10025d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x448], eax
cmp eax, ebx
jne 0x100d361
push ebx
push 0xc000c470
mov edi, dword [esi]
add edi, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [edi]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1038418
call sub.MSVCR80.dll__local_unwind4
add esp, 0xc
xor al, al
call fcn.01026468
ret
push 0x10025bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x440], eax
cmp eax, ebx
jne 0x100d37f
push ebx
push 0xc000c471
jmp 0x100d336
mov dword [ebp - 0x438], ebx
push esi
mov ebx, 0x1002594
push ebx
mov edi, str.SQLDIAG
push edi
call fcn.0101fc5a
add esp, 0xc
test al, al
je 0x100d3b6
push esi
lea eax, [ebp - 0x438]
push eax
push ebx
push edi
call fcn.0101f734
add esp, 0x10
mov dword [ebp - 0x438], eax
xor ebx, ebx
lea eax, [ebp - 0x430]
push eax
cmp dword [ebp - 0x438], ebx
jne 0x100d3e4
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x100d3ef
push ebx
push 0xc000c472
jmp 0x100d336
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov word [ebp - 0x22a], bx
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x44c]
push eax
movzx eax, word [ebp - 0x44e]
push eax
movzx eax, word [ebp - 0x450]
push eax
movzx eax, word [ebp - 0x452]
push eax
movzx eax, word [ebp - 0x456]
push eax
movzx eax, word [ebp - 0x458]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x1002540
push 0x105
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
mov word [ebp - 0x20], bx
lea eax, [ebp - 0x228]
push eax
call fcn.0101e1ae
add esp, 0x2c
test al, al
jne 0x100d3f6
push ebx
push 0x100080
push 2
push ebx
push 3
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x43c], eax
cmp eax, 0xffffffff
je 0x100d3d9
mov dword [ebp - 0x434], 0x145
push esi
mov ebx, 0x1002524
push ebx
push edi
call fcn.0101fc5a
add esp, 0xc
test al, al
je 0x100d4ca
push esi
lea eax, [ebp - 0x434]
push eax
push ebx
push edi
call fcn.0101f734
add esp, 0x10
mov dword [ebp - 0x434], eax
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x444]
push dword [ebp - 0x434]
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x440]
test eax, eax
jne 0x100d503
push ebx
push 0xc000c473
jmp 0x100d336
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1038418
call sub.MSVCR80.dll__local_unwind4
add esp, 0xc
mov al, 1
jmp 0x100d35b
Function at 0x100ecae
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x102eb9e
call fcn.01025fed
mov esi, ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x5c]
mov edi, dword [sym.imp.MFC80U.DLL_Ordinal_2311]
push 0x1002038
push dword [ebp + 0x10]
mov byte [ebp - 0xd], 0
push dword [ebp + 0xc]
push dword [esi + 8]
push dword [eax + 0x40]
lea eax, [ebp - 0x18]
push 0x1002020
push eax
call edi
mov ebx, 0x4000c351
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0100ba1d
add esp, 0x24
mov byte [ebp - 4], 2
push dword [ebp + 8]
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x14]
push eax
call edi
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push 1
push 1
push 0
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push ebx
lea ecx, [eax + esi + 4]
call dword [edi + 4]
push 0x34
call sub.MFC80U.DLL_Ordinal_762
pop ecx
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 3
xor edi, edi
cmp eax, edi
je 0x100ed9a
push 1
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push esi
call fcn.010245a5
jmp 0x100ed9c
xor eax, eax
mov byte [ebp - 4], 1
cmp eax, edi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x100edea
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push 0x100d546
push edi
push edi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov ecx, dword [ebp + 0x14]
add esp, 0x18
cmp eax, edi
mov dword [ecx], eax
jne 0x100ede6
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 1
push 1
push 2
lea esi, [eax + esi + 4]
mov eax, dword [esi]
push edi
push 0xc000c446
mov ecx, esi
call dword [eax]
jmp 0x100edea
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, byte [ebp - 0xd]
call fcn.010260d9
ret 0x14
Function at 0x101060c
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov esi, 0x3e8
push str.SQLDIAG
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [ebp - 4]
xor edx, edx
push 0x1e
pop ecx
div ecx
inc dword [ebp - 4]
test edx, edx
jne 0x101066f
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1010649
sub eax, edx
sar eax, 1
je 0x101066f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
push 1
push 1
push ebx
push ebx
push dword [ebp + 0x1c]
push 0x4000c484
call dword [eax + 4]
cmp byte [ebp + 0x10], bl
jne 0x101067d
cmp byte [ebp + 0x14], bl
jne 0x101067d
xor eax, eax
jmp 0x1010680
xor eax, eax
inc eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp byte [ebp + 0x14], bl
mov edi, eax
je 0x10106af
push 0x1d4c0
push 0x10384c8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
push ebx
push dword [ebp + 0x18]
call fcn.0101047a
add esp, 0x10
add dword [ebp - 8], esi
cmp edi, ebx
je 0x10106d8
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x10106c3
cmp dword [ebp - 8], eax
ja 0x10106d8
cmp byte [ebp + 0x10], bl
je 0x1010627
cmp edi, 0xc0
jne 0x1010627
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x101081f
Capabilities:
Delete file

Disassembly:
push 0
mov eax, 0x102df8c
call fcn.01025fed
mov esi, ecx
cmp byte [ebp + 8], 0
jne 0x1010848
push 1
push 0x1010561
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x1010848
xor al, al
jmp 0x1010893
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
and dword [ebp - 4], 0
push 0x100169c
push str.SQLDIAG
push dword [esi + 0x40]
lea eax, [ebp + 8]
push 0x10023ec
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x14
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, 1
call fcn.010260d9
ret 4