joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432327
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004322a3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x432496
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x432496
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43244b
jg 0x432383
test eax, eax
je 0x432441
push 1
push 0x1000
call fcn.00427529
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4323a6
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x432438
push 0x8000
push ebx
call fcn.0042650e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4323cf
jg 0x4323ca
cmp ecx, 0x1000
jb 0x4323cf
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004256a5
add esp, 0x10
cmp eax, 0xffffffff
je 0x432414
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4323ca
jl 0x4323fb
test ecx, ecx
jne 0x4323bc
push dword [ebp - 0xc]
push ebx
call fcn.0042650e
push esi
call fcn.00427403
add esp, 0xc
xor ebx, ebx
jmp 0x4324a4
cmp byte [edi + 0x24], 0
je 0x43242b
cmp dword [edi + 0x20], 5
jne 0x43242b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x432436
mov ebx, dword [edi + 0x18]
jmp 0x432438
xor ebx, ebx
push esi
call fcn.00427403
pop ecx
jmp 0x4324a4
test ecx, ecx
jg 0x43240d
jl 0x43244b
test eax, eax
jae 0x43240d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428f6c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43246b
cmp byte [edi + 0x1c], 0
je 0x43240d
jmp 0x43249c
push ebx
call fcn.0042bd72
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43240d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4324a4
cmp byte [edi + 0x1c], 0
je 0x4324a1
mov ebx, dword [edi + 0x18]
jmp 0x4324a4
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00428f6c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fb9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402fcb
mov dword [ebp - 0xc], 0x422028
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe0
mov ecx, dword [0x452478]
add ecx, eax
push ecx
call fcn.004031c4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004031ae
test eax, eax
je 0x40319c
test byte [ebp + 0x17], 0x80
je 0x403147
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41498c], 0
and dword [0x414988], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x416010
mov dword [0x414470], 8
mov dword [0x41e018], eax
mov dword [0x41e014], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41e010], 0x41e010
mov dword [ebp + 8], eax
jle 0x4031a4
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403059
mov esi, dword [ebp + 0x14]
mov edi, 0x41e028
push esi
push edi
call fcn.004031ae
test eax, eax
je 0x40319c
sub dword [ebp + 0x14], esi
mov dword [0x414460], edi
mov dword [0x414464], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x414460
mov dword [0x414468], edi
mov dword [0x41446c], eax
call fcn.0040645d
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40313f
mov esi, dword [0x414468]
sub esi, edi
call ebx
test byte [0x4524d4], 1
mov edi, eax
je 0x4030fa
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4030c7
cmp dword [ebp + 0x14], 0
jne 0x4030fa
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004050c7
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403133
cmp dword [ebp + 0x10], 0
jne 0x403119
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405be0
test eax, eax
je 0x403143
add dword [ebp - 4], esi
jmp 0x403127
mov eax, dword [0x414468]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40307c
jmp 0x4031a4
cmp dword [ebp + 0x14], 0
jg 0x40304c
jmp 0x4031a4
push 0xfffffffffffffffc
jmp 0x40319e
push 0xfffffffffffffffe
jmp 0x40319e
test edi, edi
jne 0x403189
cmp dword [ebp + 0x14], edi
jle 0x4031a4
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40315d
mov esi, ebx
mov edi, 0x41e028
push esi
push edi
call fcn.004031ae
test eax, eax
je 0x40319c
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405be0
test eax, eax
je 0x403143
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403153
jmp 0x4031a4
cmp dword [ebp + 0x14], esi
jge 0x403191
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004031ae
test eax, eax
jne 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031a7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40558d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055de
xor eax, eax
jmp 0x405605
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405605
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055da
call esi
pop esi
leave
ret 4

Function at 0x40563f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x448078], 0x44
push eax
xor eax, eax
push 0x448078
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40567e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405682
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405720
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b14
mov edi, eax
cmp edi, 0xffffffff
je 0x405761
test byte [esp + 0x10], 1
push esi
je 0x405743
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405749
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405752
xor eax, eax
inc eax
jmp 0x405763
test byte [esp + 0x10], 4
jne 0x405761
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405768
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a26
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057a7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4524a8], eax
jmp 0x405931
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057c1
test eax, eax
je 0x4058df
test bl, 2
je 0x4058df
mov esi, 0x444078
push edi
push esi
call fcn.00405fa0
cmp dword [ebp + 8], 0
je 0x4057e0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057e6
push edi
call fcn.0040597f
cmp byte [edi], 0
jne 0x4057f4
cmp byte [0x444078], 0x5c
jne 0x4057ff
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4058d5
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405963
cmp byte [eax], 0
je 0x405845
cmp byte [ebp - 0x1c], 0
je 0x405845
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40585b
mov al, byte [esi + 1]
test al, al
je 0x4058b4
cmp al, 0x2e
jne 0x40585b
cmp byte [esi + 2], 0
je 0x4058b4
push esi
push ebx
call fcn.00405fa0
test byte [ebp - 0x14c], 0x10
je 0x405880
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058b4
push dword [ebp + 0xc]
push edi
call fcn.00405768
jmp 0x4058b4
push dword [ebp - 4]
push edi
call fcn.00405720
test eax, eax
jne 0x4058ac
cmp dword [ebp - 4], eax
je 0x4058a4
push edi
push 0xfffffffffffffff1
call fcn.004050c7
push 0
push edi
call fcn.00405d7f
jmp 0x4058b4
inc dword [0x4524a8]
jmp 0x4058b4
push edi
push 0xfffffffffffffff2
call fcn.004050c7
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405823
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058df
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405931
cmp dword [ebp - 0xc], esi
jne 0x4058f3
inc dword [0x4524a8]
jmp 0x405931
push edi
call fcn.004062a3
test eax, eax
je 0x405931
push edi
call fcn.00405938
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405720
test eax, eax
jne 0x405929
cmp dword [ebp - 4], esi
je 0x4058eb
push edi
push 0xfffffffffffffff1
call fcn.004050c7
push esi
push edi
call fcn.00405d7f
jmp 0x405931
push edi
push 0xffffffffffffffe5
call fcn.004050c7
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a26
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x446078
push esi
call fcn.00405fa0
push esi
call fcn.004059d1
mov edi, eax
test edi, edi
jne 0x405a47
xor eax, eax
jmp 0x405a99
push edi
call fcn.0040620a
test byte [0x45241c], 0x80
je 0x405a60
mov al, byte [edi]
test al, al
je 0x405a43
cmp al, 0x5c
je 0x405a43
sub edi, esi
jmp 0x405a78
call fcn.004062a3
test eax, eax
je 0x405a72
test byte [eax], 0x10
je 0x405a43
push esi
call fcn.0040597f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a64
call fcn.00405938
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b14
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b33
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b39
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405bad
test edi, edi
jne 0x405b73
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405ba7
Function at 0x405c0f
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x448600], 0x4c554e
mov edi, 0x400
mov ebp, 0x448600
je 0x405c5b
push 1
push 0
push esi
call fcn.00405b39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d7a
cmp eax, edi
jg 0x405d7a
mov esi, 0x448a00
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d7a
cmp eax, edi
jg 0x405d7a
push esi
push ebp
push str._s_s_r_n
push 0x448200
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x452414]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405fc2
push 4
push 0xc0000000
push esi
call fcn.00405b39
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d7a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d73
push edi
push esi
push ebp
call fcn.00405bb1
test eax, eax
je 0x405d73
push str._Rename__r_n
push esi
call fcn.00405a9e
test eax, eax
jne 0x405d11
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d46
add eax, 0xa
push 0x40a3b8
push eax
call fcn.00405a9e
mov ebp, eax
test ebp, ebp
je 0x405d42
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d33
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d2d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d48
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x448200
push eax
call fcn.00405af4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405be0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405d7f
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405da2
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c0f
pop ecx
pop ecx
inc dword [0x4524b0]
ret 8

Function at 0x405e87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e26
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405ef6
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x405ef6
cmp dword [ebp + 0xc], 1
je 0x405ef9
cmp dword [ebp + 0xc], 2
je 0x405ef9
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063ef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448e04], 0
push esi
jne 0x406426
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406400
mov dword [ecx*4 + 0x448e00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448e00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc
Function at 0x40216a
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
or eax, 0xffffffff
cmp dword [esp + 0xc], esi
jbe 0x4021a6
push edi
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esi + ecx]
movzx edx, al
push 8
xor ecx, edx
shr eax, 8
pop edi
mov dl, cl
shr ecx, 1
and dl, 1
je 0x402199
xor ecx, 0xedb88320
dec edi
jne 0x40218a
xor eax, ecx
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402177
pop edi
not eax
pop esi
ret

Function at 0x402459
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push esi
xor bl, bl
xor esi, esi
cmp dword [0x40a314], 0xffffffff
jne 0x402490
push esi
push esi
push str.bcrypt.dll
mov dword [0x40a314], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
je 0x402490
push str.BCryptGenRandom
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40a314], eax
mov eax, dword [0x40a314]
cmp eax, esi
je 0x4024b0
push 2
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call eax
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jne 0x4024f4
cmp dword [0x40a310], 0xffffffff
jne 0x4024d7
push 0xf0000040
push 1
push esi
push esi
push 0x40a310
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4024d7
mov dword [0x40a310], esi
mov eax, dword [0x40a310]
cmp eax, esi
je 0x4024f4
push dword [esp + 0xc]
push dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
ret

Function at 0x402523
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [ebp + 8], esi
jbe 0x40258e
mov eax, dword [ebp + 8]
push esi
sub eax, edi
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jg 0x402584
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40258e
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x104], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x40258e
jmp 0x402589
add edi, eax
add dword [ebp - 4], eax
cmp edi, dword [ebp + 8]
jb 0x40253a
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x402594
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 2
mov ebx, eax
push 1
lea eax, [ebp - 5]
push eax
push ebx
xor esi, esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x402612
push 0x18
lea eax, [ebp - 0x20]
call fcn.00402523
pop ecx
cmp eax, 0x18
jne 0x402612
push dword [ebp - 0x20]
call fcn.00402384
mov esi, eax
pop ecx
test esi, esi
je 0x402612
push dword [ebp - 0x20]
call fcn.00402523
pop ecx
cmp eax, dword [ebp - 0x20]
jne 0x402609
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push esi
push eax
mov eax, esi
call fcn.0040271c
mov edi, dword [ebp - 0x20]
push edi
push esi
call fcn.0040216a
add esp, 0x14
cmp dword [ebp - 0x1c], eax
jne 0x402609
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x402612
push esi
call fcn.0040241e
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40269f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 2], cl
test edx, edx
je 0x402707
mov ecx, dword [ebp + 8]
sub ecx, edi
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 8]
jne 0x4026cb
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret

Function at 0x40280d
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
or dword [ebp - 4], 0xffffffff
push esi
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x110]
push eax
xor esi, esi
push edi
inc esi
push edi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jne 0x40285f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x402866
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40289e
push edi
push edi
push edi
push edi
push 0x10
push dword [esp + 0x20]
push esi
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x40289e
call fcn.004028cc
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
ret

Function at 0x4028cc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp esi, 0xffffffff
je 0x402909
xor eax, eax
inc eax
mov word [ebp - 4], ax
xor eax, eax
push 4
mov word [ebp - 2], ax
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
leave
ret