joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fe80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x44fea7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x44feb3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x44ffdc
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x44fef8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x44ff19
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x44ff71
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x44ff50
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
add ebx, 1
mov edx, eax
cmp esi, edx
jg 0x44ff50
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
add esi, 1
cmp esi, 0xff
jle 0x44ff36
cmp dword [esp + 0x10], 0
je 0x44ffc1
mov eax, 1
lea edx, [ebp - 1]
jmp 0x44ffa0
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
add eax, 1
sub edx, 1
cmp eax, 0xff
jle 0x44ffa0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x44fef0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x461090
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x461097
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.004610a0
Function at 0x4610a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x4610d2
lea esp, [esp]
test cl, 3
je 0x4610d2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4dbde8]
add ecx, 1
sub esi, 1
jne 0x4610b0
cmp esi, 0x20
push ebx
push edi
jb 0x4612bc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4dc1e8]
xor edx, dword [ebx*4 + 0x4dc5e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dbde8]
add ecx, 4
xor edx, dword [eax*4 + 0x4dc9e8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4dc1e8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4dc5e8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dbde8]
add ecx, 4
xor eax, dword [edx*4 + 0x4dc9e8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4dc1e8]
xor edx, dword [ebx*4 + 0x4dc5e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dbde8]
xor edx, dword [eax*4 + 0x4dc9e8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4dc1e8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4dc5e8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dbde8]
xor eax, dword [edx*4 + 0x4dc9e8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4dc1e8]
xor edx, dword [ebx*4 + 0x4dc5e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dbde8]
xor edx, dword [eax*4 + 0x4dc9e8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4dc1e8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4dc5e8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dbde8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4dc9e8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4dc1e8]
xor edx, dword [ebx*4 + 0x4dc5e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dbde8]
add ecx, 4
xor edx, dword [eax*4 + 0x4dc9e8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4dc1e8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4dc5e8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dbde8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4dc9e8]
sub edi, 1
jne 0x4610e2
cmp esi, 4
jb 0x461309
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4dc1e8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4dc5e8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dbde8]
and eax, 0xff
xor edi, dword [eax*4 + 0x4dc9e8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4612c6
test esi, esi
pop edi
pop ebx
je 0x46132d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4dbde8]
add ecx, 1
sub esi, 1
jne 0x461310
not eax
pop esi
ret
Function at 0x46b2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd028
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [0x50f880]
xor ebx, ebx
mov dword [esp + 0xc], esi
mov byte [esp + 0x10], bl
push ebx
push esi
mov dword [esp + 0x40], ebx
call dword [0x4d52f0]
cmp eax, ebx
je 0x46b2ec
cmp eax, 0x80
jne 0x46b33c
mov ecx, dword [0x50f858]
cmp ecx, ebx
mov byte [esp + 0x10], 1
je 0x46b335
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x46b335
cmp byte [eax + 0x18], bl
je 0x46b335
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0x31], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], bl
call fcn.0046bc50
push esi
call dword [0x4d5120]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 8

Function at 0x46b670
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4cffb5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [0x510ac0], 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], 0
call fcn.004291c0
add esp, 4
mov edi, eax
mov byte [esp + 0x20], 1
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x46b6e8
lea ecx, [eax - 1]
test ecx, ecx
jl 0x46b790
cmp ecx, eax
jg 0x46b790
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x46b6e8
push 0x5c
call fcn.00406b00
mov eax, dword [edi]
sub eax, 0x10
call fcn.00402a60
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x20], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b71e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x4efc98
lea ecx, [esp + 0x18]
push ecx
call fcn.004092d0
mov edx, dword [esp + 0x10]
push 0
push edx
push 0
call dword [0x4d5350]
push 0xa
push str.error.txt
lea eax, [esp + 0x18]
push eax
call fcn.004092d0
mov esi, dword [esp + 0x10]
call fcn.0046b900
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b779
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x510ac0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
push 0x80070057
call fcn.00402940
int3
Function at 0x46b900
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4cff78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, dword [0x4d52cc]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push esi
call ebx
cmp eax, 0xffffffff
jne 0x46ba1e
call fcn.00402e30
mov edi, eax
test edi, edi
jl 0x46ba5b
mov ecx, dword [0x510ac0]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [0x4d529c]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46b984
call fcn.00402e30
test eax, eax
jl 0x46ba59
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], 0
ja 0x46b996
cmp eax, 0x40000
jbe 0x46ba59
mov eax, dword [0x510ac0]
test eax, eax
je 0x46b9b0
push eax
call dword [0x4d52d8]
mov dword [0x510ac0], 0
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004062e0
push 4
push str..old
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0
call fcn.004092d0
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x4d5364]
test eax, eax
je 0x46b9ef
mov edx, dword [esp + 0xc]
push edx
call dword [0x4d52e4]
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [0x4d52ac]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
call ebx
cmp eax, 0xffffffff
jne 0x46ba2a
call fcn.00402e30
mov edi, eax
jmp 0x46ba31
mov dword [0x510ac0], eax
xor edi, edi
jmp 0x46b958
mov dword [0x510ac0], eax
xor edi, edi
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ba59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x18
ret
Function at 0x488a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
test esi, esi
je 0x488a64
mov dword [esi], 0
lea eax, [esp + 0xc]
push eax
call fcn.004864b0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x3c], 0
call fcn.00488d80
add esp, 4
test eax, eax
jne 0x488aa3
lea eax, [esp + 0xc]
call fcn.004878b0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x24]
mov edi, ebx
call fcn.00406aa0
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
call fcn.00406aa0
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
je 0x488a87
test esi, esi
je 0x488acc
mov dword [esi], 1
lea eax, [esp + 0xc]
call fcn.004878b0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x48ae60
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, 0x4e67c6a7
jbe 0x48ae8d
push esi
push edi
jmp 0x48ae70
mov esi, eax
mov edi, eax
shl esi, 5
shr edi, 2
add esi, edi
movzx edi, byte [ecx]
add esi, edi
xor eax, esi
add ecx, 1
sub edx, 1
jne 0x48ae70
pop edi
pop esi
and eax, 0x7fffffff
ret
Function at 0x494830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d0e18
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
sub esp, 0x18
mov eax, esp
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esp
push edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push edx
mov edx, dword [esp + 0x48]
call fcn.00494c30
add esp, 0x28
lea edi, [esp + 0x30]
call fcn.00494030
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

Function at 0x4952f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d0e18
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x18], ecx
sub esp, 0x18
mov eax, esp
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esp
push edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push esi
call fcn.00495440
add esp, 0x2c
lea edi, [esp + 0x30]
call fcn.00494030
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

Function at 0x496110
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d2028
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [esi + 0xc], 0
jne 0x4961e0
cmp dword [esi + 0x60], 0
mov dword [esi + 0xb4], 0x5dc
jne 0x496196
mov edi, dword [0x4d531c]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x64], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x68], eax
call edi
mov dword [esi + 0x6c], eax
lea eax, [esi + 0x70]
push eax
push 0
push esi
push 0x497dc0
push 0
push 0
call fcn.004c8fd6
add esp, 0x18
mov dword [esi + 0x60], eax
lea eax, [esi + 0x88]
lea edi, [eax + 4]
push edi
mov dword [esp + 0xc], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [esp + 0x10], eax
call dword [0x4d52fc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
push ecx
lea eax, [esi + 0x74]
mov dword [esp + 0x14], 1
call fcn.00498080
mov edx, dword [esi + 0x6c]
push edx
call dword [0x4d5318]
push edi
call dword [0x4d52f4]
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x1c
ret
Function at 0x4969b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d18a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push edi
mov ecx, esi
call fcn.00496b80
lea eax, [esi + 0x40]
lea ebp, [eax + 4]
push ebp
mov dword [esp + 0x18], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [esp + 0x1c], eax
call dword [0x4d52fc]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esi + 0xa4]
mov dword [esp + 0x14], edi
call fcn.00498100
push ebp
mov dword [esp + 0x34], 0xffffffff
call dword [0x4d52f4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edi
push edx
push esi
call fcn.00496570
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x496d60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ceba6
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.004c60d0
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x1038]
mov dword fs:[0], eax
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x39]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x40], bl
call fcn.004b0720
add esp, 0xc
push ebx
push ebx
push 0x1000
lea ecx, [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [0x4d5304]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x34]
call fcn.00499ba0
lea eax, [edi + 0x40]
lea ebp, [eax + 4]
push ebp
mov dword [esp + 0x30], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [esp + 0x34], eax
call dword [0x4d52fc]
mov dword [esp + 0x1040], ebx
mov eax, esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x496e12
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x18]
call fcn.00406fb0
mov edx, esi
push edx
mov ebx, edi
mov byte [esp + 0x1044], 1
call fcn.00497bb0
xor ebx, ebx
mov byte [esp + 0x1040], bl
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x496e5d
mov eax, dword [esp + 0x14]
push eax
call fcn.004a91d0
add esp, 4
cmp esi, ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
je 0x496e87
mov dword [esi + 0x58], 1
lea ecx, [esi + 4]
lea esi, [edi + 0xa4]
call fcn.004984a0
push ebp
call dword [0x4d52f4]
mov ecx, dword [esp + 0x1038]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.004a91d5
add esp, 0x1034
ret
Function at 0x49b450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2f0
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x2ec], eax
mov eax, dword [esp + 0x2fc]
push ebx
mov ebx, dword [esp + 0x304]
push ebp
mov ebp, dword [esp + 0x30c]
push esi
mov esi, dword [esp + 0x304]
push edi
mov edi, dword [esp + 0x304]
push 0x64
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.004b0720
mov edx, ebx
shr edx, 8
movzx eax, dl
movzx ecx, bl
shl ecx, 8
or eax, ecx
shl eax, 8
mov edx, ebx
shr edx, 0x10
movzx ecx, dl
or eax, ecx
shl eax, 8
shr ebx, 0x18
or eax, ebx
push eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov edx, eax
shr edx, 0x10
mov ch, dl
mov edx, eax
shr edx, 0x18
mov cl, dl
push ecx
mov ecx, eax
shr ecx, 8
movzx eax, al
movzx edx, cl
shl eax, 8
or edx, eax
push edx
mov ecx, esi
movzx edx, si
mov esi, dword [0x4d5360]
shr ecx, 0x10
push ecx
push edx
push edi
push str._X__X__X__X__X_X
lea eax, [esp + 0x54]
push 0x63
push eax
call esi
lea ecx, [esp + 0x5c]
push ecx
push str.CLSID_sLocalServer32
lea edx, [esp + 0x12c]
push 0x103
push edx
call esi
add esp, 0x40
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xf8]
push ecx
push 0x80000000
call dword [0x4d5004]
test eax, eax
jne 0x49b579
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x104
call dword [0x4d5020]
test eax, eax
je 0x49b57d
mov edx, dword [esp + 0x10]
push edx
call dword [0x4d5018]
xor eax, eax
jmp 0x49b58d
mov eax, dword [esp + 0x10]
push eax
call dword [0x4d5018]
mov eax, 1
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a91d5
add esp, 0x2f0
ret 0x14
Function at 0x49d390
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0049d380
mov edi, eax
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x49d3ae
mov eax, dword [esp + 8]
mov dword [edi + 0x230], eax
pop edi
ret
push str._nMIRACL_error_from_routine
call fcn.0049d580
add esp, 4
mov eax, dword [edi + 0x20]
cmp eax, 0x18
jge 0x49d3d1
mov ecx, dword [edi + eax*4 + 0x24]
mov edx, dword [ecx*4 + section..data]
push edx
jmp 0x49d3d6
push 0x502b18
call fcn.0049d580
add esp, 4
push esi
push 0x5036f0
push 0xa
call fcn.004ab19c
mov esi, dword [edi + 0x20]
add esp, 8
dec esi
js 0x49d43a
lea edi, [edi + esi*4 + 0x24]
push str.______________called_from
call fcn.0049d580
add esp, 4
cmp esi, 0x18
jge 0x49d416
mov eax, dword [edi]
mov ecx, dword [eax*4 + section..data]
push ecx
jmp 0x49d41b
push 0x502b18
call fcn.0049d580
add esp, 4
push 0x5036f0
push 0xa
call fcn.004ab19c
add esp, 8
dec esi
sub edi, 4
test esi, esi
jge 0x49d3f8
mov edx, dword [esp + 0xc]
pop esi
lea eax, [edx - 1]
cmp eax, 0x17
ja case.default.0x49d44b
jmp dword [eax*4 + 0x49d518]
push str.Number_base_too_big_for_representation_n
jmp 0x49d507
push str.Division_by_zero_attempted_n
jmp 0x49d507
push str.Overflow___Number_too_big_n
jmp 0x49d507
push str.Internal_result_is_negative_n
jmp 0x49d507
push str.Input_format_error_n
jmp 0x49d507
push str.Illegal_number_base_n
jmp 0x49d507
push str.Illegal_parameter_usage_n
jmp 0x49d507
push str.Out_of_space_n
jmp 0x49d507
push str.Even_root_of_a_negative_number_n
jmp 0x49d507
push str.Raising_integer_to_negative_power_n
jmp 0x49d507
push str.Attempt_to_take_illegal_root_n
jmp 0x49d507
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x49d507
push str.Flash_overflow_n
jmp 0x49d507
push str.Numbers_too_big_n
jmp 0x49d507
push str.Log_of_a_non_positive_number_n
jmp 0x49d507
push str.Flash_to_double_conversation_failure_n
jmp 0x49d507
push str.I_O_buffer_overflow_n
jmp 0x49d507
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x49d507
push str.Illegal_modulus__n
jmp 0x49d507
push str.No_modulus_defined_n
jmp 0x49d507
push str.Exponent_too_big_n
jmp 0x49d507
push str.Number_Base_must_be_power_of_2_n
jmp 0x49d507
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x49d507
push str.Specified_basis_is_NOT_irreducible_n
call fcn.0049d580
add esp, 4
push 0
call fcn.004af5e2
mov edi, edi
push edx
aam 73
add byte [esp + edx*8 + 0x49], bl
add byte [esi - 0x2c], ah
dec ecx
add byte [eax - 0x2c], dh
dec ecx
add byte [edx - 0x2c], bh
dec ecx
add byte [esp + edx*8 - 0x2b74ffb7], al
dec ecx
add byte [edx - 0x66ffb62c], dl
aam 0x49
add byte [eax - 0x58ffb62c], ah
aam 0x49
add byte [esi - 0x4affb62c], ch
aam 0x49
add byte [esp + edx*8 - 0x2b3cffb7], bh
dec ecx
add dl, cl
aam 0x49
add cl, dl
aam 0x49
add al, bl
aam 0x49
add bh, bl
aam 0x49
add dh, ah
aam 0x49
add ch, ch
aam 0x49
add ah, dh
aam 0x49
add bl, bh
aam 0x49
add byte [edx], al
aad 0x49
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop