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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.004fe140
add esp, 8
test eax, eax
jne 0x401895
push dword [ebp - 0x24]
call fcn.004fd1c0
mov edi, eax
add esp, 4
test edi, edi
je 0x401895
push 0x561900
push esi
call fcn.004fd480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4018aa
push edi
call fcn.004fd170
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret 8
push ebx
push 1
push dword [ebp - 0x24]
push edi
call fcn.004fdad0
add esp, 0xc
push dword [ebp - 0x24]
push edi
call fcn.004015d0
push edi
mov esi, eax
call fcn.004fd170
add esp, 4
push ebx
call fcn.004fe020
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fcf30
mov esp, ebp
pop ebp
ret 8

Function at 0x402ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541cea
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0053dac0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x402c46
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.004fed60
push 0x574dd0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0050b5f0
push edi
push esi
call fcn.0053e290
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret 4
Function at 0x403270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x541d18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x583f80]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [esp + 0x1c]
call fcn.00401c90
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], 0
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.004fed60
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 0x10
mov dword [ebx], vtable.std::system_error.0
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], edi
jb 0x4032ff
push dword [esp + 0x1c]
call fcn.004fea80
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.004019a0
push dword [esp + 0x18]
call fcn.004fea80
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.004019a0
mov dword [ebx], vtable.std::ios_base::failure.0
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4037f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541da0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
push 0x567118
push esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
call fcn.004fd480
mov edi, eax
add esp, 8
mov dword [ebp - 0x50], edi
test edi, edi
je 0x403865
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 4], 0
call fcn.004fe140
add esp, 8
test eax, eax
je 0x403869
push edi
call fcn.004fe020
add esp, 4
xor eax, eax
jmp 0x4038b8
mov esi, dword [ebp - 0x38]
lea eax, [esi + 1]
push eax
call fcn.004fefd0
add esp, 4
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call fcn.00507b80
push edi
push esi
push 1
push ebx
call fcn.004fdad0
push edi
mov esi, eax
call fcn.004fe020
mov eax, dword [ebp - 0x58]
add esp, 0x20
mov dword [eax], esi
jmp 0x4038b6
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret

Function at 0x4038e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x56711c
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
call fcn.004fd480
mov esi, eax
add esp, 8
test esi, esi
jne 0x403907
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
push esi
push edi
push 1
push ebx
call fcn.005021c0
push esi
call fcn.004fe020
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407560
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542272
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x583f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x567680
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea esi, [edi + 0x10]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], 1
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004044f0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00403b80
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x58853c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 8
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00408290
test eax, eax
jne 0x4076bb
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4076b3
or eax, 4
push 0
push eax
call fcn.00403360
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4084d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5422cc
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
cmp dword [ebx + 0x40], eax
je 0x4086de
cmp byte [ebx + 0x45], al
je 0x4086de
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40852d
xor al, al
jmp 0x4086e0
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.004052e0
lea eax, [ebx + 0x48]
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403930
mov edi, eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403930
mov esi, eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00408800
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov ebx, eax
call fcn.00408800
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x40]
mov ecx, dword [ecx + 0x40]
push edx
mov esi, dword [ecx]
lea edx, [edi + ebx]
push edx
push eax
push dword [ebp - 0x54]
call dword [esi + 0x20]
push 3
lea ecx, [ebp - 0x20]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0053dac0
lea ecx, [ebp - 0x60]
call fcn.00402ad0
lea ecx, [ebp - 0x20]
call fcn.0053db60
push 3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0053dac0
lea ecx, [ebp - 0x84]
call fcn.00402ad0
lea ecx, [ebp - 0x18]
call fcn.0053db60
sub esi, 0
je 0x4085e5
dec esi
jne 0x4086bd
mov edi, dword [ebp - 0x4c]
jmp 0x4085ec
mov edi, dword [ebp - 0x4c]
mov byte [edi + 0x45], 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403930
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408800
mov esi, dword [ebp - 0x40]
push 3
lea ecx, [ebp - 0x14]
sub esi, eax
mov byte [ebp - 4], 0
call fcn.0053dac0
lea ecx, [ebp - 0x78]
call fcn.00402ad0
lea ecx, [ebp - 0x14]
call fcn.0053db60
test esi, esi
je 0x408666
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403930
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x48]
or ebx, 1
mov ecx, eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
call fcn.00408800
push dword [edi + 0x50]
push esi
push 1
push eax
call fcn.005021c0
add esp, 0x10
cmp esi, eax
je 0x408669
mov byte [ebp - 0x41], 1
jmp 0x40866d
mov ebx, dword [ebp - 0x48]
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x408699
and ebx, 0xfffffffe
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x48], ebx
call fcn.0053dac0
lea ecx, [ebp - 0x6c]
call fcn.00402ad0
lea ecx, [ebp - 0x1c]
call fcn.0053db60
cmp byte [ebp - 0x41], 0
jne 0x4086d0
cmp byte [edi + 0x45], 0
je 0x4086c2
test esi, esi
jne 0x408546
push esi
push 8
lea ecx, [ebp - 0x3c]
call fcn.00402000
jmp 0x408546
sub esi, 2
jne 0x4086d0
lea ecx, [ebp - 0x3c]
mov bl, 1
call fcn.00401e20
mov al, bl
jmp 0x4086e0
lea ecx, [ebp - 0x3c]
xor bl, bl
call fcn.00401e20
mov al, bl
jmp 0x4086e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
Function at 0x40e5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x586ae0], 0
je 0x40e627
mov eax, dword [0x588558]
test eax, eax
je 0x40e600
push eax
call dword [0x586b3c]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.0040ba90
mov eax, dword [0x588558]
test eax, eax
je 0x40e622
push eax
call dword [0x586b44]
mov esi, dword [ebp - 4]
jmp 0x40e631
mov esi, dword [ebp - 4]
jmp 0x40e634
push 0x14
call dword [0x586b0c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e642
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x586ae4], 0
mov ebx, dword [ebp + 8]
je 0x40e68c
mov eax, dword [0x586be4]
test eax, eax
je 0x40e665
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x40e68c
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x40e5a0
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.00505410
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40e69f
xorps xmm0, xmm0
movq qword [esi], xmm0
movq qword [esi + 8], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x40e6b8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4100c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push esi
inc eax
cdq
push edi
push edx
push eax
call fcn.0040c0f0
mov edi, eax
dec ebx
add esp, 8
mov dword [ebp + 8], ebx
test edi, edi
je 0x410144
xor esi, esi
test ebx, ebx
jle 0x410137
mov eax, dword [ebp - 4]
movsx ebx, byte [eax + esi + 1]
movsx edx, byte [eax + esi]
mov ecx, ebx
sar ecx, 6
and cl, 1
mov al, cl
shl al, 3
sub al, cl
mov ecx, edx
sar ecx, 6
sub bl, al
and cl, 1
mov al, cl
shl al, 3
sub al, cl
sub dl, al
mov ecx, esi
and bl, 0xf
shl dl, 4
shr ecx, 1
xor bl, dl
add esi, 2
mov byte [ecx + edi], bl
cmp esi, dword [ebp + 8]
jl 0x4100f2
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov byte [eax + edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 0x88]
push edi
mov dword [esp + 0xc], edx
test esi, esi
je 0x41996e
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x4199f2
movzx edi, word [ebx + 0x8c]
add edi, 0x28
mov eax, edi
or eax, 0
je 0x4199de
push 0
push edi
call fcn.0040bb80
mov esi, eax
add esp, 8
test esi, esi
je 0x41999c
push edi
push 0
push esi
call fcn.00507b80
add esp, 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x4199e2
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
mov edi, dword [esi]
cdq
dec ecx
push ecx
push edx
push eax
call fcn.005094f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4199a0
lea eax, [esi + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x18], edx
inc dword [ebx + 0x78]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a620
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, edx
push edi
push str.sqlite_master
push edi
mov ebx, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.0044f8e0
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x44a65b
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.0044f8e0
add esp, 0x10
pop edi
pop ebx
pop ebp
ret

Function at 0x44fa20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
xor edi, edi
cmp dword [ecx + 0x14], edi
jle 0x44fab4
mov ecx, edi
cmp edi, 2
jge 0x44fa47
xor ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x44fa4a
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44fb02
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 4]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov eax, esi
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x5624b8]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5624b8]
sub esi, ecx
jne 0x44faa8
sub edx, eax
mov dword [ebp - 0x10], edx
test bl, bl
je 0x44fafb
movzx ecx, byte [edx + eax + 1]
mov bl, byte [eax + 1]
movzx edx, byte [ecx + 0x5624b8]
inc eax
movzx ecx, bl
movzx esi, byte [ecx + 0x5624b8]
sub esi, edx
mov edx, dword [ebp - 0x10]
je 0x44fa83
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x44fa38
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x5624b8]
sub eax, 0x73
jne 0x44faf2
mov esi, str.sqlite_master
sub esi, ebx
lea esp, [esp]
test dl, dl
je 0x44fb29
movzx eax, byte [esi + ebx + 1]
mov dl, byte [ebx + 1]
movzx ecx, byte [eax + 0x5624b8]
inc ebx
movzx eax, dl
movzx eax, byte [eax + 0x5624b8]
sub eax, ecx
je 0x44fad0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x44faa8
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add ecx, ecx
push 0
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
mov edx, ebx
call fcn.00410920
mov eax, dword [eax + 8]
add esp, 4
test eax, eax
jne 0x44faf4
jmp 0x44faab
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x44fb3f
neg edx
sbb edx, edx
jmp 0x44fb88
test edx, edx
je 0x44faf2
movzx eax, byte [edx]
mov bl, byte [edi]
movzx ecx, byte [eax + 0x5624b8]
movzx eax, bl
mov esi, edi
movzx eax, byte [eax + 0x5624b8]
sub eax, ecx
jne 0x44fb83
sub edx, edi
test bl, bl
je 0x44fb83
movzx eax, byte [edx + esi + 1]
mov bl, byte [esi + 1]
movzx ecx, byte [eax + 0x5624b8]
inc esi
movzx eax, bl
movzx eax, byte [eax + 0x5624b8]
sub eax, ecx
je 0x44fb61
mov ecx, dword [ebp - 4]
mov edx, eax
test edx, edx
jne 0x44faf2
mov ebx, str.sqlite_temp_master
mov dword [ebp - 8], ebx
jmp 0x44fa31
Function at 0x44fd50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], edx
mov edx, ecx
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], eax
jle 0x44fde0
push ebx
push esi
lea ecx, [ecx]
mov ecx, edi
cmp edi, 2
jge 0x44fd7a
xor ecx, 1
mov eax, dword [edx + 0x10]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
test edx, edx
je 0x44fde9
mov ebx, dword [eax + ecx*8]
mov al, byte [edx]
movzx ecx, byte [ebx]
mov esi, edx
movzx edx, byte [ecx + 0x5624b8]
movzx ecx, al
movzx ecx, byte [ecx + 0x5624b8]
sub ecx, edx
jne 0x44fdd2
sub ebx, esi
mov edi, edi
test al, al
je 0x44fde5
movzx ecx, byte [ebx + esi + 1]
mov al, byte [esi + 1]
movzx edx, byte [ecx + 0x5624b8]
inc esi
movzx ecx, al
movzx ecx, byte [ecx + 0x5624b8]
sub ecx, edx
je 0x44fdb0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, dword [edx + 0x14]
jl 0x44fd70
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x44fdd2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0
add ecx, 0x18
call fcn.00410920
mov eax, dword [eax + 8]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x44fdde
jmp 0x44fdd5
Function at 0x4a87b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.ServiceMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a87dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4ab380
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544d48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0
push 1
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ab3d0
or edi, eax
jmp 0x4ab495
push edi
call fcn.004ee3a0
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov eax, 2
mov word [ebp - 0x24], ax
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4ab443
cmp dword [ebp + 0x20], 0x10
push esi
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push str.bind_Ip:__s__port__d__
push 0
push 3
push 0x372
push str.svrlink.cpp
push 0x588aa0
call dword [sym.imp.mLogRec.dll_public:_void___cdecl_mLogRec::Log_Record_char___int__int__int__char_const__]
add esp, 0x20
jmp 0x4ab470
push ebx
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4ab48c
push str.listener_
push 0
push 3
push 0x379
push str.svrlink.cpp
push 0x588aa0
call dword [sym.imp.mLogRec.dll_public:_void___cdecl_mLogRec::Log_Record_char___int__int__int__char_const__]
add esp, 0x18
call fcn.00502d90
mov esi, dword [eax]
push edi
call fcn.004ee3c0
add esp, 4
call fcn.00502d90
mov dword [eax], esi
or edi, 0xffffffff
jmp 0x4ab495
push edi
call fcn.004ee360
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 0x10
jb 0x4ab4ad
push dword [ebp + 0xc]
call fcn.004fea80
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
call fcn.004019a0
push dword [ebp + 8]
call fcn.004fea80
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
call fcn.004019a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
Function at 0x4b75f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x134]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4b766e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4b763e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004b4e10
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004b7370
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x85cc], esi
mov dword [ebx], 0x37
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b7850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x4b7879
push dword [esi + 0x12c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4b78af
push dword [esi + 0x128]
lea eax, [eax + eax*2]
push 1
add eax, 0x548780
push 2
push eax
call fcn.005021c0
push dword [esi + 0x128]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005021c0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4b7d00
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x583f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x586d74]
mov dword [ebp - 0x9c], 0x4020
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 4
test eax, eax
jne 0x4b7d9a
push 0x94
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00507b80
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
mov dword [0x586d74], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4b7d95
cmp dword [ebp - 0x94], 6
jb 0x4b7d95
mov dword [0x586d74], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
mov eax, dword [0x586d74]
cmp eax, 2
je 0x4b7dee
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4b7dd2
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x9c]
jg 0x4b7dee
push 4
lea eax, [ebp - 0x9c]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret