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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
push ebx
call sym.hf32.exe__sys_error_none_4
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x918]
test esi, esi
jne 0x420fca
push 1
call fcn.0040a6ac
push eax
push 0x36
push 1
push 0x433680
call fcn.0040a941
push 0x4336b8
call fcn.00401130
add esp, 0x18
call sym.hf32.exe__sys_bomb_0
mov ecx, dword [ebp + 0x18]
xor al, al
mov edi, dword [ebp + 0xc]
mov edx, edi
mov dword [esp + 0x1c], edx
mov byte [esp + 0x1b], al
mov dword [ecx], 0
test edi, edi
je 0x42118b
lea edi, [esi + 0x808]
cmp dword [edi], 0
jbe 0x42101e
mov eax, dword [esi + 0x80c]
mov ebx, dword [ebp + 0x14]
inc dword [ebp + 0x14]
mov al, byte [eax + esi + 8]
mov byte [ebx], al
dec dword [edi]
inc dword [esi + 0x80c]
inc dword [ecx]
dec edx
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
jmp 0x42112a
cmp dword [ecx], 0
jbe 0x42102d
test byte [ebp + 0x10], 2
jne 0x42117b
mov dword [esi + 0x80c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
test al, al
jne 0x421068
push 0x4358d4
push 0
push 1
push dword [0x4358d0]
call sub.KERNEL32.dll_CreateEventA
mov dword [esp + 0x3c], eax
mov byte [esp + 0x1b], 1
lea eax, [esp + 0x2c]
push eax
push edi
push dword [0x43367c]
lea eax, [esi + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x920]
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x42111e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x42113c
movss xmm0, dword [esi]
xorps xmm1, xmm1
or eax, 0xffffffff
comiss xmm0, xmm1
jbe 0x4210ee
movsd xmm1, qword [0x423248]
sub esp, 8
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4232b8]
maxsd xmm1, xmm0
addsd xmm1, qword [0x423240]
movsd qword [esp + 0x28], xmm1
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.0040c8d0
fstp qword [esp + 0x28]
cvttsd2si eax, qword [esp + 0x28]
add esp, 8
push eax
push dword [esp + 0x40]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x421141
cmp eax, 0xffffffff
je 0x421137
push 1
push edi
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x920]
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
je 0x421137
cmp dword [edi], 0
je 0x42114d
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x42117b
mov al, byte [esp + 0x1b]
jmp 0x420ff0
call sub.KERNEL32.dll_GetLastError
mov dword [ebx + 0xc], eax
jmp 0x42117b
push ebx
push 0x20
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
jmp 0x42117b
mov esi, dword [ebp + 0x18]
push ebx
cmp dword [esi], 0
jne 0x421161
push 1
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
jmp 0x42117b
push 0xa
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
push ebx
push dword [ebp + 0xc]
call sym.hf32.exe__sys_stat_parm_int_8
push ebx
push dword [esi]
call sym.hf32.exe__sys_stat_parm_int_8
cmp byte [esp + 0x1b], 0
je 0x42118b
push dword [esp + 0x3c]
call fcn.00407c58
mov eax, dword [ebx + 0xc]
cmp eax, 0x208
je 0x42119a
cmp eax, 0x40
jne 0x4211a4
push ebx
push 1
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4211b0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call sym.hf32.exe__sys_error_none_4
call sym.hf32.exe__sys_sys_netstart_0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4211eb
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x10
ret 0x10
lea eax, [esp + 8]
push eax
call sym.hf32.exe__file_inet_sockaddr_init_4
mov ax, word [esp + 0x20]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 4
push eax
call sym.hf32.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.hf32.exe__sys_order_flip_8
push dword [0x433674]
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_bind
test eax, eax
jne 0x421282
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x10
push eax
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x421282
push 4
lea eax, [esp + 0x10]
push eax
call sym.hf32.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.hf32.exe__sys_order_flip_8
mov ax, word [esp + 0xa]
push 8
push dword [esi + 4]
mov word [esi], ax
call sub.WS2_32.dll_listen
test eax, eax
je 0x421292
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
push dword [esi + 4]
call sub.WS2_32.dll_closesocket
pop edi
pop esi
add esp, 0x10
ret 0x10

Function at 0x4212a0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0x18]
push esi
call sym.hf32.exe__sys_error_none_4
mov eax, dword [esp + 0xc]
push 0x10
push dword [eax + 0x918]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [eax + 0x920]
call sub.WS2_32.dll_sendto
mov ecx, eax
mov eax, dword [esp + 0x14]
test ecx, ecx
jns 0x4212e8
mov dword [eax], 0
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
pop esi
ret 0x14
mov dword [eax], ecx
cmp ecx, dword [esp + 0x10]
je 0x4212fa
push esi
push 0x1c
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
pop esi
ret 0x14
Function at 0x421300
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call sym.hf32.exe__sys_error_none_4
call sym.hf32.exe__sys_sys_netstart_0
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x421330
call sub.WS2_32.dll_WSAGetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
ret 0x10
lea eax, [esp + 0x18]
push eax
push 0x10
call sym.hf32.exe__sys_mem_alloc_8
mov eax, dword [esp + 0x18]
mov ecx, 2
push 4
mov word [eax], cx
mov ecx, dword [esp + 0x1c]
mov ax, word [esp + 0x14]
mov word [ecx + 2], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call sym.hf32.exe__sys_order_flip_8
mov eax, dword [esp + 0x18]
push 2
add eax, 2
push eax
call sym.hf32.exe__sys_order_flip_8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x920], edi
pop edi
mov word [ecx], 0xa03
mov byte [ecx + 2], 0
mov dword [ecx + 4], 0x400
mov dword [ecx + 0x408], 0x100
mov dword [ecx + 0x50c], 0x400
mov dword [ecx + 0x910], 0
mov dword [ecx + 0x914], 0xfffffffe
mov dword [ecx + 0x918], eax
mov dword [ecx + 0x91c], 0x420eb0
pop esi
ret 0x10
Function at 0x421500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
call sym.hf32.exe__sys_error_none_4
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4216a1
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [ebx + 0x918]
test ebp, ebp
jne 0x421553
push 1
call fcn.0040a6ac
push eax
push 0x36
push 1
push str.INTERNAL_ERROR:_Data_pointer_NIL_in_FILE_READ_INETSTR.
call fcn.0040a941
push 0x4336f4
call fcn.00401130
add esp, 0x18
call sym.hf32.exe__sys_bomb_0
push 0x4358dc
push 0
push 1
push dword [0x4358d8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x3c]
push dword [ebx + 0x920]
call sub.KERNEL32.dll_WriteFile
test al, al
jne 0x421668
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x421635
movss xmm0, dword [ebp + 4]
or eax, 0xffffffff
comiss xmm0, dword [0x423220]
jbe 0x4215ff
movsd xmm1, qword [0x423248]
sub esp, 8
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4232b8]
maxsd xmm1, xmm0
addsd xmm1, qword [0x423240]
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.0040c8d0
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
add esp, 8
push eax
push dword [esp + 0x2c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x42164b
cmp eax, 0xffffffff
je 0x421630
push 1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 0x920]
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
jne 0x421668
call sub.KERNEL32.dll_GetLastError
push dword [esp + 0x28]
mov dword [esi + 0xc], eax
call fcn.00407c58
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
push esi
push 0x20
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
push dword [esp + 0x28]
call fcn.00407c58
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
cmp dword [esp + 0x3c], edi
je 0x421696
push esi
push 9
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
push esi
lea eax, [ebx + 0x50c]
push eax
call sym.hf32.exe__sys_stat_parm_vstr_8
push esi
push edi
call sym.hf32.exe__sys_stat_parm_int_8
push esi
push dword [esp + 0x40]
call sym.hf32.exe__sys_stat_parm_int_8
push dword [esp + 0x28]
call fcn.00407c58
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x421710
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x410]
push esi
push ebx
push edi
call sym.hf32.exe__string_t_inetadr_12
push esi
call sym.hf32.exe__sys_error_4
test al, al
je 0x4217ac
push ebp
push esi
call sym.hf32.exe__sys_error_none_4
call sym.hf32.exe__sys_sys_netstart_0
movsx ebp, word [edi + 2]
cmp dword [0x433670], ebp
cmovl ebp, dword [0x433670]
cmp ebp, 1
jl 0x421774
lea eax, [edi + 4]
push ebp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00407cd0
add esp, 0xc
mov al, byte [0x4358cc]
mov byte [esp + ebp + 0x10], al
lea eax, [esp + 0x10]
push eax
call sub.WS2_32.dll_gethostbyname
pop ebp
test eax, eax
jne 0x4217b8
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
cmp eax, 0x2af9
jne 0x4217ac
push esi
push 0xf
push 0xfffffffffffffffd
call sym.hf32.exe__sys_stat_set_12
push esi
push edi
call sym.hf32.exe__sys_stat_parm_vstr_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42179b
mov eax, dword [eax]
test eax, eax
je 0x42179b
mov eax, dword [eax]
push 4
push ebx
mov dword [ebx], eax
call sym.hf32.exe__sys_order_flip_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc

Function at 0x421b40
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.00407310
push esi
mov esi, dword [esp + 0x2018]
mov eax, 0x2000
push edi
push esi
mov word [esp + 0x10], ax
call sym.hf32.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2018]
call sym.hf32.exe__string_copy_8
movzx eax, word [0x433724]
push eax
push 0x433720
lea eax, [esp + 0x14]
push eax
call sym.hf32.exe__string_appendn_12
lea eax, [esp + 0xc]
push eax
call sym.hf32.exe__string_terminate_null_4
push dword [0x4358f0]
lea eax, [esp + 0x14]
push 0x8000080
push 3
push dword [0x4358ec]
push 1
push connect
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x421bd3
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
add esp, 0x2008
ret 0xc
push dword [0x4358f4]
movsx eax, word [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x421c0c
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [esi + 0xc], eax
call fcn.00407c58
pop edi
pop esi
add esp, 0x2008
ret 0xc
movsx edx, word [esp + 0xc]
mov ecx, dword [esp + 8]
cmp edx, ecx
movzx eax, word [esp + 0xc]
movzx esi, cx
cmovb esi, eax
push edi
mov word [esp + 0x12], si
call fcn.00407c58
mov edx, dword [esp + 0x2018]
mov cx, word [esp + 0xe]
movzx eax, word [edx]
cmp ax, cx
cwde
jl 0x421c45
movsx eax, cx
movzx eax, ax
mov ecx, 1
movsx esi, ax
mov word [edx + 2], ax
cmp esi, ecx
jl 0x421c7f
mov al, byte [esp + ecx + 0xf]
cmp al, 0x1f
jbe 0x421c78
cmp al, 0x7f
je 0x421c78
mov byte [ecx + edx + 3], al
inc ecx
cmp ecx, esi
jle 0x421c58
pop edi
pop esi
add esp, 0x2008
ret 0xc
lea eax, [ecx - 1]
mov word [edx + 2], ax
pop edi
pop esi
add esp, 0x2008
ret 0xc
Function at 0x421c90
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov eax, 0x2510
call fcn.00407310
mov eax, 0x400
mov word [esp + 0x108], ax
mov eax, pe_nt_image_headers32
push esi
push edi
mov edi, dword [esp + 0x2528]
mov word [esp + 0xc], ax
mov eax, 0x2000
push edi
mov word [esp + 0x518], ax
call sym.hf32.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x2524]
call sym.hf32.exe__string_pathname_split_12
lea eax, [esp + 0x110]
push eax
push eax
call sym.hf32.exe__string_treename_8
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call sym.hf32.exe__string_pathname_join_12
test byte [esp + 0x2524], 1
mov esi, 1
je 0x421d56
lea eax, [esp + 0x514]
mov esi, 2
push eax
call sym.hf32.exe__string_terminate_null_4
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x421d56
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [edi + 0xc], eax
call sym.hf32.exe__file_not_found_4
test al, al
je 0x421deb
movzx eax, word [0x433714]
push eax
push 0x433710
lea eax, [esp + 0x51c]
push eax
call sym.hf32.exe__string_appendn_12
lea eax, [esp + 0x514]
push eax
call sym.hf32.exe__string_terminate_null_4
push dword [0x4358e4]
lea eax, [esp + 0x51c]
push 0x8000080
push esi
push dword [0x4358e0]
push 1
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x421de3
push dword [0x4358e8]
mov eax, dword [esp + 0x2524]
lea edx, [esp + 0xc]
push edx
movsx ecx, word [eax + 2]
add eax, 4
push ecx
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test al, al
je 0x421df6
push esi
call sub.KERNEL32.dll_SetEndOfFile
test al, al
je 0x421df6
push esi
call fcn.00407c58
test al, al
jne 0x421deb
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2510
ret 0x10
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call fcn.00407c58
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
add esp, 0x2510
ret 0x10

Function at 0x421e20
Capabilities:
Delete file

Disassembly:
mov eax, 0x250c
call fcn.00407310
mov eax, 0x400
mov word [esp + 0x104], ax
mov eax, pe_nt_image_headers32
push esi
mov esi, dword [esp + 0x2518]
mov word [esp + 4], ax
mov eax, 0x2000
push esi
mov word [esp + 0x510], ax
call sym.hf32.exe__sys_error_none_4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x251c]
call sym.hf32.exe__string_pathname_split_12
lea eax, [esp + 0x108]
push eax
push eax
call sym.hf32.exe__string_treename_8
lea eax, [esp + 0x50c]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x110]
push eax
call sym.hf32.exe__string_pathname_join_12
movzx eax, word [0x43371c]
push eax
push 0x433718
lea eax, [esp + 0x514]
push eax
call sym.hf32.exe__string_appendn_12
lea eax, [esp + 0x50c]
push eax
call sym.hf32.exe__string_terminate_null_4
lea eax, [esp + 0x510]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x421edd
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x250c
ret 8
Function at 0x41a4f0c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x41a4fa3
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x41a4fbc
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a4faa
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41b2458
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41b24b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x41b24a2
push 3
push 0x41b24c4
push 0x41b24c4
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41b24c8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b24bf
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41b5ecc
Capabilities:
Reference sql statements

Disassembly:
add esp, 0xffffffd4
mov eax, 0x41b5f58
mov dword [esp], eax
mov eax, 0x41b5f78
mov dword [esp + 4], eax
mov eax, 0x41b5f98
mov dword [esp + 8], eax
mov eax, 0x41b5fb8
mov dword [esp + 0xc], eax
mov eax, 0x41b5fdc
mov dword [esp + 0x10], eax
mov eax, 0x41b5ffc
mov dword [esp + 0x14], eax
mov eax, 0x41b6020
mov dword [esp + 0x18], eax
mov eax, 0x41b6040
mov dword [esp + 0x1c], eax
mov eax, 0x41b6060
mov dword [esp + 0x20], eax
mov eax, 0x41b6080
mov dword [esp + 0x24], eax
mov eax, 0x41b60a0
mov dword [esp + 0x28], eax
mov eax, esp
mov edx, 0xa
call fcn.041ab41c
mov edx, 0x41b60c0
mov eax, 0x41b7418
call fcn.041ab7dc
add esp, 0x2c
ret
Function at 0x41b742c
Capabilities:
Reference sql statements

Disassembly:
add esp, 0xffffffdc
mov eax, 0x41b74a8
mov dword [esp], eax
mov eax, 0x41b74c4
mov dword [esp + 4], eax
mov eax, 0x41b74e4
mov dword [esp + 8], eax
mov eax, 0x41b7504
mov dword [esp + 0xc], eax
mov eax, 0x41b7524
mov dword [esp + 0x10], eax
mov eax, 0x41b7540
mov dword [esp + 0x14], eax
mov eax, 0x41b7560
mov dword [esp + 0x18], eax
mov eax, 0x41b7580
mov dword [esp + 0x1c], eax
mov eax, 0x41b75a4
mov dword [esp + 0x20], eax
mov eax, esp
mov edx, 8
call fcn.041ab41c
mov edx, 0x41b75c4
mov eax, 0x41b8a48
call fcn.041ab7dc
add esp, 0x24
ret
Function at 0x403191
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, 1
je 0x4031c4
cmp ebp, 4
je 0x4031c4
cmp ebp, 8
je 0x4031c4
cmp ebp, 0x10
je 0x4031c4
cmp ebp, 0x18
je 0x4031c4
cmp ebp, 0x20
je 0x4031c4
pop esi
xor al, al
pop ebp
ret 0xc
push ebx
push edi
mov edi, dword [esp + 0x14]
imul edi, ebp
shr edi, 3
mov eax, edi
and eax, 3
je 0x4031e0
mov ecx, 4
sub ecx, eax
add edi, ecx
xor ebx, ebx
cmp ebp, 8
ja 0x4031f5
mov edx, 1
mov ecx, ebp
shl edx, cl
mov dword [esi + 0x38], edx
jmp 0x4031f8
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0041d582
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [edx], 0x28
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
imul edi, eax
mov ecx, dword [esi + 8]
mov word [ecx + 0xe], bp
mov edx, dword [esi + 8]
mov ecx, 1
mov word [edx + 0xc], cx
mov edx, dword [esi + 8]
mov dword [edx + 0x10], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x14]
push edx
call fcn.0041d582
add esp, 8
mov dword [esi + 0xc], eax
cmp ebp, 8
ja 0x4032cf
mov ecx, ebp
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esi + 0x38], eax
cmp eax, ebx
jbe 0x4032cf
mov edi, dword [esi + 0x38]
xor edx, edx
dec edi
mov eax, 0xff
div edi
mov edx, dword [esi + 8]
imul cl
mov byte [edx + ecx*4 + 0x28], al
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x28]
mov byte [eax + ecx*4 + 0x29], dl
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x29]
lea eax, [eax + ecx*4]
mov byte [eax + 0x2a], dl
mov eax, dword [esi + 8]
mov byte [eax + ecx*4 + 0x2b], bl
inc ecx
cmp ecx, dword [esi + 0x38]
jb 0x403292
lea edi, [esi + 0x10]
mov esi, dword [esi + 8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0xc
Function at 0x403ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4734e3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebp
push esi
push edi
mov eax, dword [0x4936d0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x40403c
xor edi, edi
jmp 0x404047
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x40405a
xor esi, esi
jmp 0x404065
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x50]
push eax
call fcn.004067f0
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x74]
mov dword [edx], esi
mov ecx, dword [esp + 0x84]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x60]
mov dword [edx], esi
mov ecx, dword [esp + 0x70]
mov dword [ecx], esi
mov edx, dword [esp + 0x80]
mov dword [edx], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xac], 0
call fcn.00406610
mov byte [esp + 0xa4], 1
mov edx, dword [ebp + 0x74]
mov edx, dword [edx + 0x40]
lea esi, [ebp + 0x74]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea edi, [ebp + 0xb0]
mov ebp, dword [edi]
push 0x20
mov ecx, esi
add ebp, 0x3c
call edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push esi
mov ecx, edi
call eax
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x1c]
mov dword [esp + edx + 0x14], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x20], vtable.std::ios_base.0
call fcn.00455106
mov dword [esp + 0xa8], 0xffffffff
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
call fcn.004068f0
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x98
ret 4