joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401976
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
xor eax, eax
push edi
mov dword [ebp - 4], 1
test esi, esi
je 0x4019aa
mov edi, dword [edx]
mov dword [ecx + eax*4], edi
inc eax
add edx, 4
cmp eax, esi
jb 0x40199d
mov eax, dword [ecx + esi*4 - 4]
mov edx, esi
imul edx, edx, 0xc
and dword [ebp + 8], 0
lea edx, [edx + ecx + 0x70]
mov dword [ebp - 8], edx
mov edx, 0xff
cmp dword [ebp + 8], 0
jne 0x401a24
mov edi, eax
and edi, edx
movzx edi, byte [edi + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
mov ebx, eax
shr eax, 8
shr ebx, 0x10
and eax, edx
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
shl dword [ebp - 4], 1
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
shl edi, 8
or eax, edi
test dword [ebp - 4], 0x100
je 0x401a1f
mov dword [ebp - 4], 0x1b
mov dword [ebp + 8], esi
jmp 0x401a6f
cmp dword [ebp + 8], 4
jne 0x401a6f
cmp esi, 6
jbe 0x401a6f
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, edx
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, edx
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
xor eax, dword [ecx]
dec dword [ebp + 8]
mov dword [ecx + esi*4], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jne 0x4019c3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402b35
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x441160]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402b7e
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b7e
push 0xc00
call eax
test eax, eax
jne 0x402c12
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c12
cmp eax, 0x104
ja 0x402c12
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402bb2
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c11
push edi
lea edi, [ebp + eax*2 - 0x2d4]
mov eax, edi
jmp 0x402bd6
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402bcd
push 0x2e
pop ecx
push 0x64
mov word [eax], cx
pop ecx
push 0x6c
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
mov word [eax + 6], cx
xor ecx, ecx
push 8
mov word [eax + 8], cx
push ecx
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bc9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042da5b
leave
ret
Function at 0x407585
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0042dc11
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004074f3
pop ebp
ret 0xc

Function at 0x4094a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4443f0], 0
jne 0x4094e4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042deaf
pop ecx
test esi, esi
pop esi
je 0x4094f4
mov al, 1
jmp 0x4094f6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x4094de
xor al, al
leave
ret 8

Function at 0x4094fa
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4443f0], 0
jne 0x409532
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042deaf
pop ecx
test esi, esi
pop esi
je 0x40953f
mov al, 1
jmp 0x409541
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40952c
xor al, al
leave
ret 4

Function at 0x409545
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4443f0], 0
jne 0x409580
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042deaf
pop ecx
test esi, esi
pop esi
je 0x40958f
mov al, 1
jmp 0x409591
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40957a
xor al, al
leave
ret 4

Function at 0x40959f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x4095ca
test al, 0x10
jne 0x4095ca
test al, 1
je 0x4095ca
and eax, 0xfffffffe
push eax
push esi
call fcn.004094a8
test al, al
je 0x409602
cmp byte [0x4443f0], 0
push esi
jne 0x4095f8
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042deaf
pop ecx
test esi, esi
je 0x409602
mov al, 1
jmp 0x409604
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x4095f2
xor al, al
pop esi
leave
ret 4

Function at 0x409609
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4443f0], 0
jne 0x409640
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042deaf
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40964f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x4099f5
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x4386a4
call fcn.0042e3d1
mov esi, dword [ebp + 8]
push esi
call fcn.0040a371
cmp eax, 0xffffffff
je 0x409a1a
test al, 0x10
je 0x409a1a
mov al, 1
jmp 0x409bec
push esi
call fcn.0040af70
test al, al
jne 0x409bea
push esi
call fcn.0040b0b3
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
call fcn.00407f8d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408346
test eax, eax
js 0x409a77
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x409a77
cmp edx, 1
jne 0x409a6b
mov bl, dl
push dword [ebp - 0x18]
call fcn.0042deaf
pop ecx
mov al, bl
jmp 0x409bec
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408009
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp byte [0x4443f0], 0
mov ebx, dword [ebp - 0x18]
jne 0x409aba
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.00408413
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.0042deaf
pop ecx
test edi, edi
jmp 0x409ac5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409bac
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x409b21
lea ecx, [ebp - 0x68]
call fcn.00409f19
lea ecx, [ebp - 0x40]
call fcn.00407f69
push 0
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040a498
push dword [ebp - 0x40]
mov byte [ebp - 4], 1
test al, al
jne 0x409b0c
call fcn.0042deaf
pop ecx
jmp 0x409b21
mov ebx, dword [ebp - 0x48]
shr ebx, 4
call fcn.0042deaf
and bl, 1
pop ecx
jne 0x409bac
call edi
cmp eax, 0xb7
je 0x409bc8
lea ecx, [ebp - 0x18]
call fcn.00408346
mov esi, eax
test esi, esi
js 0x409bd8
je 0x409bd8
mov ecx, dword [ebp - 0x18]
cmp esi, 1
jne 0x409b5b
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x409bc8
cmp eax, 0x2f
je 0x409bc8
lea eax, [esi + 1]
cmp dword [ebp + 8], eax
jae 0x409bc8
cmp esi, dword [ebp - 0x14]
jae 0x409a8a
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [ecx + esi*2], ax
jmp 0x409a8a
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2 + 2]
push eax
call fcn.0040ad99
test eax, eax
jns 0x409b90
mov esi, dword [ebp - 0x20]
jmp 0x409b94
lea esi, [esi + eax + 1]
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.004080fc
push dword [ebp - 0x18]
call fcn.00409545
test al, al
je 0x409bc8
cmp esi, dword [ebp - 0x20]
jl 0x409b7a
push dword [ebp - 0x24]
call fcn.0042deaf
push dword [ebp - 0x18]
call fcn.0042deaf
pop ecx
pop ecx
jmp 0x409a13
push dword [ebp - 0x24]
call fcn.0042deaf
pop ecx
xor bl, bl
jmp 0x409a5b
push dword [ebp - 0x24]
call fcn.0042deaf
push dword [ebp - 0x18]
call fcn.0042deaf
pop ecx
pop ecx
xor al, al
call fcn.0042e4a9
ret 4
Function at 0x40a371
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4443f0], 0
jne 0x40a3a5
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408413
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042deaf
pop ecx
mov eax, esi
pop esi
jmp 0x40a3b5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a3b5
or eax, eax
leave
ret 4

Function at 0x40a973
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a99d
xor al, al
jmp 0x40a9b2
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x419cc2
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x438456
call fcn.0042e3d1
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00419c48
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041907c
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040b98e
push dword [ebp - 0x18]
call fcn.0042deaf
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.0042e4a9
ret 8

Function at 0x41a834
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a85f
xor al, al
jmp 0x41a874
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8

Function at 0x41a879
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x441160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0042daa0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
je 0x41a92a
push esi
push eax
call fcn.0041a834
push dword [esi]
mov dword [ebp - 0x214], ebx
call fcn.0042dec5
pop ecx
push ebx
lea ecx, [ebp - 0x214]
push ecx
mov dword [edi], eax
push dword [esi]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042da5b
leave
ret 8
Function at 0x42da5b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441160]
jne 0x42da65
repz ret
jmp fcn.00431fb5

Function at 0x434d1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441160]
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.004319de
and dword [ebp - 0x14], 0
cmp dword [0x445058], 0
mov dword [ebp - 0x18], eax
jne 0x434dcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x434e77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43cbc8
push ebx
call edi
test eax, eax
je 0x434e77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x445058], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44505c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x445060], eax
call edi
push eax
call esi
mov dword [0x445068], eax
test eax, eax
je 0x434dcf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x445064], eax
mov eax, dword [0x445064]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x434e28
cmp dword [0x445068], ecx
je 0x434e28
push eax
call esi
push dword [0x445068]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x434e28
test ebx, ebx
je 0x434e28
call edi
test eax, eax
je 0x434e1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x434e1f
test byte [ebp - 8], 1
jne 0x434e28
or dword [ebp + 0x10], 0x200000
jmp 0x434e5b
mov eax, dword [0x44505c]
cmp eax, dword [ebp - 0x18]
je 0x434e5b
push eax
call esi
test eax, eax
je 0x434e5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434e5b
mov eax, dword [0x445060]
cmp eax, dword [ebp - 0x18]
je 0x434e5b
push eax
call esi
test eax, eax
je 0x434e5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445058]
call esi
test eax, eax
je 0x434e77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x434e79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042da5b
leave
ret
Function at 0x401178
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x3ff
push 0x40b6a0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4011be
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0x40b6a0
call section..text
pop ecx
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40b6a0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xac], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xac], 0xffffffff
je 0x40138d
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40baa8
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push dword [ebp - 0xc]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [0x40baa8]
push str._d__d__d__d
lea eax, [ebp - 0x8c]
push eax
call fcn.00403787
add esp, 0x18
cmp dword [ebp - 0xc], 0x221c
jne 0x401342
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x94]
mov dword [0x40500c], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x98]
mov dword [0x405008], eax
jmp 0x401356
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x4013ae
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
leave
ret
Function at 0x402aa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x402af9
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402c9b
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402c18
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
cmp dword [ebp - 4], 0
jle 0x402bff
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.004019a3
add esp, 0xc
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
jmp 0x402ae9
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.00401965
add esp, 0xc
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
jmp 0x402ae9
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
leave
ret
Function at 0x402ed7
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0xa0
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x40309f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x40309f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
and dword [ebp - 8], 0
jmp 0x402f91
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 8], eax
jae 0x403050
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
sar eax, 0xc
mov dword [ebp - 0x20], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
and eax, 0xfff
mov dword [ebp - 0x24], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403005
cmp dword [ebp - 0x28], 3
je 0x403007
jmp 0x40303f
jmp 0x40304b
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40304b
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
jmp 0x402f82
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x402f40
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
leave
ret