joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098f6
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2158
call fcn.0040aa00
cmp dword [0x46554c], 0x37
jne 0x409a03
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
call edi
push esi
lea eax, [ebp - 0x1958]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x401420
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push esi
lea eax, [ebp - 0x958]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
call ebx
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
lea eax, [ebp - 0x1158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0x401488
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x2158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
push esi
call edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
pop edi
pop esi
pop ebx
mov eax, dword [0x465960]
mov dword [ebp - 4], eax
mov eax, 0x38d6
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + eax]
mov edx, dword [0x465128]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x40b1f0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40b213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40b21a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40b231
mov edx, dword [ebp - 4]
push edx
call fcn.004115e0
add esp, 4
or eax, 0xffffffff
jmp 0x40b233
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41db10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x461fc4]
jne 0x41db1a
repz ret
jmp fcn.00427bd0
Function at 0x42f420
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42f43f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x42f446
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x42f45d
mov ecx, dword [ebp - 4]
push ecx
call fcn.004115e0
add esp, 4
or eax, 0xffffffff
jmp 0x42f45f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x25639c7
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x2563b8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x2563b88
mov edx, esi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x2563a32
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0255c142
add esp, 0xc
test ebx, ebx
je 0x2563b32
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x2563b1b
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x2563a77
movzx ebx, ax
jmp 0x2563a7c
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x2563af3
cmp dword [0x2568eac], 1
jne 0x2563af3
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0255c142
lea eax, [esp + 0x34]
push eax
call fcn.02563c74
lea eax, [esp + 0x38]
push 0x255b204
push eax
call fcn.0255c170
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0255c170
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0255c197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x2568e58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x2563a70
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x25639f9
jmp 0x2563b88
lea eax, [esp + 0x28]
push eax
call fcn.02563c74
lea eax, [esp + 0x2c]
mov dword [esp], 0x255b1e8
push eax
call fcn.0255c170
lea eax, [esp + 0x30]
push edi
push eax
call fcn.0255c170
add esp, 0x10
cmp dword [0x2568eac], 1
jne 0x2563b88
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0255c197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x2568e58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x11c
ret
Function at 0x2563bc2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.02563c40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x2568d24], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x2568d24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x2568d28], eax
push 0
push 0
push 0
push 4
push dword [0x2568d28]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x2568eb4]
mov esp, ebp
pop ebp
ret
Function at 0x2563ccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x2563cdf
xor eax, eax
jmp 0x2563e63
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x2563d1d
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x2563d36
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x2563d36
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x2563d43
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x2563d7c
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x2563d3c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x2563e1c
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x2563dac
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x2563e0b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x2563dc4
jmp 0x2563da5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x2563dfc
jmp 0x2563e09
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x2563da5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x2563d7c
and dword [ebp - 0x14], 0
jmp 0x2563e29
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x2563e61
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x2563e22
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x256400a
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.02563fcd
push esi
call fcn.025641bb
push dword [esp + 0x84]
mov esi, eax
call fcn.025641bb
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0255c142
lea eax, [esp + 0x34]
push eax
push 5
push esi
call fcn.02563ee7
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x25641a2
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.025641f0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x25641a2
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x2564185
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x256416a
xor edx, edx
lea ecx, [edi + 0x2c]
test ebx, ebx
je 0x25640eb
mov ebp, esi
sub ebp, ecx
mov al, byte [ecx + ebp]
mov byte [ecx], al
mov byte [edi + edx + 0x4c], al
inc edx
inc ecx
cmp edx, ebx
jb 0x25640d5
mov ebp, dword [esp + 0x20]
lea ecx, [edi + 0x2c]
lea eax, [ebx + esi]
push eax
lea eax, [ecx + ebx]
push eax
call fcn.02563f88
mov edx, dword [esp + 0x20]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x2564134
lea eax, [edi + 0xc]
push edx
push eax
call fcn.02563f88
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x2564136
mov eax, edx
push eax
push esi
call fcn.02563f88
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x2564196
mov ecx, dword [esp + 0x7c]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x25641a2
push 1
push edi
call fcn.025642e4
pop ecx
pop ecx
xor edi, edi
push 0x2568d40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x6c
ret
Function at 0x25641f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x2568d34], 0x40
jae 0x25642dd
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x25642da
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x25642b5
cmp dword [esp + 0x20], 0x10000
jne 0x25642a7
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x25642ab
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x25642ab
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x25642b9
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x2564258
test ebx, ebx
je 0x25642da
xor eax, eax
cmp dword [eax*4 + 0x2568d58], 0
je 0x25642cd
inc eax
cmp eax, 0x40
jb 0x25642bb
jmp 0x25642da
inc dword [0x2568d34]
mov dword [eax*4 + 0x2568d58], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
Function at 0x256594c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push edi
lea edi, [eax + ebp]
cmp eax, 8
ja 0x256596f
push 0xffffffffffffffe2
pop eax
jmp 0x2565b04
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push 0x800
lea esi, [ebp + 8]
lea eax, [ebx + 0x5410]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + 0x140c]
push esi
push eax
call fcn.02567c43
add esp, 0x14
cmp eax, 0xffffff88
ja 0x2565aff
add esi, eax
mov dword [esp + 0x18], 0x1c
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.02565b6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x2565aff
cmp dword [esp + 0x14], 8
ja 0x2565aff
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push dword [esp + 0x1c]
push eax
lea eax, [ebx + 0x804]
push eax
call fcn.02566029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x2565aff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x20], 0x34
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.02565b6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x2565aff
cmp dword [esp + 0x1c], 9
ja 0x2565aff
push dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push dword [esp + 0x24]
push eax
lea eax, [ebx + 0xc08]
push eax
call fcn.02566029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x2565aff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.02565b6e
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x2565aff
cmp dword [esp + 0x24], 9
ja 0x2565aff
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push dword [esp + 0x14]
push eax
push ebx
call fcn.02566029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x2565aff
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, edi
ja 0x2565aff
sub edi, esi
xor edx, edx
sub edi, 0xc
add ebx, 0x5c10
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x2565aff
cmp ecx, edi
jae 0x2565aff
mov dword [ebx], ecx
inc edx
add ebx, 4
cmp edx, 3
jl 0x2565ae1
sub esi, ebp
mov eax, esi
jmp 0x2565b02
push 0xffffffffffffffe2
pop eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10c
ret
Function at 0x408410
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458568]
jne 0x40841a
repz ret
jmp fcn.0040d18a

Function at 0x40ce45
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.004093a4
and dword [ebp - 4], 0
cmp dword [0x45e584], 0
mov ebx, eax
jne 0x40cef6
push 0x402530
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cfa7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402524
push edi
call esi
test eax, eax
je 0x40cfa7
push eax
call fcn.00409332
mov dword [esp], 0x402514
push edi
mov dword [0x45e584], eax
call esi
push eax
call fcn.00409332
mov dword [esp], 0x402500
push edi
mov dword [0x45e588], eax
call esi
push eax
call fcn.00409332
mov dword [esp], 0x4024e4
push edi
mov dword [0x45e58c], eax
call esi
push eax
call fcn.00409332
pop ecx
mov dword [0x45e594], eax
test eax, eax
je 0x40cef6
push 0x4024cc
push edi
call esi
push eax
call fcn.00409332
pop ecx
mov dword [0x45e590], eax
mov eax, dword [0x45e590]
cmp eax, ebx
je 0x40cf4e
cmp dword [0x45e594], ebx
je 0x40cf4e
push eax
call fcn.004093ad
push dword [0x45e594]
mov esi, eax
call fcn.004093ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cf4e
test edi, edi
je 0x40cf4e
call esi
test eax, eax
je 0x40cf45
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cf45
test byte [ebp - 0xc], 1
jne 0x40cf4e
or dword [ebp + 0x10], 0x200000
jmp 0x40cf87
mov eax, dword [0x45e588]
cmp eax, ebx
je 0x40cf87
push eax
call fcn.004093ad
pop ecx
test eax, eax
je 0x40cf87
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cf87
mov eax, dword [0x45e58c]
cmp eax, ebx
je 0x40cf87
push eax
call fcn.004093ad
pop ecx
test eax, eax
je 0x40cf87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e584]
call fcn.004093ad
pop ecx
test eax, eax
je 0x40cfa7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cfa9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x7c826e7c
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1bc0074e
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, eax
je 0x4016a1
push dword [ebp + 0x10]
push eax
push ebx
call sub.ucrtbase.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
shr eax, 3
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x40175c
lea edx, [ebx + 4]
lea eax, [esi + 0x44]
mov dword [ebp - 8], edx
push edi
mov edi, eax
mov dword [ebp - 4], 0x10
nop word [eax + eax]
mov ebx, dword [edi]
lea edi, [edi - 4]
mov eax, dword [ebp + 8]
xor ebx, dword [eax + ecx*8]
mov dword [eax + ecx*8], ebx
mov eax, ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov edx, dword [esi + eax*4 + 0x448]
mov eax, ebx
add edx, dword [esi + ecx*4 + 0x48]
mov ecx, dword [ebp + 0xc]
shr eax, 8
movzx eax, al
xor edx, dword [esi + eax*4 + 0x848]
movzx eax, bl
mov ebx, dword [ebp + 8]
add edx, dword [esi + eax*4 + 0xc48]
mov eax, dword [ebp - 8]
xor dword [eax + ecx*8], edx
sub dword [ebp - 4], 1
mov eax, dword [eax + ecx*8]
mov edx, dword [ebx + ecx*8]
mov dword [ebx + ecx*8], eax
mov dword [ebx + ecx*8 + 4], edx
jne 0x4016d0
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + eax*8], edx
mov dword [ebx + eax*8 + 4], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + ecx*8 + 4], eax
mov eax, dword [esi]
xor dword [ebx + ecx*8], eax
inc ecx
lea eax, [esi + 0x44]
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x4016c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, dword [edi + ecx*4]
xor ebx, dword [eax]
mov dword [eax], ebx
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, ebx
add esi, dword [edi + edx*4 + 0x48]
shr ecx, 8
movzx ecx, cl
xor esi, dword [edi + ecx*4 + 0x848]
movzx ecx, bl
mov ebx, dword [ebp + 0xc]
add esi, dword [edi + ecx*4 + 0xc48]
xor dword [ebx], esi
mov ecx, dword [ebx]
mov esi, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebx], esi
mov dword [ebp - 4], ecx
cmp ecx, 0x10
jl 0x401781
mov edx, dword [eax]
mov dword [eax], esi
mov dword [ebx], edx
mov ecx, dword [edi + 0x40]
xor ecx, edx
mov dword [ebx], ecx
mov ecx, dword [edi + 0x44]
xor dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8