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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1008c398]
je 0x1004cec5
inc edi
cmp edi, 0x17
jb 0x1004ceb6
cmp edi, 0x17
jae 0x1004d045
push ebp
push 3
call fcn.1005720d
cmp eax, 1
pop ecx
je 0x1004d011
push 3
call fcn.1005720d
test eax, eax
pop ecx
jne 0x1004cef9
cmp dword [0x1008f5f8], 1
je 0x1004d011
cmp ebx, 0xfc
je 0x1004d044
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1008f9c8
push ebp
call fcn.10046209
add esp, 0xc
test eax, eax
je 0x1004cf2f
push esi
push esi
push esi
push esi
push esi
call fcn.10044b2c
add esp, 0x14
push 0x104
mov esi, 0x1008f9e1
push esi
push 0
mov byte [0x1008fae5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004cf73
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10046209
add esp, 0xc
test eax, eax
je 0x1004cf73
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10044b2c
add esp, 0x14
push esi
call fcn.10041b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004cfb8
push esi
call fcn.10041b50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1008fcdc
push 0x1007aa34
sub ecx, eax
push ecx
push eax
call fcn.10048869
add esp, 0x14
test eax, eax
je 0x1004cfb8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10044b2c
add esp, 0x14
jmp 0x1004cfba
xor esi, esi
push 0x1007aa30
push ebx
push ebp
call fcn.10048143
add esp, 0xc
test eax, eax
je 0x1004cfda
push esi
push esi
push esi
push esi
push esi
call fcn.10044b2c
add esp, 0x14
push dword [edi*8 + 0x1008c39c]
push ebx
push ebp
call fcn.10048143
add esp, 0xc
test eax, eax
je 0x1004cffc
push esi
push esi
push esi
push esi
push esi
call fcn.10044b2c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10057050
add esp, 0xc
jmp 0x1004d044
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004d044
cmp ebp, 0xffffffff
je 0x1004d044
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008c39c]
push dword [esi]
call fcn.10041b50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10057050
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10049693
xor ebx, ebx
cmp dword [0x10090084], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10057126
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10057206
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1007c3c0
push edi
call esi
cmp eax, ebx
je 0x10057206
push eax
call fcn.10049625
mov dword [esp], 0x1007c3b0
push edi
mov dword [0x10090084], eax
call esi
push eax
call fcn.10049625
mov dword [esp], 0x1007c39c
push edi
mov dword [0x10090088], eax
call esi
push eax
call fcn.10049625
mov dword [0x1009008c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10047e4a
test eax, eax
pop ecx
pop ecx
je 0x100570f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10044b2c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10057126
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10049625
cmp eax, ebx
pop ecx
mov dword [0x10090094], eax
je 0x10057126
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10049625
pop ecx
mov dword [0x10090090], eax
mov eax, dword [0x10090090]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100571ab
cmp dword [0x10090094], ecx
je 0x100571ab
push eax
call fcn.1004969c
push dword [0x10090094]
mov esi, eax
call fcn.1004969c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100571ab
cmp edi, ebx
je 0x100571ab
call esi
cmp eax, ebx
je 0x10057178
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10057178
test byte [ebp - 0x18], 1
jne 0x100571ab
lea eax, [ebp - 0x10]
push eax
call fcn.10047e81
test eax, eax
pop ecx
je 0x10057193
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10044b2c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100571a2
or dword [ebp + 0x10], 0x200000
jmp 0x100571e6
or dword [ebp + 0x10], 0x40000
jmp 0x100571e6
mov eax, dword [0x10090088]
cmp eax, dword [ebp - 8]
je 0x100571e6
push eax
call fcn.1004969c
cmp eax, ebx
pop ecx
je 0x100571e6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100571e6
mov eax, dword [0x1009008c]
cmp eax, dword [ebp - 8]
je 0x100571e6
push eax
call fcn.1004969c
cmp eax, ebx
pop ecx
je 0x100571e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10090084]
call fcn.1004969c
cmp eax, ebx
pop ecx
je 0x10057206
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10057208
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005d05c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1005cff1
mov eax, sym.PatchCore.dll_Ordinal_11
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10041d70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1005d0ab
cmp dword [ebp - 0x1c], 5
jb 0x1005d0c3
jmp 0x1005d0bf
cmp dword [ebp - 0x10], 1
jne 0x1005d0c3
cmp dword [ebp - 0x1c], 4
ja 0x1005d0bf
jne 0x1005d0c3
cmp dword [ebp - 0x18], 0
jbe 0x1005d0c3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1007c518
call fcn.1005cee2
test eax, eax
jge 0x1005d0e4
mov byte [0x1008d4d0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10041acb
add ebp, 0x78
leave
ret
Function at 0x10013fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x100128c
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001462
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x100127c
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001459
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x1001561
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x100159b
push 0x10012b4
push dword [ebp + 8]
call fcn.01001504
test eax, eax
pop ecx
pop ecx
je 0x100159b
xor al, al
jmp 0x100165b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x10011d0
push 0x80000001
call esi
test eax, eax
jne 0x1001604
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100122c
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10015f3
cmp dword [ebp - 0x10], 4
jne 0x10015f3
cmp dword [ebp - 0x14], 1
jne 0x10015f3
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x1001656
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x10011fc
push 0x80000002
call esi
test eax, eax
jne 0x1001656
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001248
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100164d
cmp dword [ebp - 0x10], esi
jne 0x100164d
cmp dword [ebp - 0x14], 1
jne 0x100164d
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10006ea7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1004a73c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x84], 0
call fcn.10025330
add esp, 0xc
lea ecx, [esi + 0x7c]
push 0
call fcn.1000fc38
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..config.ini
push 0x7f
lea eax, [ebp - 0x84]
push eax
push 0x1003c11b
push 0x1003c118
mov ebx, str.HOST
push ebx
call edi
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x7c]
call fcn.1000fb54
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.10025330
add esp, 0xc
push str..config.ini
push 0x7f
lea eax, [ebp - 0x84]
push eax
push str.5000
push str.PORT
push ebx
call edi
lea eax, [ebp - 0x84]
push eax
call fcn.1002531a
pop ecx
push 0
mov ecx, esi
mov dword [esi + 0xd0], eax
mov dword [esi + 0x74], 1
call fcn.1000b92d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10024835
leave
ret

Function at 0x1000ee8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1000eed6
call fcn.100084f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000eed6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1000eef2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1000ea09
mov esi, eax
test edi, edi
je 0x1000eef0
test ebx, ebx
je 0x1000eef0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100101b5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10038b85
call fcn.10024844
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100101da
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10010220
lea ecx, [ebp - 0x10]
call fcn.10001609
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007231
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001019
mov eax, esi
call fcn.1002491c
ret 8

Function at 0x10010acd
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8
Function at 0x10013243
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x10013267
cmp dword [edi + 0x54], 0
jne 0x10013267
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.100084f8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10013204
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001383c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x10013884
call fcn.100084f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10013884
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x100138c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x100138b0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x100138b0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x100138c4
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10024835
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a73c]
jne 0x1002483f
repz ret
jmp fcn.1002a08c

Function at 0x100333bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10029a04
and dword [ebp - 4], 0
cmp dword [0x1004e808], 0
mov ebx, eax
jne 0x1003346d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1003351e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10040458
push edi
call esi
test eax, eax
je 0x1003351e
push eax
call fcn.10029992
mov dword [esp], 0x10040448
push edi
mov dword [0x1004e808], eax
call esi
push eax
call fcn.10029992
mov dword [esp], 0x10040434
push edi
mov dword [0x1004e80c], eax
call esi
push eax
call fcn.10029992
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1004e810], eax
call esi
push eax
call fcn.10029992
pop ecx
mov dword [0x1004e818], eax
test eax, eax
je 0x1003346d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10029992
pop ecx
mov dword [0x1004e814], eax
mov eax, dword [0x1004e814]
cmp eax, ebx
je 0x100334c5
cmp dword [0x1004e818], ebx
je 0x100334c5
push eax
call fcn.10029a0d
push dword [0x1004e818]
mov esi, eax
call fcn.10029a0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100334c5
test edi, edi
je 0x100334c5
call esi
test eax, eax
je 0x100334bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100334bc
test byte [ebp - 0xc], 1
jne 0x100334c5
or dword [ebp + 0x10], 0x200000
jmp 0x100334fe
mov eax, dword [0x1004e80c]
cmp eax, ebx
je 0x100334fe
push eax
call fcn.10029a0d
pop ecx
test eax, eax
je 0x100334fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100334fe
mov eax, dword [0x1004e810]
cmp eax, ebx
je 0x100334fe
push eax
call fcn.10029a0d
pop ecx
test eax, eax
je 0x100334fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004e808]
call fcn.10029a0d
pop ecx
test eax, eax
je 0x1003351e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10033520
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44807d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4480ab
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4480c9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00447fe7
jmp 0x4480c9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4480c9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00447fe7
test edi, edi
mov eax, edi
jne 0x4480b3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5727ec]
test ecx, ecx
je 0x44817c
jmp 0x44807c
ret 8
Function at 0x4017b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x401890
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401890
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017fa
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401801
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017e0
jmp 0x401803
mov esi, 0x1505
jmp 0x401803
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
mov ebx, edi
sub ebx, 1
jb 0x401890
and ebx, esi
mov eax, edi
not eax
and eax, 1
mov edx, edi
and edx, 0xfffffffe
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401834
inc ebx
dec edi
je 0x40188e
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40188e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401830
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.004082e0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401830
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408300
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401830
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401890
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401cf0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x401df4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401df4
cmp dword [esp + 0x2c], 0
je 0x401df4
push esi
call fcn.004082e0
add esp, 4
test eax, eax
je 0x401d5a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401d61
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401d40
jmp 0x401d63
mov ebx, 0x1505
jmp 0x401d63
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401dfc
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x401db9
call fcn.00401f10
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x401df4
push ecx
call fcn.004082e0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
mov esi, edi
sub esi, 1
jae 0x401e80
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and esi, ebx
mov eax, edi
not eax
and eax, 1
mov edx, edi
and edx, 0xfffffffe
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401e28
inc esi
dec edi
je 0x401d75
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401d7a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401e20
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.004082e0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401e20
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408300
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401e20
mov eax, 0xffffffff
jmp 0x401df4
and esi, ebx
mov eax, edi
not eax
and eax, 1
mov edx, edi
and edx, 0xfffffffe
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401ea8
inc esi
dec edi
je 0x401db4
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x401db9
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x401ea0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004082e0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ea0
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408300
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ea0
jmp 0x401db9
Function at 0x402610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x402727
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x402720
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
nop
xor eax, eax
cmp ebx, 8
mov dword [esp], ebx
jb 0x4026e4
mov dword [esp + 4], esi
mov eax, ebx
and eax, 0x1ff8
xor edx, edx
nop
nop
nop
nop
nop
mov ebx, edx
add edx, 8
movzx esi, byte [ebp + ebx]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + ebx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + ebx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + ebx + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + ebx + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + ebx + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + ebx + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + ebx + 7]
add edi, esi
add ecx, edi
add ebx, 0xf
cmp ebx, dword [esp]
mov ebx, dword [esp]
jb 0x402670
add ebp, edx
mov esi, dword [esp + 4]
jmp 0x4026e4
movzx edx, byte [ebp]
inc ebp
add edi, edx
add ecx, edi
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
cmp eax, ebx
jb 0x4026d0
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov ebx, 0x15b0
jne 0x402650
shl ecx, 0x10
or ecx, edi
jmp 0x40272c
mov ecx, 1
mov eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402740
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4027a7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x4027a9
not eax
xor esi, esi
nop
nop
nop
nop
mov ebx, eax
and ebx, 0xf
movzx edi, byte [ecx + esi]
mov ebp, edi
and ebp, 0xf
add ebx, ebp
and ebp, eax
add ebp, ebp
sub ebx, ebp
mov ebx, dword [ebx*4 + 0x43d80c]
shr eax, 4
mov ebp, ebx
and ebp, eax
add ebp, ebp
sub ebx, ebp
add ebx, eax
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43d80c]
inc esi
cmp edx, esi
jne 0x402760
not eax
jmp 0x4027a9
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4080b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + 8]
mov esi, 1
cmp ebx, eax
jae 0x40811c
mov edi, edx
cmp dword [esp + 0x18], 0
je 0x4080fe
cmp ebx, 1
adc ebx, 0
cmp ebx, eax
jae 0x408100
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
and edx, 0xfffffffd
mov ebp, ebx
and ebp, 2
or ebx, 2
imul ebx, ebp
xor ebp, 2
imul ebp, edx
add ebx, ebp
cmp ebx, eax
jb 0x4080e0
jmp 0x408100
mov ebx, eax
push ebx
push dword [edi + 0xc]
push dword [edi]
push dword [ecx + 0x34]
call dword [ecx + 0x30]
add esp, 0x10
test eax, eax
je 0x40811a
mov dword [edi], eax
mov dword [edi + 8], ebx
jmp 0x40811c
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret