joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7e22
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x57aa49
call fcn.004f894c
push ecx
mov eax, dword [0x64b640]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], eax
mov eax, dword [0x64b640]
and dword [ebp - 4], 0
mov dword [esi + 0x10], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x14], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x18], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x30], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x34], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x38], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x3c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x40], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x44], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x48], eax
mov byte [ebp - 4], 0xa
mov dword [esi], 0x58d73c
call fcn.004c7f58
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4c7ead
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x57aac2
call fcn.004f894c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x58d73c
lea ecx, [esi + 0x48]
mov dword [ebp - 4], 9
call fcn.0054f9b4
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 8
call fcn.0054f9b4
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 7
call fcn.0054f9b4
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 6
call fcn.0054f9b4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 5
call fcn.0054f9b4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 4
call fcn.0054f9b4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0054f9b4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call fcn.0054f9b4
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call fcn.0054f9b4
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0054f9b4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4c7eb8
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x57aac2
call fcn.004f894c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x58d73c
lea ecx, [esi + 0x48]
mov dword [ebp - 4], 9
call fcn.0054f9b4
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 8
call fcn.0054f9b4
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 7
call fcn.0054f9b4
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 6
call fcn.0054f9b4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 5
call fcn.0054f9b4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 4
call fcn.0054f9b4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0054f9b4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call fcn.0054f9b4
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call fcn.0054f9b4
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0054f9b4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4c845e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x57abfc
call fcn.004f894c
push ecx
push ecx
mov eax, dword [0x64b640]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov ebx, str.JSX_V8.dll
and dword [ebp - 4], 0
push ebx
mov esi, 0x5bbfa0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0054cc49
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c84bb
push str.JSX_SM.dll
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push esi
push eax
call fcn.0054cc49
add esp, 0x10
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c850d
lea eax, [ebp + 8]
push eax
call fcn.0042759c
pop ecx
push ebx
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.0054cc49
add esp, 0x10
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c8501
push str.JSX_SM.dll
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push esi
push eax
call fcn.0054cc49
add esp, 0x10
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054f9b4
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
lea ecx, [eax + 0x24]
call fcn.0042675e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0054f9b4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4c92e4
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x57adee
call fcn.004f894c
push ecx
mov eax, dword [0x64b640]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [0x64b640]
and dword [ebp - 4], 0
mov dword [esi + 0x14], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x1c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x20], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x30], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x34], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x38], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x50], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x54], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x58], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x5c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xb
call fcn.0054eed8
mov edi, 0x58d760
mov dword [esi + 0x64], edi
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 0xc
call fcn.0054eed8
mov dword [esi + 0x78], edi
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 0xd
call fcn.0054eed8
mov dword [esi + 0x8c], edi
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 0xe
call fcn.0054eed8
mov dword [esi + 0xa0], edi
mov ecx, esi
mov byte [ebp - 4], 0xf
mov dword [esi], 0x58d758
call fcn.004c947b
push dword [ebp + 8]
mov ecx, ebx
call fcn.0054fb4b
push 0x6533b4
lea ecx, [esi + 0x14]
call fcn.0054fb4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4c9558
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x57aed4
call fcn.004f894c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x58d758
and dword [ebp - 4], 0
lea ebx, [esi + 0xa0]
mov edi, 0x58d760
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
mov ecx, ebx
mov byte [ebp - 4], 0xf
call fcn.004c941d
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.0054ef0b
lea ebx, [esi + 0x8c]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.004c941d
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.0054ef0b
lea ebx, [esi + 0x78]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.004c941d
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.0054ef0b
lea ebx, [esi + 0x64]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
mov ecx, ebx
mov byte [ebp - 4], 0x12
call fcn.004c941d
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.0054ef0b
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0xa
call fcn.0054f9b4
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 9
call fcn.0054f9b4
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 8
call fcn.0054f9b4
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 7
call fcn.0054f9b4
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 6
call fcn.0054f9b4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 5
call fcn.0054f9b4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 4
call fcn.0054f9b4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.0054f9b4
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.0054f9b4
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
call fcn.0054f9b4
and byte [ebp - 4], 0
lea ecx, [esi + 0x14]
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x10]
call fcn.0054f9b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4cb0ab
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x57b261
call fcn.004f894c
push ecx
mov eax, dword [0x64b640]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [ecx], eax
mov eax, dword [0x64b640]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x1c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x3c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x40], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x44], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x48], eax
mov edi, 0x6533b4
mov byte [ebp - 4], 6
push edi
mov dword [esi], ebx
mov dword [esi + 4], 1
call fcn.0054fb4b
push edi
lea ecx, [esi + 0xc]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x1c]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x3c]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 0x14
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x40]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x44]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x48]
call fcn.0054fb4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4cd9eb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
cmp dword [ebp + 0x6c], ebx
jle 0x4cdbca
push esi
push edi
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, ebx
je 0x4cdbb7
push dword [esi + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.004ce6a9
mov edi, eax
cmp edi, ebx
je 0x4cdbb7
push dword [edi + 0x10]
lea ecx, [esi + 0x14]
call fcn.0054fb4b
push dword [edi + 0xc]
lea ecx, [esi + 8]
call fcn.0054fb4b
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x4cda68
push 0x5bca3c
push eax
call fcn.004f8a05
pop ecx
test eax, eax
pop ecx
jne 0x4cda68
cmp dword [edi + 0x30], 0xffffffff
jne 0x4cda68
or dword [esi + 4], 0x10
mov eax, 0x1000000
test dword [edi + 0x44], eax
je 0x4cda75
or dword [esi + 4], eax
cmp dword [edi + 0x14], 0xa
jne 0x4cda7f
or byte [esi + 5], 1
test byte [edi + 0x44], 1
je 0x4cda89
or dword [esi + 4], 1
push dword [edi + 0x1c]
lea ecx, [esi + 0x6c]
call fcn.0054fb4b
cmp dword [esi + 0x74], ebx
je 0x4cda9e
cmp dword [esi + 0x78], ebx
jne 0x4cdb16
mov eax, dword [edi]
cmp eax, ebx
je 0x4cdb01
push 0x64320c
push eax
call fcn.004f8a05
pop ecx
test eax, eax
pop ecx
je 0x4cdac7
push 0x643204
push dword [edi]
call fcn.004f8a05
pop ecx
test eax, eax
pop ecx
jne 0x4cdb01
mov eax, dword [esi + 0x70]
mov ecx, 0x10e0
cmp eax, ecx
jne 0x4cdadc
mov dword [esi + 0x74], 0x1e00
jmp 0x4cdafe
mov ecx, 0xa8c
cmp eax, ecx
jne 0x4cdaee
mov dword [esi + 0x74], 0x1400
jmp 0x4cdafe
mov ecx, 0x870
cmp eax, ecx
jne 0x4cdb01
mov dword [esi + 0x74], 0xf00
mov dword [esi + 0x78], ecx
cmp dword [esi + 0x70], ebx
jne 0x4cdb21
push dword [esi + 0x78]
push dword [esi + 0x74]
call fcn.00431218
pop ecx
mov dword [esi + 0x70], eax
pop ecx
cmp dword [esi + 0x70], ebx
jne 0x4cdb21
mov eax, dword [edi + 0x20]
mov dword [esi + 0x70], eax
cmp dword [esi + 0x74], ebx
jne 0x4cdb2c
mov eax, dword [edi + 0x24]
mov dword [esi + 0x74], eax
cmp dword [esi + 0x78], ebx
jne 0x4cdb37
mov eax, dword [edi + 0x28]
mov dword [esi + 0x78], eax
fld qword [esi + 0x80]
fcomp qword [0x585ea8]
lea ecx, [esi + 0x80]
fnstsw ax
sahf
jne 0x4cdb53
fld dword [edi + 0x2c]
fstp qword [ecx]
cmp dword [esi + 0x90], ebx
jne 0x4cdb72
mov eax, dword [esi + 0x9c]
cmp eax, ebx
jle 0x4cdb72
push eax
call fcn.00431240
pop ecx
mov dword [esi + 0x90], eax
push dword [edi + 0x34]
lea ecx, [esi + 0x8c]
call fcn.0054fb4b
cmp dword [esi + 0x90], ebx
jne 0x4cdb91
mov eax, dword [edi + 0x38]
mov dword [esi + 0x90], eax
cmp dword [esi + 0x94], ebx
lea eax, [esi + 0x94]
jne 0x4cdba4
mov ecx, dword [edi + 0x3c]
mov dword [eax], ecx
cmp dword [esi + 0x98], ebx
lea eax, [esi + 0x98]
jne 0x4cdbb7
mov ecx, dword [edi + 0x40]
mov dword [eax], ecx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x6c]
jl 0x4cda08
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4cf169
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x57b677
call fcn.004f894c
sub esp, 0xe0
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.0054eed8
mov ebx, 0x58dae8
mov dword [ebp - 0x30], ebx
and dword [ebp - 4], 0
push 0x4c
call fcn.0054ffa3
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
test esi, esi
mov byte [ebp - 4], 1
je 0x4cf1b8
mov ecx, esi
call fcn.004cf37a
mov dword [esi], 0x58dae0
jmp 0x4cf1ba
xor esi, esi
mov eax, dword [esi]
and byte [ebp - 4], 0
mov ecx, esi
call dword [eax]
test eax, eax
je 0x4cf1dc
test esi, esi
je 0x4cf238
mov ecx, esi
call fcn.004cf4c1
push esi
call fcn.0054ffcc
pop ecx
jmp 0x4cf238
push esi
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.0054eeb1
lea eax, [esi + 0x20]
push 0x5bbf9c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0054fc59
add esi, 0x24
mov byte [ebp - 4], 2
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0054fbf3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0054f9b4
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cf22c
mov dword [ebp - 0x18], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054f9b4
push 0x4c
call fcn.0054ffa3
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
test esi, esi
mov byte [ebp - 4], 5
je 0x4cf25c
mov ecx, esi
call fcn.004cf37a
mov dword [esi], 0x58dad8
jmp 0x4cf25e
xor esi, esi
mov eax, dword [esi]
and byte [ebp - 4], 0
mov ecx, esi
call dword [eax]
test eax, eax
je 0x4cf280
test esi, esi
je 0x4cf28c
mov ecx, esi
call fcn.004cf4c1
push esi
call fcn.0054ffcc
pop ecx
jmp 0x4cf28c
push esi
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.0054eeb1
lea eax, [ebp - 0x1c]
push eax
call fcn.0054cea6
cmp dword [ebp - 0x18], 0
mov edi, str.LastServicesUpdate
mov esi, str.Settings
jne 0x4cf2ef
cmp dword [ebp + 8], 0
je 0x4cf2ef
call fcn.00564020
mov eax, dword [eax + 4]
push 0
push edi
push esi
mov ecx, eax
call fcn.00564205
push dword [0x653418]
push eax
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.004237a3
call fcn.0042385c
add esp, 0xc
test eax, eax
jne 0x4cf2ef
mov dword [ebp - 0x30], ebx
push 1
mov dword [ebp - 4], 6
pop esi
jmp 0x4cf355
call fcn.00564020
push dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov ecx, eax
push edi
push esi
call fcn.0055a87b
xor esi, esi
lea eax, [ebp - 0x30]
push esi
lea ecx, [ebp - 0xec]
push dword [ebp + 8]
push str.Update_Download_Engine
push eax
call fcn.004cf599
mov eax, dword [0x653414]
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], eax
call fcn.00554959
mov eax, dword [ebp - 0x38]
and byte [ebp - 4], 0
lea ecx, [ebp - 0xec]
mov dword [0x653414], eax
call fcn.004cf654
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.004cf465
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0054ef0b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4cf37a
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x57b6bb
call fcn.004f894c
push ecx
mov eax, dword [0x64b640]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x64b640]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x20], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x24], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x38], eax
mov edi, 0x6533b4
mov byte [ebp - 4], 4
push edi
mov dword [esi], method.Json::Writer.virtual_4
call fcn.0054fb4b
push edi
lea ecx, [esi + 8]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x24]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
call fcn.0054fb4b
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4cfda4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov esi, ecx
push ebx
push 0x402
push dword [esi + 0x94]
call edi
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x8000000
push 2
push ebx
push 3
push 0x40000000
push dword [esp + 0x40]
call ebp
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4cfe10
push ebx
push 0x8000000
push 3
push ebx
push 3
push SysReAllocString
push dword [esp + 0x3c]
call ebp
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x4cfe18
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4cfecd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebx
push 0x406
push dword [esi + 0x94]
call edi
mov ebp, 0x1000
mov dword [esp + 0x14], ebx
push ebp
call fcn.004f95ce
pop ecx
mov dword [esp + 0x24], eax
cmp dword [esi + 0x68], ebx
jne 0x4cfea0
lea eax, [esp + 0x28]
push ebx
push eax
push ebp
push dword [esp + 0x30]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cfea0
cmp dword [esp + 0x28], ebx
jbe 0x4cfe7f
lea eax, [esp + 0x1c]
push ebx
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
push ebx
add eax, dword [esp + 0x20]
push eax
push 0x402
push dword [esi + 0x94]
mov dword [esp + 0x24], eax
call edi
cmp dword [esp + 0x28], ebp
jae 0x4cfe43
push dword [esp + 0x24]
call fcn.004f90a4
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [esp + 0x18]
call ebp
push dword [esp + 0x10]
call ebp
push ebx
push ebx
push 0x402
push dword [esi + 0x94]
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4df9b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.004d2e20
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x4df9e2
mov dword [esp + 0x2c], 0
jmp 0x4df9fd
mov ecx, ebp
call fcn.004d2e20
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.004d2e20
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.004d2e30
cmp eax, esi
jae 0x4dfa3d
mov ecx, ebp
call fcn.004d2e30
mov dword [esp + 0x10], eax
jmp 0x4dfa41
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.004d2c50
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4dfaad
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4dfaa8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.004d40d0
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4dfa9b
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.004d4540
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4dfa68
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x4dfa56
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4ec278
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x653e30]
cmp dword [eax + 0x224], 0
je 0x4ec291
mov ecx, dword [esp + 4]
mov dword [eax + 0x228], ecx
ret
push ebp
push esi
push edi
push str._nMIRACL_error_from_routine
call fcn.004ec4ac
pop ecx
mov eax, dword [0x653e30]
mov ecx, dword [eax + 0x1c]
mov ebp, 0x64b2c8
cmp ecx, 0x18
jge 0x4ec2be
mov eax, dword [eax + ecx*4 + 0x20]
push dword [eax*4 + 0x64a010]
jmp 0x4ec2bf
push ebp
call fcn.004ec4ac
pop ecx
mov edi, 0x64c140
push edi
push 0xa
call fcn.004fbfa5
mov eax, dword [0x653e30]
pop ecx
pop ecx
mov esi, dword [eax + 0x1c]
dec esi
js 0x4ec322
push ebx
lea ebx, [esi*4 + 0x20]
push str.______________called_from
call fcn.004ec4ac
cmp esi, 0x18
pop ecx
jge 0x4ec308
mov eax, dword [0x653e30]
mov eax, dword [ebx + eax]
push dword [eax*4 + 0x64a010]
jmp 0x4ec309
push ebp
call fcn.004ec4ac
pop ecx
push edi
push 0xa
call fcn.004fbfa5
dec esi
pop ecx
sub ebx, 4
pop ecx
test esi, esi
jge 0x4ec2e7
pop ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
cmp eax, 0x1c
pop ebp
ja case.default.0x4ec333
jmp dword [eax*4 + 0x4ec438]
push str.Number_base_too_big_for_representation_n
jmp 0x4ec42b
push str.Division_by_zero_attempted_n
jmp 0x4ec42b
push str.Overflow___Number_too_big_n
jmp 0x4ec42b
push str.Internal_result_is_negative_n
jmp 0x4ec42b
push str.Input_format_error_n
jmp 0x4ec42b
push str.Illegal_number_base_n
jmp 0x4ec42b
push str.Illegal_parameter_usage_n
jmp 0x4ec42b
push str.Out_of_space_n
jmp 0x4ec42b
push str.Even_root_of_a_negative_number_n
jmp 0x4ec42b
push str.Raising_integer_to_negative_power_n
jmp 0x4ec42b
push str.Attempt_to_take_illegal_root_n
jmp 0x4ec42b
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x4ec42b
push str.Flash_overflow_n
jmp 0x4ec42b
push str.Numbers_too_big_n
jmp 0x4ec42b
push str.Log_of_a_non_positive_number_n
jmp 0x4ec42b
push str.Flash_to_double_conversion_failure_n
jmp 0x4ec42b
push str.I_O_buffer_overflow_n
jmp 0x4ec42b
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x4ec42b
push str.Illegal_modulus__n
jmp 0x4ec42b
push str.No_modulus_defined_n
jmp 0x4ec42b
push str.Exponent_too_big_n
jmp 0x4ec42b
push str.Unsupported_Feature___check_mirdef.h_n
jmp 0x4ec42b
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x4ec42b
push str.Specified_basis_is_NOT_irreducible_n
jmp 0x4ec42b
push str.Unable_to_control_Floating_point_rounding_n
jmp 0x4ec42b
push str.Base_must_be_binary__MR_ALWAYS_BINARY_defined_in_mirdef.h____n
jmp 0x4ec42b
push str.No_irreducible_basis_defined_n
jmp 0x4ec42b
push str.Composite_modulus_n
jmp 0x4ec42b
push str.Input_output_error_when_reading_from_RNG_device_node_n
jmp 0x4ec42b
push str.Undefined_error_n
call fcn.004ec4ac
pop ecx
push 0
call fcn.004f8ecc
cmp al, bl
dec esi
add byte [ebx + eax*8 + 0x4e], al
add byte [esi - 0x3d], cl
dec esi
add byte [eax - 0x3d], bl
dec esi
add byte [edx - 0x3d], ah
dec esi
add byte [ebx + eax*8 + 0x4e], ch
add byte [esi - 0x3d], dh
dec esi
add byte [eax - 0x75ffb13d], al
ret
Function at 0x4f3750
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, dword [edi]
test esi, esi
je 0x4f37bd
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [edi], 0
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4f377b
mov eax, esi
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
add ebx, ecx
sub esi, ecx
add edx, ecx
test eax, eax
mov dword [edi], edx
je 0x4f37b2
test ecx, ecx
je 0x4f37bd
test esi, esi
jbe 0x4f37bd
jmp 0x4f376c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

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

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x6566a0
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x4f39a0
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x656aa0
jb 0x4f3999
cmp esi, 0x800
jae 0x4f39fa
lea ecx, [esi*4 + 0x6566a0]
mov eax, dword [ecx - 0x400]
add ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x6566a0]
xor edx, eax
cmp ecx, 0x6586a0
mov dword [ecx - 4], edx
jb 0x4f39d2
mov dword [0x653e34], fcn.004f4660
call fcn.004f4840
pop edi
pop esi
test eax, eax
jne 0x4f3a19
mov dword [0x653e34], 0x4f4710
ret