joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4110
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x10]
add eax, 3
shr eax, 2
lea eax, [eax + eax*2]
push eax
call fcn.004bee3b
mov ecx, ebx
add esp, 4
mov esi, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4b413c
mov ecx, dword [ecx]
mov ebx, dword [ebx + 0x10]
lea eax, [ebx - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x4b4159
lea esp, [esp]
lea eax, [eax - 1]
dec ebx
cmp byte [eax], 0x3d
je 0x4b4150
push edi
xor edi, edi
test ebx, ebx
je 0x4b41f6
mov eax, 1
mov dword [ebp + 8], 2
sub eax, ecx
lea edx, [ecx + 2]
mov dword [ebp - 8], eax
lea eax, [ebx - 1]
shr eax, 2
inc eax
mov dword [ebp - 4], eax
movsx eax, byte [edx - 1]
mov ch, byte [eax + 0x514578]
movsx eax, byte [edx - 2]
mov cl, byte [eax + 0x514578]
mov al, ch
sar al, 4
and al, 3
shl cl, 2
or cl, al
mov eax, dword [ebp + 8]
mov byte [edi + esi], cl
inc edi
cmp eax, ebx
jae 0x4b41e7
movsx eax, byte [edx]
shl ch, 4
mov cl, byte [eax + 0x514578]
mov al, cl
sar al, 2
and al, 0xf
or al, ch
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp - 8]
add eax, edx
cmp eax, ebx
jae 0x4b41e4
movsx eax, byte [edx + 1]
shl cl, 6
mov al, byte [eax + 0x514578]
and al, 0x3f
or al, cl
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp + 8]
add eax, 4
add edx, 4
sub dword [ebp - 4], 1
mov dword [ebp + 8], eax
jne 0x4b4182
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b41ff
mov dword [eax], edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4b4222
lea eax, [ebp + 8]
cmp ecx, eax
je 0x4b4222
mov edx, dword [ecx]
mov eax, esi
xor esi, esi
mov dword [ecx], eax
test edx, edx
je 0x4b4222
push edx
call fcn.004bee44
add esp, 4
test edi, edi
pop edi
setne bl
test esi, esi
je 0x4b4235
push esi
call fcn.004bee44
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004bf8f0
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1008]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push edx
push 0x20219
push 0
push eax
push ecx
mov dword [ebp - 0x1008], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b7073
push 0x1000
push eax
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1004]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1010], 0x1000
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0
push esi
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4b7031
cmp dword [ebp - 0x100c], 1
jne 0x4b7073
lea edx, [ebp - 0x1004]
lea esi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b7040
sub edx, esi
lea eax, [ebp - 0x1004]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004033b0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4b74c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], ebx
push esi
test ecx, ecx
jne 0x4b74f9
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b74f0
sub ecx, esi
push edi
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x54], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.00478ba0
cmp byte [ebp - 0x54], 0
jne 0x4b7679
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xc]
mov edi, dword [ebp - 0xac]
lea esi, [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x54], 1
mov dword [ebp - 0xc0], eax
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 4]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4b75a0
mov edx, edi
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0xbc]
push eax
push 0x5146f0
call fcn.00478ba0
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00478ba0
lea edx, [ebp - 0x64]
lea esi, [ebp - 0xbc]
mov edi, edi
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 0x54]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4b7610
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
push 0x42
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edi, [ebp - 0x50]
xor esi, esi
mov edi, edi
movzx eax, byte [ebp + esi - 0x64]
push eax
push str._02x
push 3
push 3
push edi
call fcn.004135e0
inc esi
add esp, 0x14
add edi, 4
cmp esi, 0x10
jl 0x4b7690
xor eax, eax
mov dword [ebx + 0x10], 0
lea ecx, [ebp - 0x50]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea edx, [ecx + 2]
pop edi
jmp 0x4b76d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b76d0
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004033b0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4b9fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x4ba05a
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004033b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4bd450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.InfoHD3_C
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x4bd4da
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi], ax
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004033b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4be810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x4be84d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be844
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x54], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.00478ba0
cmp byte [ebp - 0x54], 0
jne 0x4be9d3
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xc]
mov ebx, dword [ebp - 0xbc]
lea esi, [ebp - 0xac]
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x54], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc0], eax
jmp 0x4be900
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 4]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4be900
mov edx, edi
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0xbc]
push eax
push 0x514ce8
call fcn.00478ba0
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00478ba0
lea edx, [ebp - 0x64]
lea esi, [ebp - 0xbc]
mov edi, edi
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 0x54]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4be970
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
push 0x42
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ebx, [ebp - 0x50]
xor edi, edi
xor esi, esi
lea ebx, [ebx]
movzx eax, byte [ebp + edi - 0x64]
push eax
push str._02x
mov eax, 0x21
push 2
sub eax, esi
push eax
push ebx
call fcn.004135e0
add esi, 2
lea edi, [edi + 1]
add esp, 0x14
add ebx, 4
cmp esi, 0x20
jl 0x4be9f0
mov ebx, dword [ebp - 0xd0]
lea ecx, [ebp - 0x50]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x4bea40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bea40
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004033b0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4c0d30
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea1c9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0xf
mov byte [esi + 0x58], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0xf
mov byte [esi + 0x70], 0
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea eax, [edx + 1]
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4c0e06
sub edx, dword [ebp + 8]
push edx
push edi
call fcn.0041ac00
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4c0e20
sub edx, ecx
lea ecx, [esi + 0x58]
push edx
push edi
call fcn.0041ac00
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c0e40
sub edx, ecx
lea ecx, [esi + 0x70]
push edx
push edi
call fcn.0041ac00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c0e70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea203
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x4eecd8
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0041ac00
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c2ce0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x4c2cfd
push ebx
push ebx
push ebx
push 2
call fcn.004c6380
pop edi
xor al, al
pop ebx
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x4c2d14
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x4c2d05
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebp
push 2
push 0
push ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jg 0x4c2d6d
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.004c6380
pop ebp
pop esi
pop edi
xor al, al
pop ebx
ret 8
lea eax, [ebp + 1]
push eax
call fcn.004bee3b
push ebx
mov esi, eax
push 1
push ebp
push esi
mov byte [esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4c2daf
push esi
call fcn.004bee44
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.004c6380
pop ebp
pop esi
pop edi
xor al, al
pop ebx
ret 8
mov byte [esi + ebp], 0
mov eax, esi
mov dl, byte [esi]
mov ecx, esi
test dl, dl
je 0x4c2dde
nop dword [eax]
inc eax
lea ebx, [ecx + 1]
cmp dl, 0xd
jne 0x4c2dd4
mov byte [ecx], 0xa
cmp byte [eax], 0xa
jne 0x4c2dd6
inc eax
jmp 0x4c2dd6
mov byte [ecx], dl
mov dl, byte [eax]
mov ecx, ebx
test dl, dl
jne 0x4c2dc0
push dword [esp + 0x18]
mov byte [ecx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
call dword [eax + 8]
push esi
call fcn.004bee44
add esp, 4
cmp byte [edi + 0x40], 0
sete al
pop ebp
pop esi
pop edi
pop ebx
ret 8
Function at 0x4d1820
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x53d9f8]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push esi
mov esi, dword [esp + 0x420]
test esi, esi
je 0x4d185d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d185d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4d193e
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4d187c
cmp dx, 0x5c
jne 0x4d187e
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4d1870
cmp edi, ebx
je 0x4d18ce
sub edi, ebx
lea eax, [esp + 0x214]
and edi, 0xfffffffe
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp edi, 0x208
jae 0x4d1955
xor eax, eax
mov word [esp + edi + 0x214], ax
lea eax, [esp + 0x214]
push eax
push esi
call fcn.004d1820
add esp, 8
xor eax, eax
mov word [esp + 0xc], ax
test esi, esi
je 0x4d18f0
lea ecx, [esp + 0xc]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4d18e0
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4d18f2
lea edi, [esp + 0xc]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d1906
mov ecx, ebx
lea eax, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d193d
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.004bee49
add esp, 0x414
ret
call fcn.004bf80d
int3
Function at 0x4d1ff0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
cmp dword [ebx], 0
jne 0x4d219d
cmp dword [ebx + 4], 0xffffffff
jne 0x4d219d
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d2023
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4d2063
cmp eax, 0x2f
je 0x4d2063
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4d2050
mov eax, dword [0x4f0efc]
mov dword [edi], eax
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 1
jne 0x4d2093
push 1
push 0
push 0
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4d20aa
pop esi
pop ebp
pop edi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
cmp edi, 2
je 0x4d20aa
cmp edi, 3
je 0x4d20aa
pop esi
pop ebp
pop edi
mov eax, 0x10000
pop ebx
pop ecx
ret 0xc
xor ebx, ebx
xor al, al
mov byte [esp + 0x18], al
mov byte [esp + 0x20], bl
cmp edi, 1
je 0x4d20f2
cmp edi, 2
jne 0x4d210c
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d20eb
pop esi
pop ebp
pop edi
mov eax, 0x200
pop ebx
pop ecx
ret 0xc
mov byte [esp + 0x20], 1
jmp 0x4d20f9
mov ebx, ebp
mov byte [esp + 0x20], 0
push 1
push 0
push 0
push ebx
call esi
cmp eax, 0xffffffff
setne al
mov byte [esp + 0x18], al
push 0x20
call fcn.004bedfd
add esp, 4
mov esi, eax
cmp edi, 1
je 0x4d2145
cmp edi, 2
je 0x4d2145
mov eax, dword [esp + 0x1c]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x4d2178
mov al, byte [esp + 0x20]
mov byte [esi + 0x10], al
mov al, byte [esp + 0x18]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x4d2178
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.004d5450
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
pop esi
test eax, eax
pop ebp
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
pop ecx
ret 0xc
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc
Function at 0x4d5040
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ebp
imul ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp byte [edi], 0
je 0x4d5080
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esp + 0x1c]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d5074
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
xor edx, edx
pop edi
div ebp
pop ebp
pop ebx
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x14]
push esi
mov esi, dword [edi + 0x18]
lea eax, [edx + ebx]
sub esi, edx
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebp
pop esi
pop edi
pop ebp
pop ebx
ret

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4d50cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not eax
cmp esi, 8
jb 0x4d518c
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
sub edi, 1
jne 0x4d50e5
pop edi
test esi, esi
je 0x4d51aa
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x517990]
sub esi, 1
jne 0x4d5190
not eax
pop esi
ret