joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fe7
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push ebx
push esi
push edi
xor edi, edi
push 0x20
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x160], 0x114
call fcn.0040245c
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4030f8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 4
pop ebx
lea esi, [ebp - 0x2c]
mov eax, ebx
call fcn.00401873
push 6
lea esi, [ebp - 0x1c0]
pop eax
call fcn.00401873
lea eax, [ebp - 0xc]
push eax
push 1
push edi
mov eax, esi
push eax
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403085
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
jbe 0x4030f8
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4030f8
push 0x3c
call fcn.0040245c
movzx edi, word [ebp - 0x15c]
mov dword [ebp - 4], eax
movzx eax, word [ebp - 0x158]
or edi, eax
mov eax, dword [ebp - 0x154]
imul eax, dword [ebp - 0x158]
movzx ebx, ax
push 5
lea esi, [ebp - 0x4c]
pop eax
call fcn.00401873
movzx eax, word [ebp - 8]
push ebx
push edi
push eax
push dword [ebp - 0x10]
mov eax, esi
push eax
push 0x3c
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push dword [ebp - 0x10]
call fcn.004024a1
mov eax, dword [ebp - 4]
add esp, 0x24
jmp 0x4030fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4030ff
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
lea eax, [ebp - 0x11c]
push eax
or bl, 0xff
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4031c1
push 2
pop ecx
cmp dword [ebp - 0x10c], ecx
jne 0x4031c1
xor eax, eax
inc eax
cmp byte [ebp - 2], al
jne 0x403181
cmp dword [ebp - 0x118], 5
jne 0x40315f
cmp dword [ebp - 0x114], eax
je 0x40315b
cmp dword [ebp - 0x114], ecx
jne 0x4031c1
mov bl, 0x1f
jmp 0x4031c1
cmp dword [ebp - 0x118], 6
jne 0x4031c1
cmp dword [ebp - 0x114], 0
jne 0x403175
mov bl, 0x3f
jmp 0x4031c1
cmp dword [ebp - 0x114], eax
jne 0x4031c1
mov bl, 0x5f
jmp 0x4031c1
cmp byte [ebp - 2], cl
je 0x40318c
cmp byte [ebp - 2], 3
jne 0x4031c1
cmp dword [ebp - 0x118], 5
jne 0x4031a1
cmp dword [ebp - 0x114], ecx
jne 0x4031c1
mov bl, 0x2f
jmp 0x4031c1
cmp dword [ebp - 0x118], 6
jne 0x4031c1
cmp dword [ebp - 0x114], 0
jne 0x4031b7
mov bl, 0x4f
jmp 0x4031c1
cmp dword [ebp - 0x114], eax
jne 0x4031c1
mov bl, 0x6f
mov al, bl
pop ebx
leave
ret
Function at 0x403361
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x40339d
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40339d
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4033aa
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4033f8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0040245c
pop ecx
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
cmp edi, esi
je 0x40343e
cmp ebx, esi
je 0x40343e
push 2
pop esi
push 0xff
mov eax, 0xfff
call fcn.0040170c
mov byte [edi + esi], al
inc esi
pop ecx
cmp esi, 0xc
jb 0x403410
push ebx
push edi
push dword [ebp + 0xc]
call fcn.00403361
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x403440
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403445
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 1
xor esi, esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x403467
xor eax, eax
inc eax
jmp 0x4034ae
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x5c]
push eax
call fcn.004024b7
push 0x10
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.004024b7
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x4000000
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x4034b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x3c]
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jbe 0x4034e5
mov ecx, dword [esi + 0x20]
lea eax, [edi + ebx*4]
mov eax, dword [eax + ecx]
add eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4034eb
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x4034c6
xor eax, eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x4034e7
Function at 0x403502
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, eax
je 0x403555
test edi, edi
je 0x403555
push dword [ebp + 0xc]
call fcn.004034b1
mov edi, eax
pop ecx
test edi, edi
je 0x403555
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 8
push dword [ebp + 8]
call esi
push 8
push dword [ebp + 8]
mov eax, edi
call fcn.00402520
pop ecx
pop ecx
push 0
push dword [ebp + 0xc]
push 8
push dword [ebp + 8]
call esi
xor eax, eax
inc eax
pop esi
jmp 0x403557
xor eax, eax
pop edi
pop ebp
ret

Function at 0x40355a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
mov ebx, dword [esi + 0x50]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x403587
xor eax, eax
jmp 0x403673
push edi
push 0x40
push 0x3000
push ebx
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x40366f
push ebx
push dword [ebp + 0xc]
call fcn.00402542
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
cmp ebx, edi
je 0x40365a
cmp dword [esi + 0xa4], edi
jbe 0x40364d
mov ecx, dword [esi + 0xa0]
cmp ecx, edi
jbe 0x40364d
mov edx, dword [ebp - 8]
sub edx, dword [esi + 0x34]
add ecx, ebx
jmp 0x403632
mov eax, dword [ecx + 4]
cmp eax, 8
jb 0x40362f
lea edi, [eax - 8]
shr edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], 0
je 0x40362d
mov eax, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 + 8]
test ax, ax
je 0x403625
and eax, 0xfff
add eax, dword [ecx]
add eax, ebx
add dword [eax], 3
mov edi, dword [esi + 0x34]
sub edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x10]
add edi, dword [eax]
lea edi, [edi + edx - 3]
mov dword [eax], edi
mov edi, dword [ebp - 0x14]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jb 0x4035f8
xor edi, edi
add ecx, dword [ecx + 4]
cmp dword [ecx], edi
jne 0x4035df
push edi
push dword [ebp - 0x18]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [ebp - 1]
push ebx
call fcn.004024a1
cmp byte [ebp - 1], 0
pop ecx
jne 0x40366f
push 0x8000
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038cc
Capabilities:
Enumerate pe sections
Get common file path
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x4038e7
xor eax, eax
jmp 0x4039ff
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4038e0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x4038e0
push ebx
push esi
push esi
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403939
xor eax, eax
jmp 0x4039fe
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040245c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4039fd
cmp dword [ebp - 8], 0
jbe 0x4039fd
mov esi, dword [edi + 0x3c]
mov eax, 0x5a4d
add esi, edi
cmp word [edi], ax
jne 0x4039f6
cmp dword [esi], 0x4550
jne 0x4039f6
push dword [esi + 0x50]
call fcn.0040245c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4039f6
push dword [esi + 0x54]
mov eax, edi
push ebx
call fcn.00402520
and dword [ebp - 4], 0
xor eax, eax
pop ecx
pop ecx
cmp ax, word [esi + 6]
jae 0x4039ec
and dword [ebp + 8], eax
mov eax, dword [edi + 0x3c]
add eax, dword [ebp + 8]
lea ecx, [eax + edi + 0xf8]
push dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
add ecx, ebx
add eax, edi
push ecx
call fcn.00402520
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add dword [ebp + 8], 0x28
pop ecx
pop ecx
cmp dword [ebp - 4], eax
jl 0x4039ba
push edi
call fcn.004024a1
mov eax, ebx
jmp 0x4039fc
push edi
call fcn.004024a1
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x403a02
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x4046b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ntdll.dll
mov ebx, eax
call fcn.004038cc
mov edi, eax
pop ecx
test edi, edi
je 0x403aba
test ebx, ebx
je 0x403aba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, str.NtCreateUserProcess
push eax
push eax
push ebx
call esi
push eax
mov eax, edi
call fcn.00403502
pop ecx
pop ecx
mov eax, str.NtCreateThread
push eax
push eax
push ebx
call esi
push eax
mov eax, edi
call fcn.00403502
pop ecx
pop ecx
mov eax, str.LdrLoadDll
push eax
push eax
push ebx
call esi
push eax
mov eax, edi
call fcn.00403502
pop ecx
pop ecx
mov eax, str.NtResumeThread
push eax
push eax
push ebx
call esi
push eax
mov eax, edi
call fcn.00403502
pop ecx
pop ecx
mov eax, str.NtEnumerateValueKey
push eax
push eax
push ebx
call esi
push eax
mov eax, edi
call fcn.00403502
pop ecx
pop ecx
mov eax, str.NtQueryDirectoryFile
push eax
push eax
push ebx
call esi
push eax
mov eax, edi
call fcn.00403502
push edi
call fcn.004024a1
add esp, 0xc
xor eax, eax
inc eax
pop esi
jmp 0x403abc
xor eax, eax
pop edi
pop ebx
ret
Function at 0x401100
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x415290]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x414]
push edi
mov ebp, 0x104
push ebp
mov ebx, 0x416060
push ebx
mov edi, 0x3e8
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x400
lea eax, [esp + 0x14]
push eax
push 2
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
push ebp
push ebx
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00401051
cmp eax, 1
pop ecx
pop ecx
jne 0x40118b
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0xfa
push 0xc5
push edi
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004082fa
add esp, 0x404
ret

Function at 0x4011a4
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x415290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x104
mov esi, 0x416060
push esi
push 0x3e8
push eax
mov dword [ebp - 0x808], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
call fcn.00408410
mov al, byte [eax + 0x41605f]
cmp al, 0x5c
pop ecx
je 0x40127e
cmp al, 0x2f
je 0x40127e
push edi
mov edi, 0x4121e8
push edi
push esi
call fcn.00408320
mov ebx, 0x416268
push ebx
push esi
call fcn.00408320
push edi
push esi
call fcn.00408320
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
je 0x40127e
test al, 0x10
je 0x40127e
push 0x400
lea eax, [ebp - 0x404]
push eax
push 3
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x24
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40127e
xor eax, eax
jmp 0x401281
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004082fa
leave
ret
Function at 0x401345
Capabilities:
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x415290]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2a4]
mov esi, 0x104
push esi
xor ebx, ebx
lea eax, [ebp + 0x194]
push ebx
push eax
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], esi
call fcn.00408280
push esi
lea eax, [ebp + 0x90]
push ebx
push eax
call fcn.00408280
add esp, 0x18
lea eax, [ebp + 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebp + 0x91], 0x3a
jne 0x4013c4
movsx eax, byte [ebp + 0x90]
push eax
call fcn.00408764
pop ecx
mov byte [ebp + 0x90], al
push 0x416370
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x401497
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x80]
push eax
push str.BaseLocation
push str.SoftwareEnterbrainRPGVX
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [ebp + 0x194]
push 0x4121f3
push eax
call fcn.00408639
test eax, eax
pop ecx
pop ecx
jne 0x401462
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00408280
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401462
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.00408310
lea eax, [ebp + 0x194]
push str.RPGVX
push eax
call fcn.00408320
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call fcn.00408410
cmp eax, 3
pop ecx
jle 0x401482
lea eax, [ebp + eax + 0x193]
cmp byte [eax], 0x5c
jne 0x401482
mov byte [eax], bl
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp + 0x90]
push eax
call fcn.00408310
pop ecx
pop ecx
lea eax, [ebp + 0x90]
push eax
mov esi, 0x3e8
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push 0xfa
push 0xc5
push esi
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [ebp + 0x298]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082fa
add ebp, 0x29c
leave
ret
Function at 0x4015a3
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x415290]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x7c], eax
call esi
test eax, eax
je 0x4015e1
xor eax, eax
inc eax
jmp 0x401687
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x4015f9
xor eax, eax
inc eax
jmp 0x401686
call edi
cmp eax, 3
jne 0x401676
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
call fcn.0040897b
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x88]
push eax
call fcn.004089c5
lea eax, [ebp + 0x88]
push eax
call fcn.00408410
add esp, 0x2c
test eax, eax
jbe 0x401665
lea eax, [ebp + 0x88]
lea edi, [ebp + 0x88]
push eax
dec edi
call fcn.00408410
cmp byte [eax + edi], 0x5c
pop ecx
jne 0x401665
lea eax, [ebp + 0x88]
push eax
call fcn.00408410
pop ecx
mov byte [eax + edi], bl
lea eax, [ebp + 0x88]
push eax
call fcn.004015a3
test eax, eax
pop ecx
jne 0x40167a
xor eax, eax
jmp 0x401686
push ebx
push dword [ebp - 0x7c]
call esi
neg eax
sbb eax, eax
neg eax
pop edi
mov ecx, dword [ebp + 0x18c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004082fa
add ebp, 0x190
leave
ret

Function at 0x4016a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00409450
mov eax, dword [0x415290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00409418
push 0x416990
push esi
mov edi, eax
call fcn.00409390
add esp, 0x14
test eax, eax
jne 0x401776
push eax
push 0x27100
push edi
call fcn.004092b3
mov esi, 0x10000
push esi
lea eax, [ebp - 0x10004]
push 0
push eax
call fcn.00408280
push esi
lea eax, [ebp - 0x10004]
push eax
push edi
call fcn.00409144
add esp, 0x24
xor eax, eax
cmp byte [ebp + eax - 0x10004], 0x4d
jne 0x401743
cmp byte [ebp + eax - 0x10003], 0x53
jne 0x401743
cmp byte [ebp + eax - 0x10002], 0x43
jne 0x401743
cmp byte [ebp + eax - 0x10001], 0x46
je 0x40174d
inc eax
cmp eax, 0xfffa
jb 0x40171b
jmp 0x401776
mov ecx, dword [0x41647c]
inc dword [0x41647c]
add eax, 0x27100
push 0
push eax
push edi
mov dword [ecx*4 + 0x416480], edi
mov dword [0x416478], eax
call fcn.004092b3
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004082fa
leave
ret
Function at 0x401941
Capabilities:
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x415290]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
mov esi, dword [ebp + 0xa4]
push edi
lea eax, [ebp - 0x70]
push 0x416888
push eax
call fcn.00408310
push dword [esi + 4]
lea eax, [ebp - 0x70]
push eax
call fcn.00408320
push dword [esi + 0x14]
call fcn.00401790
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4019ed
lea eax, [ebp - 0x80]
push eax
movzx eax, word [esi + 0x1a]
push eax
movzx eax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x4019e6
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x4019e6
lea eax, [ebp - 0x78]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esi + 0x1c]
and eax, 0x27
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 0x94]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004082fa
add ebp, 0x98
leave
ret
Function at 0x401a42
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
lea ebp, [esp - 0x4d4]
sub esp, 0x554
mov eax, dword [0x415290]
xor eax, ebp
mov dword [ebp + 0x4d0], eax
mov eax, dword [ebp + 0x4e0]
push ebx
mov ebx, dword [ebp + 0x4dc]
push esi
push edi
mov edi, dword [ebp + 0x4e8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x1cc]
push eax
lea eax, [ebp + 0xcc]
push eax
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.0040897b
xor esi, esi
push esi
push esi
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004089c5
lea eax, [ebp + 0x1cc]
push eax
lea eax, [ebp + 0xcc]
push eax
push esi
lea eax, [ebp + 0x2cc]
push esi
push eax
call fcn.004089c5
push ebx
push 0x416990
call fcn.00408310
add esp, 0x44
push dword [ebp - 0x3c]
push 0x416888
call fcn.00408310
mov eax, dword [ebp + 0x4e4]
mov dword [0x416884], eax
lea eax, [ebp - 0x68]
push eax
push 1
push 0x401795
push fcn.00401790
push 0x40178b
push 0x401786
push fcn.004016a8
push 0x4016a3
push 0x40169e
mov dword [0x416880], edi
call fcn.00401c40
mov edi, eax
add esp, 0x2c
cmp edi, esi
jne 0x401b32
xor eax, eax
jmp 0x401c27
push esi
push 0x8020
push ebx
call fcn.004016a8
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x401b51
push edi
call fcn.00401ce0
pop ecx
jmp 0x401b2b
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
call fcn.00401d50
add esp, 0xc
test eax, eax
push ebx
jne 0x401b72
call fcn.00409bb1
push edi
call fcn.00401ce0
pop ecx
jmp 0x401b4e
call fcn.00409bb1
mov eax, dword [0x416880]
cmp eax, esi
pop ecx
je 0x401b93
movzx ecx, word [ebp - 0x7a]
push ecx
push esi
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x401a19
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x2cc]
push eax
push edi
call fcn.00401e20
add esp, 0x1c
test eax, eax
push edi
je 0x401b49
call fcn.00401ce0
cmp dword [0x416880], esi
pop ecx
je 0x401c24
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x3c], eax
call edi
mov ebx, 0x1f4
jmp 0x401c1d
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401c0b
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401c1b
push 0x4bf
push 1
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call edi
sub eax, dword [ebp - 0x3c]
cmp eax, ebx
jb 0x401bd6
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x4d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082fa
add ebp, 0x4d4
leave
ret
Function at 0x40353c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x403583
cmp edx, 0x10
jl 0x40356f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40355c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x403583
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40357b
and edx, 3
cmp edx, 3
jne 0x403597
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40359c
cmp edx, 2
jne 0x4035a8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4035ad
cmp edx, 1
jne 0x4035b3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret