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

Disassembly:
push ecx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], esi
call fcn.004bd2b0
mov edi, eax
test edi, edi
je 0x4bd3d6
push ebx
push 2
push esi
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov esi, eax
push esi
call fcn.00478e60
push 0
push 0
push edi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
mov ecx, ebp
push esi
call fcn.004bd080
test eax, eax
je 0x4bd3c0
push esi
push ebx
mov ecx, ebp
call fcn.004bd120
test eax, eax
je 0x4bd3c0
xor edi, edi
xor eax, eax
test esi, esi
jle 0x4bd3a4
xor ecx, ecx
mov cl, byte [eax + ebx]
add edi, ecx
inc eax
cmp eax, esi
jl 0x4bd398
push edi
mov ecx, ebp
call fcn.004bd230
push esi
push ebx
mov edi, eax
call fcn.00478eb0
add esp, 8
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov edi, dword [esp + 0x10]
push esi
push ebx
call fcn.00478eb0
add esp, 8
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4bdd30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547d1b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
mov esi, ecx
je 0x4bddbb
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x14
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, dword [esi + 8]
add esp, 0x1c
test edi, edi
je 0x4bddb4
push 0x1c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4bdd9f
mov ecx, eax
call fcn.0043ca20
jmp 0x4bdda1
xor eax, eax
push edi
mov ecx, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 8], eax
call fcn.0043ca50
mov dword [esi + 0x10], 0
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

Function at 0x4be020
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
mov esi, ecx
je 0x4be098
push edi
push ebx
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x110
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x30]
add esp, 0x1c
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0x10c], edx
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x78]
add esi, 0xfc
rep stosd dword es:[edi], eax
mov dword [esi], ebx
pop edi
pop esi
pop ebx
ret 8
Function at 0x4bf0c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x67a8cc]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
push ecx
call edi
mov edx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 0x10
push esi
call ebp
mov eax, dword [esi + 8]
add esp, 0x1c
test eax, eax
je 0x4bf140
cmp word [esi + 6], 0
jbe 0x4bf140
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
xor ecx, ecx
mov cx, word [esi + 6]
inc ecx
push ecx
call fcn.00478e60
mov dword [esi + 8], eax
mov edx, dword [0x67a8cc]
xor ecx, ecx
push edx
mov cx, word [esi + 6]
push ecx
push 1
push eax
call ebp
mov eax, dword [esi + 8]
add esp, 0x20
xor edx, edx
mov dx, word [esi + 6]
mov byte [edx + eax], 0
jmp 0x4bf147
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4bf19c
cmp word [esi + 4], 0
jbe 0x4bf19c
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call edi
xor edx, edx
mov dx, word [esi + 4]
inc edx
push edx
call fcn.00478e60
mov dword [esi + 0xc], eax
mov ecx, dword [0x67a8cc]
xor edx, edx
push ecx
mov dx, word [esi + 4]
push edx
push 1
push eax
call ebp
mov ecx, dword [esi + 0xc]
add esp, 0x20
xor eax, eax
mov ax, word [esi + 4]
pop edi
mov byte [eax + ecx], 0
mov eax, esi
pop esi
pop ebp
ret 4
mov dword [esi + 0xc], 0
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4bf490
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2404
call fcn.005322e0
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x415]
mov byte [esp + 0x414], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
push 0x585050
push str.mqtt.cfg
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4bf547
push eax
push 0x2000
lea eax, [esp + 0x41c]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ebp, dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x10
lea edi, [esp + 0x414]
push 0xa
push edi
call ebp
add esp, 8
cmp eax, ebx
je 0x4bf539
cmp byte [eax], bl
je 0x4bf539
mov byte [eax], bl
mov ecx, dword [esi + 4]
lea edx, [esp + 0x414]
sub edi, edx
mov dword [esp + ecx*4 + 0x14], edi
inc ecx
mov dword [esi + 4], ecx
lea edi, [eax + 1]
jmp 0x4bf50e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x4bf5c7
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
shl eax, 3
push eax
call fcn.00478e60
mov ecx, dword [esi + 4]
mov edi, eax
mov dword [esi + 8], edi
add esp, 4
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
xor eax, eax
lea ecx, [ecx + edx*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, ebx
jle 0x4bf5c7
xor ebp, ebp
lea ebx, [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + eax + 0x414]
push ecx
mov ecx, dword [esi + 8]
add ecx, ebp
call fcn.004bf1b0
mov eax, dword [esi + 4]
inc edi
add ebx, 4
add ebp, 0x158
cmp edi, eax
jl 0x4bf5a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2404
ret

Function at 0x4bf5e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
push ebx
xor ebx, ebx
push esi
cmp eax, 1
push edi
jne 0x4bf685
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x11c]
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push str._d__s__s_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x588950
push str.mqtt.cfg
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x4bf685
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x100
ret 0x10
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x100
ret 0x10
Function at 0x4bf820
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
mov esi, ecx
mov ecx, dword [0x67a8cc]
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 4
push 1
push esi
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x24]
push eax
push 0x20
push 1
push ecx
call edi
push 0x24
call fcn.004784b0
add esp, 0x30
test eax, eax
je 0x4bf87e
lea edx, [esp + 8]
push 1
push edx
mov ecx, eax
call fcn.00495db0
jmp 0x4bf880
xor eax, eax
push 0x24
mov dword [esi + 4], eax
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4bf8ac
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
add esp, 0x20
ret 4
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
add esp, 0x20
ret 4

Function at 0x4bf9d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x67a8cc]
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 4
push 1
push esi
call ebx
mov eax, dword [0x67a8cc]
lea edi, [esi + 4]
push eax
push 0x20
push 1
push edi
call ebx
add esp, 0x2c
mov ecx, edi
call fcn.004c9d30
push eax
call fcn.00478e60
add esp, 4
mov dword [esi + 0x24], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4bfa80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547d7b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call ebx
mov edx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 0xc
push esi
call ebp
mov eax, dword [esi + 4]
add esp, 0x1c
mov ecx, esi
push eax
call fcn.004bfbf0
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
test ecx, ecx
je 0x4bfbcf
mov edi, dword [esi]
mov eax, edi
and eax, 7
sub eax, 0
je 0x4bfb3a
dec eax
je 0x4bfb07
dec eax
jne 0x4bfbcf
push ecx
mov ecx, esi
call fcn.004bfbf0
mov dword [esi + 8], eax
jmp 0x4bfbcf
push 0x110
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esi + 8]
add esp, 4
mov edi, eax
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004be020
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4bfb32
mov ecx, edi
call fcn.004be0a0
mov dword [esi + 8], edi
jmp 0x4bfbcf
shr edi, 0x10
test edi, edi
jle 0x4bfbc8
lea edx, [edi*4]
push edx
call fcn.00478e60
mov ecx, dword [0x67a8cc]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push 0
push eax
push ecx
call ebx
mov edx, dword [0x67a8cc]
mov ebx, dword [esp + 0x30]
push edx
push edi
push 4
push ebx
call ebp
add esp, 0x20
test edi, edi
jle 0x4bfbc3
mov ebp, dword [esp + 0x24]
cmp dword [ebx], 0
je 0x4bfbb9
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4bfbad
mov ecx, dword [ebx]
push ebp
push ecx
mov ecx, eax
call fcn.004bfa80
jmp 0x4bfbaf
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [ebx], eax
add ebx, 4
dec edi
jne 0x4bfb81
mov ebx, dword [esp + 0x20]
mov dword [esi + 8], ebx
jmp 0x4bfbcf
mov dword [esi + 8], 0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x4bfbf0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x100
xor eax, eax
test ecx, ecx
je 0x4bfc5b
push esi
push edi
push eax
mov eax, dword [0x67a8cc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x14]
push ecx
push 0x100
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.00478e60
mov ecx, esi
lea esi, [esp + 0x28]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0x20
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x100
ret 4
Function at 0x4c2af0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x4c2c07
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call ebx
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x214
push esi
call ebp
lea edi, [esi + 0x210]
add esp, 0x1c
mov dword [edi], 0
mov al, byte [0x941900]
test al, 1
jne 0x4c2b64
mov dl, al
mov ecx, 0x941920
or dl, 1
mov byte [0x941900], dl
call fcn.004c2db0
push fcn.00458ab0
call fcn.0053228e
add esp, 4
push 0
lea edx, [esi + 0x88]
push 1
lea eax, [esi + 4]
push edx
push eax
push edi
call dword [0x941920]
mov eax, dword [esi + 0x208]
add esp, 0x14
test eax, eax
jle 0x4c2bee
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x4c2bee
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call ebx
mov edx, dword [esi + 0x208]
shl edx, 2
push edx
call fcn.00478e60
mov edx, dword [esi + 0x208]
mov dword [esi + 0x20c], eax
mov ecx, dword [0x67a8cc]
push ecx
push edx
push 4
push eax
call ebp
mov eax, dword [esi + 0x208]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x4c2bee
mov eax, dword [esi + 0x20c]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.004c0040
mov eax, dword [esi + 0x208]
inc edi
cmp edi, eax
jl 0x4c2bd4
push 0
push 0
push 0x4c2d90
push 0x6192f4
call fcn.0047ad60
add esp, 0x10
pop edi
pop ebp
pop ebx
pop esi
ret 4

Function at 0x4c3080
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push esi
push 0x585050
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4c30f6
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
lea ecx, [esp + 0x14]
push 1
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push str.0x_x
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x28]
add esp, 0x20
pop edi
pop esi
add esp, 0x24
ret 4
mov eax, dword [esp + 4]
pop esi
add esp, 0x24
ret 4
Function at 0x4c3220
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.005322e0
mov eax, dword [esp + 0x1004]
push esi
test eax, eax
mov esi, ecx
je 0x4c3341
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call ebx
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x44
push esi
call ebp
mov edi, dword [esi + 8]
add esp, 0x1c
test edi, edi
je 0x4c3283
push 0x14
call sub.MFC42u.DLL_operatornew
add esp, 4
mov ecx, eax
mov dword [esi + 8], eax
push edi
call fcn.004bdd30
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x4c332f
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4c332f
mov edx, dword [0x67a8cc]
push 0
push eax
push edx
call ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x67a8cc]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea edx, [esp + 0x24]
push 4
push edx
call ebp
mov eax, dword [esi + 0x2c]
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 4
push ecx
call fcn.00478e60
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
add esp, 0x20
xor ebp, ebp
test eax, eax
jle 0x4c332f
xor edi, edi
lea ebx, [esp + 0x10]
mov edx, dword [ebx]
mov ecx, dword [esi + 0x30]
push 0xffffffffffffffff
push edx
add ecx, edi
call fcn.004be020
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c331e
call fcn.004af400
test eax, eax
je 0x4c331e
mov ecx, dword [esi + 0x30]
add ecx, edi
call fcn.004be0a0
mov eax, dword [esi + 0x2c]
inc ebp
add ebx, 4
add edi, 0x110
cmp ebp, eax
jl 0x4c32f5
mov dword [esi + 0x3c], 0
mov eax, dword [0x6d7478]
pop edi
pop ebp
mov dword [esi + 0x40], eax
pop ebx
pop esi
add esp, 0x1000
ret 4

Function at 0x4c3c00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x547eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.0041b430
lea edi, [esi + 0xbc]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.0041add0
mov dword [edi + 0x10], ebx
mov word [esi + 0xd0], bx
mov word [esi + 0xd2], bx
or eax, 0xffffffff
mov word [esi + 0xd4], bx
mov word [esi + 0xd6], bx
mov word [esi + 0xda], bx
mov word [esi + 0xd8], bx
mov word [esi + 0xde], ax
mov word [esi + 0xdc], ax
mov dword [esi], 0x5567cc
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x14
push edi
call dword [sym.imp.MSVCRT.dll_fread]
movsx edx, word [esi + 0x16]
movsx eax, word [esi + 0x12]
movsx ecx, word [esi + 0x14]
add esp, 0x10
sub edx, eax
inc edx
push edi
push edx
movsx edx, word [esi + 0x10]
sub ecx, edx
inc ecx
push ecx
mov ecx, 0x6d2758
call fcn.004c3840
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
or eax, 0x40000
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4ca610
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi], eax
call fcn.004bb6f0
xor eax, eax
or ecx, 0xffffffff
mov word [esi + 0x22], ax
mov word [esi + 0x20], ax
mov word [esi + 0x26], cx
mov word [esi + 0x24], cx
mov ecx, dword [esp + 8]
mov word [esi + 0x28], ax
mov word [esi + 0x2a], ax
mov edx, dword [0x67a8cc]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
lea ecx, [esi + 4]
push eax
push 1
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov eax, esi
pop esi
ret 8

Function at 0x4cbfe0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x4cc04a
mov eax, dword [esp + 8]
xor edx, edx
mov dl, ah
and eax, 0xff
push edi
push 0
lea edi, [eax + eax*2]
shl edi, 4
sub edi, eax
shl edi, 1
lea eax, [edx + edi - 0x3bbf]
shl eax, 5
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x90]
mov edi, dword [esp + 0x1c]
push ecx
push 1
push 0x20
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
xor esi, esi
mov dl, byte [esi + edi]
push edx
call fcn.00479220
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x4cc034
pop edi
pop esi
ret 8
Function at 0x4cc050
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x547f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea ecx, [esp + 4]
mov dword [esp + 0xc], ebx
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [0x56267c]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x24], ebx
call fcn.004d9190
add esp, 8
test eax, eax
je 0x4cc0ad
mov edx, dword [esp + 4]
push 0x583424
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
push ebx
push str.fpHzk24:_p
call fcn.00458ab0
add esp, 8
test ebx, ebx
je 0x4cc218
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
sub edx, 0xa0
sub eax, 0xaf
mov ecx, edx
push ebp
push esi
lea edx, [eax + eax*2]
push edi
shl edx, 4
sub edx, eax
push 0
lea eax, [ecx + edx*2 - 0x5f]
lea eax, [eax + eax*8]
shl eax, 3
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x40]
push ebx
push 1
push 0x48
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
xor esi, esi
mov al, byte [esi + edi]
push eax
call fcn.00479220
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, 0x48
jl 0x4cc113
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov ebp, eax
cmp ecx, 0x48
mov dword [esp + 0x14], ebp
jge 0x4cc1f6
mov edx, eax
and edx, 0x80000007
jns 0x4cc152
dec edx
or edx, 0xfffffff8
inc edx
lea ebx, [edx*4 + 0x67a8e4]
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
add esi, ecx
add esi, edi
jmp 0x4cc172
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ecx
mov cl, byte [edi + eax]
add edi, eax
and ebp, 0x80000007
jns 0x4cc191
dec ebp
or ebp, 0xfffffff8
inc ebp
mov edx, dword [ebp*4 + 0x67a8e4]
lea ebp, [ebp*4 + 0x67a8e4]
mov eax, ecx
and eax, 0xff
and eax, edx
mov dl, byte [esi]
test byte [ebx], dl
mov dl, byte [ebp]
je 0x4cc1b7
or cl, dl
mov byte [edi], cl
jmp 0x4cc1bd
not dl
and dl, cl
mov byte [edi], dl
test eax, eax
je 0x4cc1cb
mov al, byte [ebx]
mov cl, byte [esi]
or cl, al
mov byte [esi], cl
jmp 0x4cc1d5
mov cl, byte [ebx]
mov al, byte [esi]
not cl
and al, cl
mov byte [esi], al
mov ebp, dword [esp + 0x14]
add esi, 3
inc ebp
cmp ebp, 0x18
mov dword [esp + 0x14], ebp
jl 0x4cc16a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
add ecx, 3
inc eax
cmp ecx, 0x48
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
jl 0x4cc134
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4ccc20
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x4ccc2d
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x6d71c4], eax
jne 0x4ccc4e
push str.cannot_find_so_file_n
call fcn.0040cc80
add esp, 4
xor al, al
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
test eax, eax
mov dword [0x6d71c8], eax
jne 0x4ccc75
mov eax, dword [0x6d71c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6d71c4]
push str.sqlite3_close
push ecx
call esi
test eax, eax
mov dword [0x6d71cc], eax
jne 0x4ccc9d
mov edx, dword [0x6d71c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6d71c4]
push str.sqlite3_exec
push eax
call esi
test eax, eax
mov dword [0x6d71d0], eax
jne 0x4cccc4
mov ecx, dword [0x6d71c4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov edx, dword [0x6d71c4]
push str.sqlite3_get_table
push edx
call esi
test eax, eax
mov dword [0x6d71d4], eax
jne 0x4ccceb
mov eax, dword [0x6d71c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6d71c4]
push str.sqlite3_free
push ecx
call esi
test eax, eax
mov dword [0x6d71dc], eax
jne 0x4ccd13
mov edx, dword [0x6d71c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6d71c4]
push str.sqlite3_free_table
push eax
call esi
test eax, eax
mov dword [0x6d71d8], eax
jne 0x4ccd3a
mov ecx, dword [0x6d71c4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov edx, dword [0x6d71c4]
push str.sqlite3_shutdown
push edx
call esi
test eax, eax
mov dword [0x6d71f8], eax
jne 0x4ccd61
mov eax, dword [0x6d71c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6d71c4]
push str.sqlite3_initialize
push ecx
call esi
test eax, eax
mov dword [0x6d7200], eax
jne 0x4ccd89
mov edx, dword [0x6d71c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6d71c4]
push str.sqlite3_prepare_v2
push eax
call esi
test eax, eax
mov dword [0x6d71e4], eax
jne 0x4ccdb0
mov ecx, dword [0x6d71c4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov edx, dword [0x6d71c4]
push str.sqlite3_step
push edx
call esi
test eax, eax
mov dword [0x6d71e8], eax
jne 0x4ccdd7
mov eax, dword [0x6d71c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6d71c4]
push str.sqlite3_errmsg
push ecx
call esi
test eax, eax
mov dword [0x6d71ec], eax
jne 0x4ccdff
mov edx, dword [0x6d71c4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6d71c4]
push str.sqlite3_finalize
push eax
call esi
test eax, eax
mov dword [0x6d71f0], eax
jne 0x4cce26
mov ecx, dword [0x6d71c4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret