joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d05e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4d06fb
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d06fb
mov edi, dword [ebp + 0xc]
xor edx, edx
push 3
lea eax, [edi + 2]
pop ebx
div ebx
shl eax, 2
inc eax
cmp dword [ecx], eax
jae 0x4d061b
mov dword [ecx], eax
push 2
pop eax
jmp 0x4d06fe
mov ecx, dword [ebp + 0x10]
push 3
test ecx, ecx
je 0x4d0615
xor edx, edx
mov eax, edi
pop ebx
div ebx
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4d069c
dec eax
push 3
pop edi
div edi
mov edi, eax
inc edi
mov edx, edi
imul edx, edx, 3
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and eax, 0xf
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
dec edi
jne 0x4d0642
mov edi, dword [ebp + 0xc]
cmp edx, edi
jae 0x4d06ec
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x4d06ae
movzx esi, byte [esi + 1]
jmp 0x4d06b0
xor esi, esi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, esi
shr ebx, 4
mov al, byte [eax + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, edi
jae 0x4d06e3
and esi, 0xf
mov al, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Basic]
jmp 0x4d06e5
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x4d06fe
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d3252
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4d336a
cmp dword [ebp + 0x10], 0
je 0x4d336a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4d336a
mov esi, dword [ebp + 0xc]
push 3
xor edx, edx
lea eax, [esi + 2]
pop ebx
div ebx
lea eax, [eax*4 + 1]
cmp dword [ecx], eax
jae 0x4d3298
push 2
pop eax
jmp 0x4d336d
mov eax, esi
xor edx, edx
push 3
pop esi
div esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4d3311
dec eax
push 3
pop ebx
div ebx
inc eax
mov edx, eax
mov dword [ebp + 8], eax
imul edx, edx, 3
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + esi]
mov byte [ecx], al
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
and eax, 3
shl eax, 4
add eax, esi
shr ebx, 4
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
movzx ebx, byte [edi + 2]
movzx eax, byte [edi + 1]
and eax, 0xf
shr ebx, 6
add ebx, esi
mov al, byte [ebx + eax*4]
inc ecx
mov byte [ecx], al
movzx eax, byte [edi + 2]
and eax, 0x3f
mov al, byte [eax + esi]
inc ecx
mov byte [ecx], al
inc ecx
add edi, 3
dec dword [ebp + 8]
jne 0x4d32c2
cmp edx, dword [ebp + 0xc]
jae 0x4d335b
movzx eax, byte [edi]
inc edx
cmp edx, dword [ebp + 0xc]
jae 0x4d3325
movzx edi, byte [edi + 1]
jmp 0x4d3327
xor edi, edi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, edi
shr ebx, 4
add eax, esi
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, dword [ebp + 0xc]
jae 0x4d3352
and edi, 0xf
mov al, byte [esi + edi*4]
jmp 0x4d3354
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x4d336d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4dd182
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, edx
mov eax, edx
xor eax, dword [esp + 0xc]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x4dd1b9
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x4dd198
pop edi
pop esi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x54ade3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.005011ab
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4e3e01
mov eax, dword [esi + 0x1c]
push eax
call fcn.00511b06
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4e5170
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x4e518b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4e5480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54b2c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov word [eax + 4], si
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x30], ecx
mov word [eax + 0x20], dx
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4e5730
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x54b37b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x59b364]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x2a0]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2b0]
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
push edi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.0040d1d5
mov eax, dword [esp + 0x30]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x4e5843
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4e57de
call fcn.00513531
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4e57ed
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x5c
je 0x4e583c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4e5804
call fcn.00513531
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4e5813
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x2f
je 0x4e583c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4e5826
call fcn.00513531
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4e5835
lea eax, [esp + 0x20]
cmp word [eax + edi*2], 0x3a
jne 0x4e5843
mov edx, 0x567b24
jmp 0x4e5848
mov edx, 0x567b1c
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e5850
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004e3830
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x4e587d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4e58db
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x4e58b0
call edi
cmp eax, 0x12
je 0x4e58b0
call edi
mov esi, eax
jmp 0x4e58b2
xor esi, esi
call fcn.005002e0
cmp dword [esp + 0x34], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x4e58d4
mov edx, dword [esp + 0x20]
push edx
call fcn.00511b06
add esp, 4
mov eax, edi
jmp 0x4e5961
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e58e2
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004537bd
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x4e591a
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x4e593a
test al, 0x10
je 0x4e592d
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x4e593a
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
cmp dword [esp + 0x34], edi
jb 0x4e595f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00511b06
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.005139d8
add esp, 0x284
ret
Function at 0x4e62a0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x54b490
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x4e62f8
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4e62e4
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
cmp eax, 3
je 0x4e6373
cmp eax, 0xb
je 0x4e6373
push str.boost::filesystem::remove
lea ecx, [esp + 0x2c]
call fcn.004020cc
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
push ecx
push eax
push eax
mov dword [esp + 0x5c], 1
call fcn.004e5170
add esp, 4
test al, al
sete dl
movzx eax, dl
push eax
call fcn.004e6110
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x4e6357
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00511b06
add esp, 4
test bl, bl
je 0x4e63f2
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
push 0x19
xor esi, esi
push str.boost::filesystem::remove
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
call fcn.004029ca
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], 8
jb 0x4e63a9
mov eax, dword [esi + 4]
jmp 0x4e63ac
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x5c]
test eax, eax
setne al
lea edx, [esp + 0xc]
push edx
test al, al
sete dl
push ecx
movzx eax, dl
push esi
push eax
call fcn.004e6110
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x4e63ea
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00511b06
add esp, 4
test bl, bl
jne 0x4e62e4
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x4e6530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x18], 8
push edi
jb 0x4e6541
mov eax, dword [ebx + 4]
jmp 0x4e6544
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e656a
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.004e6410
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4e6581
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4e65b4
push ebx
call fcn.004e51a0
add esp, 4
test al, al
je 0x4e65ac
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
ret
pop edi
mov eax, 9
pop ebx
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
ret
Function at 0x4e65d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x54b4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0x1c
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.004029ca
mov edx, dword [esp + 0x3c]
mov ecx, 8
mov dword [esp + 0x30], 0
cmp dword [edx + 0x18], ecx
jb 0x4e6635
mov esi, dword [edx + 4]
jmp 0x4e6638
lea esi, [edx + 4]
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x18], ecx
jb 0x4e6646
mov ecx, dword [eax + 4]
jmp 0x4e6649
lea ecx, [eax + 4]
lea edi, [esp + 0xc]
push edi
mov edi, dword [esp + 0x48]
push edi
push edx
push eax
xor eax, eax
cmp dword [esp + 0x50], eax
sete al
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete cl
movzx edx, cl
push edx
call fcn.004e6190
add esp, 0x14
cmp dword [esp + 0x24], 0x10
jb 0x4e668c
mov eax, dword [esp + 0x10]
push eax
call fcn.00511b06
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4e6920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54b580
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x4e6957
mov eax, dword [esi]
jmp 0x4e6959
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e698f
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
push eax
push edi
push esi
call fcn.004e6410
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
test ebx, 0x400
je 0x4e6a8e
cmp dword [edi + 0x18], 8
jb 0x4e69a9
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
jmp 0x4e69ad
mov dword [esp + 0x40], esi
push 0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
call fcn.004e4980
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 0
jae 0x4e69d4
lea eax, [esp + 0x14]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x40], esi
cmp dword [esp + 0x28], 8
mov byte [esp + 0x34], 2
jb 0x4e6a09
mov eax, dword [esp + 0x14]
push eax
call fcn.00511b06
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp esi, 0xffffffff
jne 0x4e6a4d
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
push edx
push edi
push esi
call fcn.004e6410
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
push edi
call fcn.004e51a0
add esp, 4
mov dword [esp + 0x34], 0xffffffff
push esi
test al, al
jne 0x4e6a88
mov edi, dword [esp + 0x40]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4e6aa4
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 3
test bl, 0x10
jne 0x4e6abd
mov dword [esp + 0x40], 2
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x4e6ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x18], 8
jb 0x4e6af2
mov eax, dword [edi + 4]
jmp 0x4e6af5
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e6b1c
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push edi
push esi
call fcn.004e6410
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4e6b32
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
test ebx, 0x400
je 0x4e6b67
push edi
call fcn.004e51a0
add esp, 4
test al, al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
jne 0x4e6b5b
mov dword [esp + 0x14], 9
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 3
test bl, 0x10
jne 0x4e6b80
mov dword [esp + 0x14], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebx
ret

Function at 0x4e6f10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x54b608
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x9c]
cmp dword [esi + 0x18], 8
jb 0x4e6f4b
mov eax, dword [esi + 4]
jmp 0x4e6f4e
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4e6f7b
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x4e6f74
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
mov al, 1
jmp 0x4e7014
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.005002e0
cmp ebx, 0xb7
jne 0x4e6fc3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.004e6920
add esp, 0xc
cmp dword [eax], 3
jne 0x4e6fc3
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x4e7012
mov dword [esi], 0
call fcn.005002e0
mov dword [esi + 4], eax
jmp 0x4e7012
mov edi, dword [esp + 0xa0]
test edi, edi
jne 0x4e7008
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x20]
call fcn.004020cc
mov dword [esp + 0x94], edi
call fcn.005002e0
push eax
push ebx
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x48]
call fcn.004e5eb0
push 0x58be34
lea eax, [esp + 0x3c]
push eax
call fcn.005135a6
call fcn.005002e0
mov dword [edi], ebx
mov dword [edi + 4], eax
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
ret
Function at 0x4e77e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54b748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x59b364]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x4c]
mov esi, ecx
xor ecx, ecx
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x50]
push edx
push ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.004e5300
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00434939
cmp dword [esp + 0x24], 8
jb 0x4e787c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00511b06
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005139d8
add esp, 0x30
ret 0x1c

Function at 0x4e8530
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x4e855f
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x4e8540
pop edi
pop esi
ret

Function at 0x4ecdd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54b988
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401254
mov dword [esp + 0x18], 0
test edi, edi
je 0x4ece14
add edi, 0x28
jmp 0x4ece16
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4ece2e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], 0x567d8c
mov dword [esi + 0x28], 0x567d88
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 0x4eeca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54bc48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401254
mov dword [esi], vtable.std::invalid_argument.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x4eecea
add edi, 0x28
jmp 0x4eecec
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4eed04
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], 0x567d8c
mov dword [esi + 0x28], 0x567d88
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 0x4f5220
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x54c1c3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004689d0
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004689d0
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 1
call fcn.004689d0
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret