joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c07c
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10016314]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10016310]
test edx, edx
jne 0x1000c0c8
test eax, eax
je 0x1000c0db
mov edx, eax
mov dword [0x10016314], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c0db
cmp ecx, ebx
jb 0x1000c0db
cmp ecx, edi
jbe 0x1000c1c4
mov edx, eax
test eax, eax
jmp 0x1000c0fd
test edx, edx
je 0x1000c0f8
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c0f8
cmp eax, ebx
jb 0x1000c0f8
cmp eax, edi
jbe 0x1000c1c4
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10016314], edx
jne 0x1000c0e1
movzx eax, si
sub esi, eax
cmp esi, 0x40000000
jbe 0x1000c142
lea eax, [esi - 0x40000000]
push esi
push eax
call fcn.1000bfc5
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x1000c18c
lea eax, [esi - 0x40000000]
push eax
push ebx
call fcn.1000bf2e
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x1000c18c
cmp esi, 0x40000000
jae 0x1000c16e
lea eax, [esi + 0x40000000]
push eax
push esi
call fcn.1000bf2e
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x1000c18c
lea eax, [esi + 0x40000000]
push edi
push eax
call fcn.1000bfc5
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x1000c18c
push esi
push ebx
call fcn.1000bf2e
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x1000c18c
push edi
push esi
call fcn.1000bfc5
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x1000c1e9
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10016310]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10016314], edx
mov dword [0x10016310], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x1000c1b6
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000c1e9
cmp esi, edi
ja 0x1000c1e9
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x1000c1eb
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000c2d9
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10014e88
call fcn.1000d780
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1000c342
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1000c342
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x1000c342
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x1000c342
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000c34b
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.1000d7c6
ret
Function at 0x1000c351
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1000c363
xor eax, eax
pop ebp
ret
push esi
lea esi, [eax + 0x10000]
xor ecx, ecx
lea edx, [eax + 0x88]
cmp dword [edx], 0
je 0x1000c37f
cmp dword [edx], eax
jb 0x1000c391
cmp dword [edx], esi
jae 0x1000c391
inc ecx
add edx, 0x48
cmp ecx, 0x38d
jb 0x1000c372
xor eax, eax
inc eax
pop esi
pop ebp
ret
xor eax, eax
jmp 0x1000c38e

Function at 0x1000c430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x10016310]
jmp 0x1000c452
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x1000c43d
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10016320], eax
je 0x1000c74c
mov eax, 0x10dd
jmp 0x1000c83c
mov eax, dword [0x10016324]
test eax, eax
jne 0x1000c83c
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000c769
push 6
pop eax
jmp 0x1000c83b
cmp dword [edi], 0
jne 0x1000c781
push 6
pop eax
mov dword [0x10016324], eax
mov dword [0x10016328], edi
jmp 0x1000c83b
push ebx
push esi
push 0x18
call fcn.1000d3c8
mov esi, eax
pop ecx
test esi, esi
jne 0x1000c799
push 8
pop ebx
jmp 0x1000c820
push 0
push dword [edi]
call fcn.1000c71c
push 0
push dword [ebp + 0xc]
mov ebx, eax
call fcn.1000c71c
movzx ecx, byte [ebx + 0x36]
mov edx, eax
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x1000c814
cmp ecx, 0x1e
ja 0x1000c814
cmp dword [ebx + 0x44], edx
jne 0x1000c814
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000c7ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000c820
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x10016330]
mov dword [esi], eax
xor eax, eax
mov dword [0x10016330], esi
jmp 0x1000c839
cmp dword [0x10016318], 0
push 9
pop ebx
jne 0x1000c826
mov dword [0x10016324], ebx
test esi, esi
je 0x1000c831
push esi
call fcn.1000d775
pop ecx
mov dword [0x10016328], edi
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x1000c842
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10016320], eax
je 0x1000c85e
mov eax, 0x10dd
jmp 0x1000c8e8
push ebx
push esi
push edi
mov edi, dword [0x10016330]
xor ebx, ebx
test edi, edi
je 0x1000c8aa
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x1000c89b
cmp dword [edi + 0x10], ebx
je 0x1000c89b
push dword [edi + 0x10]
call fcn.1000c247
pop ecx
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.1000d775
mov edi, esi
pop ecx
test esi, esi
jne 0x1000c86d
mov dword [0x10016330], ebx
call fcn.1000c395
mov edi, dword [0x1001632c]
test edi, edi
je 0x1000c8d7
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.1000d775
mov edi, esi
pop ecx
test esi, esi
jne 0x1000c8bf
pop edi
pop esi
mov dword [0x1001632c], ebx
xor eax, eax
mov dword [0x10016320], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000cba3
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10016324]
test eax, eax
jne 0x1000cc14
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, dword [ebp + 8]
cmp ebx, eax
jne 0x1000cbc1
xor eax, eax
jmp 0x1000cc13
push esi
push edi
push 8
pop esi
push esi
call fcn.1000d3c8
mov edi, eax
pop ecx
test edi, edi
je 0x1000cbee
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000cbff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.1000d775
pop ecx
and dword [0x10016328], 0
mov eax, esi
mov dword [0x10016324], esi
jmp 0x1000cc11
mov eax, dword [0x1001632c]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
mov dword [0x1001632c], edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4012a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40903c]
jne 0x4012af
repz ret
jmp fcn.00401539

Function at 0x4044fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40903c]
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.00402667
and dword [ebp - 0x14], 0
cmp dword [0x40b774], 0
mov dword [ebp - 0x18], eax
jne 0x4045ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404656
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404656
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b774], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b778], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b77c], eax
call edi
push eax
call esi
mov dword [0x40b784], eax
test eax, eax
je 0x4045ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b780], eax
mov eax, dword [0x40b780]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x404607
cmp dword [0x40b784], ecx
je 0x404607
push eax
call esi
push dword [0x40b784]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404607
test ebx, ebx
je 0x404607
call edi
test eax, eax
je 0x4045fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4045fe
test byte [ebp - 8], 1
jne 0x404607
or dword [ebp + 0x10], 0x200000
jmp 0x40463a
mov eax, dword [0x40b778]
cmp eax, dword [ebp - 0x18]
je 0x40463a
push eax
call esi
test eax, eax
je 0x40463a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40463a
mov eax, dword [0x40b77c]
cmp eax, dword [ebp - 0x18]
je 0x40463a
push eax
call esi
test eax, eax
je 0x40463a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b774]
call esi
test eax, eax
je 0x404656
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404658
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004012a5
leave
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4078ff
pop dword [ebp - 0x18]
mov eax, 0x4078ff
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xe8f7b48a
add dword [ebp - 0x28], 0x655a90c1
mov dword [ebp - 0x24], 0xff81da44
sub dword [ebp - 0x24], 0xcd4e8dff
mov dword [ebp - 0x20], 0xa78ad8e2
sub dword [ebp - 0x20], 0x5b3e94b4
mov dword [ebp - 0x1c], 0xf253d196
sub dword [ebp - 0x1c], 0xf253d196
lea eax, [ebp - 0x28]
push eax
mov eax, 0x9c01e5c4
sub eax, 0x9bbfb550
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x8a8e238c
add dword [ebp - 0x28], 0xe9e445ca
mov dword [ebp - 0x24], 0xf1086987
add dword [ebp - 0x24], 0x5063f7ee
mov dword [ebp - 0x20], 0x88b82ec8
add dword [ebp - 0x20], 0xdab73da4
mov dword [ebp - 0x1c], 0x8767b8d1
add dword [ebp - 0x1c], 0x7898472f
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xcc055f36
add eax, 0x343cd1ee
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3f70a
push 0
call eax
mov ecx, 0x4dac3c26
add ecx, 0xb25412df
mov ebx, eax
mov esi, 0xa36b2802
sub esi, 0xa327e402
add esi, dword [ebp - 0x18]
mov edx, 0x9d62ac67
sub edx, 0x2e6c0149
mov edi, dword [esi]
mov dword [ebp - 0x10], 0x5a1356b5
add edi, edx
xor dword [ebp - 8], ebx
mov dword [ebx], edi
sub dword [ebp - 4], edi
add ebx, 4
add esi, 4
loop 0x407a1c
add eax, 0x39e4a4
add eax, 0xffc74a43
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x10001ce0
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
push esi
xor esi, esi
sub eax, esi
je 0x10001d66
dec eax
jne 0x10001d76
mov esi, dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.1001a710
mov eax, dword [0x1008ced8]
add esp, 8
test eax, eax
mov edi, 1
jne 0x10001d47
mov eax, dword [0x1008cedc]
test eax, eax
mov dword [0x1008cee0], esi
jne 0x10001d37
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0xc]
mov dword [0x1008cedc], ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10084044], eax
call fcn.1000f9c0
call fcn.10042040
call fcn.10018c80
call fcn.1001a620
inc dword [0x1008ced8]
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret 0xc
call fcn.1001a630
call fcn.10018c90
dec dword [0x1008ced8]
mov eax, esi
pop esi
add esp, 0x24
ret 0xc

Function at 0x10001fe0
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebx, ebx
mov esi, 0x100765f8
mov eax, dword [esi]
push eax
push SysReAllocString
call edi
test eax, eax
je 0x10002004
cmp eax, 2
je 0x10002004
inc ebx
sub esi, 0x10
cmp esi, 0x100763d8
jge 0x10001ff0
mov eax, ebx
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x80004005
pop ebx
ret
Function at 0x10002020
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x10084040]
sub esp, 0x240
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000204b
push 0x105
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002057
mov eax, 0x80004005
add esp, 0x240
ret
mov al, byte [esp + 8]
test al, al
push ebx
push ebp
push esi
push edi
lea esi, [esp + 0x18]
je 0x1000208d
movsx edx, byte [esi]
push edx
call fcn.10067f9f
add esp, 4
test eax, eax
je 0x10002085
movsx eax, byte [esi]
push eax
call fcn.10067f3e
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10002067
lea ecx, [esp + 0x18]
push str..dll
push ecx
call fcn.10067df0
add esp, 8
test eax, eax
je 0x100020a6
mov byte [eax], 0
call sym.dboledb8.dll__DllUnregisterServer
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea esp, [esp]
cmp dword [esi + 0x100763e0], 4
jne 0x100020e1
mov edx, dword [esi + 0x100763e4]
push edx
call fcn.10067d57
add esp, 4
mov dword [esp + 0x120], eax
jmp 0x100020fd
mov ecx, dword [esi + 0x100763e4]
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.10067cff
add esp, 0xc
mov edx, dword [esi + 0x100763d8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10002194
mov edx, dword [esi + 0x100763e0]
cmp edx, 1
jne 0x1000214c
lea eax, [esp + 0x120]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002140
sub eax, edi
inc eax
jmp 0x10002151
mov eax, 4
mov ecx, dword [esi + 0x100763dc]
push eax
lea eax, [esp + 0x124]
push eax
push edx
mov edx, dword [esp + 0x1c]
push 0
push ecx
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test edi, edi
jne 0x10002194
add esi, 0x10
cmp esi, 0x230
jb 0x100020c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x240
ret
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x240
ret
Function at 0x10021880
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
cmp word [ebp + 0x460], 0
jne 0x100219d1
mov eax, dword [ebp + 0x80]
push ebx
push eax
lea ecx, [ebp + 0x84]
mov ebx, 4
push ecx
mov word [ebp + 0x460], 0x13
mov word [ebp + 0x462], bx
mov word [ebp + 0x464], 0xa
mov word [ebp + 0x466], bx
call fcn.1002ca10
push ebp
call fcn.1001fe20
add esp, 0xc
test eax, eax
jl 0x100219d0
push esi
push edi
mov edi, 1
mov ecx, ebp
call fcn.1001fb90
mov esi, eax
mov eax, dword [esi + 4]
push eax
lea edx, [esp + 0x24]
mov ebx, 5
mov edi, 2
push esi
mov word [eax + 4], bx
mov dword [eax + 0x20], edx
mov dword [eax + 8], edi
call fcn.1002c6d0
mov eax, dword [esi + 4]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push esi
mov word [eax + 4], bx
mov dword [eax + 0x20], ecx
mov dword [eax + 8], edi
call fcn.1002c6d0
mov eax, dword [esi + 4]
add esp, 0x10
mov ecx, edi
dec ecx
mov eax, dword [eax]
jne 0x10021934
push eax
lea edx, [esp + 0x18]
push esi
mov word [eax + 4], bx
mov dword [eax + 0x20], edx
mov dword [eax + 8], edi
call fcn.1002c6d0
mov eax, dword [esi + 4]
add esp, 8
mov ecx, 3
lea esp, [esp]
dec ecx
mov eax, dword [eax]
jne 0x10021960
push eax
lea ecx, [esp + 0x1c]
push esi
mov word [eax + 4], bx
mov dword [eax + 0x20], ecx
mov dword [eax + 8], edi
call fcn.1002c6d0
push 0xfffffffffffffffd
push str.SELECT__SELECT_width_FROM_SYS.SYSUSERTYPE_WHERE_type_name__money___SELECT_scale_FROM_SYS.SYSUSERTYPE_WHERE_type_name__money___SELECT_width_FROM_SYS.SYSUSERTYPE_WHERE_type_name__smallmoney___SELECT_scale_FROM_SYS.SYSUSERTYPE_WHERE_type_name__smallmoney__FROM_SYS.DUMMY
push esi
push ebp
call fcn.10020dc0
add esp, 0x18
test eax, eax
jne 0x100219bf
mov dx, word [esp + 0x20]
mov ax, word [esp + 0x10]
mov cx, word [esp + 0x14]
mov word [ebp + 0x460], dx
mov dx, word [esp + 0x18]
mov word [ebp + 0x462], ax
mov word [ebp + 0x464], cx
mov word [ebp + 0x466], dx
push esi
call fcn.1002c8a0
push esi
call fcn.1001a6a0
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x1003c4f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x38]
mov ebx, eax
mov ax, word [ecx + 0xa]
mov word [esp + 0x10], ax
xor eax, eax
mov ax, word [ecx + 6]
cmp bx, ax
mov dword [esp + 0x14], eax
jne 0x1003c51e
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
mov edx, dword [ecx + 0xc]
push esi
push edi
movzx edi, ax
movzx esi, bx
imul edi, edx
imul esi, edx
add edi, 0x10
add esi, 0x10
cmp bx, ax
mov dword [esp + 0x14], edx
jbe 0x1003c5de
mov eax, dword [ebp + 4]
mov ebp, esi
sub ebp, edi
test esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
je 0x1003c66f
mov eax, dword [eax + 8]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
sar eax, 1
add edx, ebp
cmp edx, eax
jg 0x1003c66f
push esi
push ecx
call fcn.1005e1d0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1003c66f
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
add edx, ecx
mov dword [eax + 0xc], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
add edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [ebp + 0xc], eax
mov esi, edi
mov eax, ebp
call fcn.1003c390
lea esi, [ebx - 1]
mov edx, edi
mov word [ebp + 6], bx
call fcn.1003c270
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx + 0x38], ebp
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
mov dx, word [ecx]
cmp dx, word [ecx + 6]
jb 0x1003c66f
mov eax, dword [ebp + 4]
mov ebp, esi
sub ebp, edi
test esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebp
je 0x1003c66f
mov eax, dword [eax + 8]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
sar eax, 1
add edx, ebp
cmp edx, eax
jg 0x1003c66f
push esi
push ecx
call fcn.1005e1d0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1003c66f
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x1c]
add edx, ecx
mov dword [eax + 0xc], edx
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov dword [ebp + 0xc], eax
mov ecx, ebx
mov eax, ebp
call fcn.1003c2a0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx + 0x38], ebp
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x100425f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push esi
push str.SQLAny_Default_MUTEX
xor esi, esi
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebp, eax
test ebp, ebp
je 0x10042698
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10042691
push ebx
push str.SQLAny_Default
push eax
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x10042689
push edi
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x10042681
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042650
sub eax, edx
inc eax
push eax
call fcn.1005e150
mov esi, eax
add esp, 4
test esi, esi
je 0x1004267a
mov edx, esi
mov eax, edi
sub edx, edi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10042670
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret