joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009f490
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp edi, esi
je 0x1009f54c
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov dword [esp + 0xc], esi
lea ebx, [ebx]
push 0x101531a8
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1009f4d0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1009f4f7
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], ebx
je 0x1009f4de
add eax, 0x18
jmp 0x1009f4e0
xor eax, eax
push eax
push 4
push edi
call ebp
add esi, 1
cmp esi, 2
jl 0x1009f4b0
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1009f522
mov ebx, dword [esp + 0x1c]
push eax
push ebx
push 1
push esi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp ebx, eax
jbe 0x1009f51b
mov byte [eax + esi], 0
jmp 0x1009f53b
mov byte [esi + ebx - 1], 0
jmp 0x1009f53d
push 2
push 0
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 0x10
mov ebx, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc

Function at 0x1009f590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov esi, eax
xor edi, edi
test esi, esi
jne 0x1009f5a5
lea edi, [eax + 2]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x101725d4], eax
je 0x1009f5df
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x101725d4]
test edi, edi
jne 0x1009f5f5
cmp dword [esp + 0x10], edi
je 0x1009f5f5
lea ecx, [esp + 0xc]
push ecx
push 0x201
jmp 0x1009f5fc
lea edx, [esp + 0xc]
push edx
push 1
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1009f653
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1009f62c
test ebp, ebp
jne 0x1009f630
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret
test ebp, ebp
je 0x1009f653
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 8
ret
Function at 0x100a02c0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x18008
call fcn.1012e520
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x18004], eax
mov eax, str.AppDataLocalGoogleDriveuser_default_sync_config.db
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a02e0
push ebx
push ebp
mov ebp, dword [esi + 8]
sub eax, edx
add ebp, eax
push edi
lea ebx, [ebp + 1]
push ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100a0471
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_strncpy_s]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 8]
push eax
push str.AppDataLocalGoogleDriveuser_default_sync_config.db
push ebx
push edi
mov byte [edi + edx], 0
call dword [sym.imp.MSVCR80.dll_strncat_s]
mov byte [edi + ebp], 0
push 0x7ffe
xor ebp, ebp
lea ecx, [esp + 0x35]
push ebp
push ecx
mov byte [esp + 0x3c], 0
call sub.MSVCR80.dll_memset
add esp, 0x2c
push 0x1009fb90
push str.SELECT_data_value_FROM_data_WHERE_entry_key__user_email
push esi
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.100a0100
test eax, eax
jne 0x100a0467
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a0380
sub eax, edx
je 0x100a0467
push 0xfffc
lea edx, [esp + 0x8016]
push ebp
push edx
mov word [esp + 0x801c], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x1009f9b0
push str.SELECT_data_value_FROM_data_WHERE_entry_key__local_sync_root_path
push esi
mov eax, edi
lea ecx, [esp + 0x801c]
call fcn.100a0100
push edi
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp ebx, ebp
jne 0x100a0471
lea eax, [esp + 0x8010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100a03e6
sub eax, edx
sar eax, 1
je 0x100a0471
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.Google_Drive
mov word [esp + eax*2 + 0x8012], bp
mov eax, dword [esi + 4]
push 0xffff
push eax
call edi
mov ecx, dword [esi + 4]
push 0x1015578c
push 0xffff
push ecx
call edi
mov eax, dword [esi + 4]
lea edx, [esp + 0x8028]
push edx
push 0xffff
push eax
call edi
mov ecx, dword [esi + 4]
push 0x1015578c
push 0xffff
push ecx
call edi
add esp, 0x30
add dword [esi + 0x10], 1
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18004]
xor ecx, esp
call fcn.1012d370
add esp, 0x18008
ret
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov ecx, dword [esp + 0x18010]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x18008
ret
Function at 0x100a5f10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax], 0
cmp dword [0x10170158], 0
push esi
je 0x100a5f73
mov eax, dword [0x10186ab0]
test eax, eax
je 0x100a5f40
push eax
call dword [0x101701b0]
add esp, 4
lea ebx, [esp + 0x10]
mov eax, 0x14
call fcn.100a3a50
mov eax, dword [0x10186ab0]
test eax, eax
je 0x100a5f61
push eax
call dword [0x101701b8]
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x100a5f82
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x14
call dword [0x10170180]
add esp, 4
mov esi, eax
jmp 0x100a5f65
cmp dword [0x1017015c], 0
je 0x100a5fc7
mov eax, dword [0x10170260]
test eax, eax
je 0x100a5fa2
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x100a5fc7
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x100a5ee0
push 0
push 0
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi], eax
jne 0x100a5fd7
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x100a5fef
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x18]
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x100a7ca0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x100a7ccf
push esi
lea esp, [esp]
movzx ecx, cl
movzx ecx, byte [ecx + 0x10148030]
lea esi, [eax*8]
xor ecx, esi
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x100a7cb0
pop esi
ret

Function at 0x100a7d30
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
lea eax, [esi*8]
cmp eax, 0x400
push edi
mov edi, ecx
jbe 0x100a7d4c
mov esi, 0x80
cmp esi, dword [edi]
jne 0x100a7d58
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [0x10186950]
test eax, eax
je 0x100a7d63
call eax
lea ecx, [esi*8]
push 0
push ecx
call fcn.100a3b10
mov esi, eax
mov eax, dword [0x10186954]
add esp, 8
test eax, eax
mov dword [esp + 0x10], esi
je 0x100a7d86
call eax
test esi, esi
je 0x100a7d50
mov edx, dword [edi + 0xc]
push edx
call fcn.100a3e10
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x1017018c]
mov ebp, eax
shr ebp, 3
add esp, 4
lea eax, [ebp*8]
push eax
push 0
push esi
mov dword [edi], ebp
call sub.MSVCR80.dll_memset
mov esi, dword [edi + 8]
add esp, 0xc
test esi, esi
mov dword [edi + 8], 0
je 0x100a7e0e
mov edx, dword [esi + 0xc]
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x100a7df4
movzx ecx, cl
movzx ecx, byte [ecx + 0x10148030]
lea ebx, [eax*8]
xor ecx, ebx
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x100a7dd6
xor edx, edx
div ebp
mov eax, dword [esp + 0x10]
mov ebx, dword [esi]
lea edx, [eax + edx*8]
mov eax, esi
call fcn.100a7cd0
test ebx, ebx
mov esi, ebx
jne 0x100a7dcb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x100b59b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
movzx ecx, word [edi + 0x12]
test ecx, ecx
movzx edx, word [edi + 0xe]
movzx eax, byte [edi + 5]
push ebx
mov ebx, dword [edi + 0x34]
mov ebx, dword [ebx + 0x24]
push esi
mov esi, dword [edi + 0x38]
lea edx, [edx + ecx*2]
mov dword [esp + 8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 0
jle 0x100b5b04
movzx eax, word [edi + 0xe]
add eax, esi
mov dword [esp + 0xc], eax
jmp 0x100b5a14
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
mov eax, ecx
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100b5b8a
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffffc
cmp eax, ecx
jg 0x100b5b8a
mov edx, dword [esp + 0x14]
add eax, edx
push eax
mov eax, dword [edi + 0x4c]
push edi
call eax
movzx ecx, ax
sub ebx, ecx
add esp, 8
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
jl 0x100b5b61
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx]
cmp eax, dword [esp + 0x1c]
jg 0x100b5b61
mov eax, dword [esp + 0xc]
mov edx, ebx
sar edx, 8
cmp dword [esp + 8], 0
mov byte [eax], dl
mov byte [eax + 1], bl
jne 0x100b5aca
cmp ebx, dword [esp + 0x10]
je 0x100b5ae2
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
mov eax, dword [edx + 0xd0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
xor edx, edx
mov dh, byte [eax + esi + 5]
mov dl, byte [eax + esi + 6]
mov eax, edx
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, ebx
push ecx
lea ecx, [eax + esi]
push ecx
add eax, edx
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, edx
push ecx
lea eax, [ebx + esi]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], 2
mov edx, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jl 0x100b5a10
mov eax, dword [esp + 0x24]
mov ecx, ebx
mov byte [eax + esi + 6], bl
sub ebx, edx
push ebx
add edx, esi
sar ecx, 8
push 0
push edx
mov byte [eax + esi + 5], cl
mov byte [eax + esi + 1], 0
mov byte [eax + esi + 2], 0
mov byte [eax + esi + 7], 0
call sub.MSVCR80.dll_memset
movzx edx, word [edi + 0x10]
add esp, 0xc
cmp ebx, edx
je 0x100b5bb3
push 0x1015aca8
push 0xe6f3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5cf0
add esp, 0x14
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1015aca8
push 0xe6db
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5cf0
add esp, 0x14
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1015aca8
push 0xe6d5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5cf0
add esp, 0x14
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bacf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx]
push ebx
mov ebx, dword [esi + 0x38]
lea edx, [eax + ebx]
mov dword [esp + 8], edx
mov edx, dword [esi + 0x40]
push edi
movzx edi, byte [esi + 5]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0xd0]
xor ecx, ecx
mov ch, byte [ebx + edi + 5]
mov dword [esp + 0x10], edx
mov cl, byte [ebx + edi + 6]
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
add ecx, edx
push ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [esp + 8], 0
jle 0x100badda
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + edx*4]
cmp ecx, ebx
mov dword [esp + 0x18], ecx
jb 0x100bad78
cmp ecx, dword [esp + 0xc]
jae 0x100bad78
mov edx, dword [esp + 0x10]
sub edx, ebx
add ecx, edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 8]
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + edx*2]
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, ebx
sar edx, 8
mov byte [ecx], dl
mov dl, al
sub dl, bl
mov byte [ecx + 1], dl
add ecx, 2
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jb 0x100bae1c
mov edx, dword [esp + 8]
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + edx*2]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x14]
add eax, 1
add esp, 0xc
cmp eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
jl 0x100bad54
mov cx, word [ebp + 8]
mov word [esi + 0x12], cx
mov byte [esi + 1], 0
mov byte [ebx + edi + 1], 0
mov byte [ebx + edi + 2], 0
mov dl, byte [esi + 0x13]
mov byte [ebx + edi + 3], dl
mov cl, byte [esi + 0x12]
mov edx, eax
sub edx, ebx
sub al, bl
sar edx, 8
mov byte [ebx + edi + 6], al
mov byte [ebx + edi + 4], cl
mov byte [ebx + edi + 5], dl
mov byte [ebx + edi + 7], 0
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1015aca8
push 0xfad5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5cf0
add esp, 0x14
pop edi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c0c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
movsx ecx, byte [eax + 0x44]
mov ecx, dword [eax + ecx*4 + 0x78]
mov ecx, dword [ecx + 0x3c]
push edi
movzx edi, word [eax + 0x20]
mov ebx, edx
mov edx, dword [eax + 0x18]
sub ecx, edx
cmp edi, ecx
jae 0x100c0cb7
mov ecx, edi
lea edi, [ebx + ebp]
cmp edi, ecx
ja 0x100c0cd4
add edx, ebp
mov dword [esi + 0x10], edx
mov word [esi + 8], 0x1010
mov dword [esi + 0xc], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x1c]
push edx
push ebp
call fcn.100c0bf0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100c5960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
mov edi, eax
call fcn.100b8cd0
movsx edx, byte [edi + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0x10]
xor esi, esi
mov dword [esp + 0x30], eax
mov word [esp + 0x18], si
mov dword [esp + 0x28], esi
mov eax, dword [edi + edx*4 + 0x78]
mov eax, dword [eax + 0x3c]
movzx edx, word [edi + 0x20]
sub eax, ecx
cmp edx, eax
jae 0x100c59a2
mov eax, edx
cmp ebx, eax
ja 0x100c59b9
mov edi, ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x18], 0x1010
mov dword [esp + 0x1c], ebx
jmp 0x100c59d6
push 1
push esi
lea esi, [esp + 0x18]
mov eax, edi
call fcn.100c0bf0
add esp, 8
test eax, eax
jne 0x100c5aa4
mov edi, dword [esp + 0x20]
mov al, byte [edi]
cmp al, 0x80
jae 0x100c59e1
movzx ebx, al
jmp 0x100c59f0
lea esi, [esp + 0xc]
mov ecx, edi
call fcn.100a7720
mov ebx, dword [esp + 0xc]
cmp ebx, 3
jb 0x100c5a67
cmp ebx, dword [esp + 0x1c]
jg 0x100c5a67
mov al, byte [ebx + edi - 1]
cmp al, 0x80
lea ecx, [ebx + edi - 1]
jae 0x100c5a0c
movzx edx, al
jmp 0x100c5a19
lea esi, [esp + 0xc]
call fcn.100a7720
mov edx, dword [esp + 0xc]
lea ecx, [edx - 1]
cmp ecx, 8
ja 0x100c5a67
cmp edx, 7
je 0x100c5a67
movzx eax, byte [edx + 0x101487f8]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ebx]
cmp ecx, esi
jb 0x100c5a67
sub ecx, eax
add ecx, edi
lea eax, [esp + 0x38]
call fcn.100c4830
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [eax], edx
mov dword [eax + 4], ecx
lea eax, [esp + 0x10]
call fcn.100c03c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esp + 0x18], 0x2460
jne 0x100c5a78
cmp dword [esp + 0x28], 0
je 0x100c5a81
lea eax, [esp + 0x10]
call fcn.100c0380
push 0x1015aca8
push 0x12245
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5cf0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c5ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [eax + 0x14]
mov eax, edi
call fcn.100b8cd0
mov ebx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, ebx
add ecx, 0xffffffff
adc eax, 0xffffffff
xor esi, esi
cmp eax, esi
ja 0x100c5b80
jb 0x100c5aec
cmp ecx, 0x7ffffffe
ja 0x100c5b80
mov ecx, dword [ebp + 8]
mov word [esp + 0x18], si
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
movsx edx, byte [edi + 0x44]
mov eax, dword [edi + edx*4 + 0x78]
mov ecx, dword [edi + 0x18]
mov eax, dword [eax + 0x3c]
movzx edx, word [edi + 0x20]
sub eax, ecx
cmp edx, eax
jae 0x100c5b16
mov eax, edx
cmp ebx, eax
ja 0x100c5b2b
mov dword [esp + 0x20], ecx
mov word [esp + 0x18], 0x1010
mov dword [esp + 0x1c], ebx
jmp 0x100c5b40
push 1
push esi
lea esi, [esp + 0x18]
mov eax, edi
call fcn.100c0bf0
add esp, 8
test eax, eax
jne 0x100c5ba8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
push ecx
push edx
push eax
call fcn.100c5000
mov ecx, dword [ebp + 0x10]
add esp, 0x10
test dword [esp + 0x18], 0x2460
mov dword [ecx], eax
jne 0x100c5b6e
cmp dword [esp + 0x28], 0
je 0x100c5b77
lea eax, [esp + 0x10]
call fcn.100c0380
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push 0x1015aca8
push 0x12267
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
mov dword [edx], esi
call fcn.100a5cf0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10111ba0
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [esp + 0x18]
push 0
push eax
mov ebx, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x10111c3c
push 0xcd
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.GetVersionEx__LPOSVERSIONINFO_osvi_
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.1012d370
add esp, 0x128
ret
mov ecx, dword [esp + 0x18]
cmp ecx, 5
mov edx, dword [esp + 0x1c]
jne 0x10111c53
cmp edx, 2
jne 0x10111c53
lea eax, [edx - 1]
jmp 0x10111c55
xor eax, eax
cmp ecx, 5
mov dword [ebx + 0xc], eax
jne 0x10111c66
cmp edx, 1
jne 0x10111c66
mov eax, edx
jmp 0x10111c68
xor eax, eax
cmp ecx, 6
sbb ecx, ecx
push str.IsWow64Process
add ecx, 1
push str.kernel32
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10111ca9
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [ebx + 4], eax
je 0x10111cca
xor eax, eax
cmp dword [ebx + 0x10], eax
setne al
mov dword [ebx + 0x14], eax
xor eax, eax
cmp dword [ebx + 8], eax
setne al
mov dword [ebx + 0x18], eax
push ebp
call sub.Comn.dll_GetObjectLog
mov ebp, eax
mov edi, dword [ebp]
push 0xda
mov esi, str..green.cpp
add edi, 0xc
call fcn.10111410
push eax
mov eax, dword [edi]
push str._s:__SystemVersion_
push ebp
call eax
add esp, 0x10
call sub.Comn.dll_GetObjectLog
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ebp, eax
mov edi, dword [ebp]
push edx
push 0xdb
add edi, 0xc
call fcn.10111410
add esp, 4
push eax
mov eax, dword [edi]
push str._s:_System_version:__d._d
push ebp
call eax
add esp, 0x14
call sub.Comn.dll_GetObjectLog
mov ecx, dword [ebx + 4]
mov ebp, eax
mov edi, dword [ebp]
push ecx
push 0xdc
add edi, 0xc
call fcn.10111410
mov edx, dword [edi]
add esp, 4
push eax
push str._s:_IsWow64:__d
push ebp
call edx
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x128
ret
Function at 0x10112440
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
sub esp, 0xc04
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc10]
push esi
push edi
xor ebx, ebx
push 0x3fe
lea eax, [esp + 0x416]
push ebx
push eax
mov word [esp + 0x41c], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x822]
push ebx
push ecx
mov word [esp + 0x828], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x2e]
push ebx
push edx
mov word [esp + 0x34], bx
call sub.MSVCR80.dll_memset
lea esi, [ebp + 0x1c]
mov eax, esi
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x101124b7
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
neg edi
jne 0x1011250a
push 0x16a
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str._tcslen_m_tszRoot__0
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x1011263e
lea edx, [esp + 0x410]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x10112515
cmp dword [ebp + 4], ebx
mov ebp, dword [sym.imp.MSVCR80.dll__swprintf]
je 0x10112546
lea ecx, [esp + 0x410]
push ecx
push str._sdriverLoadDrv_x64.exe
lea edx, [esp + 0x818]
push edx
jmp 0x1011255b
lea eax, [esp + 0x410]
push eax
push str._sdriverLoadDrv_Win32.exe
lea ecx, [esp + 0x818]
push ecx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
lea edx, [esp + 0x810]
push edx
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
cmp edi, ebx
jne 0x101125b8
push 0x176
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.GetFileAttributes_tszSrc__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x1011263e
lea ecx, [esp + 0x410]
push ecx
lea edx, [esp + 0x14]
push str._sLoadDrv.exe
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
call fcn.101130a0
lea eax, [esp + 0x10]
push eax
call esi
cmp eax, 0xffffffff
je 0x101125ef
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp edi, ebx
jne 0x10112641
push 0x17f
mov esi, str..green.cpp
call fcn.10111410
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebx
push str.CopyFile_tszSrc__tszDes__FALSE_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
mov ecx, dword [esp + 0xc10]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0xc04
ret 4