joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d80fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea ebx, [ecx + eax*4]
mov eax, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], cx
push eax
mov dword [ebp - 4], ecx
call fcn.00403c90
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x404379
mov edi, dword [eax]
test edi, edi
je 0x40436b
mov ecx, dword [edi + 0x18]
cmp ecx, 0x10
jb 0x404238
mov esi, dword [edi + 4]
jmp 0x40423b
lea esi, [edi + 4]
mov edx, dword [edi + 0x14]
add edx, esi
cmp ecx, 0x10
jb 0x40424a
mov ecx, dword [edi + 4]
jmp 0x40424d
lea ecx, [edi + 4]
xor eax, eax
cmp ecx, edx
je 0x404270
mov esi, eax
mov ebx, eax
shl esi, 6
shr ebx, 2
add esi, ebx
movsx ebx, byte [ecx]
lea esi, [esi + ebx - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x404253
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx]
lea ecx, [eax + edx*4]
mov edx, dword [edi]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.00404120
mov ebx, dword [ebp - 0x2c]
lea esi, [ebx + 4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4042d3
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00401c50
lea ecx, [edi + 0x20]
push ecx
add esi, 0x1c
push esi
mov byte [ebp - 4], 2
call fcn.00404ca0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
mov edi, dword [edi]
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x2c], 0
cmp edi, dword [ebp - 0x10]
je 0x40435d
lea eax, [ebp - 0x30]
push eax
call fcn.00404120
mov esi, dword [ebp - 0x2c]
add esi, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
je 0x40433e
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00401c50
lea ecx, [edi + 0x20]
push ecx
add esi, 0x1c
push esi
mov byte [ebp - 4], 4
call fcn.00404ca0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx], ebx
mov edi, dword [edi]
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x2c], 0
cmp edi, dword [ebp - 0x10]
jne 0x4042f2
test edi, edi
jne 0x40422b
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x404221
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8a0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea ebx, [ecx + eax*4]
mov eax, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x28], cx
push eax
mov dword [ebp - 4], ecx
call fcn.00403c90
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4046a7
mov edi, dword [eax]
test edi, edi
je 0x404699
mov ecx, dword [edi + 0x18]
cmp ecx, 0x10
jb 0x404568
mov esi, dword [edi + 4]
jmp 0x40456b
lea esi, [edi + 4]
mov edx, dword [edi + 0x14]
add edx, esi
cmp ecx, 0x10
jb 0x40457a
mov ecx, dword [edi + 4]
jmp 0x40457d
lea ecx, [edi + 4]
xor eax, eax
cmp ecx, edx
je 0x4045a0
mov esi, eax
mov ebx, eax
shl esi, 6
shr ebx, 2
add esi, ebx
movsx ebx, byte [ecx]
lea esi, [esi + ebx - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x404583
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx]
lea ecx, [eax + edx*4]
mov edx, dword [edi]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.00404470
mov ebx, dword [ebp - 0x2c]
lea esi, [ebx + 4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x404602
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00401c50
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call fcn.00404aa0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov edx, dword [eax]
mov dword [ebx], edx
mov dword [eax], ebx
mov edi, dword [edi]
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x2c], 0
cmp edi, dword [ebp - 0x10]
je 0x40468b
lea eax, [ebp - 0x30]
push eax
call fcn.00404470
mov esi, dword [ebp - 0x2c]
add esi, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
je 0x40466c
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00401c50
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00404aa0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx], ebx
mov edi, dword [edi]
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x2c], 0
cmp edi, dword [ebp - 0x10]
jne 0x404621
test edi, edi
jne 0x40455b
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x404551
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8b61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebx], vtable.CMapData.0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x18]
lea esi, [ebx + 8]
lea ecx, [edi + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
call fcn.00404030
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [ebp - 4], edx
mov byte [esi + 0xc], dl
movzx ecx, byte [edi + 0x14]
lea eax, [esi + 0xd]
lea ecx, [ecx + edi + 0x15]
cmp eax, edx
je 0x404b05
mov dl, byte [ecx]
mov byte [eax], dl
xor edx, edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x10], eax
fld dword [edi + 0x1c]
fstp dword [esi + 0x14]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
cmp dword [edi + 0x18], edx
je 0x404b2a
push esi
lea ecx, [edi + 8]
call fcn.00403a20
call fcn.00404400
mov dword [ebp - 4], 1
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x38]
lea esi, [ebx + 0x28]
lea ecx, [edi + 0x28]
mov dword [ebp - 0x14], esi
call fcn.00404030
mov dword [esi], 0
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
mov byte [esi + 0xc], 0
movzx ecx, byte [edi + 0x34]
lea eax, [esi + 0xd]
lea ecx, [ecx + edi + 0x35]
test eax, eax
je 0x404b69
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [edi + 0x38]
mov dword [esi + 0x10], eax
fld dword [edi + 0x3c]
xor eax, eax
fstp dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [edi + 0x38], eax
je 0x404b90
push esi
lea ecx, [edi + 0x28]
call fcn.00403d90
call fcn.00404400
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x58]
lea esi, [ebx + 0x48]
lea ecx, [edi + 0x48]
mov dword [ebp - 0x14], esi
call fcn.00404030
mov dword [esi], 0
mov dword [esi + 4], eax
mov byte [ebp - 4], 4
mov byte [esi + 0xc], 0
movzx ecx, byte [edi + 0x54]
lea eax, [esi + 0xd]
lea ecx, [ecx + edi + 0x55]
test eax, eax
je 0x404bc8
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [edi + 0x58]
mov dword [esi + 0x10], eax
fld dword [edi + 0x5c]
xor eax, eax
fstp dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x404bef
push esi
lea ecx, [edi + 0x48]
call fcn.004041d0
call fcn.00404400
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x78]
lea esi, [ebx + 0x68]
lea ecx, [edi + 0x68]
mov dword [ebp + 8], esi
call fcn.00404030
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xd]
mov byte [ebp - 4], 6
mov byte [esi + 0xc], cl
cmp eax, ecx
je 0x404c22
movzx edx, byte [edi + 0x74]
mov dl, byte [edx + edi + 0x75]
mov byte [eax], dl
mov eax, dword [edi + 0x78]
mov dword [esi + 0x10], eax
fld dword [edi + 0x7c]
fstp dword [esi + 0x14]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
cmp dword [edi + 0x78], ecx
je 0x404c47
push esi
lea ecx, [edi + 0x68]
call fcn.00404500
call fcn.00404400
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d81a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea edx, [eax + edx*4]
push esi
xor eax, eax
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 1
inc ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.00403c00
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov edi, dword [ebx + 0x18]
mov edx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [ebx + 0x10], 0
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x1c]
je 0x40f65a
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test esi, esi
je 0x40f649
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x40f5e8
mov ecx, dword [eax]
jmp 0x40f5ea
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
cmp dword [eax + 0x14], 0x10
jb 0x40f5f7
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x10], eax
xor eax, eax
cmp ecx, edx
je 0x40f628
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x40f603
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor edx, edx
div dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi]
mov dword [edi], ecx
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40f5db
add edi, 4
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x1c]
jne 0x40f5d1
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x40f69d
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
jne 0x40f6a7
jmp 0x40f690
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x40f690
jmp 0x40f6a7
mov edx, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
mov dword [ebx + 0x18], ecx
mov eax, ebx
call fcn.00404390
cmp dword [esp + 0x30], 0
mov dword [ebx + 0x1c], eax
je 0x40f6c2
lea edx, [esp + 0x30]
push edx
call fcn.004046d0
cmp dword [esp + 0x24], 0
je 0x40f6d3
lea eax, [esp + 0x24]
push eax
call fcn.004046d0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410190
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d50db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047d309
push 4
mov dword [ebp - 4], 0
call fcn.0048f2c5
mov edi, eax
add esp, 4
test edi, edi
je 0x410207
push ebx
call fcn.0047cffb
mov dword [edi], eax
call fcn.0047ceb5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0047cdea
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4101fc
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0047ce12
pop ebx
jmp 0x410209
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x416c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8af0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea edx, [eax + edx*4]
push esi
xor eax, eax
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 1
inc ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.00403c00
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x4c], 0
lea eax, [ecx + eax*4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x18]
mov edx, eax
mov dword [esp + 0x34], edx
mov dword [ebx + 0x10], 0
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x1c]
je 0x416d57
mov esi, dword [ecx]
mov dword [esp + 0x18], esi
test esi, esi
je 0x416d46
mov ecx, dword [esi + 0x18]
lea eax, [esi + 4]
cmp ecx, 0x10
jb 0x416cdf
mov edi, dword [eax]
jmp 0x416ce1
mov edi, eax
mov edx, dword [eax + 0x10]
add edx, edi
cmp ecx, 0x10
jb 0x416ced
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x14], eax
xor eax, eax
cmp ecx, edx
je 0x416d21
lea esp, [esp]
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x416d00
mov esi, dword [esp + 0x18]
xor edx, edx
div dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea eax, [eax + edx*4]
mov edx, dword [esi]
mov dword [ecx], edx
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov esi, dword [ecx]
mov dword [esp + 0x18], esi
test esi, esi
jne 0x416cd0
add ecx, 4
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x416cc6
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x416d9d
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
jne 0x416da7
jmp 0x416d90
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x416d90
jmp 0x416da7
mov edx, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
mov dword [ebx + 0x18], ecx
mov eax, ebx
call fcn.00404390
cmp dword [esp + 0x30], 0
mov dword [ebx + 0x1c], eax
je 0x416dc1
lea ecx, [esp + 0x30]
call fcn.00404960
mov dword [esp + 0x4c], 0xffffffff
cmp dword [esp + 0x24], 0
je 0x416dd9
lea ecx, [esp + 0x24]
call fcn.00404960
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418e60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x418e75
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
cmp edi, 0xffffffff
jne 0x418e89
mov esi, dword [ebp + 8]
call fcn.004192a0
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor edx, edx
push ebx
cmp edi, 0xffffffff
jbe 0x418ef4
xor ecx, ecx
lea eax, [edi + 1]
div ecx
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ebx, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jae 0x418ed0
mov byte [ebp - 8], 0
mov edx, dword [ebp - 8]
push edx
push edi
push 0
push esi
call fcn.00418e60
add esp, 0x10
cmp eax, 0xffffffff
ja 0x418ea6
cmp eax, edi
ja 0x418ea6
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
call fcn.004192a0
imul eax, ebx
add dword [ebp + 0x10], eax
mov eax, edi
sub eax, ebx
inc eax
neg ebx
cmp ebx, eax
je 0x418eea
xor ebx, ebx
jmp 0x418ed0
mov eax, dword [ebp + 0x10]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lea ecx, [edi + 1]
div ecx
mov ebx, eax
cmp edx, edi
jne 0x418f03
inc ebx
mov esi, dword [ebp + 8]
jmp 0x418f10
cmp dword [esi + 0x9c0], 0x270
jne 0x418f23
mov ecx, esi
call fcn.00418f70
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [esi + 0x9c0], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div ebx
cmp eax, edi
ja 0x418f10
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4192f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
sub edi, ebx
mov esi, ecx
test edi, edi
jne 0x41930f
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jne 0x41931e
call fcn.004192a0
jmp 0x419403
jbe 0x419394
xor ecx, ecx
lea eax, [edi + 1]
xor edx, edx
div ecx
mov dword [ebp - 4], ecx
mov ebx, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jae 0x419370
mov byte [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
push edx
push edi
push 0
push esi
call fcn.00418e60
add esp, 0x10
cmp eax, 0xffffffff
ja 0x419334
cmp eax, edi
ja 0x419334
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x419362
or edx, 0xffffffff
sub edx, ecx
pop edi
pop esi
add eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004192a0
imul eax, ebx
add dword [ebp - 4], eax
mov eax, edi
sub eax, ebx
inc eax
neg ebx
cmp ebx, eax
je 0x41938a
xor ebx, ebx
jmp 0x419370
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov dword [ebp + 8], eax
cmp edx, edi
jne 0x4193b0
inc dword [ebp + 8]
jmp 0x4193b0
cmp dword [esi + 0x9c0], 0x270
jne 0x4193c3
mov ecx, esi
call fcn.00418f70
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
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
xor edx, edx
div dword [ebp + 8]
cmp eax, edi
ja 0x4193b0
test ebx, ebx
jns 0x41940c
or ecx, 0xffffffff
sub ecx, ebx
pop edi
pop esi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea edx, [eax + edx*4]
push esi
xor eax, eax
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 1
inc ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.00403c00
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov edi, dword [ebx + 0x18]
mov edx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [ebx + 0x10], 0
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x1c]
je 0x41a6aa
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test esi, esi
je 0x41a699
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x41a638
mov ecx, dword [eax]
jmp 0x41a63a
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
cmp dword [eax + 0x14], 0x10
jb 0x41a647
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x10], eax
xor eax, eax
cmp ecx, edx
je 0x41a678
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x41a653
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor edx, edx
div dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi]
mov dword [edi], ecx
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x41a62b
add edi, 4
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x1c]
jne 0x41a621
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x41a6ed
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
jne 0x41a6f7
jmp 0x41a6e0
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x41a6e0
jmp 0x41a6f7
mov edx, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
mov dword [ebx + 0x18], ecx
mov eax, ebx
call fcn.00404390
cmp dword [esp + 0x30], 0
mov dword [ebx + 0x1c], eax
je 0x41a712
lea edx, [esp + 0x30]
push edx
call fcn.00404780
cmp dword [esp + 0x24], 0
je 0x41a723
lea eax, [esp + 0x24]
push eax
call fcn.00404780
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42eb40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [eax + 0x9c0], 1
push ebx
nop
mov ecx, dword [eax + 0x9c0]
mov edx, dword [eax + ecx*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, ecx
mov dword [eax + ecx*4], ebx
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], 0x270
jb 0x42eb50
pop ebx
ret