joyce8/EMBER2024-capa huggingface dataset:
Function at 0x614d70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x614da2
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
xor eax, eax
mov dword [esp + 0x10], eax
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x614f37
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x614f37
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x614f37
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x614f37
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x614f37
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x614f37
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x614f37
push ebx
push 0x717368
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.006086f0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x614ea4
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x614f37
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x614f37
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x614ef5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x614efa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x614ee4
cmp esi, 0xfffffffc
je 0x614f27
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x614f37
cmp esi, 0xfffffffd
je 0x614f27
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x614f37
cmp esi, 0xfffffffe
je 0x614f27
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x614f37
cmp esi, 0xffffffff
je 0x614f27
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x614f37
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x61fc80
Capabilities:
Query environment variable

Disassembly:
push str.EXPAT_ENTROPY_DEBUG
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x61fce4
mov ecx, 0x719f00
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x61fcb7
test dl, dl
je 0x61fcb3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x61fcb7
add eax, 2
add ecx, 2
test dl, dl
jne 0x61fc97
xor eax, eax
jmp 0x61fcbc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x61fce4
push 4
push dword [esp + 0xc]
push 8
push dword [esp + 0x10]
push str.Entropy:__s_____0x_0lx___lu_bytes__n
call dword [sym.imp.MSVCRT.dll___p__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x18
mov eax, dword [esp + 8]
ret
Function at 0x624050
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
jmp 0x624060
push 4
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x6240b1
mov edx, dword [esp + 4]
xor ecx, ecx
mov edi, edi
cmp esi, 4
jae 0x62409b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x624080
cmp esi, 4
jb 0x624060
push dword [esp + 8]
push str.rand_s
call fcn.0061fc80
add esp, 8
pop esi
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.0061fc80
add esp, 8
pop esi
add esp, 0xc
ret

Function at 0x627a20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0
jle 0x627b22
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push edi
jmp 0x627a40
mov edi, dword [eax + 8]
add ecx, edi
mov esi, dword [eax + 0xc]
adc edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor ecx, ecx
mov edx, esi
shld esi, edi, 0xd
shr edx, 0x13
or ecx, esi
shl edi, 0xd
mov esi, dword [eax]
or edx, edi
mov edi, dword [eax + 0x18]
mov dword [eax + 8], edx
xor dword [eax + 8], esi
mov edx, dword [eax + 4]
mov dword [eax + 0xc], ecx
xor ecx, ecx
xor dword [eax + 0xc], edx
or ecx, esi
add dword [eax + 0x10], edi
mov esi, dword [eax + 0x1c]
adc dword [eax + 0x14], esi
mov ebp, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [eax], edx
mov edx, esi
shld esi, edi, 0x10
mov dword [eax + 4], ecx
xor ecx, ecx
or ecx, esi
shr edx, 0x10
shl edi, 0x10
or edx, edi
mov dword [eax + 0x1c], ecx
xor dword [eax + 0x1c], ebx
mov esi, dword [eax + 0x1c]
mov dword [eax + 0x18], edx
mov edx, esi
xor dword [eax + 0x18], ebp
mov edi, dword [eax + 0x18]
add dword [eax], edi
adc dword [eax + 4], esi
xor ecx, ecx
shld esi, edi, 0x15
shr edx, 0xb
or ecx, esi
shl edi, 0x15
mov esi, dword [eax + 0xc]
or edx, edi
mov edi, dword [eax + 8]
mov dword [eax + 0x18], edx
mov edx, dword [eax + 4]
mov dword [eax + 0x1c], ecx
xor dword [eax + 0x1c], edx
mov edx, esi
mov ecx, dword [eax]
xor dword [eax + 0x18], ecx
add ebp, edi
adc ebx, esi
xor ecx, ecx
shld esi, edi, 0x11
shr edx, 0xf
or ecx, esi
shl edi, 0x11
or edx, edi
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov dword [eax + 8], edx
mov esi, ebp
mov edx, ebx
xor dword [eax + 0xc], edx
or ecx, esi
xor dword [eax + 8], esi
dec dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 4]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax]
jne 0x627a40
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x651f00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
movzx edx, byte [esi + 9]
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
movzx ecx, byte [edx + ebx + 5]
mov ebp, dword [eax + 0x28]
movzx eax, byte [edx + ebx + 6]
movzx edi, byte [edx + ebx + 7]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ebp
movzx eax, byte [esi + 0xa]
dec ecx
and ecx, 0xffff
add eax, edx
inc ecx
add ebp, 0xfffffffc
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0x18]
movzx esi, byte [edx + ebx + 1]
shl esi, 8
lea eax, [eax + ecx*2]
add eax, 8
mov dword [esp + 0x18], eax
movzx eax, byte [edx + ebx + 2]
or esi, eax
mov eax, dword [esp + 0x14]
add edi, eax
test esi, esi
jle 0x651ff9
cmp esi, eax
jge 0x651f83
push 0x72a494
push 0x10a25
jmp 0x652029
cmp esi, ebp
jg 0x651fbe
jmp 0x651f90
movzx eax, byte [esi + ebx]
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi + 2]
shl eax, 8
or eax, ecx
shl edx, 8
movzx ecx, byte [ebx + esi + 3]
or edx, ecx
lea ecx, [esi + 3]
add ecx, edx
add edi, edx
cmp eax, ecx
jbe 0x651fca
mov esi, eax
cmp eax, ebp
jle 0x651f90
push 0x72a494
push 0x10a2a
jmp 0x652029
test eax, eax
je 0x651fda
push 0x72a494
push 0x10a34
jmp 0x652029
mov ecx, dword [esp + 0x10]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x651ffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
mov dword [esp + 4], 0x10a38
jmp fcn.00694c20
mov ecx, dword [esp + 0x10]
cmp edi, ecx
jg 0x65201f
mov eax, dword [esp + 0x18]
cmp edi, eax
jl 0x65201f
mov ecx, dword [esp + 0x20]
sub edi, eax
movzx eax, di
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x72a494
push 0x10a44
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00648ac0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x685d90
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.006ad7a0
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x685dd8
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.006ad7a0
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x696140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x10], 0
cmp word [esi + 0xcc], 0
mov ebp, dword [esi]
jle 0x69617a
push str.parameters_are_not_allowed_in_views
push esi
call fcn.00698870
mov edi, dword [esp + 0x6c]
add esp, 8
jmp 0x6962ae
push dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
push 0
push 1
push dword [esp + 0x74]
push edi
push dword [esp + 0x6c]
push esi
call fcn.006ba870
mov ebx, dword [esi + 0xec]
add esp, 0x1c
test ebx, ebx
je 0x6962a6
cmp dword [esi + 0x24], 0
jne 0x6962a6
or dword [ebx + 0x1c], 0x200
lea eax, [esp + 0x10]
push eax
push edi
push dword [esp + 0x60]
push esi
call fcn.006bbe40
add esp, 0x10
push dword [esp + 0x10]
push 0x7262f8
push dword [ebx + 0x3c]
push ebp
call fcn.006b6da0
add esp, 8
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0069f2b0
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x30]
push edi
push eax
call fcn.006cdfe0
add esp, 0x1c
test eax, eax
jne 0x6962aa
or dword [edi + 4], 0x200000
cmp byte [esi + 0xd0], 2
jb 0x69621c
mov dword [ebx + 0x2c], edi
xor edi, edi
jmp 0x69622b
push 1
push edi
push ebp
call fcn.006b9620
add esp, 0xc
mov dword [ebx + 0x2c], eax
push 1
push dword [esp + 0x64]
push ebp
call fcn.0069d520
add esp, 0xc
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x2b], 2
cmp byte [ebp + 0x57], 0
jne 0x6962aa
mov ecx, dword [esi + 0xc4]
cmp byte [ecx], 0x3b
je 0x696258
add ecx, dword [esi + 0xc8]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
sub ecx, edx
movzx eax, byte [edx + ecx - 1]
test byte [eax + 0x71ce18], 1
je 0x69627f
mov edi, edi
movzx eax, byte [edx + ecx - 2]
dec ecx
test byte [eax + 0x71ce18], 1
jne 0x696270
lea eax, [edx - 1]
mov dword [esp + 0x14], 1
add eax, ecx
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call fcn.00697f40
add esp, 0x14
jmp 0x6962aa
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
test edi, edi
je 0x6962be
push 1
push edi
push ebp
call fcn.00654b20
add esp, 0xc
cmp byte [esi + 0xd0], 2
jb 0x6962d1
push ebx
push esi
call fcn.006b51a0
add esp, 8
test ebx, ebx
je 0x6962df
push ebx
push ebp
call fcn.0065dc10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x6995f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
mov bh, byte [esp + 0x40]
mov edx, dword [ecx + 8]
mov bl, bh
and bl, 1
mov dword [esp + 4], edx
neg bl
push ebp
sbb bl, bl
push esi
mov esi, dword [eax]
add bl, 0x50
cmp byte [ecx + 0x17], 0
mov dword [esp + 0x3c], esi
jne 0x699624
and bh, 0xfd
add eax, 8
xor ebp, ebp
mov dword [esp + 0x10], eax
test esi, esi
jle 0x6997a9
mov esi, dword [esp + 0x40]
mov byte [esp + 0x48], bh
and byte [esp + 0x48], 4
push edi
cmp byte [esp + 0x4c], 0
mov edi, dword [eax]
je 0x699684
movzx eax, word [eax + 0x10]
test eax, eax
jle 0x699684
test bh, 8
je 0x699669
mov eax, dword [esp + 0x40]
dec ebp
dec esi
dec eax
mov dword [esp + 0x40], eax
jmp 0x69978a
mov ecx, dword [esp + 0x48]
dec ecx
push esi
add eax, ecx
push eax
movzx eax, bl
push eax
push edx
call fcn.006bfa20
add esp, 0x10
jmp 0x69977e
test bh, 2
je 0x6996d9
mov dword [esp + 0x20], fcn.0065dec0
mov eax, 2
mov word [esp + 0x30], ax
mov dword [esp + 0x24], 0x6b9b00
mov dword [esp + 0x34], 0
test edi, edi
je 0x6996c9
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.006df920
mov ecx, dword [esp + 0x44]
add esp, 8
cmp word [esp + 0x30], 0
je 0x6996d9
push esi
push edi
push ecx
call fcn.0069aab0
add esp, 0xc
jmp 0x69977e
push esi
push edi
push ecx
call fcn.0069ac40
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x69977e
cmp bl, 0x4f
jne 0x69972d
push 0xffffffffffffffff
push dword [esp + 0x14]
call fcn.006c7d80
mov ecx, eax
add esp, 8
cmp byte [ecx], bl
jne 0x69972d
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
inc eax
add eax, edx
cmp eax, edi
jne 0x69972d
mov eax, dword [ecx + 8]
inc eax
add eax, edx
cmp eax, esi
jne 0x69972d
cmp word [ecx + 2], 0
jne 0x69972d
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
jmp 0x69977e
mov edx, dword [esp + 0x10]
movzx eax, bl
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x699750
push 0
push esi
push edi
push eax
push edx
call fcn.00674520
add esp, 0x14
jmp 0x69977e
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], 0x14
inc ebp
inc esi
cmp ebp, eax
mov eax, dword [esp + 0x14]
jl 0x699643
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x69e8c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x69e97d
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x69e8ea
xor edi, 1
mov eax, dword [eax + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], ebx
test edx, edx
je 0x69e944
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x69e916
test edx, edx
je 0x69e944
inc eax
jmp 0x69e904
movzx ecx, byte [ecx + 0x71cce8]
movzx edx, byte [edx + 0x71cce8]
sub edx, ecx
jne 0x69e92b
inc eax
jmp 0x69e904
test edi, edi
jne 0x69e961
push dword [esp + 0x24]
push str.main
call fcn.006bb120
add esp, 8
test eax, eax
jne 0x69e961
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.0065ef20
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x69e973
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x69e8e0
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x69ff90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ebp, dword [esi]
mov eax, dword [ebp + 0x20]
and eax, 0x4000
or eax, 0
je 0x6a014d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x2b], 0
jne 0x6a014d
push ebx
push edi
mov edi, dword [esi + 8]
xor ebx, ebx
test edi, edi
jne 0x69ffe0
cmp dword [esi + 0x74], ebx
jne 0x69ffd1
test byte [ebp + 0x50], 8
jne 0x69ffd1
mov byte [esi + 0x17], 1
push esi
call fcn.006c04a0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
push 0
push dword [eax]
add ecx, 0x38
push ecx
call fcn.0065ef20
add esp, 0xc
cmp dword [eax + 8], ebx
jne 0x6a0074
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x6a014b
cmp byte [ecx + 0x18], bl
jne 0x6a0025
mov eax, dword [ebp + 0x20]
and eax, 0x80000
or eax, 0
jne 0x6a0025
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x6a0007
pop edi
pop ebx
pop esi
pop ebp
ret
dec dword [esi + 0x38]
mov ecx, dword [edi + 0x74]
mov ebx, dword [esi + 0x38]
cmp dword [edi + 0x78], ecx
jg 0x6a0045
push 0
push ebx
push 1
push 0x30
push edi
call fcn.00674520
add esp, 0x14
jmp 0x6a0074
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 0
push 0
push 0
push dword [esp + 0x28]
mov byte [esi + 0x97], 1
push ebp
call fcn.006ba390
add esp, 0xc
push eax
push esi
call fcn.00696ba0
mov byte [esi + 0x97], 0
add esp, 0x14
mov eax, dword [ebp + 0x20]
and eax, 0x80000
or eax, 0
jne 0x6a0121
mov eax, dword [edi + 0x74]
add eax, 2
push eax
push 0
push 0x30
push edi
call fcn.006bfa20
mov ebp, dword [esi + 8]
add esp, 0x10
test ebp, ebp
jne 0x6a00e5
cmp dword [esi + 0x74], ebp
jne 0x6a00da
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x6a00da
mov byte [esi + 0x17], 1
push esi
call fcn.006c04a0
add esp, 4
mov ebp, eax
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x6a00ee
mov eax, esi
push 0xffffffffffffffff
push 0
push 0
push 2
push 0x313
push 0x46
push ebp
mov byte [eax + 0x15], 1
call fcn.006bfae0
mov eax, dword [ebp + 0x74]
add esp, 0x1c
test eax, eax
jle 0x6a0121
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [ebp + 0x70]
mov word [eax + ecx*4 - 0x12], dx
test ebx, ebx
je 0x6a014b
mov ecx, dword [edi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x6a0142
push ebx
push edi
push ecx
call fcn.006865c0
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + ebx*4], eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x6a7ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
or edx, 0xffffffff
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov ebx, dword [ebx + 8]
test byte [esi + 0x1c], 0x80
jne 0x6a8010
xor edi, edi
jmp 0x6a8027
mov edi, dword [esi + 8]
test edi, edi
je 0x6a8027
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x6a8027
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x6a8017
mov esi, dword [esi + 8]
test esi, esi
je 0x6a814f
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
nop
cmp dword [esp + 0x2c], 0
je 0x6a8050
cmp dword [eax], 0
je 0x6a8137
cmp esi, edi
je 0x6a8137
cmp ebp, dword [esp + 0x30]
je 0x6a8137
push edx
push ecx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push dword [esp + 0x38]
push esi
push dword [esp + 0x38]
call fcn.006a7a00
add esp, 0x20
mov dword [esp + 0x20], eax
test byte [esi + 0x38], 8
je 0x6a808e
movzx edx, word [esi + 0x32]
jmp 0x6a8092
movzx edx, word [esi + 0x34]
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x6a80ad
push edx
push eax
push ebp
push 0x8b
push ebx
call fcn.00674520
add esp, 0x14
jmp 0x6a80e0
mov ebp, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x8b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x6a80f7
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x14]
test edx, edx
je 0x6a812d
mov eax, dword [esp + 0x1c]
not edx
mov ebp, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x6a8120
push edx
push ebp
push ecx
call fcn.006865c0
add esp, 0xc
jmp 0x6a8129
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebp + 0x74]
mov dword [ecx + edx*4], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 0x14]
add eax, 4
inc ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
test esi, esi
jne 0x6a8040
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x6bb530
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [edi], 0
cmp dword [0x7bd110], 0
je 0x6bb583
mov eax, dword [0x7c8688]
test eax, eax
je 0x6bb558
push eax
call dword [0x7bd160]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x14
call fcn.0067a4a0
mov eax, dword [0x7c8688]
add esp, 8
test eax, eax
je 0x6bb57d
push eax
call dword [0x7bd168]
mov esi, dword [esp + 0x10]
jmp 0x6bb58d
mov esi, dword [esp + 0xc]
jmp 0x6bb590
push 0x14
call dword [0x7bd130]
mov esi, eax
add esp, 4
test esi, esi
jne 0x6bb59a
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp byte [0x7bd114], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x6bb5e9
mov eax, dword [0x7bd210]
test eax, eax
je 0x6bb5c4
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x6bb5e9
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x6bb680
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x6bb5f9
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 0x6bb611
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x6c8270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.00673330
mov ebx, dword [edi + 0x28]
xor eax, eax
movzx ecx, word [edi + 0x30]
xor ebp, ebp
mov esi, dword [edi + 0x2c]
add esp, 4
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x28], ebp
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x6c82b9
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ebx
cmp esi, ecx
ja 0x6c82d1
mov eax, 0x1010
mov dword [esp + 0x1c], esi
mov word [esp + 0x18], ax
jmp 0x6c82f6
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
call fcn.006c8f50
add esp, 0x10
test eax, eax
jne 0x6c83d7
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx edi, byte [ebx]
mov dword [esp + 0x68], edi
cmp edi, 0x80
jb 0x6c8317
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.006a8de0
mov edi, dword [esp + 0x70]
add esp, 8
cmp edi, 3
jb 0x6c8399
cmp edi, esi
ja 0x6c8399
lea eax, [edi - 1]
add eax, ebx
movzx ecx, byte [eax]
mov dword [esp + 0x68], ecx
cmp ecx, 0x80
jb 0x6c8346
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.006a8de0
mov ecx, dword [esp + 0x70]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x6c8399
cmp ecx, 7
je 0x6c8399
movzx edx, byte [ecx + 0x71e868]
lea eax, [edx + edi]
cmp esi, eax
jb 0x6c8399
lea eax, [esp + 0x38]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.006cac60
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.006c94d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test dword [esp + 0x18], 0x2400
jne 0x6c83a7
test ebp, ebp
je 0x6c83b4
lea eax, [esp + 0x10]
push eax
call fcn.006da510
add esp, 4
push 0x72a494
push 0x14b3d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00648ac0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret