joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x401dd3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupGetFileCompressionInfoA
push edi
call esi
push str.SetupDecompressOrCopyFileA
push edi
mov dword [0x406770], eax
call esi
cmp dword [0x406770], ebx
mov dword [0x406774], eax
je 0x401dc0
cmp eax, ebx
je 0x401dc0
push str.MyFree
push edi
call esi
push ebx
mov dword [0x406778], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [ebp + 8]
push 0x40660c
push esi
mov dword [ebp - 8], eax
call fcn.0040257b
pop ecx
mov edx, eax
mov al, byte [0x40676c]
pop ecx
neg edx
push 0x4a
mov byte [ebp - 0x140], al
sbb edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
neg edx
neg edx
stosb byte es:[edi], al
sbb edx, edx
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x140]
mov esi, 0x12a
and edx, 2
push eax
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x401da6
cmp byte [ebp - 0x140], bl
je 0x401da6
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x141], 0x5c
lea eax, [ebp + eax - 0x141]
je 0x401d6c
inc eax
mov byte [eax], 0x5c
mov byte [eax + 1], bl
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x140]
push eax
push 0x401ddd
push str.PART
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x404af8]
cmp eax, 4
mov dword [ebp - 0x14], eax
jne 0x401d6f
push dword [ebp - 4]
mov dword [0x406770], ebx
mov dword [0x406774], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x401dd6
push edi
mov dword [0x406770], ebx
mov dword [0x406774], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402175
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
jne 0x402197
xor eax, eax
jmp 0x4021fa
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x402201
push 0
push 0
call fcn.0040267d
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4021d6
and dword [edi], eax
xor esi, esi
jmp 0x4021f1
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40267d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x40285a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40287f
xor eax, eax
jmp 0x4028dc
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4028ca
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x4028ca
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x4028ca
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x4029c1
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x402a14
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x4029f6
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x402a76
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x402a0f
cmp eax, 2
je 0x402a0f
xor esi, esi
jmp 0x402a5d
push 1
pop esi
jmp 0x402a5d
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402a39
xor eax, eax
jmp 0x402a76
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x402a6b
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x402b08
or dword [eax], 0xffffffff
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b9a
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x402b93
cmp dword [ebp + 8], edi
jne 0x402b93
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
call fcn.00402431
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x402b93
lea ecx, [ebp + 0x10]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b8a
cmp dword [ebp + 0x10], esi
jne 0x402b8a
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x402b7e
mov dword [eax], ebx
jmp 0x402b85
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x402ba1
push dword [ebp - 4]
call fcn.0040243c
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8a5930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29a000]
push edi
jmp 0x8a594a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8a5951
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a5940
mov eax, 1
add ebx, ebx
jne 0x8a5963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8a5974
jne 0x8a5993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a5993
dec eax
add ebx, ebx
jne 0x8a5980
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8a5958
add ebx, ebx
jne 0x8a598f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8a59e5
xor ecx, ecx
sub eax, 3
jb 0x8a59ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8a5a1a
sar eax, 1
mov ebp, eax
jmp 0x8a59b6
add ebx, ebx
jne 0x8a59b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a5984
inc ecx
add ebx, ebx
jne 0x8a59c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a5984
add ebx, ebx
jne 0x8a59d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8a59c6
jne 0x8a59e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8a59c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8a5a04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8a59f6
jmp 0x8a5946
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8a5a04
add edi, ecx
jmp 0x8a5946
pop esi
mov edi, esi
mov ecx, 0x121
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8a5a22
cmp byte [edi], 5
jne 0x8a5a22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8a5a27
lea edi, [esi + 0x2a3000]
mov eax, dword [edi]
or eax, eax
je 0x8a5a96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a5554]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a55cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8a5a54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a55d0]
or eax, eax
je 0x8a5a90
mov dword [ebx], eax
add ebx, 4
jmp 0x8a5a71
call dword [esi + 0x2a55e0]
mov ebp, dword [esi + 0x2a55d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8a5aca
sub esp, 0xffffff80
jmp 0x6067fe
Function at 0x402fb0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x402fc4
inc dword [0x4a0b94]
add dword [0x49d3c8], 0xd8
mov edx, dword [0x49d3c8]
push esi
push edi
mov ecx, 0x36
mov esi, 0x49f708
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x402ff3
push 0
mov eax, 0x4a2c18
call fcn.00414620
cmp dword [0x4a0bbc], 0
mov dword [0x4a30f0], 0
mov dword [0x4a30f4], 0
je 0x40301b
push 0x4a13a8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40309f
or ecx, reloc.USER32.dll_AdjustWindowRectEx
cmp byte [esi + 0xc6], 0
jne 0x40304a
xor eax, eax
cmp byte [esp + 0x14], 0x64
sete al
mov byte [esi + 0xc6], al
test al, al
je 0x40304a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4a30fc], 0
je 0x40305c
cmp dword [0x4a30f8], 0
jne 0x403065
cmp byte [esi + 0xc6], 0
je 0x40309f
cmp byte [esi + 0xc6], 0
mov byte [esi + 0xc4], 0
jne 0x40309f
cmp dword [0x4a30fc], 0
jge 0x403087
pop edi
mov dword [esi + 0xb8], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb4], eax
mov edx, dword [0x4a30fc]
mov dword [esi + 0xb8], edx
pop edi
pop esi
ret

Function at 0x403b60
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4a2c08], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x403b78
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x403bc5
cmp ebx, reloc.USER32.dll_AdjustWindowRectEx
jne 0x403b92
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b87
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x403bc5
push edi
lea edi, [ebx + 1]
mov esi, 0x4a2bfc
call fcn.00403be0
pop edi
test eax, eax
jne 0x403baf
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4a2c08]
push ebx
push ebp
push eax
mov esi, eax
call fcn.0047a8e0
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4a2bfc
jmp fcn.00403c50
Function at 0x403c50
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x403c73
call fcn.00403f70
test eax, eax
jne 0x403c73
push 0x49020c
call fcn.00403d60
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x403cad
cmp dword [esi + 0x18], edi
je 0x403c9e
cmp dword [esi + 8], edi
je 0x403c93
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x490230
call fcn.00403d60
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x403cf0
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x403d18
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x403ccf
cmp word [eax], di
jmp 0x403cd2
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x403d18
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x403d0d
cmp dword [esi + 8], edi
je 0x403d02
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403d30
mov dword [esi + 4], edi
jmp 0x403cf0
cmp dword [esi + 0x18], edi
je 0x403d4d
cmp dword [esi + 8], edi
je 0x403d42
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x490240
call fcn.00403d60
pop ebp
pop edi
pop esi
ret 4
Function at 0x403e30
Capabilities:
Read clipboard data

Disassembly:
lea eax, reloc.USER32.dll_AdjustWindowRectEx
sub esp, 0x108
cmp eax, 0x3fff
ja 0x403ecd
push 0x104
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push 0x490254
push edx
call fcn.00477695
add esp, 0xc
test eax, eax
je 0x403ec4
lea eax, [esp]
push 0x490260
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403ec4
lea ecx, [esp]
push 0x49026c
push ecx
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403ec4
lea edx, [esp]
push 0x490278
push edx
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403ec4
lea eax, [esp]
push 0x490280
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x403ed1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x403f60
jmp 0x403ef0
cmp esi, 0xf
je 0x403f5e
lea ecx, [esp + 0xc]
push 0x49026c
push ecx
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403f5e
mov eax, dword [0x49d324]
cmp eax, reloc.USER32.dll_AdjustWindowRectEx
je 0x403f2a
test eax, eax
je 0x403f5e
call ebp
mov edx, dword [0x49d324]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x403f5e
push 1
push 0x8000012f
mov dword [0x49d328], 0
call fcn.00401340
add esp, 8
push esi
mov dword [0x49d328], 1
call edi
test eax, eax
je 0x403ef0
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x403f70
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x403ffa
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4a0a38]
push eax
call ebx
test eax, eax
jne 0x403fef
mov eax, dword [0x49d324]
cmp eax, reloc.USER32.dll_AdjustWindowRectEx
je 0x403fbf
test eax, eax
je 0x404006
call esi
mov ecx, dword [0x49d324]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404006
push 1
push 0x8000012f
mov dword [0x49d328], 0
call fcn.00401340
mov edx, dword [0x4a0a38]
add esp, 8
push edx
mov dword [0x49d328], 1
call ebx
test eax, eax
je 0x403fa0
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x49f942], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40719b
mov al, byte [0x49f94a]
cmp al, 0xa0
je 0x407106
cmp al, 0x10
jne 0x40719b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x49f944]
cmp eax, 0x16
jae 0x40719b
test ebp, 0x100
jne case.0x407137.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407137.13
movzx eax, byte [eax + 0x407344]
jmp dword [eax*4 + 0x40733c]
mov cl, 1
jmp 0x407144
xor cl, cl
cmp byte [0x49f943], 0
jne 0x407161
xor ecx, ecx
nop
cmp byte [ecx + 0x49f92c], 0
jne 0x40716c
inc ecx
cmp ecx, 0x16
jl 0x407150
jmp 0x40719b
cmp byte [esp + 0x1c], 0
je 0x407175
test cl, cl
je 0x40719b
mov byte [0x49f94b], 1
jmp 0x407179
test cl, cl
je 0x40719b
mov cl, byte [0x49f84f]
mov dl, byte [0x49f84e]
mov al, byte [0x49f84d]
mov byte [0x4a0a37], cl
mov byte [0x4a0a68], dl
mov byte [0x4a0af8], al
mov cl, byte [0x4a0a37]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4a0a68]
mov al, byte [0x4a0af8]
mov byte [0x49f84f], cl
lea ecx, [esi + esi*8]
mov byte [0x49f84e], dl
mov edx, dword [0x4a14d8]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x49f84d], al
test bl, bl
je case.default.0x407312
cmp dword [edi + 0x10], reloc.USER32.dll_AdjustWindowRectEx
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x4071f2
xor al, al
jmp 0x407207
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.004073a0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x4072de
cmp byte [esp + 0x20], 0
jne 0x407231
mov cl, bl
not cl
and byte [0x4a0a35], cl
test dl, dl
je 0x407231
and byte [0x4a0a36], cl
cmp byte [esp + 0x18], 0
je case.default.0x407312
not bl
and byte [0x4a0a37], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4a0a58], 0
cmp ecx, 5
ja case.default.0x407312
jmp dword [ecx*4 + 0x407368]
mov cl, byte [0x4a0af9]
mov byte [0x4a0a68], cl
jmp case.default.0x407312
mov dl, byte [0x4a0af8]
mov byte [0x4a0a68], dl
jmp case.default.0x407312
mov al, byte [0x4a0afb]
mov byte [0x4a0a69], al
jmp case.default.0x407312
mov cl, byte [0x4a0afa]
mov byte [0x4a0a69], cl
jmp case.default.0x407312
mov dl, byte [0x4a0afd]
mov byte [0x4a0a6a], dl
jmp case.default.0x407312
mov al, byte [0x4a0afc]
mov byte [0x4a0a6a], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x49f948], bp
pop ebp
mov byte [0x49f94a], al
mov byte [0x49f943], cl
pop ebx
je 0x407320
xor al, al
mov byte [0x49f942], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x49f944], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x4072f5
or byte [0x4a0a35], bl
test dl, dl
je 0x4072f5
or byte [0x4a0a36], bl
test al, al
je case.default.0x407312
or byte [0x4a0a37], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4a0a58], al
cmp ecx, 5
ja case.default.0x407312
jmp dword [ecx*4 + 0x407380]
mov byte [0x4a0a68], al
jmp case.default.0x407312
push ecx
call fcn.004073a0
add esp, 4
mov byte [0x49f942], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x49f944], eax
pop ecx
ret
Function at 0x408230
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4a0b68], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408254
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a0b6c], 0
je 0x408263
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408470
test al, al
jne 0x4082a6
cmp byte [ebp + 0xc], al
jne 0x4082a6
push 0x49f928
push 0
push 0
push 0x408540
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a3314], eax
test eax, eax
je 0x408337
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x49f928]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x4082dc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4082b6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x408343
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4083aa
cmp dword [esp + 0x2c], 0
je 0x408352
mov byte [esp + 0x1f], 1
call fcn.004088e0
test al, al
jne 0x408352
cmp byte [ebp + 0xc], al
jne 0x40843e
mov byte [ebp + 8], al
jmp 0x4082f1
call fcn.00408900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40838e
call fcn.004088e0
test al, al
jne 0x4083aa
cmp byte [ebp + 0xc], 0
jne 0x408437
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a0b68], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x4083e2
test byte [esp + 0x1e], 1
jne 0x4083fb
push 0x4911a0
push 0
push 0
call esi
mov dword [0x4a14c4], eax
jmp 0x4083fb
mov ecx, dword [0x4a3314]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4083c2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408352
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4082f1
mov edx, dword [0x4a3314]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a3314], 0
call fcn.00408900
jmp 0x408362
test byte [esp + 0x1e], 1
je 0x4083fb
mov eax, dword [0x4a14c4]
push eax
call edi
mov dword [0x4a14c4], 0
cmp dword [0x4a0b6c], 0
je 0x40841d
test byte [esp + 0x1e], 2
jne 0x408437
push 0x4911ac
push 0
push 0
call esi
mov dword [0x4a14c8], eax
jmp 0x408437
test byte [esp + 0x1e], 2
je 0x408437
mov ecx, dword [0x4a14c8]
push ecx
call edi
mov dword [0x4a14c8], 0
cmp byte [esp + 0x1f], 0
je 0x408470
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push 0x4911b8
mov dword [0x49d328], 0
call fcn.00468330
add esp, 0x18
mov dword [0x49d328], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret