joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5225a4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x1c8
mov eax, 0x571350
call fcn.00523ae6
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1cc], ebx
call fcn.004d8c70
push eax
lea ecx, [ebp - 0x98]
call fcn.004d53c2
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004d8c76
mov ecx, eax
call fcn.004d5ed5
test al, al
je 0x52268c
push ebx
lea ecx, [ebp - 0x98]
call fcn.004d586e
push esi
push 0x80
push 3
push esi
push 1
push accept
lea ecx, [ebp - 0x98]
call fcn.004d5d57
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x52262f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004d5536
jmp 0x52276d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x52261b
push edi
mov dword [ebp - 0x1c8], esi
call fcn.00523cdd
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x1c8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c8], edi
je 0x522758
push esi
call fcn.00523ce6
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004d5536
jmp 0x52276b
call fcn.004d8c76
push eax
lea ecx, [ebp - 0x98]
call fcn.004d57eb
call fcn.004d8d8f
test al, al
je 0x5226ad
call fcn.004d8c7c
jmp 0x5226c4
push 2
push esi
lea ecx, [ebp - 0x98]
call fcn.004d5d57
push eax
call fcn.004e516a
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x52261b
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1d4]
push eax
push 1
push dword [ebp - 0x1cc]
push ebx
call fcn.004e47f7
add esp, 0x14
test eax, eax
jne 0x52261b
mov edi, dword [ebp - 0x9c]
test edi, edi
je 0x52261b
push edi
call fcn.00523cdd
push 3
push edi
mov esi, eax
push esi
push dword [ebp - 0x1d4]
push ebx
call fcn.004e55c7
add esp, 0x18
test eax, eax
je 0x522748
cmp eax, 0x600
je 0x522748
push esi
call fcn.00523ce6
pop ecx
call fcn.004d8d8f
test al, al
jne 0x522678
push ebx
call fcn.004e4647
jmp 0x522677
call fcn.004d8d8f
test al, al
jne 0x522758
push ebx
call fcn.004e4647
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004d5536
test esi, esi
jne 0x5227df
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push accept
push dword [ebp - 0x1cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5227db
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x5227db
push edi
mov dword [ebp - 0x1d0], esi
call fcn.00523cdd
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1d0], edi
je 0x5227d7
push esi
call fcn.00523ce6
pop ecx
xor esi, esi
test esi, esi
jne 0x5227df
xor eax, eax
jmp 0x5227e8
push edi
push esi
call fcn.0052253b
pop ecx
pop ecx
call fcn.00523a90
ret
Function at 0x527600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x52760c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00527b50

Function at 0x527940
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x108], edx
test edi, edi
jg 0x52797c
jl 0x52796a
test edx, edx
jne 0x52797c
mov eax, dword [ebp + 8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x527990
push ebx
push esi
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x5279d0
test al, 1
je 0x5279c9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x5279c3
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x5279b0
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x527a10
test al, 1
je 0x527a09
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x527a03
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x5279f0
mov ebx, dword [ebp + 8]
nop word [eax + eax]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x527a60
test al, 1
je 0x527a59
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x527a53
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x527a40
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x527aa0
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x527a9e
nop
test bl, 1
je 0x527a97
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x527a90
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x527b36
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x527ae0
test al, 1
je 0x527ad9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x527ad3
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x527ac0
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x527b20
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x527b1e
nop
test bl, 1
je 0x527b17
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x527b10
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov ecx, edx
or ecx, edi
mov dword [ebp - 0x108], edx
jne 0x527a30
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00523a6a
mov esp, ebp
pop ebp
ret

Function at 0x546479
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 0x58327ddd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
push SysReAllocStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
xor ebx, ebx
call esi
test eax, eax
jne 0x58327e44
cmp dword [ebp + 0xc], edi
je 0x58327e23
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x58327e44
mov esi, dword [ebp - 8]
jmp 0x58327e26
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x58327e49
mov ebx, 0x80004005
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x58327e59
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], edi
je 0x58327e63
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x58327e6f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
push SysReAllocStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x58327ebf
cmp dword [ebp + 0xc], edi
je 0x58327eb2
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x58327ebf
mov eax, dword [ebp - 8]
jmp 0x58327eb5
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x58327ecf
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], edi
je 0x58327ed9
push dword [ebp - 8]
call esi
pop edi
pop esi
leave
ret
Function at 0x58327ee2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5832e010]
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0x80000000
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], edi
jne 0x58327f56
test edi, edi
je 0x58327f4c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x583112ec
push edi
call esi
test eax, eax
je 0x58327f4c
push 0x58312a84
push edi
call esi
test eax, eax
je 0x58327f4c
push 0x58312a7c
push edi
call esi
test eax, eax
je 0x58327f4c
push 0x58312a74
push edi
call esi
test eax, eax
jne 0x58327f56
mov eax, 0x3f2
jmp 0x58327fdf
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x58327fd1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x58327f90
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.58327ee2
mov esi, eax
test esi, esi
jne 0x58327fa8
push ebx
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call edi
mov esi, eax
test esi, esi
je 0x58327f78
cmp esi, 0x103
je 0x58327fbd
cmp esi, 0x3f2
je 0x58327fbd
cmp esi, 2
jne 0x58327fd1
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5832b47f
leave
ret 8
Function at 0x403850
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403864
inc dword [0x4cb6cc]
add dword [0x4c7a54], 0x108
mov edx, dword [0x4c7a54]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4ca198
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 0x403893
push 0
mov eax, 0x4cc518
call fcn.00417ed0
cmp dword [0x4cb700], 0
mov dword [0x4cd008], 0
mov dword [0x4cd00c], 0
je 0x4038cb
mov eax, dword [0x4c8b88]
test eax, eax
je 0x4038bf
mov eax, dword [eax]
test eax, eax
jne 0x4038c4
mov eax, 0x4a48a0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x40394f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x4038fa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x4038fa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4cd014], 0
je 0x40390c
cmp dword [0x4cd010], 0
jne 0x403915
cmp byte [esi + 0xee], 0
je 0x40394f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x40394f
cmp dword [0x4cd014], 0
jge 0x403937
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4cd014]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret

Function at 0x4047e0
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404803
call fcn.00404ab0
test eax, eax
jne 0x404803
push 0x4a4ca0
call fcn.004048e0
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40483c
cmp dword [esi + 0x18], ebx
je 0x40482e
cmp dword [esi + 8], ebx
je 0x404823
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a4ce4
call fcn.004048e0
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x404875
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40489c
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40489c
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x404892
cmp dword [esi + 8], ebx
je 0x404887
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4048b1
mov dword [esi + 4], ebx
jmp 0x404875
cmp dword [esi + 0x18], ebx
je 0x4048ce
cmp dword [esi + 8], ebx
je 0x4048c3
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a4d04
call fcn.004048e0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4049b0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x4049c0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404a8f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push 0x4a4d28
push edx
call fcn.0049109d
add esp, 0xc
test eax, eax
je 0x404a86
lea eax, [esp]
push 0x4a4d40
push eax
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea ecx, [esp]
push 0x4a4d58
push ecx
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea edx, [esp]
push 0x4a4d6c
push edx
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea eax, [esp]
push 0x4a4d7c
push eax
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a86
lea ecx, [esp]
push 0x4a4d98
push ecx
call fcn.00490e99
add esp, 8
test eax, eax
je 0x404a7c
lea edx, [esp]
push 0x4a4dbc
push edx
call fcn.00490e99
add esp, 8
test eax, eax
jne 0x404a95
test esi, esi
je 0x404a86
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret

Function at 0x404ab0
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 0x404b3a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4cb558]
push eax
call ebx
test eax, eax
jne 0x404b2f
mov eax, dword [0x4c7958]
cmp eax, 0xffffffff
je 0x404aff
test eax, eax
je 0x404b46
call esi
mov ecx, dword [0x4c7958]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404b46
push 1
push 0x8000012f
mov dword [0x4c795c], 0
call fcn.00401430
mov edx, dword [0x4cb558]
add esp, 8
push edx
mov dword [0x4c795c], 1
call ebx
test eax, eax
je 0x404ae0
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 0x409390
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 [0x4cb688], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4093b4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4cb68c], 0
je 0x4093c3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x4095d0
test al, al
jne 0x409406
cmp byte [ebp + 0xc], al
jne 0x409406
push 0x4ca45c
push 0
push 0
push 0x4096c0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cbd88], eax
test eax, eax
je 0x409497
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 [0x4ca45c]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40943c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x409416
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x4094a3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40950a
cmp dword [esp + 0x2c], 0
je 0x4094b2
mov byte [esp + 0x1f], 1
call fcn.00409a50
test al, al
jne 0x4094b2
cmp byte [ebp + 0xc], al
jne 0x40959e
mov byte [ebp + 8], al
jmp 0x409451
call fcn.00409a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x4094ee
call fcn.00409a50
test al, al
jne 0x40950a
cmp byte [ebp + 0xc], 0
jne 0x409597
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4cb688], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x409542
test byte [esp + 0x1e], 1
jne 0x40955b
push 0x4a6a4c
push 0
push 0
call esi
mov dword [0x4cbd80], eax
jmp 0x40955b
mov ecx, dword [0x4cbd88]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x409522
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4094b2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409451
mov edx, dword [0x4cbd88]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4cbd88], 0
call fcn.00409a70
jmp 0x4094c2
test byte [esp + 0x1e], 1
je 0x40955b
mov eax, dword [0x4cbd80]
push eax
call edi
mov dword [0x4cbd80], 0
cmp dword [0x4cb68c], 0
je 0x40957d
test byte [esp + 0x1e], 2
jne 0x409597
push 0x4a6a60
push 0
push 0
call esi
mov dword [0x4cbd84], eax
jmp 0x409597
test byte [esp + 0x1e], 2
je 0x409597
mov ecx, dword [0x4cbd84]
push ecx
call edi
mov dword [0x4cbd84], 0
cmp byte [esp + 0x1f], 0
je 0x4095d0
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4c795c], 0
push 0
push 0
push 0x10000
push 0x4a6a78
call fcn.0047c1a0
add esp, 0x18
mov dword [0x4c795c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b1d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x100c
call fcn.0049bf10
cmp byte [0x4cd1fc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
push edi
jne 0x40b344
cmp dword [0x4cbda4], 0
jne 0x40b206
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cbda4], eax
mov ebx, 1
add dword [0x4cd200], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4cd200]
mov esi, dword [0x4c7970]
mov ecx, eax
sub ecx, dword [0x4cbda4]
mov dword [0x4cbda8], eax
cmp edx, dword [0x4c796c]
jbe 0x40b23c
cmp ecx, esi
jb 0x40b2a0
xor edx, edx
cmp ecx, esi
jbe 0x40b259
mov dword [0x4cd200], 0
mov dword [0x4cbda4], eax
test edx, edx
jne 0x40b344
mov esi, dword [esp + 0x1020]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4ccfde], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push 0x4a4918
push ecx
xor eax, eax
xor edx, edx
call fcn.0046f410
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40b312
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
push ecx
push edx
push 0x4a73c8
mov esi, 0x800
lea edi, [esp + 0x24]
call fcn.004772c0
add esp, 0xc
call fcn.0040a070
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4cd1fc], bl
mov dword [0x4c795c], 0
call fcn.0047c1a0
add esp, 0x18
cmp eax, 7
jne 0x40b2f9
push 0
push 4
push 0x4cc518
call fcn.004181d0
mov eax, dword [0x4cbda8]
mov dword [0x4c795c], ebx
mov byte [0x4cd1fc], 0
mov edx, ebx
jmp 0x40b242
cmp byte [ebp + 0x1b], 0
je 0x40b344
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40b344
movzx edx, word [esi + 4]
mov eax, dword [0x4cb558]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
Function at 0x413f50
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x413f8e
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x413f8e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413f8e
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop edi
pop esi
add esp, 0x34
ret

Function at 0x413fa0
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x284
push ebx
push ebp
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebx, eax
test ebx, ebx
je 0x41404f
xor eax, eax
jmp 0x413fd0
movzx ecx, word [eax + 0x4a7fb0]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x413fd0
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x41403d
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41403d
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, 0x4a8018
call fcn.00478800
pop edi
pop esi
test eax, eax
je 0x41403d
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x41404f
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x414250
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebx
push edi
push 0
mov bl, al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x41433f
push ebp
push esi
push 0x100
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00499820
mov ebp, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push edi
xor esi, esi
push esi
push 2
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push 0x6e
call ebp
cmp eax, 2
jne 0x4142aa
movzx esi, word [esp + 0x14]
push edi
push 0
push 2
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
movzx eax, bl
push 0
push eax
call ebp
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x4142de
push edi
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0x6e
call ebp
test si, si
je 0x41431d
push 1
lea eax, [esp + 0x17]
push edi
push eax
call fcn.00414510
mov bl, al
add esp, 0xc
test bl, bl
je 0x41431d
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x24]
call fcn.00413ac0
push edi
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
movzx eax, bl
push 0
push eax
call ebp
cmp dword [esp + 0x1c], 0
pop esi
pop ebp
je 0x414334
movzx eax, word [esp + 0xc]
pop edi
pop ebx
add esp, 0x114
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x114
ret
push edi
movzx ecx, bl
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop edi
pop ebx
add esp, 0x114
ret
Function at 0x4188e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x4a96fc
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41898a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41898a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41898a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41898a
push 0x44
call fcn.00492048
add esp, 4
test eax, eax
je 0x418954
mov esi, eax
call fcn.004170f0
mov ecx, eax
jmp 0x418956
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474d50
mov ecx, dword [0x4ccfe0]
inc dword [0x4cc478]
mov dword [0x4cb4e8], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push 0x4a9728
mov ecx, 0x4cc518
call fcn.00430bd0
pop esi
add esp, 0x10
ret 8