joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401040
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x13c
push ebp
push esi
push edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 0x3c
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4181d8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], eax
push 0x77
mov dword [esp + 0x1c], eax
mov ecx, 0x416e70
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], 0x30
mov dword [esp + 0x60], 0x3000
call fcn.00402ef0
mov ebp, dword [sym.imp.COMCTL32.dll_CreatePropertySheetPageA]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x68], 0x69
mov dword [esp + 0x74], 0x401980
call ebp
mov dword [esp + 0xc], eax
mov ecx, 0xc
lea esi, [esp + 0x58]
lea edi, [esp + 0x88]
lea eax, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x90], 0x3000
mov dword [esp + 0xb4], 0x78
mov dword [esp + 0xb8], 0
mov dword [esp + 0x98], 0x6a
mov dword [esp + 0xa4], 0x401bc0
call ebp
mov ecx, 0xc
lea esi, [esp + 0x88]
lea edi, [esp + 0xb8]
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xe0], 0x79
push ecx
mov dword [esp + 0xe8], 0
mov dword [esp + 0xc8], 0x6b
mov dword [esp + 0xd4], 0x401dd0
call ebp
mov ecx, 0xc
lea esi, [esp + 0xb8]
lea edi, [esp + 0xe8]
push 0x7a
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x416e70
mov dword [esp + 0x18], eax
call fcn.00402ef0
lea edx, [esp + 0xe8]
mov dword [esp + 0x110], eax
push edx
mov dword [esp + 0xf8], 0x6c
mov dword [esp + 0x104], 0x401e10
call ebp
mov dword [esp + 0x18], eax
mov ecx, 0xc
lea esi, [esp + 0xe8]
lea edi, [esp + 0x118]
lea eax, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x144], 0x7b
mov dword [esp + 0x128], 0x6d
mov dword [esp + 0x134], 0x401f10
call ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4181d8]
push 0x6e
push eax
mov dword [esp + 0x28], 0x34
mov dword [esp + 0x2c], 3
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x417fd4
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
or edi, 0x8a040
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], 5
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], 0x65
mov dword [esp + 0x54], 0x64
call dword [sym.imp.COMCTL32.dll_PropertySheetA]
pop edi
pop esi
test eax, eax
pop ebp
je 0x4012bd
cmp eax, 0xffffffff
je 0x4012bd
push str.envSetupPath
mov ecx, 0x416e70
call fcn.00402f70
test eax, eax
je 0x4012bd
cmp byte [eax], 0
je 0x4012bd
push 0x417254
push eax
call fcn.004012d0
add esp, 8
lea eax, [esp + 0x48]
push eax
push 0x1f4
push 2
push str.Environment
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
xor eax, eax
add esp, 0x13c
ret
Function at 0x4012d0
Capabilities:
Set registry value

Disassembly:
push esi
push 1
call fcn.00401310
mov esi, eax
add esp, 4
test esi, esi
jne 0x4012e5
xor al, al
pop esi
ret
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x10]
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
ret

Function at 0x401580
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub esp, 0x110
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x418220]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x418220]
lea edx, [esp]
push ecx
push str._c_del__q__s
push 0x10e
push edx
call fcn.0040a0be
add esp, 0x10
lea eax, [esp]
push 0
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401920
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x200
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40196e
lea edx, [esp + 4]
push 0x200
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 4]
push 0x200
push eax
mov ecx, 0x416e70
call fcn.00402d50
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
add esp, 0x200
ret

Function at 0x401f90
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
push esi
mov esi, dword [esp + 0x320]
test esi, esi
jne 0x401fac
xor eax, eax
pop esi
add esp, 0x314
ret
lea eax, [esp + 4]
push eax
push 0x4111f8
push 1
push 0
push 0x4111e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x401fd3
xor eax, eax
pop esi
add esp, 0x314
ret
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x4146f0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
mov eax, dword [esp + 4]
jge 0x401ffe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop esi
add esp, 0x314
ret
mov ecx, dword [esp + 0x31c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x328]
test eax, eax
je 0x402022
mov ecx, dword [esp + 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ecx, dword [esp + 0x32c]
test cx, cx
je 0x402039
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
mov ecx, dword [esp + 0x330]
test ecx, ecx
je 0x40204f
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x334]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x324]
lea ecx, [esp + 0xc]
push eax
push esi
push str._s_s.lnk
push 0x104
push ecx
call fcn.0040a0be
add esp, 0x14
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea edx, [esp + 0x110]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
test esi, esi
setge al
pop esi
add esp, 0x314
ret

Function at 0x4021a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.00403be0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x4021d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4021cc
mov al, 1
pop esi
ret
cmp eax, 5
jne 0x4021d5
xor al, al
pop esi
ret
xor eax, eax
test esi, esi
setne al
pop esi
ret
Function at 0x4021e0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x588
lea edx, [esp + 0x148]
mov al, byte [ecx]
test al, al
je 0x402201
inc ecx
mov byte [edx], al
inc edx
mov al, byte [ecx]
test al, al
jne 0x4021f7
mov al, byte [edx - 1]
cmp al, 0x2f
je 0x402210
cmp al, 0x5c
je 0x402210
mov byte [edx], 0x5c
inc edx
push ebx
push ebp
push esi
push edi
mov edi, 0x41610c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
lea edx, [esp + 0x158]
mov dword [esp + 0x14], edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x402382
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [esp + 0x18], 0x10
je 0x4022b8
cmp byte [esp + 0x44], 0x2e
je 0x40233c
lea ecx, [esp + 0x158]
push ecx
call fcn.004021e0
add esp, 4
test al, al
je 0x402355
jmp 0x40233c
lea edx, [esp + 0x158]
push edx
call fcn.004021a0
add esp, 4
test al, al
jne 0x40233c
mov ecx, dword [0x4181d8]
lea eax, [esp + 0x358]
push 0x240
push eax
push 0x84
push ecx
call ebp
lea edi, [esp + 0x158]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x358]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x12
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x35c]
and ecx, 3
push 0x417fd4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4181d4]
push eax
push ecx
call ebx
cmp eax, 4
je 0x4022b8
cmp eax, 5
jne 0x402355
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402362
jmp 0x402266
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x588
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x158]
push eax
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x588
ret
Function at 0x402ca0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov al, byte [0x4181e0]
push esi
push edi
mov edi, ecx
test al, al
jne 0x402d3e
mov al, byte [esp + 0xc]
push ebx
test al, al
mov byte [0x4181e0], 1
je 0x402ce1
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ebx, [edi + 0x624]
push 0
push 0x2a
push ebx
push 0
call esi
test eax, eax
jne 0x402cf6
push eax
push 0x26
push ebx
push eax
jmp 0x402cf4
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
lea eax, [edi + 0x624]
push 0x26
push eax
push 0
call esi
mov al, byte [esp + 0x14]
pop ebx
test al, al
push 0
je 0x402d22
lea ecx, [edi + 0xa24]
push 0x19
push ecx
push 0
call esi
push 0
add edi, 0xc24
push 0x17
push edi
push 0
call esi
pop edi
pop esi
ret 8
lea edx, [edi + 0xa24]
push 0x10
push edx
push 0
call esi
push 0
add edi, 0xc24
push 2
push edi
push 0
call esi
pop edi
pop esi
ret 8
Function at 0x403be0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403c01
or eax, 0xffffffff
pop esi
ret
cmp eax, 3
jne 0x403c0b
or eax, 0xffffffff
pop esi
ret
xor ecx, ecx
cmp eax, 5
sete cl
add ecx, 0xfffffffd
pop esi
mov eax, ecx
ret
mov cl, byte [esp + 0xc]
mov edx, eax
and edx, 1
cmp cl, dl
jne 0x403c2e
mov eax, 1
pop esi
ret
and al, 0x7e
test cl, cl
je 0x403c40
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret
or al, 0x80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret
Function at 0x404440
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x410
push ebp
push esi
mov esi, ecx
push edi
push 0x416164
lea edi, [esi + 4]
push edi
call fcn.0040a7e4
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x4044a1
push edi
push str.Open_file_n__s_n
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.0040a0be
mov edx, dword [0x4181d4]
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x10
push 0x417fd4
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
add esp, 0x410
ret
push ebx
push ebp
lea ecx, [esp + 0x18]
call fcn.00404c40
mov eax, dword [esi + 0x1130]
test eax, eax
je 0x40458e
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c60
lea eax, [esp + 0x10]
push 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00404d00
mov ecx, dword [esp + 0x10]
push ecx
push 0
mov ecx, esi
call fcn.00402b60
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x40458e
mov ebp, dword [sym.imp.KERNEL32.dll_WinExec]
lea ebx, [esi + 0x3e4]
lea edx, [esp + 0x220]
push 0x200
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00403a00
add esp, 0xc
inc edi
mov ecx, esi
push edi
call fcn.00402c30
lea ecx, [esp + 0x220]
lea edx, [esp + 0x20]
push ecx
push ebx
push str.Executing_._s
push 0x200
push edx
call fcn.0040a0be
mov eax, dword [esi + 0x115c]
add esp, 0x14
test eax, eax
je 0x404557
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea edx, [esp + 0x220]
lea eax, [esp + 0x20]
push edx
push ebx
push str._s_s
push 0x200
push eax
call fcn.0040a0be
add esp, 0x14
lea ecx, [esp + 0x20]
push 0
push ecx
call ebp
cmp edi, dword [esp + 0x10]
jl 0x4044fe
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x1134]
test eax, eax
je 0x40463e
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c60
lea edx, [esp + 0x10]
push 4
push edx
lea ecx, [esp + 0x1c]
call fcn.00404d00
mov ecx, dword [esi + 0x113c]
mov eax, dword [esp + 0x10]
inc ecx
xor edi, edi
test eax, eax
mov dword [esi + 0x113c], ecx
jle 0x40463e
lea ebx, [esi + 0x3e4]
lea eax, [esp + 0x220]
push 0x200
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00403a00
mov edx, dword [esi + 0x1140]
add esp, 0xc
mov ecx, esi
push str._EXEC
push edx
call fcn.00403a90
lea eax, [esp + 0x220]
lea ecx, [esp + 0x20]
push eax
push ebx
push str._s_s
push 0x200
push ecx
call fcn.0040a0be
mov eax, dword [esi + 0x1140]
add esp, 0x14
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push eax
call fcn.00403a90
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4045d5
push ebp
call fcn.0040a4fc
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x410
ret
Function at 0x404ac0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov al, byte [ecx + 0x44]
push ebx
push esi
push edi
test al, al
je 0x404b5f
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x404af5
call fcn.00404b90
mov esi, eax
test esi, esi
jne 0x404ae7
pop edi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x404b49
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x404b1d
mov edx, dword [esp + 0x10]
push edx
call fcn.00404a60
mov esi, eax
test esi, esi
jne 0x404b13
pop edi
pop esi
pop ebx
ret 0xc
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x404b49
mov eax, dword [esp + 0x10]
push eax
call fcn.00404a60
mov esi, eax
test esi, esi
jne 0x404b33
pop edi
pop esi
pop ebx
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 0x170
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40e315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416b38
cmp edx, dword [eax]
je 0x40e337
add eax, 8
inc ecx
cmp eax, 0x416bc8
jl 0x40e328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416b38]
jne 0x40e465
mov eax, dword [0x41823c]
cmp eax, 1
je 0x40e43f
test eax, eax
jne 0x40e368
cmp dword [0x4165f4], 1
je 0x40e43f
cmp edx, 0xfc
je 0x40e465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e39f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fc40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c3d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e3e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c3d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414acc
push edi
call fcn.0040a560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fc40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fc50
lea eax, [ebp - 0xa0]
push 0x414aac
push eax
call fcn.0040fc50
push dword [esi + 0x416b3c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fc50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040fd30
add esp, 0x2c
pop edi
jmp 0x40e465
lea eax, [ebp + 8]
lea esi, [esi + 0x416b3c]
push 0
push eax
push dword [esi]
call fcn.0040c3d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40f500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, ecx
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f510
sub eax, esi
sar eax, 1
jne 0x40f528
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push edx
call fcn.00474dd2
add esp, 4
mov dword [ebp - 4], eax
mov esi, eax
xor edi, edi
push ebx
lea ebx, [ebx]
push 0x4c21d4
push esi
call fcn.00474d43
push 0x4c21d4
lea esi, [esi + eax*2]
push esi
call fcn.00474d87
cmp word [esi + eax*2], 0
push dword [ebp - 4]
sete bl
lea esi, [esi + eax*2]
xor eax, eax
mov word [esi], ax
call fcn.00474cb6
add esp, 0x14
test eax, eax
jne 0x40f579
inc edi
test bl, bl
jne 0x40f587
mov eax, 0x5c
mov word [esi], ax
jmp 0x40f540
mov eax, dword [ebp - 4]
pop ebx
test eax, eax
je 0x40f598
push eax
call fcn.00474c7e
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7508
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4d67e8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4d67e8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
push 0x4c3808
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call fcn.00474b6f
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x414d25
xor al, al
jmp 0x414ebb
push 2
push 0
push eax
call fcn.00475ea0
add esp, 0xc
push dword [esp + 0x14]
call fcn.00475cfa
add esp, 4
mov esi, eax
push 0
push 0
push dword [esp + 0x1c]
call fcn.00475ea0
add esp, 0xc
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x60], 0
test esi, esi
jne 0x414d7c
mov dword [esp + 0x30], esi
mov byte [esp + esi + 0x20], 0
jmp 0x414d88
push 0
push esi
lea ecx, [esp + 0x28]
call fcn.00410420
push dword [esp + 0x14]
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
push 1
cmovae eax, dword [esp + 0x28]
push esi
push eax
call fcn.0047560a
push dword [esp + 0x24]
call fcn.00475722
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x34]
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x2c]
add esp, 0x14
mov word [esp + 0x18], 0xbbef
cmp edi, 0x10
mov byte [esp + 0x1a], 0xbf
movzx eax, word [edx]
cmovae ecx, esi
cmp ax, word [ecx]
jne 0x414e4b
movzx eax, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x414e4b
push 0xffffffffffffffff
push 3
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004104d0
mov esi, eax
lea eax, [esp + 0x20]
cmp eax, esi
je 0x414e30
cmp dword [esp + 0x34], 0x10
jb 0x414e11
push dword [esp + 0x20]
call fcn.0045ec61
add esp, 4
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00410600
cmp dword [esp + 0x4c], 0x10
jb 0x414e43
push dword [esp + 0x38]
call fcn.0045ec61
add esp, 4
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x20]
cmp edi, 0x10
mov eax, 4
mov edx, str.null
cmovae ecx, esi
cmp ebx, eax
cmovb eax, ebx
push eax
call fcn.0040f710
add esp, 4
test eax, eax
jne 0x414e88
cmp ebx, 4
jb 0x414e88
cmp ebx, 4
setne al
test eax, eax
jne 0x414e88
xor bl, bl
jmp 0x414eab
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
cmp edi, 0x10
cmovae eax, esi
push eax
call fcn.004161a0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
cmp dword [eax + 0x30], 0
sete bl
cmp edi, 0x10
jb 0x414eb9
push esi
call fcn.0045ec61
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004735e9
mov esp, ebp
pop ebp
ret
Function at 0x414ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7548
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x4d67e8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [edx + 0x14], 8
mov dword [esp + 0x10], 0
jb 0x414f1d
mov edx, dword [edx]
push 0x4c3818
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00474b6f
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x414f4b
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movdqu xmmword [esp + 0x14], xmm0
mov dword [esp + 0x28], 0x100
cmp byte [ebp + 8], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x68], 0
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x48], 0x144
mov byte [esp + 0x4c], 0
mov dword [esp + 0x2c], eax
je 0x414fc5
mov byte [esp + 0x50], 0x20
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], 0
lea eax, [esp + 0x2c]
mov byte [esp + 0x68], 1
push eax
mov ecx, esi
call fcn.004150f0
jmp 0x414fd6
lea eax, [esp + 0x2c]
mov byte [esp + 0x68], 2
push eax
mov ecx, esi
call fcn.004153b0
mov byte [esp + 0x68], 0
push dword [esp + 0x38]
call fcn.00474c7e
add esp, 4
push dword [esp + 0x34]
call fcn.0045ec61
mov ecx, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x24]
mov esi, ecx
sub esi, dword [esp + 0x1c]
sub eax, ecx
cmp eax, 1
jge 0x415017
push 1
lea ecx, [esp + 0x18]
call fcn.004161d0
mov ecx, dword [esp + 0x20]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
mov byte [eax], 0
push dword [esp + 0x10]
dec dword [esp + 0x24]
push esi
push 1
push dword [esp + 0x28]
call fcn.00474989
push dword [esp + 0x20]
mov esi, eax
call fcn.00475722
mov ecx, dword [esp + 0x34]
add esp, 0x14
mov edx, dword [esp + 0x1c]
sub ecx, edx
cmp esi, ecx
push edx
sete bl
call fcn.00474c7e
add esp, 4
push dword [esp + 0x18]
call fcn.0045ec61
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00474989
xor ecx, ecx
add esp, 0x10
cmp eax, dword [ebp + 0xc]
sete al
pop ebp
ret 0x10