joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d9b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.0046d980
cmp dword [eax + 0x14], 0x10
jb 0x46d9c6
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov eax, dword [ebp - 4]
cmp eax, 0x10
jb 0x46da07
mov ecx, dword [ebp - 0x18]
inc eax
cmp eax, 0x1000
jb 0x46d9fe
test cl, 0x1f
jne 0x46da19
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46da1e
sub ecx, eax
cmp ecx, 4
jb 0x46da23
cmp ecx, 0x23
ja 0x46da28
mov ecx, eax
push ecx
call fcn.00479040
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov esp, ebp
pop ebp
ret
call fcn.0063e711
call fcn.0063e711
call fcn.0063e711
call fcn.0063e711
int3

Function at 0x475d60
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x475dbb
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.006221ee
mov esp, ebp
pop ebp
ret
Function at 0x475dd0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x475e05
cmp byte [eax], 0
jne 0x475e05
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006221ee
mov esp, ebp
pop ebp
ret 8
call fcn.00475d60
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x475df2
push 4
lea eax, [esi + 0x10]
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x475df2
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov eax, 2
mov word [ebp - 0x20], ax
mov ax, word [ecx + 4]
mov word [ebp - 0x1e], ax
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x475df2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x475df2
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x124], 1
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x228], 1
push eax
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x124]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
setne al
mov byte [esi + 4], al
test al, al
jne 0x475f1a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x475f10
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov ecx, dword [ebp - 4]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.006221ee
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp byte [ebx + 4], 0
je 0x475fa9
mov edx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, edx
test edx, edx
jle 0x475f9f
nop dword [eax]
mov eax, dword [ebx + 8]
test eax, eax
je 0x475f5c
cmp byte [eax], 0
je 0x475f92
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x475f86
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x475f89
mov edx, dword [ebp + 0xc]
sub esi, edi
test esi, esi
jle 0x475f92
jmp 0x475f50
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0xc]
test edi, edi
jle 0x475f9f
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
Function at 0x475fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], 1
mov eax, dword [edi + 8]
test eax, eax
je 0x475fe4
cmp byte [eax], 0
jne 0x475fe4
or esi, 0xffffffff
jmp 0x476023
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x476006
push 0
push 0x200
lea eax, [edi + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47600b
jmp 0x476009
or esi, 0xffffffff
call ebx
test esi, esi
jle 0x476021
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x14]
push esi
push eax
call fcn.0042390f
mov cl, byte [ebp - 1]
jmp 0x476038
je 0x476047
call ebx
push eax
push str.recv_failed_with_error:__d_n
call fcn.00476290
add esp, 8
xor cl, cl
mov byte [ebp - 1], cl
test esi, esi
jg 0x475fd3
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x476060
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67212b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x706034]
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 dword [ebp - 0x234], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x7198d4]
test al, 1
jne 0x4760da
push 0xa8
or eax, 1
push 0
push 0x7198e0
mov dword [0x7198d4], eax
call fcn.0063af90
add esp, 0xc
call fcn.00467d00
push 0x67ec20
call fcn.00622722
add esp, 4
mov al, byte [0x7198e2]
mov ecx, 0x7a120
test al, al
mov edx, 0x2dc6c0
mov eax, dword [0x7198d4]
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
test al, 1
jne 0x47612b
push 0xa8
or eax, 1
push 0
push 0x7198e0
mov dword [0x7198d4], eax
call fcn.0063af90
add esp, 0xc
call fcn.00467d00
push 0x67ec20
call fcn.00622722
add esp, 4
mov al, byte [0x7198e2]
mov ecx, 0xbb8
test al, al
mov esi, 0x1f4
push 0x218
lea eax, [ebp - 0x228]
cmovne esi, ecx
push 0
push eax
call fcn.0063af90
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x228], 0xffffffff
mov byte [ebp - 0x224], 0
mov dword [ebp - 0x218], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebx + 0x14], 0x10
mov word [ebp - 0x22c], ax
jb 0x4761b0
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4761c8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x230], eax
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call fcn.00475dd0
test al, al
je 0x476222
cmp dword [edi + 0x14], 0x10
mov esi, dword [edi + 0x10]
jb 0x4761ea
mov edi, dword [edi]
push esi
push edi
lea ecx, [ebp - 0x228]
call fcn.00475f30
cmp eax, esi
jne 0x476222
push 1
push dword [ebp - 0x228]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x228]
call fcn.00475fc0
test al, al
je 0x476222
mov bl, 1
jmp 0x476224
xor bl, bl
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x476236
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
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.006221ee
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4768a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6690e0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x706034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x31], 0
jne 0x476920
push dword [esi + 0x1c]
call fcn.004a14d0
add esp, 4
cmp eax, 0x64
jne 0x4768ef
mov byte [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x47690a
mov word [esi + 0x30], 0x100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov word [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x15
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47c3e0
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 [0x70d868], 0
je 0x47c437
mov eax, dword [0x718aa0]
test eax, eax
je 0x47c410
push eax
call dword [0x70d8b8]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.00479660
mov eax, dword [0x718aa0]
test eax, eax
je 0x47c432
push eax
call dword [0x70d8c0]
mov esi, dword [ebp - 4]
jmp 0x47c441
mov esi, dword [ebp - 4]
jmp 0x47c444
push 0x14
call dword [0x70d888]
mov esi, eax
add esp, 4
test esi, esi
jne 0x47c452
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x70d86c], 0
mov ebx, dword [ebp + 8]
je 0x47c49c
mov eax, dword [0x70d95c]
test eax, eax
je 0x47c475
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x47c49c
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x47c3b0
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.00650a68
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x47c4a9
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x47c4c2
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
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x48735e
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 0x4873e2
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
mov ecx, edi
adc edx, 0
or ecx, edx
je 0x487392
push edx
push edi
call fcn.00479750
mov esi, eax
add esp, 8
test esi, esi
je 0x487394
push edi
push 0
push esi
call fcn.0063af90
add esp, 0xc
jmp 0x487394
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x4873d2
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.00623150
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
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x18], ecx
inc dword [ebx + 0x78]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
push edi
push 0x708e1c
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.004beda0
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x4b984b
push edi
push 0x708e48
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.004beda0
add esp, 0x10
pop edi
pop ebx
pop ebp
ret

Function at 0x4bef60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x4befea
nop word [eax + eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 8], ecx
test edi, edi
je 0x4befb8
mov edx, ecx
mov eax, edi
mov ecx, dword [ebp - 4]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp + 8]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4bf022
test edx, edx
jne 0x4bf034
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add ecx, ecx
push 0
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.0047e740
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x4bf089
mov eax, dword [ebp - 4]
inc esi
mov edi, dword [ebp + 8]
cmp esi, dword [eax + 0x14]
jl 0x4bef80
mov edx, 0x709a24
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4bf03a
test ecx, ecx
jne 0x4bf04c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test edi, edi
jne 0x4bf04f
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x4bf087
mov eax, dword [ebp - 4]
mov ebx, 0x709a4c
jmp 0x4bef73
movzx ecx, byte [ecx + 0x6c9000]
movzx edx, byte [edx + 0x6c9000]
sub edx, ecx
jne 0x4befde
inc eax
jmp 0x4befa6
movzx eax, byte [eax + 0x6c9000]
movzx ecx, byte [ecx + 0x6c9000]
sub ecx, eax
jne 0x4bf087
inc ebx
jmp 0x4beff1
test ecx, ecx
je 0x4bf087
mov esi, ecx
mov edx, edi
sub esi, edi
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4bf072
test ecx, ecx
je 0x4bf015
inc edx
jmp 0x4bf060
movzx eax, byte [eax + 0x6c9000]
movzx ecx, byte [ecx + 0x6c9000]
sub ecx, eax
jne 0x4bf011
inc edx
jmp 0x4bf060
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], esi
xor edi, edi
cmp dword [esi + 0x14], ebx
jle 0x4bf2c9
mov edx, dword [ebp + 8]
nop dword [eax]
mov esi, dword [esi + 0x10]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
add ecx, ecx
mov eax, dword [esi + ecx*8 + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x4bf2a6
mov esi, dword [esi + ecx*8]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4bf2d2
test edx, edx
jne 0x4bf2e4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [eax + 0x18]
push 0
call fcn.0047e740
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4bf2c9
mov esi, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp + 8]
cmp edi, dword [esi + 0x14]
jl 0x4bf270
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x6c9000]
movzx edx, byte [edx + 0x6c9000]
sub edx, ecx
jne 0x4bf2bd
inc eax
jmp 0x4bf294
Function at 0x4c27a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
push edi
mov eax, dword [esi]
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x10]
mov edi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.0047c090
mov eax, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x20], eax
nop dword [eax]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x4c287b
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 0x30], ecx
test edi, edi
je 0x4c2849
mov edx, ecx
mov eax, edi
mov ecx, dword [ebp - 0x20]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp - 0x28]
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4c28b7
test edx, edx
jne 0x4c28c9
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ecx, ecx
push 0
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.0047e740
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x4c2917
mov eax, dword [ebp - 0x20]
inc esi
mov edi, dword [ebp - 0x28]
cmp esi, dword [eax + 0x14]
jl 0x4c2807
mov edx, 0x709a24
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4c28cf
test ecx, ecx
jne 0x4c28e1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test edi, edi
jne 0x4c28e4
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x4c2935
mov eax, dword [ebp - 0x20]
mov ebx, 0x709a4c
jmp 0x4c2800
movzx ecx, byte [ecx + 0x6c9000]
movzx edx, byte [edx + 0x6c9000]
sub edx, ecx
jne 0x4c286f
inc eax
jmp 0x4c2830
movzx eax, byte [eax + 0x6c9000]
movzx ecx, byte [ecx + 0x6c9000]
sub ecx, eax
jne 0x4c2935
inc ebx
jmp 0x4c2882
test ecx, ecx
je 0x4c2935
mov esi, ecx
mov edx, edi
sub esi, edi
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4c2902
test ecx, ecx
je 0x4c28aa
inc edx
jmp 0x4c28f0
movzx eax, byte [eax + 0x6c9000]
movzx ecx, byte [ecx + 0x6c9000]
sub ecx, eax
jne 0x4c28a2
inc edx
jmp 0x4c28f0
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push edi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.004beda0
add esp, 0x18
jmp 0x4c2938
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x4c27e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006221ee
mov esp, ebp
pop ebp
ret
Function at 0x50a870
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x718f84]
push ebx
mov ebx, 4
movzx eax, byte [ecx]
mov byte [0x719210], al
movzx eax, byte [ecx + 1]
mov byte [0x719211], al
movzx eax, byte [ecx + 2]
mov byte [0x719212], al
movzx eax, byte [ecx + 3]
mov byte [0x719213], al
movzx eax, byte [ecx + 4]
mov byte [0x719214], al
movzx eax, byte [ecx + 5]
mov byte [0x719215], al
movzx eax, byte [ecx + 6]
mov byte [0x719216], al
movzx eax, byte [ecx + 7]
mov byte [0x719217], al
movzx eax, byte [ecx + 8]
mov byte [0x719218], al
movzx eax, byte [ecx + 9]
mov byte [0x719219], al
movzx eax, byte [ecx + 0xa]
mov byte [0x71921a], al
movzx eax, byte [ecx + 0xb]
mov byte [0x71921b], al
movzx eax, byte [ecx + 0xc]
mov byte [0x71921c], al
movzx eax, byte [ecx + 0xd]
mov byte [0x71921d], al
movzx eax, byte [ecx + 0xe]
mov byte [0x71921e], al
movzx eax, byte [ecx + 0xf]
mov byte [0x71921f], al
mov eax, 0x71921d
mov cl, byte [eax]
mov ch, byte [eax + 1]
mov dh, byte [eax + 2]
mov dl, byte [eax - 1]
mov byte [ebp - 2], cl
mov byte [ebp - 1], ch
mov byte [ebp - 3], dh
test bl, 3
jne 0x50a96d
movzx ecx, cl
movzx edx, dl
mov cl, byte [ecx + str.cw]
mov dh, byte [edx + str.cw]
mov byte [ebp - 4], cl
movzx ecx, byte [ebp - 1]
mov dl, byte [ebp - 4]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 3]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
mov ecx, ebx
shr ecx, 2
xor dl, byte [ecx + 0x6cc86c]
mov ch, byte [ebp - 1]
mov cl, byte [eax - 0xd]
inc ebx
xor cl, dl
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 2]
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, ch
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x50a914
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50a9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x719204]
push ebx
push esi
add eax, 2
mov esi, 4
mov dl, byte [eax + 1]
lea eax, [eax + 4]
mov bh, byte [eax - 4]
mov dh, dl
mov cl, byte [eax - 6]
xor dh, bh
mov bl, byte [eax - 5]
mov byte [ebp - 2], cl
mov byte [ebp - 3], dl
mov dl, dh
xor dl, cl
xor dl, bl
mov byte [ebp - 1], dl
mov dl, cl
xor dl, bl
mov cl, dl
add dl, dl
shr cl, 7
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
mov dl, bl
xor cl, byte [ebp - 2]
xor dl, bh
xor cl, byte [ebp - 1]
mov byte [eax - 6], cl
mov cl, dl
shr cl, 7
add dl, dl
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
mov dl, byte [ebp - 3]
xor cl, bl
xor dl, byte [ebp - 2]
mov bl, byte [ebp - 1]
xor cl, bl
mov byte [eax - 5], cl
mov cl, dh
shr cl, 7
add dh, dh
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dh
xor cl, bh
xor cl, bl
mov byte [eax - 4], cl
mov cl, dl
shr cl, 7
add dl, dl
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
xor cl, byte [ebp - 3]
xor cl, bl
mov byte [eax - 3], cl
sub esi, 1
jne 0x50a9b3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ac60
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [0x719204]
mov esi, 0x719210
sub esi, edi
mov ecx, edi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x50ac85
sub ebx, 1
jne 0x50ac80
mov esi, 0x719220
mov dword [ebp - 8], 9
mov ebx, edi
mov dword [ebp - 4], 4
nop word [eax + eax]
mov ecx, ebx
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x50acc0
inc ebx
sub dword [ebp - 4], 1
jne 0x50acb0
movzx eax, byte [edi + 5]
mov cl, byte [edi + 1]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
call fcn.0050a9a0
mov eax, edi
mov ebx, 4
mov edx, 4
nop dword [eax]
mov cl, byte [esi]
inc esi
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x50ad40
sub ebx, 1
jne 0x50ad37
sub dword [ebp - 8], 1
jne 0x50aca1
mov esi, edi
lea ebx, [edx + 4]
nop
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x50ad70
inc esi
sub ebx, 1
jne 0x50ad60
movzx eax, byte [edi + 5]
lea esi, [ebx + 4]
mov cl, byte [edi + 1]
mov edx, 0x7192b0
mov byte [edi + 1], al
sub edx, edi
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
mov ecx, 4
nop dword [eax]
mov al, byte [edx + edi]
xor byte [edi], al
inc edi
sub ecx, 1
jne 0x50adf0
sub esi, 1
jne 0x50ade4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret