joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_CloseWindow]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x4010f1
push ebp
call fcn.00403570
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
push str.rtPulsingWin32_Console
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x40e6e4], eax
lea eax, [esp + 0x10]
push 0x100
push eax
call esi
test eax, eax
je 0x40115b
push eax
lea ecx, [esp + 0x14]
push str.rtPulsingWin32_Console
push ecx
call fcn.00404160
add esp, 0xc
test eax, eax
jne 0x40114e
lea edx, [esp + 0x10]
push edx
push eax
call edi
test eax, eax
jne 0x401154
push 0x32
call ebx
jmp 0x40111b
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
push 0x409b10
call fcn.00401450
add esp, 4
test eax, eax
push ebp
jne 0x401183
call fcn.00403570
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
call fcn.00403340
add esp, 4
test eax, eax
push ebp
jne 0x4011a8
call fcn.00403570
add esp, 4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
call fcn.00403210
add esp, 4
test eax, eax
push ebp
jne 0x4011cd
call fcn.00403570
add esp, 4
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
call fcn.00403090
add esp, 4
test eax, eax
push ebp
jne 0x4011f2
call fcn.00403570
add esp, 4
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
call fcn.00403150
add esp, 4
test eax, eax
jne 0x401217
push ebp
call fcn.00403570
add esp, 4
mov eax, 0xfffffff9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
push 0
call fcn.00401550
push ebp
call fcn.00403f10
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
add esp, 8
xor esi, esi
mov eax, dword [esi + 0x409480]
push eax
push ebp
call edi
mov ecx, dword [esi + 0x4097c0]
push ecx
push eax
call ebx
add esi, 4
cmp esi, 0x340
jl 0x401235
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret

Function at 0x403090
Capabilities:
Create thread

Disassembly:
push 0x423c64
push 0
push 0
push 0x402ea0
push 0
push 0
call fcn.00404198
add esp, 0x18
mov dword [0x423c60], eax
test eax, eax
jne 0x4030bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
ret
push 0x423c6c
push 0
push 0
push 0x402d90
push 0
push 0
call fcn.00404198
add esp, 0x18
mov dword [0x423c68], eax
test eax, eax
jne 0x4030e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
ret
mov eax, 1
ret
Function at 0x403340
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x128
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
push edi
mov dword [esp + 0x10], 0x138f8
mov dword [esp + 0x14], 0x3c2c
mov dword [esp + 0x18], 0x5e8
mov dword [esp + 0x1c], 0x1c84
mov dword [esp + 0x20], 0x1984
mov dword [esp + 0x24], 0x421e5c
mov dword [esp + 0x28], 0x421e58
mov dword [esp + 0x2c], 0x423a60
mov dword [esp + 0x30], 0x423a64
mov dword [esp + 0x34], 0x423a68
xor esi, esi
mov eax, dword [esi*4 + 0x4091a0]
mov ecx, dword [esp + esi*4 + 0x10]
push eax
push ecx
push 0
push 4
push 0
push 0xffffffffffffffff
call ebx
test eax, eax
mov dword [esi*4 + 0x423c30], eax
je 0x40344e
mov edi, dword [esp + esi*4 + 0x24]
push 0
push 0
push 0
push 6
push eax
call ebp
test edi, edi
mov dword [edi], eax
je 0x403499
inc esi
cmp esi, 5
jl 0x4033a8
call fcn.004032d0
call fcn.00403330
mov eax, dword [0x421e5c]
test eax, eax
je 0x40343e
xor eax, eax
lea ecx, [eax + 0x423a6c]
mov dword [eax*4 + 0x423abc], ecx
mov dword [eax*4 + 0x423b34], ecx
inc eax
cmp eax, 0x12
jl 0x403402
xor eax, eax
lea ecx, [eax + 0x421e60]
lea edx, [eax + 0x423ab0]
mov dword [eax*4 + 0x423b04], ecx
mov dword [eax*4 + 0x423b7c], edx
inc eax
cmp eax, 0xc
jl 0x40341e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi*4 + 0x4091a0]
push eax
push edx
lea eax, [esp + 0x40]
push str._Failed_CreateFileMapping:InitSharedMemory__Name:_s__Err:_d__n
push eax
call fcn.00404102
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401000
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi*4 + 0x4091a0]
push eax
push ecx
lea edx, [esp + 0x40]
push str._Failed_MapViewOfFile:InitSharedMemory__Name:_s__Err:_d__n
push edx
call fcn.00404102
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00401000
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x403f10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x118]
push 0xfffffffffffffffa
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
jne 0x403f4a
pop edi
pop esi
add esp, 0x10c
ret
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403f68
pop edi
pop esi
add esp, 0x10c
ret
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [0x423c78], eax
jne 0x403f89
pop edi
pop esi
add esp, 0x10c
ret
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x423c7c], eax
jne 0x403fab
pop edi
pop esi
add esp, 0x10c
ret
mov ecx, dword [0x423c78]
push eax
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403fd7
push esi
call fcn.00404030
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
mov ecx, dword [0x423c7c]
lea eax, [esp + 8]
push eax
push 0x423c80
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40400a
push esi
call fcn.00404030
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 8]
pop edi
shr edx, 2
mov dword [0x423c84], edx
mov eax, 1
pop esi
add esp, 0x10c
ret
Function at 0x405b35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40dc80
cmp edx, dword [eax]
je 0x405b57
add eax, 8
inc ecx
cmp eax, 0x40dd10
jl 0x405b48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40dc80]
jne 0x405c85
mov eax, dword [0x423c90]
cmp eax, 1
je 0x405c5f
test eax, eax
jne 0x405b88
cmp dword [0x40da44], 1
je 0x405c5f
cmp edx, 0xfc
je 0x405c85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405bbf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004070e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406120
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405c02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406120
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409edc
push edi
call fcn.00407620
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004070e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004070f0
lea eax, [ebp - 0xa0]
push 0x409ebc
push eax
call fcn.004070f0
push dword [esi + 0x40dc84]
lea eax, [ebp - 0xa0]
push eax
call fcn.004070f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407595
add esp, 0x2c
pop edi
jmp 0x405c85
lea eax, [ebp + 8]
lea esi, [esi + 0x40dc84]
push 0
push eax
push dword [esi]
call fcn.00406120
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 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.0040130e

Function at 0x4054c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004034d1
and dword [ebp - 0x14], 0
cmp dword [0x42295c], 0
mov dword [ebp - 0x18], eax
jne 0x405576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40561e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40561e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42295c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422964], eax
call edi
push eax
call esi
mov dword [0x42296c], eax
test eax, eax
je 0x405576
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422968], eax
mov eax, dword [0x422968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4055cf
cmp dword [0x42296c], ecx
je 0x4055cf
push eax
call esi
push dword [0x42296c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4055cf
test ebx, ebx
je 0x4055cf
call edi
test eax, eax
je 0x4055c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4055c6
test byte [ebp - 8], 1
jne 0x4055cf
or dword [ebp + 0x10], 0x200000
jmp 0x405602
mov eax, dword [0x422960]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405602
mov eax, dword [0x422964]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42295c]
call esi
test eax, eax
je 0x40561e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41bfa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c1d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dd0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c0f0
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c22d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c140
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c4b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
xor edi, edi
cmp dword [0x1ef4de4], 0x8cf
jne 0x41c4e6
push 0
push 0
call ebx
cmp edi, 0x845013
jne 0x41c4fd
mov eax, dword [0x421bf0]
add eax, 0xa231
mov dword [0x1ef4de4], eax
cmp dword [0x1ef4de4], 0x141
jne 0x41c52b
push str.viwesorihefukenapedumate_ronofo_virejesirahipuj_cafaloteceselu_dizupucucakixucafukiz
lea ecx, [ebp - 0x804]
push ecx
call esi
mov dword [0x422e80], 0xec58acac
mov dword [0x422e84], 0xffffffff
inc edi
cmp edi, 0xbbe2a98
jl 0x41c4d4
call fcn.0041c240
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41217c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b9d2
and dword [ebp - 4], 0
cmp dword [0x433f30], 0
mov ebx, eax
jne 0x41222d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4122de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4122de
push eax
call fcn.0040b960
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433f30], eax
call esi
push eax
call fcn.0040b960
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433f34], eax
call esi
push eax
call fcn.0040b960
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433f38], eax
call esi
push eax
call fcn.0040b960
pop ecx
mov dword [0x433f40], eax
test eax, eax
je 0x41222d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b960
pop ecx
mov dword [0x433f3c], eax
mov eax, dword [0x433f3c]
cmp eax, ebx
je 0x412285
cmp dword [0x433f40], ebx
je 0x412285
push eax
call fcn.0040b9db
push dword [0x433f40]
mov esi, eax
call fcn.0040b9db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412285
test edi, edi
je 0x412285
call esi
test eax, eax
je 0x41227c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41227c
test byte [ebp - 0xc], 1
jne 0x412285
or dword [ebp + 0x10], 0x200000
jmp 0x4122be
mov eax, dword [0x433f34]
cmp eax, ebx
je 0x4122be
push eax
call fcn.0040b9db
pop ecx
test eax, eax
je 0x4122be
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4122be
mov eax, dword [0x433f38]
cmp eax, ebx
je 0x4122be
push eax
call fcn.0040b9db
pop ecx
test eax, eax
je 0x4122be
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433f30]
call fcn.0040b9db
pop ecx
test eax, eax
je 0x4122de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4122e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.00418a17
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00418978
add esp, 0xc
jmp 0x41a97f
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00418a07
mov bh, byte [edi - 0x4a006f9c]
pushal
cld
invalid
Function at 0x427490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427d3b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43217c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4274f6
mov eax, dword [ebp + 8]
push eax
call fcn.00408feb
add esp, 4
test eax, eax
je 0x4274f6
cmp dword [ebp + 0xc], 0
je 0x4274f6
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408feb
add esp, 4
test eax, eax
jne 0x4274fd
xor al, al
jmp 0x427639
mov edx, dword [ebp + 8]
push edx
call fcn.00408feb
add esp, 4
cmp eax, 0x400
jae 0x427523
mov eax, dword [ebp + 0xc]
push eax
call fcn.00408feb
add esp, 4
cmp eax, 0x400
jb 0x42752a
xor al, al
jmp 0x427639
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42753f
xor al, al
jmp 0x427639
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00426920
movzx eax, al
test eax, eax
jne 0x427559
xor al, al
jmp 0x427639
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4275c5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00402970
mov dword [ebp - 0x18], 0
mov eax, 0x5c
mov ecx, dword [ebp - 0x20]
call fcn.004029b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x427599
xor edx, edx
mov eax, dword [ebp - 0x18]
mov word [eax], dx
jmp 0x4275ac
push 0x800
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00409180
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00427070
movzx eax, al
test eax, eax
jne 0x4275c3
xor al, al
jmp 0x427639
jmp 0x42761c
mov dword [ebp - 0x1c], 0
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408245
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4275e7
xor al, al
jmp 0x427639
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp + 8]
sar edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
push 0x400
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004084c5
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00426a00
movzx eax, al
test eax, eax
jne 0x42761c
xor al, al
jmp 0x427639
jmp 0x42762f
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e652
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
or edx, 0xffffffff
sub edx, eax
sub esp, 0x10
cmp ecx, edx
jb 0x40e66d
xor eax, eax
leave
ret
add eax, ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x20]
ja 0x40e669
push ebx
imul eax, eax, 0x14
push 0x2be
mov ebx, 0x402bbc
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0040ec30
cmp dword [ebp - 4], 0
jne 0x40e69d
xor eax, eax
jmp 0x40e73d
mov eax, dword [esi + 0x28]
imul eax, eax, 0x14
push edi
push eax
lea edi, [esi + 0x24]
push dword [edi]
push dword [ebp - 4]
call fcn.00408f38
add esp, 0xc
push 0x2c7
push ebx
push edi
call fcn.0040ed03
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x28]
mov ebx, dword [ebp - 0x10]
mov dword [edi], eax
xor eax, eax
test ecx, ecx
setne al
imul eax, eax, 0xc
lea edx, [eax + esi]
mov dword [edx + 0x38], ecx
mov eax, dword [esi + 0x28]
cmp eax, ebx
jae 0x40e71b
mov edi, eax
imul edi, edi, 0x14
lea ecx, [eax + 1]
sub ebx, eax
shl ecx, 4
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
add eax, ebx
mov ebx, dword [ebp - 4]
lea edi, [edi + ebx + 0x10]
mov ebx, dword [edi]
xor ebx, ecx
and ebx, 0xf
xor ebx, ecx
mov dword [edi], ebx
mov edi, dword [ebp - 8]
add edi, 0x14
add ecx, 0x10
dec dword [ebp - 0xc]
mov dword [ebp - 8], edi
jne 0x40e6f8
mov ecx, dword [ebp - 4]
dec eax
imul eax, eax, 0x14
lea eax, [eax + ecx + 0x10]
or dword [eax], 0xfffffff0
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x34], eax
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.0040e618
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x5d497788
Capabilities:
Encode data using xor

Disassembly:
sahf
aam 0x96
lodsd eax, dword [esi]
sbb dh, dh
cli
sti
jge 0x5d4977c0
aaa
aaa
adc al, 0xcd
wait
inc eax
xchg esi, eax
cmc
fisttp word [edi - 0x5b1367c2]
xchg dh, cl
adc al, 0xa3
outsd dx, dword [esi]
scasb al, byte es:[edi]
cmp byte [ebx - 0x27], dh
jg 0x5d497817
and esp, dword [edx]
salc
mov ah, 0xcf
xlatb
or esi, ebp
pop es
xchg eax, edx
inc edi
jne 0x5d4977e1
push edx
movsb byte es:[edi], byte [esi]
push eax
cmpsd dword [esi], dword es:[edi]
dec esp
ret
cld
mov esi, 0xfeeb0ef1
inc ebx
mov dl, 0x93
wait
dec edx
shr byte [edi + edi*4 + 0x1c], 0x46
or ebx, edx
mov dword [edx + 0x34], ebx
cmc
fidiv word [ebx]
fnstcw word [ecx + ebp*2]
rcl dword es:[edi + 0x2a17d98f], cl
jae 0x5d49777f
fst dword [edi]
sub ah, byte [esi]
jae 0x5d49777f
out 0xe, eax
movsd dword es:[edi], dword [esi]
fmul qword [edi + 0x46fa768f]
pop esp
into
outsb dx, byte [esi]
sar edx, 0xf8
insb byte es:[edi], dx
in eax, dx
fld dword [eax - 0x67ab458f]
leave
call 0x6b3a39a2
aad 0xcf
ficom word [ebp + 0x12da702e]
mov dh, 0x9f
cmp al, bl
or eax, 0x461aed58
mov ah, byte [ebx + 0x68]
lcall 0x7237, 0x7b4e7dda
xor esi, dword [esp + ecx*8 + 0x7e]
mov edi, 0xadced732
ja 0x5d49787c
push ebx
inc esp
test byte [edi - 0x158f5421], dh
mov ebx, 0xc51c7dcf
mov ah, 0x52
pop eax
pop ds
or eax, 0xf9ca98fd
push cs
cmp byte [eax - 0x5b], dl
movsd dword es:[edi], dword [esi]
inc di
scasd eax, dword es:[edi]
nop
inc edx
leave
cmpsd dword [esi], dword es:[edi]
loope 0x5d497845
int1
out 0xe, eax
adc al, byte [ebp + eax*4 - 0x6d07f870]
or eax, 0x943e7dd8
cwde
invalid
out 0xd9, eax
ljmp 0x44a6
add bh, byte [eax]
jae 0x5d497863
stosb byte es:[edi], al
test dword [esi], esp
xor dl, bl
sbb edi, ebx
test al, 0x50
mov edi, dword [eax + 0x753215]
loope 0x5d497883
ret 0xf85a
Function at 0x40528c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
and eax, 0xff
test eax, eax
je 0x4052ad
push 0xffffffffffffffff
mov ecx, dword [0x40dd90]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 8]
push edx
mov eax, dword [0x40dd90]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [0x40dd94]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40dd90]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405000
call dword [0x40deb4]
mov eax, dword [0x40dfc4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x40e0cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40dea8]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [0x40dea8]
mov dword [ecx], eax
mov edx, dword [0x40dea8]
xor eax, eax
cmp dword [edx], 0
sete al
mov byte [ebp - 4], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x405343
xor edx, edx
mov dl, byte [0x40deac]
test edx, edx
jne 0x405343
push 0x40dda0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov al, byte [0x40deac]
neg eax
sbb al, al
not al
and eax, dword [ebp - 4]
push eax
call fcn.0040537d
add esp, 4
mov ecx, dword [0x40dea8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [0x40dd88]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret