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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov ecx, dword [0x1024d58]
xor eax, eax
push edi
xor edi, edi
inc eax
sub ecx, edi
je 0x101caeb
dec ecx
je 0x101caa1
dec ecx
jne 0x101caeb
cmp dword [ebx + 0x10], edi
je 0x101cae9
cmp dword [ebx + 0x14], edi
je 0x101cae9
cmp dword [ebx + 4], edi
je 0x101cae9
mov ecx, dword [0x1024ca0]
cmp ecx, edi
je 0x101caeb
push edi
push edi
push dword [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101cae9
movzx esi, word [ebp + 0x10]
push edi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [0x1024ca0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101cae9
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x18]
mov eax, ecx
shl eax, 2
mov dword [eax + edx], edi
add dword [ebx + 0x18], esi
mov edx, dword [ebx + 0x14]
mov si, word [ebp + 0x10]
mov word [edx + ecx*2], si
mov edx, dword [ebx + 4]
xor ecx, ecx
inc ecx
mov dword [eax + edx], ecx
mov eax, ecx
jmp 0x101caeb
movzx esi, word [ebp + 0x10]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x101cae9
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0xc]
mov ecx, edx
shl ecx, 2
mov dword [ecx + esi], eax
mov eax, dword [ebx + 0x14]
mov si, word [ebp + 0x10]
mov word [eax + edx*2], si
mov edx, dword [ebx + 4]
xor eax, eax
inc eax
mov dword [ecx + edx], eax
jmp 0x101caeb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101cbb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1024d58]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
xor ecx, ecx
sub eax, ecx
mov dword [ebp - 4], edi
je 0x101ccd1
dec eax
je 0x101ccac
dec eax
jne 0x101ccd4
cmp dword [esi + 0x10], ecx
je 0x101cca7
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x101cca7
cmp dword [esi + 4], ecx
je 0x101cca7
cmp dword [0x1024ca0], ecx
je 0x101ccd4
mov ebx, dword [ebp + 8]
lea edi, [ebx + ebx]
movzx eax, word [edi + eax]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp + 8], eax
pop ecx
je 0x101cca2
mov ecx, dword [esi + 0x14]
cmp word [edi + ecx], ax
je 0x101cca2
push eax
push eax
mov eax, dword [esi + 0x10]
push dword [eax + ebx*4]
push dword [0x1024ca0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101cc93
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x14]
movzx eax, word [edi + eax]
push eax
push dword [ebp + 8]
push dword [0x1024ca0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101cc93
mov eax, dword [esi + 0x14]
movzx eax, word [edi + eax]
cmp dword [ebp - 8], eax
jne 0x101cc93
push dword [ebp - 8]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0101caf7
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0101cb8f
jmp 0x101cc97
and dword [ebp - 4], 0
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x101ccd4
mov dword [ebp - 4], eax
jmp 0x101ccd4
mov dword [ebp - 4], ecx
jmp 0x101ccd4
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
movzx ecx, word [ecx + eax*2]
push ecx
push dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
push dword [ecx + eax*4]
mov ecx, esi
call fcn.0101caf7
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0101cb8f
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101d352
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1003810
call fcn.0101d544
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x101d38d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101d38d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x101d3a5
cmp eax, 0x20b
je 0x101d392
mov dword [ebp - 0x1c], edi
jmp 0x101d3b9
cmp dword [ecx + 0x84], 0xe
jbe 0x101d38d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x101d3b3
cmp dword [ecx + 0x74], 0xe
jbe 0x101d38d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1068700], 0xffffffff
or dword [0x1068704], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x106864c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1068648]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10686fc], eax
call fcn.0101d876
cmp dword [0x1023db0], edi
jne 0x101d416
push fcn.0101d876
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101d85f
push 0x102304c
push 0x1023048
call sub.msvcrt.dll__initterm
mov eax, dword [0x1068644]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1068640]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1023044
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x101d47c
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x101d536
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x101d4ca
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x101d498
cmp ax, 0x22
jne 0x101d485
cmp word [esi], 0x22
jne 0x101d4a3
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x101d4b1
cmp ax, 0x20
jbe 0x101d49e
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x101d4d7
movzx eax, word [ebp - 0x50]
jmp 0x101d4da
cmp word [esi], 0x20
jbe 0x101d4a3
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x101d4ca
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x101d4fb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101d530
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0101d57f
ret
Function at 0x101da7b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1068650], 0
push esi
jne 0x101d9e9
call fcn.0101d8e0
test eax, eax
je 0x101da2c
mov eax, dword [0x1068650]
cmp eax, 1
jne 0x101da0a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101da2c
pop esi
ret
push eax
call dword [0x1068658]
test eax, eax
jne 0x101da74
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101da30
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1068650]
call dword [0x1068658]
mov edi, eax
test edi, edi
je 0x101da55
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101da71
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1068650]
call dword [0x1068654]
add edi, 0x10
cmp edi, esi
jb 0x101da5d
mov eax, edi
pop edi
pop esi
ret
jmp 0x101d9d6

Function at 0x101de51
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1003954
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101dea9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1003990
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101de9c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101deab
xor eax, eax
pop esi
leave
ret 4
Function at 0x401260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ff03
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x428028]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov edi, 0x41
xor esi, esi
push edi
mov dword [ebp], vtable.ByteArray.0
mov dword [ebp + 4], esi
mov dword [ebp + 8], edi
call fcn.0040c404
mov dword [ebp + 0xc], eax
mov byte [eax], 0
mov dword [esp + 0x38], esi
lea ebx, [ebp + 0x14]
push edi
mov dword [ebx], vtable.ByteArray.0
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
call fcn.0040c404
mov dword [ebx + 0xc], eax
mov byte [eax], 0
mov byte [esp + 0x3c], 1
push edi
mov dword [esp + 0x24], vtable.ByteArray.0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call fcn.0040c404
add esp, 0xc
mov dword [esp + 0x24], eax
mov byte [eax], 0
lea edi, [esp + 0x18]
mov esi, ebp
mov byte [esp + 0x34], 2
call fcn.00404e10
push 0x41
mov byte [esp + 0x38], 1
mov esi, dword [esp + 0x28]
xor edi, edi
push edi
push esi
call fcn.0040e390
push esi
call fcn.0040c1dc
push 0x41
mov dword [ebp + 0x10], edi
mov dword [esp + 0x2c], vtable.ByteArray.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0x41
call fcn.0040c404
add esp, 0x14
mov dword [esp + 0x24], eax
mov byte [eax], 0
lea edi, [esp + 0x18]
mov esi, ebx
mov byte [esp + 0x34], 3
call fcn.00404e10
mov esi, dword [esp + 0x24]
push 0x41
push 0
push esi
call fcn.0040e390
push esi
call fcn.0040c1dc
add esp, 0x10
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4

Function at 0x4018c0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x204
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 0x200], eax
push 0x1ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0040e390
add esp, 0xc
push 0x200
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401918
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040bba8
add esp, 0x204
ret
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401993
push 0
push 0
push 0x422cda
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push 0x42d780
push 0x42d780
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x40198c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040bba8
add esp, 0x204
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040bba8
add esp, 0x204
ret
Function at 0x4019b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x4019c8
pop ebp
ret
push esi
push 0xf01ff
push 0x42d780
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4019ec
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
ret
push edi
push 0x42b4d8
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401a3d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x42b4d8
push esi
call ebx
test eax, eax
je 0x401a3c
nop
cmp dword [0x42b4dc], 3
jne 0x401a3c
push 0x3e8
call edi
push 0x42b4d8
push esi
call ebx
test eax, eax
jne 0x401a20
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
neg edi
sbb edi, edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg edi
call esi
push ebp
call esi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x401b80
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x42b510
mov dword [esp + 8], 0
call esi
push 0x42b4a0
call esi
push 0x42b4bc
call esi
call fcn.0041c670
test eax, eax
jne 0x401be6
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x42b4bc
call esi
push 0x42b4a0
call esi
push 0x42b510
call esi
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.0040bba8
add esp, 8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, edi
push 0xffffffffffffffff
push 0x42d888
call ebx
test eax, eax
jne 0x401c26
mov eax, dword [0x42dae0]
inc eax
mov dword [0x42dae0], eax
cmp eax, 0x28
jne 0x401c00
push 0x7d0
call ebp
jmp 0x401c00
lea eax, [esp + 4]
push eax
push 0
push 0x42d888
push 0x401c90
push 0
push 0
call esi
test eax, eax
jne 0x401c46
push eax
call edi
jmp 0x401c00
push eax
call edi
jmp 0x401c00
Function at 0x406690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420030
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x428028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp esi, 0xffffffff
je 0x406798
mov eax, dword [edi]
mov edx, dword [eax + 0x9c]
mov ecx, edi
call edx
cmp eax, esi
jge 0x406798
mov eax, dword [esp + 0x44]
neg eax
sbb al, al
and al, 0x10
add al, 0x20
cmp dword [esp + 0x40], 0
mov byte [esp + 0xc], al
je 0x40673c
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0x2d
jne 0x40673c
mov edx, dword [edi]
mov eax, dword [edx + 0x9c]
mov ecx, edi
call eax
mov ecx, dword [esp + 0xc]
sub esi, eax
mov eax, esi
push ecx
lea esi, [esp + 0x24]
call fcn.00404d70
mov dword [esp + 0x38], 0
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
push 1
mov ecx, edi
call eax
mov ecx, esi
call fcn.00404dd0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
mov edx, dword [edi]
mov eax, dword [edx + 0x9c]
mov ecx, edi
call eax
mov ecx, dword [esp + 0xc]
sub esi, eax
mov eax, esi
push ecx
lea esi, [esp + 0x14]
call fcn.00404d70
mov dword [esp + 0x38], 1
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
push 0
mov ecx, edi
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], vtable.ByteArray.0
test eax, eax
je 0x406798
mov ecx, dword [esp + 0x18]
push ecx
push 0
push eax
call fcn.0040e390
mov edx, dword [esp + 0x28]
push edx
call fcn.0040c1dc
add esp, 0x10
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x4083e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x800
push ebx
push ebp
xor ecx, ecx
push esi
lea eax, [ecx + 1]
push edi
nop
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea esi, [eax + eax]
xor edx, esi
xor edx, eax
mov dword [esp + ecx*4 + 0x410], eax
mov dword [esp + eax*4 + 0x10], ecx
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov eax, edx
jl 0x4083f0
mov eax, 1
mov ecx, 0x42be40
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, 0xff
add ecx, 4
cmp ecx, 0x42be68
mov eax, edx
jl 0x408430
mov byte [0x42b540], 0x63
mov byte [0x42d6cb], 0
mov ebx, 1
jmp 0x408470
mov ecx, dword [esp + ebx*4 + 0x10]
add ecx, ecx
add ecx, ecx
lea edx, [esp + 0x80c]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x42b540], al
mov byte [eax + 0x42d668], bl
inc ebx
cmp ebx, 0x100
jl 0x408470
xor ecx, ecx
movzx esi, byte [ecx + 0x42b540]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x42d268], eax
rol eax, 8
mov dword [ecx*4 + 0x42ce68], eax
rol eax, 8
mov dword [ecx*4 + 0x42ca68], eax
rol eax, 8
mov dword [ecx*4 + 0x42c668], eax
movzx eax, byte [ecx + 0x42d668]
test eax, eax
je 0x408598
mov esi, dword [esp + eax*4 + 0x10]
mov edx, dword [esp + 0x48]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [esp + 0x34]
add eax, esi
mov ebp, dword [esp + edx*4 + 0x410]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x410]
mov edx, dword [esp + 0x44]
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, 0xff
mov edi, dword [esp + edx*4 + 0x410]
cdq
idiv esi
mov edx, dword [esp + edx*4 + 0x410]
jmp 0x4085a0
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, ebp
mov dword [ecx*4 + 0x42c268], edx
rol edx, 8
mov dword [ecx*4 + 0x42be68], edx
rol edx, 8
mov dword [ecx*4 + 0x42ba40], edx
rol edx, 8
mov dword [ecx*4 + 0x42b640], edx
inc ecx
cmp ecx, 0x100
jl 0x4084e2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
Function at 0x4091d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x318
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [esp + 0x31c]
push ebx
push ebp
push esi
push edi
push 0x1a0
mov esi, ecx
lea ecx, [esp + 0x184]
push 0
push ecx
mov dword [esp + 0x20], eax
mov ebx, edx
call fcn.0040e390
mov edx, ebx
shr edx, 0x18
push ebx
mov byte [esp + 0x1a0], dl
mov eax, ebx
mov ecx, ebx
lea edx, [esp + 0x1a8]
shr eax, 0x10
shr ecx, 8
push esi
push edx
mov byte [esp + 0x1a9], al
mov byte [esp + 0x1aa], cl
mov byte [esp + 0x1ab], bl
mov byte [esp + 0x1af], 0x30
call fcn.0040e410
mov byte [esp + ebx + 0x1b0], 0x80
add esp, 0x18
add ebx, 0x19
xor eax, eax
lea ecx, [ecx]
mov byte [esp + eax + 0x130], al
inc eax
cmp eax, 0x20
jl 0x409260
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x1c]
call fcn.004085f0
add esp, 4
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
test ebx, ebx
jle 0x4092f3
lea edi, [ebx - 1]
lea esi, [esp + 0x180]
lea ecx, [esp + 0x130]
shr edi, 4
sub esi, ecx
inc edi
lea esp, [esp]
xor ecx, ecx
lea eax, [esp + ecx + 0x130]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x10
jl 0x4092c2
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
add esi, 0x10
call fcn.00408b30
add esp, 8
sub edi, 1
jne 0x4092c0
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x138]
inc byte [esp + 0x183]
mov dword [esp + ebp + 0x150], edx
mov edx, dword [esp + 0x13c]
mov dword [esp + ebp + 0x154], eax
mov dword [esp + ebp + 0x158], ecx
mov dword [esp + ebp + 0x15c], edx
add ebp, 0x10
cmp ebp, 0x30
jl 0x409283
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x1c]
call fcn.004085f0
mov esi, dword [esp + 0x18]
add esp, 4
mov edi, 3
jmp 0x409360
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408b30
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x17c]
mov edx, dword [esp + 0x180]
mov dword [esi], eax
mov eax, dword [esp + 0x184]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esp, 8
add esi, 0x10
sub edi, 1
jne 0x409360
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bba8
add esp, 0x318
ret
Function at 0x4093c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push 0x30
lea ebp, [esp + 0x10]
mov eax, ebp
push 0
push eax
call fcn.0040e390
add esp, 0xc
mov dword [esp + 8], 3
mov ebx, 1
mov eax, 0x10
add byte [esi + eax - 1], bl
jne 0x409414
add byte [esi + eax - 2], bl
jne 0x409414
add byte [esi + eax - 3], bl
jne 0x409414
add byte [esi + eax - 4], bl
jne 0x409414
sub eax, 4
test eax, eax
jg 0x4093f5
lea eax, [esi + 0x20]
push ebp
push eax
mov ecx, esi
call fcn.00408b30
add esp, 8
add ebp, 0x10
sub dword [esp + 8], ebx
jne 0x4093f0
mov ebp, edi
lea edx, [esp + 0xc]
xor ecx, ecx
sub ebp, edx
lea eax, [esp + ecx + 0xc]
movzx edx, byte [eax + ebp]
xor byte [eax], dl
movzx edx, byte [edi + ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [edi + ecx + 2]
xor byte [eax + 2], dl
movzx edx, byte [edi + ecx + 3]
xor byte [eax + 3], dl
movzx edx, byte [edi + ecx + 4]
xor byte [eax + 4], dl
movzx edx, byte [edi + ecx + 5]
xor byte [eax + 5], dl
add ecx, 6
cmp ecx, 0x30
jl 0x409436
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x20]
call fcn.004085f0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x3c]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bba8
add esp, 0x38
ret

Function at 0x4096a0
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0xf3bcc908
mov dword [eax + 0x14], 0x6a09e667
mov dword [eax + 0x18], 0x84caa73b
mov dword [eax + 0x1c], 0xbb67ae85
mov dword [eax + 0x20], 0xfe94f82b
mov dword [eax + 0x24], 0x3c6ef372
mov dword [eax + 0x28], 0x5f1d36f1
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0xade682d1
mov dword [eax + 0x34], 0x510e527f
mov dword [eax + 0x38], 0x2b3e6c1f
mov dword [eax + 0x3c], 0x9b05688c
mov dword [eax + 0x40], 0xfb41bd6b
mov dword [eax + 0x44], 0x1f83d9ab
mov dword [eax + 0x48], 0x137e2179
mov dword [eax + 0x4c], 0x5be0cd19
mov dword [eax + 0x1d0], ecx
ret