joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d77c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x4d789f
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x4d7835
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004d6f80
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x4d77ff
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x4d7956
call 0x4d7847
pop edx
lea ecx, [edx + 0x139]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x4d78f7
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004d73a0
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x4d78ac
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x4d7956
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004d73a0
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x4d7954
jmp 0x4d7956
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4dee70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x5c1aa8], 0
push esi
je 0x4deea0
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.00539d85
mov ecx, eax
call fcn.004debe0
mov dword [0x5c1aa8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x4deedb
xor ecx, ecx
jmp 0x4deeef
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4deee0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.004e1f10
mov ecx, dword [0x5c1aa8]
lea eax, [esp + 4]
push eax
call fcn.004dfba0
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x4def22
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.004e2c50
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret

Function at 0x4dfba0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, 0x5ae050
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dfbe2
sub ecx, esi
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push 0x5ae050
push eax
mov ecx, edx
call fcn.004f7270
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x4dfc44
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.004def80
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
cmp eax, 8
jb 0x4dfc5c
inc eax
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.004e2c50
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret 4
Function at 0x4e62d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x5b46a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.00502cf0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00502e70
cmp dword [ebp - 0x10], ebx
je 0x4e6497
nop
cmp byte [ebp - 0x2e4], 0
jne 0x4e635a
test bl, 1
je 0x4e6342
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.004ebe90
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0053bcd0
add esp, 0xc
jmp 0x4e6373
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
mov cl, byte [ebp + 8]
test bl, 1
je 0x4e63a9
test cl, cl
jne 0x4e638e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x4e63a9
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x4e63e0
test cl, cl
je 0x4e63fa
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.004e62d0
add esp, 4
test al, al
je 0x4e647e
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4e63f2
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4e647e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00502e70
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x4e641a
push 0xffffffffffffffff
push 0
push eax
call fcn.004e2010
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x4e646d
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x4e64f6
add eax, eax
cmp eax, 0x1000
jb 0x4e6464
test cl, 0x1f
jne 0x4e64f6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4e64f6
sub ecx, eax
cmp ecx, 4
jb 0x4e64f6
cmp ecx, 0x23
ja 0x4e64f6
mov ecx, eax
push ecx
call fcn.00539d80
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x4e6497
mov ebx, dword [ebp - 0x2e8]
jmp 0x4e6320
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x4e6493
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.004e2c50
xor bl, bl
jmp 0x4e64d8
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x4e64d6
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x4e64f6
add eax, eax
cmp eax, 0x1000
jb 0x4e64cd
test cl, 0x1f
jne 0x4e64fb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4e6500
sub ecx, eax
cmp ecx, 4
jb 0x4e6505
cmp ecx, 0x23
ja 0x4e650a
mov ecx, eax
push ecx
call fcn.00539d80
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.00502dd0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053a230
mov esp, ebp
pop ebp
ret
call fcn.0053fbe1
call fcn.0053fbe1
call fcn.0053fbe1
call fcn.0053fbe1
call fcn.0053fbe1
int3
Function at 0x4e65c0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4e65fd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x4e67b6
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004e5800
push 2
push ecx
push 0x5acd5c
mov ecx, eax
call fcn.004e1da0
cmp eax, 0xffffffff
mov eax, dword [esp + 0x28]
setne bl
cmp eax, 8
jb 0x4e6641
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.004e2c50
test bl, bl
je 0x4e66cf
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.004e5800
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x18]
push eax
call fcn.004e56a0
mov edx, esi
mov ecx, eax
call fcn.004e62d0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov bl, al
cmp ecx, 8
jb 0x4e668c
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004e2c50
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], 0
cmp eax, 8
jb 0x4e66bb
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.004e2c50
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4e66d9
mov eax, dword [edi]
jmp 0x4e66db
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e65e9
test bl, 1
je 0x4e6713
cmp dword [edi + 0x14], 8
jb 0x4e66fc
mov ecx, dword [edi]
jmp 0x4e66fe
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4e67b6
test bl, 0x10
jne 0x4e673f
cmp dword [edi + 0x14], 8
jb 0x4e6720
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x4e6771
push 0x5acd64
lea ecx, [esp + 0x30]
call fcn.004e09b0
mov ebx, 1
lea edx, [esp + 0x2c]
push ebx
mov ecx, edi
call fcn.004e62d0
add esp, 4
test al, al
jne 0x4e6775
mov byte [esp + 0xf], al
jmp 0x4e677a
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test bl, 1
je 0x4e6788
lea ecx, [esp + 0x2c]
call fcn.004e08d0
cmp byte [esp + 0xf], 0
je 0x4e67b6
cmp dword [edi + 0x14], 8
jb 0x4e6797
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
Function at 0x4e67d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x4e67e2
mov eax, dword [esi]
jmp 0x4e67e4
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4e67f1
mov ecx, dword [edi]
jmp 0x4e67f3
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4e6805
pop edi
mov al, 1
pop esi
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4e680d
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4e6815
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x4e67ff
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4e683f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00500b20
mov dword [esi], eax
pop edi
xor al, al
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4e685e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4e6878
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e688b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x4e6890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5b46a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4e69bd
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x4e68e0
xor ecx, ecx
jmp 0x4e68ff
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e68f0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.004e5190
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4e691c
mov ecx, dword [eax]
jmp 0x4e691e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004e5190
lea ecx, [ebp - 0x230]
call fcn.004e5e00
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x4e6952
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004e2010
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4e6970
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004e2c50
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4e69ab
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004e2c50
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0053a230
mov esp, ebp
pop ebp
ret
Function at 0x4e69d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5b46a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4e6a7b
cmp word [ebp - 0x210], 0
je 0x4e6a7b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x4e6a3f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004e5190
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e6a50
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004e5190
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.004e6890
mov ecx, esi
test al, al
je 0x4e6acd
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.004e2010
jmp 0x4e6ae4
sub esp, 8
mov eax, esp
mov dword [eax], 0x5acd68
mov dword [eax + 4], 3
call fcn.004e5190
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x4e6b02
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.004e2c50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0053a230
mov esp, ebp
pop ebp
ret
Function at 0x4e6b20
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4e6b4d
mov ebx, dword [edi]
jmp 0x4e6b4f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e6b91
test al, 0x10
je 0x4e6b73
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4e6b7d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004e56a0
cmp dword [edi + 0x14], 8
jb 0x4e6ba7
mov eax, dword [edi]
jmp 0x4e6ba9
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.004e2dd0
test eax, eax
jne 0x4e6bce
test esi, esi
je 0x4e6c16
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x4e6c1c
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.004e6b20
test al, al
jne 0x4e6be1
xor bl, bl
jmp 0x4e6c1c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e6c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x4e6c09
mov ecx, edi
call fcn.004e6870
test al, al
jne 0x4e6c1a
test esi, esi
je 0x4e6c16
mov ecx, ebx
call fcn.00500b20
mov dword [esi], eax
xor bl, bl
jmp 0x4e6c1c
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x4e6c34
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004e2c50
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
Function at 0x4e6e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
jb 0x4e6e49
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
test esi, esi
je 0x4e6efe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.004e7320
cmp esi, 0xffffffff
je 0x4e6ec1
mov dword [esp + 0xc], esi
call fcn.004fd6c0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x5c2ab0]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x4e6eae
call fcn.00501090
mov ecx, dword [0x5c2ab0]
push dword [esp + 0x18]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x20]
push edx
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4e6efe
cmp ecx, 0xffffffff
je 0x4e6efe
push 0
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e6efa
mov esi, dword [esp + 0x14]
cmp esi, edi
jne 0x4e6efa
mov ecx, dword [esp + 0xc]
jmp 0x4e6f01
mov ecx, dword [esp + 0xc]
or esi, 0xffffffff
test ecx, ecx
je 0x4e6f5f
cmp ecx, 0xffffffff
je 0x4e6f5f
call fcn.004fd6c0
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x5c2ab0]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4e6f31
call fcn.00501090
mov ecx, dword [0x5c2ab0]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edi
push ebx
push edx
push dword [esp + 0x1c]
call dword [eax + 8]
mov ecx, dword [0x5c2ab0]
mov edi, dword [esp + 0xc]
test ecx, ecx
jne 0x4e6f5a
call fcn.00501090
mov ecx, dword [0x5c2ab0]
mov edx, dword [ecx]
push edi
call dword [edx]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e6f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov word [esp + 0x50], ax
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4e709e
cmp eax, 0x104
ja 0x4e709e
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.004e09b0
sub esp, 8
lea eax, [esp + 0x28]
cmp dword [esp + 0x3c], 8
mov ecx, esp
cmovae eax, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.004e5190
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4e6ffa
mov ecx, dword [eax]
jmp 0x4e6ffc
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004e5190
lea ecx, [esp + 8]
call fcn.004e5e00
lea eax, [esp + 8]
cmp esi, eax
je 0x4e702a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004e2010
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x4e7042
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.004e2c50
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], 0
cmp eax, 8
jb 0x4e7071
inc eax
lea ecx, [esp + 0x38]
push eax
push dword [esp + 0x3c]
call fcn.004e2c50
mov eax, dword [esp + 0x34]
cmp eax, 8
jb 0x4e7089
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.004e2c50
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret

Function at 0x4e9600
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x18]
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ecx, dword [eax + edx*8]
add edx, edx
mov ebx, dword [eax + edx*4]
lea edx, [eax + edx*4]
cmp ebx, esi
jne 0x4e965b
mov eax, esi
jmp 0x4e9660
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x4e9683
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x4e966f
mov ecx, dword [ecx]
jmp 0x4e9653
mov eax, dword [edi]
cmp eax, dword [ecx + 8]
mov eax, dword [ebp + 8]
pop edi
cmovne ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8