joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 4], eax
cmp word [ebx], ax
je 0x401384
push edi
mov di, word [esp + 0x64]
push 0x45
pop ecx
push 0x44
pop eax
cmp di, ax
je 0x401267
cmp di, 0x54
je 0x401267
cmp di, cx
jne 0x401383
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, 0x800
push ebp
push 0x40
call esi
push ebp
push 0x40
mov dword [esp + 0x78], eax
call esi
push 0x45
mov ebp, eax
pop eax
cmp di, ax
jne 0x4012a1
push ebx
push 0x402174
push ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
inc eax
jmp 0x40130d
cmp dword [esp + 0x74], 0
mov esi, dword [esp + 0x70]
push 0x400
push esi
jne 0x4012d8
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401309
push ebx
movzx eax, di
push eax
push esi
push 0x4021a4
push ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x40129c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401309
push ebx
push esi
push 0x4021c8
push ebp
call dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
mov dword [esp + 0x20], 1
push ebx
call fcn.00401b31
mov eax, dword [esp + 0x24]
add esp, 0x14
jmp 0x40130f
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
je 0x401372
push 0x44
pop esi
push esi
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00401bf6
add esp, 0xc
mov dword [esp + 0x24], esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401363
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
cmp dword [esp + 0x74], 0
je 0x401372
push 1
call fcn.00401b31
pop ecx
push dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebp
call esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x58
ret
Function at 0x40195e
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x402238
push 0x403800
call ebp
mov esi, dword [esp + 0x1c]
mov ebx, 0x400
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x4019b5
push 1
push 0
push esi
call fcn.00401af5
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x403800
push esi
call edi
test eax, eax
je 0x401ac1
cmp eax, ebx
jg 0x401ac1
push ebx
mov esi, 0x403400
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x401ac1
cmp eax, ebx
jg 0x401ac1
push esi
push 0x403800
push str._S_S_r_n
push section..data
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x1c], edi
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
push 0xc0000000
push esi
call fcn.00401af5
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x401ac1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [edi + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x401aba
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401aba
cmp esi, dword [esp + 0x10]
jne 0x401aba
push str._Rename__r_n
push edi
call fcn.00401b73
pop ecx
pop ecx
test eax, eax
jne 0x401ac7
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call ebp
add esi, 0xa
mov ebp, dword [esp + 0x1c]
mov ecx, esi
push ebp
lea eax, [ecx + edi]
push section..data
push eax
call fcn.00401b53
add esp, 0xc
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + ebp]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
add eax, 0xa
push 0x402254
push eax
call fcn.00401b73
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x401a7c
mov ebp, dword [esp + 0x1c]
lea edx, [edi + esi]
cmp edx, ecx
jbe 0x401af0
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
jmp 0x401ae4
sub ecx, edi
inc ecx
jmp 0x401a82

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret
Function at 0x4a0eb0
Capabilities:
Encode data using xor

Disassembly:
xor bh, byte [ecx + edi*2 + 0x4e]
les eax, [eax]
push es
sbb ah, byte [edi - 0x4fcfbfbc]
cli
xchg edx, eax
mov bh, 0x64
xor byte [eax + 0x64b792fa], dh
add bh, byte [esi + 0x39ac6c8]
mov cl, 0x30
pop esp
fcomp qword [ecx + 0x41b92c44]
push edi
cmp byte [ebp + 0xe], bh
pushal
mov bl, 0x3c
daa
lodsd eax, dword [esi]
jp 0x46efcf
push ebp
add byte [ebx - 0x67cf10f4], dl
aam 0x40
invalid
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5e000]
mov dword [edi + 0x6f09c], 0x3a00fcf8
push edi
or ebp, 0xffffffff
jmp 0x4a0eda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a0ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0ed0
mov eax, 1
add ebx, ebx
jne 0x4a0ef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a0f04
jne 0x4a0f23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0f23
dec eax
add ebx, ebx
jne 0x4a0f10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a0ee8
add ebx, ebx
jne 0x4a0f1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a0f75
xor ecx, ecx
sub eax, 3
jb 0x4a0f3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a0faa
sar eax, 1
mov ebp, eax
jmp 0x4a0f46
add ebx, ebx
jne 0x4a0f46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0f14
inc ecx
add ebx, ebx
jne 0x4a0f54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0f14
add ebx, ebx
jne 0x4a0f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a0f56
jne 0x4a0f72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a0f56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a0f94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a0f86
jmp 0x4a0ed6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a0f94
add edi, ecx
jmp 0x4a0ed6
pop esi
mov edi, esi
mov ecx, 0x3588
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a0fb2
cmp byte [edi], 0x16
jne 0x4a0fb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a0fb7
lea edi, [esi + 0x9d000]
mov eax, dword [edi]
or eax, eax
je 0x4a1026
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa3854]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa3930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a0fe4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa3934]
or eax, eax
je 0x4a1020
mov dword [ebx], eax
add ebx, 4
jmp 0x4a1001
call dword [esi + 0xa3944]
mov ebp, dword [esi + 0xa3938]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a105a
sub esp, 0xffffff80
jmp 0x46efc4
Function at 0x1eeb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01eeb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1eeb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1eeb06a
add dl, dl
jne 0x1eeb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1eeb0dc
xor eax, eax
add dl, dl
jne 0x1eeb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1eeb17d
add dl, dl
jne 0x1eeb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1eeb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1eeb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1eeb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1eeb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1eeb075
mov eax, 1
add dl, dl
jne 0x1eeb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1eeb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1eeb0e1
sub eax, ebx
mov ebx, 1
jne 0x1eeb128
mov ecx, 1
add dl, dl
jne 0x1eeb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1eeb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1eeb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1eeb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1eeb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1eeb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1eeb136
cmp eax, 0x7d00
jae 0x1eeb16d
cmp eax, 0x500
jb 0x1eeb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1eeb075
cmp eax, 0x7f
ja 0x1eeb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1eeb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1eeb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1eeb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x395432c4
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
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
nop
nop
pop eax
nop
mov esi, 0x7c04006b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401ed1
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, 0x4a54cc
call fcn.00483228
sub esp, 0x168
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
push eax
push eax
push 0x184
mov dword [ebp - 4], eax
push dword [esi + 0x1c]
call edi
push ecx
mov ebx, 0x4dd1e4
mov ecx, esp
mov dword [ebp - 0x10], esp
push ebx
call fcn.0049d946
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call fcn.0049d64d
and byte [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004022e3
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0049db21
push 0x4dd1e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0049dc68
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402087
test al, 0x10
je 0x402087
lea eax, [ebp - 0x174]
lea ecx, [ebp - 0x20]
push eax
push 0
call fcn.0049dcbc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov ebx, 0x19a
je 0x401fde
test byte [ebp - 0x174], 0x10
je 0x401fc0
cmp byte [ebp - 0x148], 0x2e
je 0x401fc0
lea eax, [ebp - 0x148]
push eax
push 0
push 0x180
push dword [esi + 0x1c]
call edi
push 0
push eax
push ebx
push dword [esi + 0x1c]
call edi
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x401f92
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x34]
call fcn.0049835d
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.0049d9c5
lea eax, [ebp - 0x34]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0049d64d
mov ecx, esi
call fcn.004023ab
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x2c], 0
jle 0x40207b
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*4]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0049d64d
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
cmp dword [eax - 8], 0
je 0x402061
push 0
lea ecx, [ebp - 0x1c]
call fcn.0049dcbc
push eax
push dword [ebp - 0x14]
push 0x181
push dword [esi + 0x1c]
call edi
push dword [ebp - 0x10]
push eax
push ebx
push dword [esi + 0x1c]
call edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0049d8d8
inc dword [ebp - 0x14]
dec dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jl 0x402020
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00498390
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40715a
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4a604c
call fcn.00483228
sub esp, 0x124
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov dword [esi], vtable.CSetupApp.0
mov ecx, dword [esi + 0x240]
mov dword [ebp - 4], 0xc
mov eax, dword [ecx + 0x36c]
test eax, eax
je 0x4071d3
lea eax, [ebp - 0x10]
push eax
call fcn.00407395
push dword [ebp - 0x10]
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
pop ecx
call fcn.004480c1
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
mov eax, dword [esi + 0x240]
mov eax, dword [eax + 0x340]
cmp eax, 1
jne 0x40727e
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x10]
push eax
call fcn.0049d946
push str.Corel_Floppy_Setup
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.0049dc68
lea ecx, [ebp - 0x28]
call fcn.0049835d
lea eax, [ebp - 0x28]
push 1
push eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 0xf
call fcn.0049d64d
call fcn.0044c3df
xor edi, edi
add esp, 0xc
cmp dword [ebp - 0x20], edi
jle 0x407266
push ecx
lea ecx, [ebp - 0x28]
mov eax, esp
mov dword [ebp - 0x14], esp
push edi
push eax
call fcn.00401720
call fcn.00448b10
inc edi
pop ecx
cmp edi, dword [ebp - 0x20]
jl 0x40724a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
call fcn.00498390
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.0049d8d8
mov ecx, dword [esi + 0x240]
test ecx, ecx
je 0x40728e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x244]
test ecx, ecx
je 0x40729f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 0x220]
test eax, eax
je 0x4072b0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00454d32
cmp dword [0x4e8110], 0
je 0x4072c8
mov ecx, 0x4e80c0
call fcn.00414e48
lea ecx, [esi + 0x218]
mov byte [ebp - 4], 0xb
call fcn.0049d8d8
lea ecx, [esi + 0x214]
mov byte [ebp - 4], 0xa
call fcn.0049d8d8
lea ecx, [esi + 0x210]
mov byte [ebp - 4], 9
call fcn.0049d8d8
lea ecx, [esi + 0x20c]
mov byte [ebp - 4], 8
call fcn.0049d8d8
lea ecx, [esi + 0x208]
mov byte [ebp - 4], 7
call fcn.0049d8d8
lea ecx, [esi + 0x204]
mov byte [ebp - 4], 6
call fcn.0049d8d8
lea ecx, [esi + 0x200]
mov byte [ebp - 4], 5
call fcn.0049d8d8
lea ecx, [esi + 0x1fc]
mov byte [ebp - 4], 4
call fcn.0049d8d8
lea ecx, [esi + 0x1f8]
mov byte [ebp - 4], 3
call fcn.0049d8d8
lea ecx, [esi + 0x1f4]
mov byte [ebp - 4], 2
call fcn.0049d8d8
lea ecx, [esi + 0x1e0]
mov byte [ebp - 4], 1
call fcn.00498390
and byte [ebp - 4], 0
lea ecx, [esi + 0xc4]
call fcn.00453705
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004a40f3
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4102a3
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a749d
call fcn.00483228
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov eax, dword [0x4e43a4]
mov dword [esi], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 4], eax
mov eax, dword [0x4e43a4]
lea ecx, [esi + 8]
mov dword [ecx], eax
mov eax, dword [0x4e43a4]
lea edi, [esi + 0xc]
mov dword [edi], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x10], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x18], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x2c], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x34], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x3c], eax
mov eax, dword [0x4e43a4]
mov dword [esi + 0x54], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xd
push eax
call fcn.0049d9c5
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0049d9c5
mov eax, dword [ebp + 0x10]
and dword [esi + 0x30], 0
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0x2710
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41036f
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x4a74d0
call fcn.00483228
mov eax, 0x9d58
call fcn.00484740
push ebx
push esi
push edi
mov esi, ecx
push 2
lea eax, [ebp + 0xc]
pop ebx
lea ecx, [esi + 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.0049d9c5
lea eax, [ebp + 0x10]
lea ecx, [esi + 0x14]
push eax
call fcn.0049d9c5
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00484605
push dword [ebp + 0xc]
call fcn.0048457f
mov eax, dword [0x4e43a4]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x10]
push 0x4dd1e4
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.0049db21
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049dabb
mov eax, dword [eax]
push 0x180
push 0x830a
push eax
call fcn.00484299
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call fcn.0049d8d8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0049d8d8
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41042b
xor esi, esi
jmp 0x4104f4
mov ecx, esi
call fcn.00410b4b
mov edi, eax
cmp edi, 0xffffffff
je 0x410424
push ebx
push 0
push edi
call fcn.004841c1
push 0
mov dword [esi + 0x44], eax
push dword [esi + 0x20]
push edi
call fcn.004841c1
add esp, 0x18
push dword [esi + 0x24]
lea eax, [ebp - 0x9d64]
push eax
push edi
call fcn.00483f83
push edi
mov dword [ebp - 0x14], eax
call fcn.00483f72
push dword [ebp - 0x14]
mov ebx, eax
lea eax, [ebp - 0x9d64]
push eax
push dword [ebp - 0x10]
call fcn.00483d82
mov eax, dword [esi + 0x44]
add esp, 0x1c
cmp ebx, eax
jne 0x410453
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi + 0x30]
je 0x4104c5
cmp ebx, eax
jne 0x410453
push edi
call fcn.00483ca2
cmp dword [esi + 0x4c], 0
pop ecx
je 0x4104ac
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00410b4b
push 0
mov edi, eax
push dword [esi + 0x20]
push edi
call fcn.004841c1
add esp, 0xc
jmp 0x410453
push edi
call fcn.00483ca2
cmp dword [esi + 0x4c], 0
pop ecx
je 0x4104db
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
call fcn.00483ca2
lea eax, [ebp - 0x124]
push eax
call fcn.0048457f
pop ecx
pop ecx
push 1
pop esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049d8d8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41069c
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4a7564
call fcn.00483228
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
jne 0x4106d0
push 0x100
push 0x40
push 0x8000
push dword [ebp + 8]
call fcn.00484299
add esp, 0x10
jmp 0x4106d3
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x4107a5
mov eax, dword [0x4e43a4]
push ebx
mov dword [ebp + 0x10], eax
push edi
push edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004841c1
push dword [esi + 0x20]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.00483f83
add esp, 0x18
lea eax, [ebp - 0x18]
lea ecx, [ebp + 0x10]
push eax
call fcn.0049da15
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00496e43
lea edi, [esi + 0x34]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0049d9c5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0049d8d8
mov eax, dword [esi + 0x20]
lea ecx, [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00496d31
lea ebx, [esi + 0x3c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0049d9c5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0049d8d8
push dword [edi]
call fcn.00483b98
push dword [ebx]
mov dword [esi + 0x30], eax
call fcn.00483b98
push 0
push 0
push dword [ebp + 0xc]
mov dword [esi + 0x38], eax
call fcn.004841c1
and byte [ebp - 4], 0
add esp, 0x14
lea ecx, [ebp + 0x10]
call fcn.0049d8d8
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x410b4b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a75fc
call fcn.00483228
sub esp, 0x10c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00410a83
mov ecx, esi
call fcn.00410ae7
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor edi, edi
lea eax, [ebp - 0x118]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d946
push ecx
mov ecx, esi
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 4], edi
call fcn.00410537
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004107c4
push edi
push edi
push ecx
lea eax, [esi + 4]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0049d64d
mov ecx, esi
call fcn.0041069c
mov ebx, eax
push 2
push edi
push ebx
call fcn.004841c1
push edi
mov dword [esi + 0x44], eax
push dword [esi + 0x20]
push ebx
call fcn.004841c1
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret