joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f47e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10161d4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], esi
je 0x100f68f
test ebx, ebx
je 0x100f68f
cmp word [ebx], 0
je 0x100f68f
test esi, esi
je 0x100f68f
cmp word [esi], 0
je 0x100f68f
mov edi, 0x1048
push edi
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp - 0x214], eax
jne 0x100f504
mov eax, 0x8007000e
jmp 0x100f694
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x21c]
mov ebx, eax
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100e6d7
test eax, eax
jl 0x100f67a
mov esi, 0x824
cmp ebx, esi
jae 0x100f67a
push 0x100
push 0
push 0
push dword [ebp - 0x224]
push edi
push esi
push dword [ebp - 0x214]
call fcn.01005a33
mov edi, eax
test edi, edi
jl 0x100f67f
mov edi, dword [ebp - 0x214]
cmp word [edi + ebx*2 - 2], 0x2f
je 0x100f575
mov word [edi + ebx*2], 0x2f
inc ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, ebx
cmp eax, esi
jae 0x100f67a
lea eax, [ebp - 0x210]
push eax
call fcn.01010233
test eax, eax
je 0x100f5bc
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.01013d10
test eax, eax
jge 0x100f5bc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100
push 0
push 0
push dword [ebp - 0x21c]
sub esi, ebx
push esi
lea eax, [edi + ebx*2]
push eax
call fcn.01006033
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x100f67f
push dword [ebp + 0x18]
lea eax, [ebp - 0x210]
push dword [ebp - 0x218]
push eax
push dword [ebp - 0x214]
call fcn.0101191d
mov edi, eax
cmp edi, esi
jl 0x100f67f
push esi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01013d10
mov edi, eax
cmp edi, esi
jl 0x100f66b
push esi
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call esi
mov ebx, 0x102
cmp eax, ebx
jne 0x100f65d
cmp dword [ebp + 0x1c], 0
je 0x100f67f
push 0
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
push eax
call fcn.01010266
test eax, eax
je 0x100f664
xor edi, edi
push edi
push dword [ebp - 0x218]
call esi
cmp eax, ebx
je 0x100f67f
mov edi, 0x80004004
jmp 0x100f67f
mov edi, 0x80004005
jmp 0x100f67f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100f67f
mov edi, 0x8007007a
push dword [ebp - 0x214]
call sub.msvcrt.dll_free
pop ecx
mov eax, edi
jmp 0x100f694
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c0c3
leave
ret 0x18
Function at 0x100fbb5
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10161d4]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x1002a48
push 0x100
push 0
push 0
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0100606b
add esp, 0x20
test eax, eax
jl 0x100fc0c
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x100fc17
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100fc1c
xor eax, eax
inc eax
jmp 0x100fc1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100c0c3
leave
ret 4

Function at 0x100fc30
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10161d4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 7
pop ecx
mov esi, 0x1002a60
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [0x1002a58]
movsw word es:[edi], word [esi]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1002a5c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], edi
jne 0x100fc72
xor eax, eax
jmp 0x100fcbe
push ebx
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100fcbb
mov esi, 0x100
push esi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.010076db
test eax, eax
jl 0x100fcbb
cmp dword [ebp + 0x10], edi
je 0x100fcb4
push esi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.010076db
test eax, eax
jl 0x100fcbb
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c0c3
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x101025b
cmp word [eax], 0
je 0x101025b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101025b
shr eax, 4
not eax
and eax, 1
jmp 0x101025d
xor eax, eax
pop ebp
ret 4
Function at 0x101035a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10161d4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], eax
je 0x10103b8
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
mov ecx, eax
inc ecx
mov eax, 0x104
cmp ecx, eax
jg 0x10103b8
push 0x100
push edi
push edi
push ebx
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005a33
cmp eax, edi
jge 0x10103c9
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c0c3
leave
ret 4
lea eax, [ebp - 0x20c]
push eax
call esi
dec eax
jns 0x10103d7
xor eax, eax
push 0x5c
lea eax, [ebp + eax*2 - 0x20c]
pop ebx
cmp word [eax], bx
jne 0x10103e9
mov word [eax], di
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1010403
test al, 0x10
jne 0x10104c1
cmp word [ebp - 0x20a], 0x3a
lea eax, [ebp - 0x20c]
jne 0x101041b
lea eax, [ebp - 0x208]
jmp 0x1010458
cmp word [ebp - 0x20c], bx
jne 0x101045f
cmp word [ebp - 0x20a], bx
jne 0x101045d
lea eax, [ebp - 0x208]
push ebx
push eax
call sub.msvcrt.dll_wcschr
cmp eax, edi
pop ecx
pop ecx
je 0x10103b8
add eax, 2
push ebx
push eax
call sub.msvcrt.dll_wcschr
cmp eax, edi
pop ecx
pop ecx
je 0x10104c1
inc eax
inc eax
je 0x10104c1
cmp word [eax], bx
jne 0x101045f
inc eax
inc eax
push ebx
push eax
call sub.msvcrt.dll_wcschr
mov esi, eax
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x101049d
and word [esi], 0
call edi
mov word [esi], bx
inc esi
inc esi
test eax, eax
jne 0x1010492
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10103b8
push ebx
push esi
call sub.msvcrt.dll_wcschr
mov esi, eax
test esi, esi
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x1010472
call edi
test eax, eax
jne 0x10104c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10103b8
xor eax, eax
inc eax
jmp 0x10103ba
Function at 0x1011dcd
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10161d4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
push edi
push dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
xor edi, edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x2c]
push edi
mov dword [ebp - 0x50], eax
xor esi, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebp - 0x34], eax
jne 0x1011e35
mov esi, 0x8007000e
jmp 0x1011ef0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call dword [ebp - 0x44]
test eax, eax
jne 0x1011e70
call ebx
test eax, eax
jg 0x1011e5c
call ebx
mov esi, eax
jmp 0x1011e6c
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x1011ede
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x1011f00
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x28], edi
je 0x1011e99
lea ecx, [ebp - 0x40]
push ecx
push edi
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x38]
call dword [ebp - 0x28]
cmp dword [ebp - 0x40], 4
je 0x1011ec9
push edi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1011f1e
push dword [ebp + 0x20]
push dword [ebp - 0x48]
call fcn.01011d96
test eax, eax
jne 0x1011e3c
cmp dword [ebp - 0x28], edi
je 0x1011ed9
push edi
push edi
push dword [ebp - 0x2c]
push dword [ebp + 0x14]
push 3
push dword [ebp - 0x38]
call dword [ebp - 0x28]
mov esi, 0x80004004
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0100c0c3
leave
ret 0x28
lea eax, [ebp - 0x2c]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x3c]
call dword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x1011ede
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x1011ede
call ebx
test eax, eax
jg 0x1011f2a
call ebx
mov esi, eax
jmp 0x1011ede
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1011ede
Function at 0x101206f
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
xor esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10120c7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10120b2
call esi
mov esi, eax
jmp 0x10121b9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10121b9
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x10121af
mov eax, 0xc8
cmp edi, eax
jbe 0x10120e5
mov edi, eax
push ebx
push edi
push ebx
push 2
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1012122
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1012110
call esi
mov esi, eax
jmp 0x10121a1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10121a1
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x1012158
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1012146
call esi
mov esi, eax
jmp 0x1012194
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1012194
push 5
push 0x1003118
push edi
push ebx
call fcn.01011fd5
cmp eax, 0xffffffff
je 0x1012194
xor esi, esi
xor edx, edx
test eax, eax
jle 0x1012194
mov cl, byte [edx + ebx]
cmp cl, 0x20
jge 0x101218a
cmp cl, 9
je 0x101218a
cmp cl, 0xd
je 0x101218a
cmp cl, 0xa
jne 0x1012191
inc edx
cmp edx, eax
jl 0x1012173
jmp 0x1012194
xor esi, esi
inc esi
test ebx, ebx
je 0x101219f
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10121af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10125af
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 0xc]
push 0x10031d4
push ebx
mov dword [edi + 0x20], ebx
call esi
push 0x10031c4
push ebx
mov dword [edi], eax
call esi
push 0x10031b0
push ebx
mov dword [edi + 4], eax
call esi
push 0x100319c
push ebx
mov dword [edi + 8], eax
call esi
push 0x1003188
push ebx
mov dword [edi + 0xc], eax
call esi
push 0x1003178
push ebx
mov dword [edi + 0x10], eax
call esi
push 0x1003164
push ebx
mov dword [edi + 0x14], eax
call esi
push 0x1003150
push ebx
mov dword [edi + 0x18], eax
call esi
xor ecx, ecx
cmp dword [edi], ecx
mov dword [edi + 0x1c], eax
je 0x1012653
cmp dword [edi + 4], ecx
je 0x1012653
cmp dword [edi + 8], ecx
je 0x1012653
cmp dword [edi + 0xc], ecx
je 0x1012653
cmp dword [edi + 0x10], ecx
je 0x1012653
cmp dword [edi + 0x14], ecx
je 0x1012653
cmp dword [edi + 0x18], ecx
je 0x1012653
cmp eax, ecx
je 0x1012653
mov dword [ebp - 4], 1
jmp 0x1012662
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1013158
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
call fcn.01013108
test eax, eax
je 0x1013249
push ebx
xor ebx, ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xc350
mov dword [ebp - 8], eax
jbe 0x1013241
push ebx
push ebx
push ebx
push 4
push ebx
push dword [esi]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1013241
push edi
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x101321c
mov eax, dword [ebp - 8]
lea ecx, [edi + 2]
add eax, edi
xor esi, esi
cmp ecx, eax
mov edx, ecx
jae 0x1013212
cmp word [edx], 0xa
jne 0x10131d3
inc esi
inc edx
inc edx
cmp edx, eax
jb 0x10131cc
cmp esi, 0x3e8
jle 0x1013212
add esi, 0xfffffd12
mov edx, ecx
cmp word [edx], 0xa
jne 0x10131f0
dec esi
inc edx
inc edx
cmp esi, ebx
jle 0x10131fa
cmp edx, eax
jb 0x10131e9
sub eax, edx
sar eax, 1
lea esi, [eax + eax]
push esi
push edx
push ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
add esi, 2
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
pop edi
je 0x1013241
push ebx
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, esi
call fcn.01013144
pop ebx
pop esi
leave
ret
Function at 0x1013251
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x10161d4]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [esi], 0xffffffff
mov dword [ebp - 0x188], eax
je 0x1013449
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
shl eax, 1
mov ecx, esi
mov dword [ebp - 0x180], eax
call fcn.01013108
test eax, eax
je 0x1013448
push edi
push 2
xor edi, edi
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp dword [ebp + 0xc], edi
mov eax, 0x10032ac
je 0x10132d2
mov eax, 0x100329c
push dword [esi + 0x10]
mov edi, 0x100
push eax
movzx eax, word [ebp - 0x19c]
push eax
movzx eax, word [ebp - 0x19e]
push eax
movzx eax, word [ebp - 0x1a0]
push eax
movzx eax, word [ebp - 0x18c]
push eax
movzx eax, word [ebp - 0x18e]
push eax
movzx eax, word [ebp - 0x190]
push eax
movzx eax, word [ebp - 0x192]
push eax
movzx eax, word [ebp - 0x196]
push eax
movzx eax, word [ebp - 0x198]
push eax
push 0x1003220
push edi
push 0
push 0
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.0100606b
add esp, 0x44
push 0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x7c]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
shl eax, 1
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi]
call ebx
push 0
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x180]
push dword [ebp - 0x188]
push dword [esi]
call ebx
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x1013412
push dword [ebp + 0x10]
lea ecx, [ebp - 0x180]
push 0x10031f8
push edi
push ecx
push eax
mov dword [ebp - 0x180], eax
add edi, 0xffffff80
lea eax, [ebp - 0x17c]
push edi
push eax
call fcn.0100606b
sub edi, dword [ebp - 0x180]
add esp, 0x1c
xor eax, eax
push eax
push 0x7f
pop ecx
sub ecx, edi
push ecx
lea ecx, [ebp + edi*2 - 0x17c]
push ecx
push eax
push dword [ebp + 0x10]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x100
push 0
lea eax, [eax + edi - 2]
push 0
push 0x10031f4
mov ecx, 0x80
sub ecx, eax
lea edi, [eax + eax]
push ecx
lea eax, [ebp + edi - 0x17c]
push eax
call fcn.01006033
push 0
lea eax, [ebp - 0x184]
push eax
add edi, 2
push edi
lea eax, [ebp - 0x17c]
push eax
push dword [esi]
call ebx
push 0
lea eax, [ebp - 0x184]
push eax
push 4
push 0x10031ec
push dword [esi]
call ebx
inc dword [esi + 8]
cmp dword [esi + 8], 0x3e8
pop edi
jle 0x1013441
mov ecx, esi
call fcn.01013158
mov dword [esi + 8], 0x2ee
mov ecx, esi
call fcn.01013144
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100c0c3
leave
ret 0xc
Function at 0x100424a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100424af
pop dword [ebp - 0x20]
mov eax, 0x100424af
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe0199a9d
add dword [ebp - 0x30], 0x6e38aaae
mov dword [ebp - 0x2c], 0x5f1cbef7
add dword [ebp - 0x2c], 0xd3168d4e
mov dword [ebp - 0x28], 0xedf45cf1
add dword [ebp - 0x28], 0x5e57e73d
mov dword [ebp - 0x24], 0x2a51dd33
add dword [ebp - 0x24], 0xd5ae22cd
lea eax, [ebp - 0x30]
push eax
mov eax, 0x90ed332e
sub eax, 0x80e4c2fa
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xa53df4c6
add dword [ebp - 0x30], 0xcf347490
mov dword [ebp - 0x2c], 0xb81bc90e
sub dword [ebp - 0x2c], 0x76af6799
mov dword [ebp - 0x28], 0x4d92e6da
sub dword [ebp - 0x28], 0xea237a6e
mov dword [ebp - 0x24], 0x99832d3b
add dword [ebp - 0x24], 0x667cd2c5
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xccae168d
add eax, 0x435a5997
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x405d2
push 0
call eax
mov ecx, 0x8ebee611
add ecx, 0x71416d3e
mov esi, eax
mov edx, 0x2ccc98ea
sub edx, 0x1cc108ea
add edx, dword [ebp - 0x20]
mov ebx, 0xee4c9d91
xor dword [ebp - 4], 0xd8a8db7a
mov edi, dword [edx]
add dword [ebp - 0x10], esi
xor edi, ebx
xor dword [ebp - 0x14], 0xbfe5aec9
mov dword [esi], edi
xor dword [ebp - 0x1c], 0x53ab86aa
add esi, 4
add edx, 0xcc03b702
sub edx, 0xcc03b6fe
loop 0x100425c6
add eax, 0x70bbe69d
sub eax, 0x70baa68e
xor ebx, ebx
add ebx, eax
add eax, 0x39f46c7a
sub eax, 0x39f46c75
mov ecx, 0x759c5104
add ecx, 0x9a63aefc
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4065b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, 0x6119
mov word [0x4591bc], ax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004156b0
cmp eax, 0x8000
jbe 0x40681f
fld qword [0x459128]
fld1
fsubp st(1)
push esi
fstp qword [0x459128]
mov eax, dword [0x459128]
mov ecx, dword [0x45912c]
mov dword [ebp - 8], eax
movsx eax, word [0x45940c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x128]
fild dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [ebp - 8]
fstp qword [0x459110]
call fcn.00403480
mov esi, eax
call fcn.0041a720
movzx ecx, al
and ecx, 0x80000003
jns 0x40663b
dec ecx
or ecx, 0xfffffffc
inc ecx
add ecx, 7
lea eax, [ebp - 0x128]
push ecx
add eax, esi
push eax
call fcn.004034f0
push 5
push 0x4de8
call fcn.00418b00
mov edx, eax
mov dword [ebp - 0xc], eax
add esp, 0x14
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x406663
push edi
lea edi, [ebp - 0x128]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406674
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
push 0x291
call fcn.00418b00
push dword [ebp - 0xc]
mov esi, eax
push 5
call fcn.004017c0
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0041cb77
push esi
push 3
mov edi, eax
call fcn.004017c0
add esp, 0x20
test edi, edi
je 0x40681d
push edi
mov dword [0x4595bc], 0x6fe8c235
mov ecx, ebx
push 1
call fcn.004156b0
push eax
mov ecx, ebx
call fcn.00418e10
push eax
call fcn.0041cd2a
push edi
call fcn.0041c84c
add esp, 0x14
mov ecx, ebx
call fcn.004166f0
push 0x104
lea eax, [ebp - 0x230]
mov byte [ebp - 0x12c], 0
push eax
push 0
call dword [0x45b4b0]
push 0x15
push 0x4dba
mov byte [ebp - 0x231], 0
call fcn.00418b00
push dword [0x45b3a4]
mov esi, eax
lea eax, [ebp - 0x230]
push dword [0x45b38c]
push eax
push esi
lea eax, [ebp - 0x438]
push 0x207
push eax
call fcn.0041d095
push esi
push 0x15
call fcn.004017c0
fld qword [0x459468]
mov eax, dword [0x459134]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 8]
fsub qword [ebp - 8]
fadd qword [0x44e5b8]
fstp qword [ebp - 8]
fld qword [0x459258]
fadd qword [ebp - 8]
fstp qword [0x459258]
fld qword [0x459468]
fld1
push dword [0x45b3a4]
fsubp st(1)
fstp qword [0x459468]
call fcn.0040c740
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004045b0
push 0x208
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0041da80
add esp, 0x40
lea eax, [ebp - 0x230]
push 0x105
push 0
push eax
call fcn.0041da80
add esp, 0xc
push 0x15f90
call dword [0x45b50c]
mov eax, dword [0x4590d8]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
fld qword [0x459560]
lea eax, [ebp - 0x128]
mov dword [ebp - 4], ecx
fadd qword [ebp - 8]
push eax
fstp qword [0x459560]
call dword [0x45b45c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4068c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
fld dword [0x459584]
fsub dword [0x44ec24]
mov eax, dword [0x459514]
mov dword [ebp - 4], eax
fstp qword [ebp - 0x10]
fild dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld dword [0x459290]
fadd dword [0x44ed60]
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 1
jne 0x406959
fld dword [0x45937c]
mov ecx, 0xb3bb9c13
movsx eax, word [0x459188]
fstp qword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
fstp qword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
fld qword [0x459560]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fadd qword [ebp - 8]
fsubr qword [ebp - 0x10]
fstp dword [0x45937c]
fld qword [0x459560]
fadd qword [0x44e3a0]
fstp qword [0x459560]
dec word [0x459188]
push dword [0x45aee8]
call fcn.0040d870
add esp, 4
push 1
call fcn.0041c2e0
int3

Function at 0x408280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
fld qword [0x459578]
sub esp, 8
cmp dword [0x45c528], 0
fsub qword [0x44f098]
fstp qword [0x459578]
jne 0x4082ab
call fcn.00414e30
mov dword [0x45c528], eax
push esi
push edi
push 3
push 0x291
call fcn.00418b00
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0041cb77
push esi
push 3
mov edi, eax
call fcn.004017c0
add esp, 0x18
test edi, edi
jne 0x408340
push 0x3e8
call dword [0x45b50c]
push 3
push 0x291
call fcn.00418b00
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0041cb77
movsx ecx, word [0x4591ec]
mov edi, eax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
fstp qword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
fld qword [0x459338]
fadd qword [0x44e8c0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fsubr qword [0x44e7b0]
fsubr qword [ebp - 8]
call fcn.0041d39c
push esi
push 3
mov word [0x4591ec], ax
call fcn.004017c0
add esp, 0x18
mov eax, dword [0x4593b8]
mov ecx, dword [0x4593bc]
mov dword [0x459178], eax
mov dword [0x45917c], ecx
test edi, edi
je 0x408372
push edi
push 1
push 4
push 0x45c528
call fcn.0041cd2a
push edi
call fcn.0041c84c
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret