joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410468
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, 0x1f4
jae 0x4104a9
mov dword [0x4abb1c], 1
mov eax, 1
jmp 0x4104ab
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4104f7
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.WpeSpy.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41051d
mov dword [0x4abb1c], 1
mov eax, 1
jmp 0x41055b
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 4], esp
lea eax, [ebp - 8]
push eax
push str.WPE_PRO.exe
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0xc], eax
call fcn.0040fc00
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x410559
mov dword [0x4abb1c], 1
mov eax, 1
jmp 0x41055b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41071b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push str.sklnsdhbs98r734imnok089
push str.C:UsersPublicDownloadskXaqjn8YbjnZq8dl.dat
call fcn.0042f760
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410746
xor eax, eax
jmp 0x410830
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042f943
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410772
mov edx, dword [ebp - 4]
push edx
call fcn.0042f9a2
add esp, 4
xor eax, eax
jmp 0x410830
lea eax, [ebp - 0x134]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042f794
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4107a3
mov edx, dword [ebp - 4]
push edx
call fcn.0042f9a2
add esp, 4
xor eax, eax
jmp 0x410830
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], 0
jmp 0x4107ca
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
cmp edx, dword [ebp - 0x13c]
jge 0x410814
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0042f794
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0042f907
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x4107bb
mov eax, dword [ebp - 4]
push eax
call fcn.0042f9a2
add esp, 4
push str.C:UsersPublicDownloadskXaqjn8YbjnZq8dl.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x410834
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x9e3779b9
mov ecx, dword [ebp - 0x10]
shl ecx, 3
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x410873
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x4108d7
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 8]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
xor eax, edx
mov ecx, dword [ebp - 0xc]
shr ecx, 5
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
xor edx, ecx
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 4]
xor edx, eax
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x41086a
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret

Function at 0x41093d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0x4a88a0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004108eb
add esp, 0xc
push 0x4a88a4
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x416b6b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cc9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f00
mov byte [ebp - 4], 2
push str.SELECT__FROM_PAYMODE_WHERE_NAME
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
push 0x4a938c
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x38]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
push 0x17
push 0
push 0x4a9390
lea ecx, [ebp - 0x1c]
call fcn.00404fa0
push 1
mov ecx, 0x4abae4
call fcn.00404ef0
push eax
lea ecx, [ebp - 0x48]
call fcn.00405970
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405240
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405930
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x88], eax
push 1
push 3
push 3
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.00404d90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405b10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405b10
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00404cd0
mov word [ebp - 0x8e], ax
movsx ecx, word [ebp - 0x8e]
test ecx, ecx
je 0x416cf2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.00404cd0
mov word [ebp - 0x96], ax
movsx edx, word [ebp - 0x96]
test edx, edx
jne 0x416d24
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00404d10
jmp 0x416d99
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b403
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42b413
xor eax, eax
jmp 0x42b5dc
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x42b594
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x493c5c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x42b41c
cmp dword [ebp + 0x10], 0
je 0x42b5d6
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x493c5c]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x42b59a
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x42b5de
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
xor edx, eax
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
shr ecx, 8
mov edx, dword [edx*4 + 0x493c5c]
xor edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
imul ecx, ecx, 0x8088405
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shr ecx, 0x18
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
shr edx, 8
mov eax, dword [eax*4 + 0x493c5c]
xor eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x42c592
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x42c5e2
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42c5d8
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x42c63c
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x42c602
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42e016
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x42e030
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x42e03a
mov eax, 0x1000000
jmp 0x42e117
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
add eax, 0x140
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + eax + 0x13f]
mov byte [ebp - 0xc], dl
movsx eax, byte [ebp - 0xc]
cmp eax, 0x5c
je 0x42e096
movsx ecx, byte [ebp - 0xc]
cmp ecx, 0x2f
je 0x42e096
push 0x4ab108
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x42e0cf
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0xffffffff
setne cl
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x10]
and edx, 0xff
test edx, edx
jne 0x42e0cf
mov eax, 0x2000000
jmp 0x42e117
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042c291
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42e0f5
mov eax, dword [ebp - 4]
jmp 0x42e117
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042ca16
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x42e115
mov eax, 0x200
jmp 0x42e117
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42eb93
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [ebp + 8], 0
je 0x42ebbd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ebbd
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x42ebcc
jmp 0x42eccd
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42ec12
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x42ebfe
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x42ec07
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x42ebde
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp + 0xc]
je 0x42ec79
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
sub ecx, dword [ebp + 0xc]
mov byte [ebp + ecx - 0x214], 0
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042eb93
add esp, 8
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x108], 0
cmp dword [ebp + 8], 0
je 0x42ec99
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42eccd
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x432ff2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f8a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f00
mov byte [ebp - 4], 2
push str.SELECT__FROM_USERS_WHERE_NAME
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
push 0x4ab864
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x38]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
push 0x17
push 0
push 0x4ab868
lea ecx, [ebp - 0x1c]
call fcn.00404fa0
push 1
mov ecx, 0x4abae4
call fcn.00404ef0
push eax
lea ecx, [ebp - 0x48]
call fcn.00405970
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405240
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405930
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x88], eax
push 1
push 3
push 3
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
call fcn.00404d90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.00405b10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405b10
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.00404cd0
mov word [ebp - 0x8e], ax
movsx ecx, word [ebp - 0x8e]
test ecx, ecx
je 0x433179
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.00404cd0
mov word [ebp - 0x96], ax
movsx edx, word [ebp - 0x96]
test edx, edx
jne 0x4331ab
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f70
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00404d10
jmp 0x433220
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00404f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434030
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
push ebx
push esi
push edi
mov word [ebp - 4], 0x202
lea eax, [ebp - 0x194]
push eax
mov cx, word [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x43406d
mov eax, 2
jmp 0x4340f1
mov edx, dword [ebp - 0x194]
and edx, 0xffff
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 0xff
and eax, 0xff
cmp edx, eax
jne 0x4340c6
mov ecx, dword [ebp - 0x194]
and ecx, 0xffff
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 4]
and edx, 0xffff
shr edx, 8
and edx, 0xff
cmp ecx, edx
je 0x4340d3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x4340f1
call fcn.00436ed0
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x4340ef
mov eax, dword [ebp - 0x19c]
jmp 0x4340f1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446970
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00446a30
add esp, 8
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x446a1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x4469e3
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x446a1e
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0044e1d0
add esp, 8
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004466f0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x472c], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x37
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret