joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009cd00
Capabilities:
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x1014b270
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x10179454]
mov edx, dword [eax + 0xc]
mov ecx, 0x10179454
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x2c]
add ebx, 0x10
mov byte [esp + 0x24], 1
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x1009cd75
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 8]
cmp dword [ebx + 4], ebp
jbe 0x1009cd83
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x1009cd8b
cmp ebx, ebx
je 0x1009cd91
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x1009ce1b
test ebx, ebx
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x1009cda5
call ebp
cmp esi, dword [ebx + 8]
jb 0x1009cdac
call ebp
cmp dword [esi], 0
jne 0x1009ce0c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x1009cdcc
push 1
push 0x1015b9dc
lea ecx, [esp + 0x1c]
push ecx
call fcn.1009da30
cmp esi, dword [ebx + 8]
jb 0x1009cdd3
call ebp
cmp esi, dword [ebx + 8]
mov edi, dword [esi + 8]
jb 0x1009cde3
call ebp
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
push edi
push edx
push 0x1015b9e0
lea edi, [esp + 0x24]
call fcn.1009eb30
mov edi, dword [esp + 0x24]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.1009da30
cmp esi, dword [ebx + 8]
jb 0x1009ce13
call ebp
add esi, 0x14
jmp 0x1009cd75
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov edx, dword [esp + 0x34]
jne 0x1009ce45
push eax
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, dword [esp + 0x30]
mov dword [esi], 0
jmp 0x1009ce56
mov ecx, dword [esp + 0x30]
push 1
push ecx
push edx
call fcn.1009c3a0
mov esi, dword [esp + 0x30]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009ce77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009ce9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x1009cec0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
push edi
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
je 0x1009cfad
mov esi, dword [ebp + 0x14]
cmp esi, dword [ebp + 0x18]
lea ebx, [ebp + 0x10]
jbe 0x1009cef0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ebx, [ebx]
mov edi, dword [ebp + 0x18]
cmp dword [ebp + 0x14], edi
jbe 0x1009cefe
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x1009cf09
lea eax, [ebp + 0x10]
cmp ebx, eax
je 0x1009cf0f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x1009cfad
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x1009cf23
call edi
cmp esi, dword [ebx + 8]
jb 0x1009cf2a
call edi
cmp dword [esi], 1
jne 0x1009cf95
cmp esi, dword [ebx + 8]
jb 0x1009cf36
call edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009cfa4
cmp esi, dword [ebx + 8]
jb 0x1009cf4b
call edi
mov eax, dword [esi + 8]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1009cfa4
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
xor edx, edx
xor edi, edi
or edx, eax
or ecx, edi
add dword [ebp + 0x30], edx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
adc dword [ebp + 0x34], ecx
cmp esi, dword [ebx + 8]
jb 0x1009cf9c
call edi
add esi, 0x14
jmp 0x1009cef0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x1009d420
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1014968c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov esi, dword [esp + 0x2c]
lea eax, [esi + 4]
push eax
mov ecx, edi
mov dword [esi], 0
call fcn.1009d6b0
lea ecx, [esi + 8]
push ecx
mov ecx, ebx
mov dword [esp + 0x28], 0
call fcn.1009d6b0
mov byte [esp + 0x24], 1
mov edx, dword [0x10179454]
mov eax, dword [edx + 0xc]
mov ecx, 0x10179454
lea ebp, [esi + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x24], 2
mov edx, dword [0x10179454]
mov eax, dword [edx + 0xc]
mov ecx, 0x10179454
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x24], 3
mov ecx, dword [esp + 0x30]
mov byte [ecx], 1
mov edx, dword [0x10179454]
mov eax, dword [edx + 0xc]
mov ecx, 0x10179454
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x24], 4
mov edx, dword [0x10179454]
mov eax, dword [edx + 0xc]
mov ecx, 0x10179454
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
mov ecx, edi
mov byte [esp + 0x28], 5
call fcn.1009b440
mov edx, dword [esp + 0x18]
push edx
push str.Content_Disposition:_form_data__name__s_
lea edi, [esp + 0x3c]
call fcn.1009eb10
lea eax, [esp + 0x24]
push eax
mov eax, ebp
mov ecx, ebx
call fcn.1009b440
add esp, 0x10
push 4
push str._r_n_r_n
mov ecx, edi
push ecx
call fcn.1009d5c0
mov ebx, dword [esp + 0x30]
test ebx, ebx
jne 0x1009d53f
xor eax, eax
jmp 0x1009d54f
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1009d544
sub eax, edx
mov edi, eax
push ebx
lea eax, [esi + 0x10]
call fcn.1009e4a0
mov byte [esp + 0x24], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1009d57f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1009d5a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x1009f6b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp edi, esi
je 0x1009f76c
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov dword [esp + 0xc], esi
lea ebx, [ebx]
push 0x101594d8
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1009f6f0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1009f717
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], ebx
je 0x1009f6fe
add eax, 0x18
jmp 0x1009f700
xor eax, eax
push eax
push 4
push edi
call ebp
add esi, 1
cmp esi, 2
jl 0x1009f6d0
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1009f742
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 0x1009f73b
mov byte [eax + esi], 0
jmp 0x1009f75b
mov byte [esi + ebx - 1], 0
jmp 0x1009f75d
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 0x1009f7b0
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 0x1009f7c5
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 [0x101795e4], eax
je 0x1009f7ff
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x101795e4]
test edi, edi
jne 0x1009f815
cmp dword [esp + 0x10], edi
je 0x1009f815
lea ecx, [esp + 0xc]
push ecx
push 0x201
jmp 0x1009f81c
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 0x1009f873
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1009f84c
test ebp, ebp
jne 0x1009f850
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 0x1009f873
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 0x100a04e0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x18008
call fcn.10132000
mov eax, dword [0x10177024]
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 0x100a0500
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 0x100a0691
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 0x1009fdb0
push str.SELECT_data_value_FROM_data_WHERE_entry_key__user_email
push esi
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.100a0320
test eax, eax
jne 0x100a0687
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a05a0
sub eax, edx
je 0x100a0687
push 0xfffc
lea edx, [esp + 0x8016]
push ebp
push edx
mov word [esp + 0x801c], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x1009fbd0
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.100a0320
push edi
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp ebx, ebp
jne 0x100a0691
lea eax, [esp + 0x8010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100a0606
sub eax, edx
sar eax, 1
je 0x100a0691
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 0x1015babc
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 0x1015babc
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.10130e50
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.10130e50
add esp, 0x18008
ret
Function at 0x100a6130
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 [0x10177158], 0
push esi
je 0x100a6193
mov eax, dword [0x1018dac0]
test eax, eax
je 0x100a6160
push eax
call dword [0x101771b0]
add esp, 4
lea ebx, [esp + 0x10]
mov eax, 0x14
call fcn.100a3c70
mov eax, dword [0x1018dac0]
test eax, eax
je 0x100a6181
push eax
call dword [0x101771b8]
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x100a61a2
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x14
call dword [0x10177180]
add esp, 4
mov esi, eax
jmp 0x100a6185
cmp dword [0x1017715c], 0
je 0x100a61e7
mov eax, dword [0x10177260]
test eax, eax
je 0x100a61c2
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x100a61e7
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x100a6100
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 0x100a61f7
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 0x100a620f
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 0x100a7ec0
Capabilities:
Encode data using xor

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

Function at 0x100a7f50
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 0x100a7f6c
mov esi, 0x80
cmp esi, dword [edi]
jne 0x100a7f78
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [0x1018d960]
test eax, eax
je 0x100a7f83
call eax
lea ecx, [esi*8]
push 0
push ecx
call fcn.100a3d30
mov esi, eax
mov eax, dword [0x1018d964]
add esp, 8
test eax, eax
mov dword [esp + 0x10], esi
je 0x100a7fa6
call eax
test esi, esi
je 0x100a7f70
mov edx, dword [edi + 0xc]
push edx
call fcn.100a4030
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x1017718c]
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 0x100a802e
mov edx, dword [esi + 0xc]
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x100a8014
movzx ecx, cl
movzx ecx, byte [ecx + 0x1014e360]
lea ebx, [eax*8]
xor ecx, ebx
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x100a7ff6
xor edx, edx
div ebp
mov eax, dword [esp + 0x10]
mov ebx, dword [esi]
lea edx, [eax + edx*8]
mov eax, esi
call fcn.100a7ef0
test ebx, ebx
mov esi, ebx
jne 0x100a7feb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x100b5bd0
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 0x100b5d24
movzx eax, word [edi + 0xe]
add eax, esi
mov dword [esp + 0xc], eax
jmp 0x100b5c34
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 0x100b5daa
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffffc
cmp eax, ecx
jg 0x100b5daa
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 0x100b5d81
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx]
cmp eax, dword [esp + 0x1c]
jg 0x100b5d81
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 0x100b5cea
cmp ebx, dword [esp + 0x10]
je 0x100b5d02
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 0x100b5c30
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 0x100b5dd3
push 0x10160fd8
push 0xe6f3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5f10
add esp, 0x14
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10160fd8
push 0xe6db
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5f10
add esp, 0x14
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10160fd8
push 0xe6d5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5f10
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 0x100baf10
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 0x100baffa
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 0x100baf98
cmp ecx, dword [esp + 0xc]
jae 0x100baf98
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 0x100bb03c
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 0x100baf74
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 0x10160fd8
push 0xfad5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5f10
add esp, 0x14
pop edi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c0eb0
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 0x100c0ed7
mov ecx, edi
lea edi, [ebx + ebp]
cmp edi, ecx
ja 0x100c0ef4
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.100c0e10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100c5b80
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.100b8ef0
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 0x100c5bc2
mov eax, edx
cmp ebx, eax
ja 0x100c5bd9
mov edi, ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x18], 0x1010
mov dword [esp + 0x1c], ebx
jmp 0x100c5bf6
push 1
push esi
lea esi, [esp + 0x18]
mov eax, edi
call fcn.100c0e10
add esp, 8
test eax, eax
jne 0x100c5cc4
mov edi, dword [esp + 0x20]
mov al, byte [edi]
cmp al, 0x80
jae 0x100c5c01
movzx ebx, al
jmp 0x100c5c10
lea esi, [esp + 0xc]
mov ecx, edi
call fcn.100a7940
mov ebx, dword [esp + 0xc]
cmp ebx, 3
jb 0x100c5c87
cmp ebx, dword [esp + 0x1c]
jg 0x100c5c87
mov al, byte [ebx + edi - 1]
cmp al, 0x80
lea ecx, [ebx + edi - 1]
jae 0x100c5c2c
movzx edx, al
jmp 0x100c5c39
lea esi, [esp + 0xc]
call fcn.100a7940
mov edx, dword [esp + 0xc]
lea ecx, [edx - 1]
cmp ecx, 8
ja 0x100c5c87
cmp edx, 7
je 0x100c5c87
movzx eax, byte [edx + 0x1014eb28]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ebx]
cmp ecx, esi
jb 0x100c5c87
sub ecx, eax
add ecx, edi
lea eax, [esp + 0x38]
call fcn.100c4a50
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.100c05e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [esp + 0x18], 0x2460
jne 0x100c5c98
cmp dword [esp + 0x28], 0
je 0x100c5ca1
lea eax, [esp + 0x10]
call fcn.100c05a0
push 0x10160fd8
push 0x12245
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100a5f10
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret