joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d573ea4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
or dword [esi + 4], 0xffffffff
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, ebx
mov dword [esi], ebx
mov dword [esi + 0x18], eax
je 0x6d573ecf
mov dword [ebp - 8], 0xc0000000
mov dword [ebp - 4], ebx
jmp 0x6d573ed9
mov dword [ebp - 8], 0x80000000
mov dword [ebp - 4], edi
cmp eax, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
je 0x6d573efa
push dword [ebp + 8]
call fcn.6d573c63
test eax, eax
pop ecx
je 0x6d573efa
mov eax, edi
jmp 0x6d573efc
xor eax, eax
push ebx
mov edi, 0x10000000
push edi
push 3
push ebx
push dword [ebp - 4]
mov dword [esi + 0x1c], eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.6d573d9b
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x6d573f32
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
jmp 0x6d573f7b
cmp dword [ebp + 0xc], ebx
je 0x6d573f84
push ebx
push edi
push 4
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.6d573d9b
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x6d573f84
xor ecx, ecx
push ecx
mov eax, 0x400000
push eax
mov ecx, esi
call fcn.6d573e13
test eax, eax
jne 0x6d573f7b
mov eax, 0x4000
push ebx
push eax
mov ecx, esi
call fcn.6d573e13
test eax, eax
je 0x6d573f84
mov ecx, esi
call fcn.6d573e3e
jmp 0x6d573f86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x6d573fd9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
mov dword [ebp - 4], eax
ja 0x6d57400f
jb 0x6d573ffe
cmp dword [ebp + 8], eax
ja 0x6d57400f
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], ecx
inc eax
jmp 0x6d5740c7
mov eax, dword [esi]
cmp eax, edi
je 0x6d574039
cmp dword [esi + 0x1c], edi
je 0x6d574026
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x6d574032
push dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x6d574039
xor eax, eax
jmp 0x6d5740c7
push ebx
mov ebx, dword [ebp - 4]
mov eax, 0x400000
cmp dword [ebp - 4], eax
jbe 0x6d57404a
mov eax, dword [ebp - 4]
add ebx, eax
adc edi, 0
cmp dword [ebp + 0xc], edi
ja 0x6d57403d
jb 0x6d57407e
cmp dword [ebp + 8], ebx
ja 0x6d57403d
jmp 0x6d57407e
cmp edi, dword [ebp + 0xc]
jb 0x6d574097
ja 0x6d574069
cmp ebx, dword [ebp + 8]
jbe 0x6d574097
mov eax, 0x400000
cmp dword [ebp - 4], eax
jbe 0x6d574076
mov eax, dword [ebp - 4]
shr eax, 2
sub ebx, eax
sbb edi, 0
push edi
mov ecx, esi
push ebx
call fcn.6d573e13
test eax, eax
je 0x6d57405d
cmp edi, dword [ebp + 0xc]
ja 0x6d5740ac
jb 0x6d574097
cmp ebx, dword [ebp + 8]
ja 0x6d5740ac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.6d573e13
test eax, eax
jne 0x6d5740ac
xor eax, eax
jmp 0x6d5740c6
mov ecx, esi
call fcn.6d573e3e
test eax, eax
je 0x6d5740a8
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x401c23
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401dd3
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401d21
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401cc4
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401d07
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401cdb
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401cf6
test al, 0x40
je 0x401ced
mov ecx, dword [edi + 0x20]
jmp 0x401cf4
test al, 0x80
je 0x401d07
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401d07
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401c93
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x420744
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x420770
add dword [esp], 5
retf
Function at 0x4412fa
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004414aa
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4413f8
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x44139b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4413de
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4413b2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4413cd
test al, 0x40
je 0x4413c4
mov ecx, dword [edi + 0x20]
jmp 0x4413cb
test al, 0x80
je 0x4413de
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4413de
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x44136a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x441f99
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00442149
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x442097
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x44203a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x44207d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x442051
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x44206c
test al, 0x40
je 0x442063
mov ecx, dword [edi + 0x20]
jmp 0x44206a
test al, 0x80
je 0x44207d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x44207d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x442009
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4474aa
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0044765a
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4475a8
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x44754b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x44758e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x447562
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x44757d
test al, 0x40
je 0x447574
mov ecx, dword [edi + 0x20]
jmp 0x44757b
test al, 0x80
je 0x44758e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x44758e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x44751a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x447d77
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
pop ebp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
ret

Function at 0x4653e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4653fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4653f3
pop esi
ret

Function at 0x46e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x46e491
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x46e475
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x46e3c7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x46e3a5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2e4f1912
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x58921d2b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402854
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x402899
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a477
mov eax, esi
push eax
call fcn.0040a384
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a477
push esi
call fcn.0040a384
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098f7
push eax
push esi
call fcn.0040a477
push esi
call fcn.0040a384
lea esi, [esi + eax + 1]
push 0x4122d4
push esi
call fcn.0040a477
push esi
call fcn.0040a384
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a289
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.004073db
cmp eax, esi
jne 0x402928
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402947
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402949
call ebx
mov edi, eax
test edi, edi
jne 0x402977
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402975
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402971
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402973
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402cd3
call fcn.00402c9b
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d00
test cl, 7
je 0x402d00
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402ce1
cmp esi, 8
jb 0x402d84
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d0a
xor edx, edx
test esi, esi
jbe 0x402da4
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d8b
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b4f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403556
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406045
test al, al
je 0x404ce8
cmp byte [ebp - 0x24c0], bl
je 0x404ce8
cmp byte [ebp - 0x1840], bl
je 0x404ce8
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073db
push eax
call fcn.0040da54
test eax, eax
je 0x404ce8
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.004073db
push eax
call fcn.0040da54
test eax, eax
jne 0x404ce8
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040db30
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.004073db
push eax
call fcn.0040a610
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405767
test al, al
je 0x404c27
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404be1
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405767
test al, al
jne 0x404ce8
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040db30
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073db
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.004073db
push eax
call fcn.0040a477
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404ce8
lea ecx, [ebp - 0x1420]
call fcn.00404ec3
push 0
push edi
xor bl, bl
call fcn.00405767
test al, al
jne 0x404caf
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051d8
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404cd9
lea ecx, [ebp - 0x1420]
call fcn.00404f2e
lea ecx, [ebp - 0x1420]
call fcn.00404fac
lea ecx, [ebp - 0x1420]
call fcn.00405074
mov al, 1
jmp 0x404cea
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405097
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x4050b1
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4050c4
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4050d7
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406ea5
test eax, eax
je 0x405110
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405110
cmp word [eax], bx
je 0x405110
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405124
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405140
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405140
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4051a2
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x40516e
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040e338
jmp 0x405177
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x40518a
push dword [ebp + 8]
push eax
call fcn.0040a477
jmp 0x405198
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040e115
push dword [esi + 4]
mov ecx, esi
call fcn.00404f07
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4052d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4052f8
cmp dword [ebp + 0xc], esi
jbe 0x4052ed
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405348
mov ecx, edi
call fcn.00405051
test al, al
je 0x40532e
cmp dword [ebp + 0xc], esi
jbe 0x40532e
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052d2
jmp 0x40534b
cmp dword [edi + 0xc], 1
jne 0x405343
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405343
xor eax, eax
jmp 0x40534b
or eax, 0xffffffff
jmp 0x40534b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405585
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405685
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4055b2
dec eax
je 0x4055a7
dec eax
jne 0x4055b2
push 0xfffffffffffffff4
jmp 0x4055a9
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405601
cmp dword [ebp + 0xc], edi
jbe 0x40561c
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055d9
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x40561c
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4055c9
jmp 0x405618
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x40567f
cmp byte [esi + 0x14], 0
je 0x40567f
cmp dword [esi + 0xc], 0
jne 0x40567f
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.00403304
test al, al
je 0x405672
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4055ba
test eax, eax
jbe 0x4055ba
push 0
mov ecx, esi
call fcn.00404fdc
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054ed
jmp 0x4055ba
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00403471
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x405767
Capabilities:
Get file attributes

Disassembly:
call fcn.00406ea5
test eax, eax
je 0x405787
mov eax, dword [esp + 8]
test eax, eax
je 0x405787
cmp word [eax], 0
je 0x405787
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405791
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x4057bb
Capabilities:
Get file attributes

Disassembly:
call fcn.00406ea5
test eax, eax
je 0x4057db
mov eax, dword [esp + 8]
test eax, eax
je 0x4057db
cmp word [eax], 0
je 0x4057db
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4057e5
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x4057e8
Capabilities:
Set file attributes

Disassembly:
call fcn.00406ea5
test eax, eax
je 0x40580c
mov eax, dword [esp + 8]
test eax, eax
je 0x40580c
cmp word [eax], 0
je 0x40580c
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40581a
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
Function at 0x405898
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406ea5
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4058bd
test esi, esi
je 0x4058bd
cmp word [esi], 0
je 0x4058bd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4058c8
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4058e2
cmp byte [ebp + 0x10], 0
je 0x4058de
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057e8
xor eax, eax
jmp 0x4058fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4058f7
cmp eax, 3
je 0x4058f7
xor eax, eax
inc eax
jmp 0x4058fa
push 2
pop eax
pop esi
pop ebp
ret 0x10