joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4290
Capabilities:
Check if file exists
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50e56b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov eax, dword [esi]
push eax
mov ebx, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a42ee
push ebx
mov ecx, 0x516d7c
call fcn.00406c40
jmp 0x4a43b1
push 0x40
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], vtable.CMD5Checksum.0
call fcn.004f0190
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], 0x67452301
mov dword [esp + 0x6c], 0xefcdab89
mov dword [esp + 0x70], 0x98badcfe
mov dword [esp + 0x74], 0x10325476
mov dword [esp + 0x484], edi
mov ecx, dword [esi]
push 0x516da0
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], edi
call fcn.004ef093
mov eax, dword [esp + 0x24]
add esp, 0x18
cmp eax, edi
je 0x4a43a8
push eax
push 0x400
lea eax, [esp + 0x74]
push 1
push eax
call fcn.004ef386
add esp, 0x10
cmp eax, edi
jbe 0x4a439b
lea esp, [esp]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004a4c60
mov edx, dword [esp + 0xc]
push edx
push 0x400
lea eax, [esp + 0x74]
push 1
push eax
call fcn.004ef386
add esp, 0x10
cmp eax, edi
ja 0x4a4370
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004eb9a3
add esp, 4
lea edx, [esp + 0x10]
call fcn.004a4ad0
mov eax, ebx
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004ea10a
add esp, 0x470
ret
Function at 0x4ae940
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x509ab8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi + 4], vtable.ICompressSetInStream.0
mov dword [esi + 8], vtable.ISequentialInStream.0
mov dword [esi + 0xc], vtable.ICompressSetOutStream.0
mov dword [esi + 0x10], vtable.ISequentialOutStream.0
mov dword [esi + 0x14], vtable.IOutStreamFlush.0
mov dword [esi + 0x18], vtable.ICryptoSetPassword.0
mov dword [esi + 0x1c], vtable.ICompressSetCoderProperties.0
mov dword [esi + 0x20], vtable.ICompressWriteCoderProperties.0
mov dword [esi + 0x24], vtable.ICryptoResetInitVector.0
mov dword [esi + 0x28], vtable.ICompressSetDecoderProperties2.0
xor edi, edi
mov dword [esi + 0x2c], edi
mov dword [esi], vtable.CFilterCoder.0
mov dword [esi + 4], vtable.CFilterCoder.1.0
mov dword [esi + 8], vtable.CFilterCoder.2.0
mov dword [esi + 0xc], vtable.CFilterCoder.3.0
mov dword [esi + 0x10], vtable.CFilterCoder.4.0
mov dword [esi + 0x14], vtable.CFilterCoder.5.0
mov dword [esi + 0x18], vtable.CFilterCoder.6.0
mov dword [esi + 0x1c], vtable.CFilterCoder.7.0
mov dword [esi + 0x20], vtable.CFilterCoder.8.0
mov dword [esi + 0x24], vtable.CFilterCoder.9.0
mov dword [esi + 0x28], vtable.CFilterCoder.10.0
mov dword [esi + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
push 4
push 0x1000
push 0x20000
push edi
mov byte [esp + 0x28], 7
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x30], eax
cmp eax, edi
jne 0x4aea50
push 0x52d644
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 1
call fcn.004f048b
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4af710
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50a928
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [edi + 0x10]
or esi, 0xffffffff
cmp eax, esi
je 0x4af74e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4af7c5
mov dword [edi + 0x10], esi
mov eax, dword [edi + 0x18]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], esi
cmp eax, ebp
jbe 0x4af78e
mov ecx, dword [edi + 0x14]
mov ebx, dword [esp + 0x38]
call fcn.004b08c0
test eax, eax
jne 0x4af7ca
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push 0x547d20
push eax
mov ecx, esi
call dword [0x545e74]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
cmp byte [edi + 0x28], 0
je 0x4af86c
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], 0
mov eax, dword [edi + 0x1c]
push eax
lea esi, [esp + 0x14]
call fcn.004db460
test al, al
jne 0x4af7df
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4af7c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
cmp ebp, dword [edi + 0x34]
ja 0x4af863
jb 0x4af7ef
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0x30]
jae 0x4af863
mov eax, dword [edi + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x100000
push eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4af8a6
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4af863
mov ecx, dword [edi + 0x14]
mov ebx, dword [esp + 0x38]
mov eax, esi
call fcn.004b08c0
mov ebx, eax
test ebx, ebx
jne 0x4af8b4
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x14]
push 0x547d20
push esi
call dword [0x545e74]
add dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
adc ebp, ebx
cmp ebp, dword [edi + 0x34]
jb 0x4af7ef
ja 0x4af863
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edi + 0x30]
jb 0x4af7ef
lea esi, [esp + 0x10]
call fcn.004af8e0
mov edx, dword [esp + 0x14]
cmp dword [edi + 0x38], edx
jne 0x4af7c5
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 0x30]
jne 0x4af7c5
cmp ebp, dword [edi + 0x34]
jne 0x4af7c5
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
lea esi, [esp + 0x10]
call fcn.004af8e0
jmp 0x4af7c5
lea esi, [esp + 0x10]
call fcn.004af8e0
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4

Function at 0x4b0920
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4b0960
push 0
push 0
call fcn.004ef509
mov edx, dword [esp + 0x20]
add esp, 0x18
mov dword [edx], eax
test eax, eax
je 0x4b0949
xor eax, eax
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b0958
mov eax, 1
pop ecx
ret 4
Function at 0x4b3c70
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
xor bl, bl
lea eax, [esp + 4]
push eax
mov byte [esi + 0x1c], bl
mov byte [esi + 0x32], 1
mov byte [esi + 0x33], bl
mov byte [esi + 0x34], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
mov byte [esi + 0x37], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
mov byte [esi + 0x40], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x30], bl
mov dword [esi], ecx
mov dword [esi + 0x3c], 5
mov byte [esi + 0x38], 1
mov dword [esi + 4], 4
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
pop ebx
add esp, 0x24
ret

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

Disassembly:
xor edx, edx
push esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], edx
lea esi, [eax + 0x70]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x4b5847
pop esi
ret

Function at 0x4b9d90
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x4b9da0
pop edi
pop ebx
ret

Function at 0x4b9dd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
or ecx, edx
mov edi, edi
add esi, esi
mov ebx, edx
and ebx, esi
add ebx, edx
mov ebp, ecx
shr ebp, 8
add ebp, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + ebp*2]
mov ebp, ecx
shr ebp, 7
and ebp, 1
neg ebp
shr ebx, 4
sar ebp, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [edi + ebx*4]
add ecx, ecx
mov ebx, ecx
xor ebx, esi
not ebx
and edx, ebx
cmp ecx, 0x10000
jb 0x4b9de0
pop esi
pop ebp
pop ebx
ret
Function at 0x4b9f40
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, ecx
xor eax, eax
lea edx, [eax + 1]
test edi, edi
je 0x4b9f82
push ebx
push ebp
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + edx*2]
mov ecx, esi
and ecx, 1
mov ebp, ecx
neg ebp
sar ebp, 4
and ebp, 0x7f
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x18]
add eax, dword [ebp + ebx*4]
add edx, edx
shr esi, 1
or edx, ecx
sub edi, 1
jne 0x4b9f51
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4ba0d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [esp], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
push ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
xor edx, edx
push edi
cmp edx, dword [esp + 0x1c]
jae 0x4ba243
mov eax, edx
or eax, 8
xor edi, edi
cmp eax, 1
je 0x4ba15a
lea ebx, [ebx]
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 4]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x4ba130
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [ecx + edx*4], edi
inc edx
cmp edx, 8
jb 0x4ba114
cmp edx, 0x10
jae 0x4ba1dd
lea eax, [edx - 8]
mov dword [esp + 8], eax
lea esp, [esp]
cmp edx, dword [esp + 0x1c]
jae 0x4ba243
or eax, 8
xor edi, edi
cmp eax, 1
je 0x4ba1c1
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 0x104]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x4ba194
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [esp + 8], eax
cmp edx, 0x10
jb 0x4ba180
cmp edx, dword [esp + 0x1c]
jae 0x4ba243
lea eax, [edx - 0x10]
mov dword [esp + 8], eax
lea ebx, [ebx]
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x4ba226
lea esp, [esp]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x4ba200
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
inc edx
inc eax
mov dword [esp + 8], eax
cmp edx, dword [esp + 0x1c]
jb 0x4ba1f0
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x4bbd40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
lea eax, [edi + 0x32550]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jmp 0x4bbd60
xor edx, edx
lea ecx, [edx + 1]
mov dword [esp + 0xc], 4
lea ecx, [ecx]
movzx ebx, word [edi + ecx*2 + 0x32bf4]
mov eax, esi
and eax, 1
mov ebp, eax
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [edi + ebx*4 + 0x30ea0]
add ecx, ecx
shr esi, 1
or ecx, eax
sub dword [esp + 0xc], 1
jne 0x4bbd70
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x4bbd60
pop esi
pop ebp
mov dword [edi + 0x32590], 0
pop ebx
add esp, 0xc
ret

Function at 0x4bbdd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x210
push ebx
push ebp
push edi
mov edi, 4
lea ebp, [esi + 0x30ea0]
movzx ebx, byte [esi + edi + 0x306a0]
mov ecx, ebx
mov edx, ebx
and edx, 1
shr ecx, 1
or edx, 2
dec ecx
shl edx, cl
mov eax, edi
push ebp
sub eax, edx
sub edx, ebx
lea edx, [esi + edx*2 + 0x32b0e]
push edx
call fcn.004b9f40
mov dword [esp + edi*4 + 0x24], eax
inc edi
add esp, 8
cmp edi, 0x80
jb 0x4bbde4
lea ebp, [esp + 0x1c]
sub ebp, esi
lea eax, [esi + 0x32910]
lea ecx, [esi + 0x31d58]
sub ebp, 0x31d50
lea edi, [esi + 0x31950]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 4
jmp 0x4bbe57
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x32594], ebx
jbe 0x4bbeaf
mov eax, ebx
or eax, 0x40
xor edx, edx
cmp eax, 1
je 0x4bbea3
lea ecx, [ecx]
mov ebp, dword [esp + 0x10]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebp + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edx, dword [esi + ebp*4 + 0x30ea0]
mov eax, ecx
cmp eax, 1
jne 0x4bbe70
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [edi + ebx*4], edx
inc ebx
cmp ebx, dword [esi + 0x32594]
jb 0x4bbe61
mov eax, 0xe
cmp dword [esi + 0x32594], eax
jbe 0x4bbed6
lea esp, [esp]
mov edx, eax
shr edx, 1
sub edx, 5
shl edx, 4
add dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi + 0x32594]
jb 0x4bbec0
mov eax, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi + 4]
mov dword [ecx - 4], edx
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov edx, dword [edi + 0xc]
mov dword [ecx + 4], edx
mov eax, 4
add ecx, 8
jmp 0x4bbf00
movzx edx, byte [esi + eax + 0x306a0]
mov edx, dword [edi + edx*4]
add edx, dword [ecx + ebp]
inc eax
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x80
jb 0x4bbf00
sub dword [esp + 0x10], 0xffffff80
add dword [esp + 0xc], 0x200
sub ebp, 0x200
add edi, 0x100
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ebp
jne 0x4bbe53
pop edi
pop ebp
mov dword [esi + 0x3bcf8], 0
pop ebx
add esp, 0x210
ret

Function at 0x4bcf20
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.004ef509
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4bcf43
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bcf52
mov eax, 1
pop ecx
ret
Function at 0x4c21a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50a165
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [esp + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x10
mov dword [edi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov ecx, 1
mov byte [esp + 0x14], cl
lea esi, [edi + 0x30]
mov dword [edi + 0x28], ecx
mov byte [edi + 0x2c], al
push 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.004ae5d0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4c3810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50a12a
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [edi + 0x30]
push eax
call fcn.004ea5cf
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x14]
add esp, 4
push eax
push ebx
mov ecx, esi
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x5213a4]
mov eax, dword [esi + 0xc]
push eax
call fcn.004ea5cf
add esp, 4
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.004c41d0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4c4a10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50a6a3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [esi], al
lea edi, [ebx + 4]
lea eax, [esi + 4]
call fcn.004b4660
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x10], ecx
mov byte [esp + 0x14], 1
mov edx, dword [ebx + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
lea edi, [ebx + 0x1c]
lea eax, [esi + 0x1c]
call fcn.004b4660
mov cl, byte [ebx + 0x28]
mov byte [esi + 0x28], cl
mov edx, dword [ebx + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0x38]
mov dword [esi + 0x38], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4ca090
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bc78
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [edi + 0x248]
mov eax, dword [edi + 0x240]
mov eax, dword [eax + 4]
lea ecx, [edi + 0x240]
push edx
push ebx
call eax
lea esi, [edi + 0xc]
call fcn.004b3c70
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 4], 4
xor esi, esi
lea esp, [esp]
cmp esi, dword [ebp + 0x14]
jge 0x4ca259
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + esi*4]
lea eax, [ebp - 0x1c]
call fcn.004afb90
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x4ca161
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004ea5cf
add esp, 4
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, esi
shl eax, 4
add eax, dword [ebp + 0x10]
cmp word [ecx], 0x42
jne 0x4ca211
mov edi, 1
cmp edx, edi
jge 0x4ca185
mov edi, edx
test edx, edx
jle 0x4ca19c
sub edx, edi
lea eax, [edx + edx + 2]
push eax
lea edx, [ecx + edi*2]
push edx
push ecx
call fcn.004ee8f0
add esp, 0xc
sub dword [ebp - 0x18], edi
lea ebx, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
call fcn.004ca020
mov edi, eax
test edi, edi
je 0x4ca1cf
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ea5cf
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
add eax, 0x240
call fcn.004c4c10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ea5cf
mov edi, dword [ebp + 8]
add esp, 4
inc esi
jmp 0x4ca110
push eax
lea edx, [edi + 0xc]
push edx
call fcn.004b3cd0
mov ebx, eax
test ebx, ebx
je 0x4ca243
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ea5cf
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ea5cf
add esp, 4
inc esi
jmp 0x4ca110
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d7b60
Capabilities:
Create directory
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f8d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406c40
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x4d7bf5
test al, 0x10
jne 0x4d7c56
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d7bf5
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4d7bdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x4d7c56
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x4d7c56
lea ecx, [esp + 0x14]
call fcn.004152c0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4d7c2c
mov dword [esp + 0x20], ebp
jmp 0x4d7bc6
push eax
call fcn.004d7b60
add esp, 4
test eax, eax
jne 0x4d7c44
lea ecx, [esp + 0x14]
call fcn.00406cf0
jmp 0x4d7bdf
push 0
push esi
call edi
test eax, eax
jne 0x4d7c56
call ebx
cmp eax, 0xb7
jne 0x4d7c39
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4d7c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4d7c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x20], 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d7d22
xor edx, edx
push 0x208
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.004f0190
mov ecx, dword [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x24]
push str.Path:_s__PartSize__d
push edx
call fcn.004ec1b1
mov eax, dword [esp + 0x28]
add esp, 0x1c
add esi, eax
sub edi, eax
je 0x4d7d3c
push 0
lea eax, [esp + 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d7cd5
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004ea10a
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004ea10a
add esp, 0x214
ret