joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
cmp dword [0x4bcca8], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov byte [eax], 0
mov byte [edx], 0
jne 0x42c863
push ecx
mov eax, 0x4bcca8
call fcn.0042c700
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x42c87e
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c870
sub eax, edx
mov dword [ebp + 0xc], eax
mov esi, eax
cmp esi, 0xfd
ja 0x42c939
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0
xor edi, edi
jmp 0x42c8a0
mov eax, dword [edi*8 + 0x4bcca8]
cmp byte [eax], 0
je 0x42c8ea
mov ecx, dword [edi*8 + 0x4bccac]
push esi
add ecx, eax
push ebx
push ecx
call fcn.0049b620
mov edx, dword [0x4ab820]
mov dword [eax + esi], edx
mov cl, byte [0x4ab824]
mov byte [eax + esi + 4], cl
mov edx, dword [edi*8 + 0x4bcca8]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c8ea
test al, 0x10
je 0x42c944
inc edi
cmp edi, 3
jl 0x42c8a0
mov eax, dword [ebp + 8]
push 0x5f
push eax
call fcn.004945a1
add esp, 8
test eax, eax
je 0x42c939
mov ecx, dword [ebp + 8]
sub eax, ecx
mov esi, eax
cmp esi, 0xfe
jae 0x42c939
push esi
push ecx
lea ebx, [esp + 0x20]
mov ecx, ebx
push ecx
call fcn.0049b620
mov eax, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov byte [esp + esi + 0x18], 0
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x42c895
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [edi*8 + 0x4bccac]
mov ecx, dword [edi*8 + 0x4bcca8]
mov edx, dword [ebp + 0x14]
lea esi, [edi*8 + 0x4bcca8]
lea ebx, [edi*8 + 0x4bccac]
lea edi, [eax + ecx - 1]
mov byte [edi], 0
mov eax, dword [esi]
mov byte [edx], 1
call fcn.0044be50
mov byte [edi], 0x5c
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x624]
test ecx, ecx
je 0x42c99f
cmp byte [ebp + 0x18], 0
je 0x42c99f
mov eax, dword [esi]
mov edx, dword [ebx]
push eax
push eax
push edx
push 0x4acc78
call fcn.0041f2d0
add esp, 0x10
mov esi, dword [esi]
mov ebx, dword [0x4bc370]
push 0
push 0
push esi
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 0
call fcn.00420fd0
mov esi, eax
cmp esi, 3
jne 0x42c9d6
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push edi
call fcn.004213a0
mov esi, eax
jmp 0x42c9da
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x42c9e8
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
test esi, esi
jne 0x42c9fd
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push edx
push eax
mov ecx, edi
call fcn.0042ca20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43bca0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2004
call fcn.0049ffc0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x43bdc6
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x43bcd2
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x43bcdc
movzx edx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x43bce9
mov edx, dword [ecx + 0x170]
movzx eax, word [ecx + 0x174]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [0x4bc368]
mov edx, dword [ecx + edx*4]
movzx eax, ax
push eax
push edx
push 0x4ad94c
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.0047f710
mov esi, dword [ebp + 0x10]
add esp, 0x10
cmp byte [esi], 0
lea edi, [esp + eax + 0x10]
je 0x43bd37
push esi
lea esi, [esp + 0x2014]
push 0x4ad748
sub esi, edi
call fcn.0047f710
mov esi, dword [ebp + 0x10]
add esp, 8
mov edi, dword [ebp + 8]
cmp edi, 3
jne 0x43bd5d
mov eax, dword [esp + 0xc]
push 0x4ab96c
push 0
push eax
lea esi, [esp + 0x1c]
call fcn.0043b300
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x4bc420], 0
je 0x43bd7a
push 0x4a7ca8
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4bc3d8
call fcn.0040a740
cmp dword [0x4bc420], 2
je 0x43bd8e
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 2
jne 0x43bdc6
test ebx, ebx
jne 0x43bda5
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 0x374]
test ebx, ebx
je 0x43bdbc
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
mov ecx, ebx
call fcn.0043b4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.0043b780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43c1f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
cmp eax, ebx
je 0x43c21f
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43c226
mov byte [esp + 0xa0], bl
mov esi, dword [0x4bca38]
mov byte [esp + 0x20], bl
cmp esi, ebx
je 0x43c2cb
cmp byte [esi + 0x12], bl
je 0x43c279
mov edx, dword [esi]
push edx
call fcn.0047a5e0
add esp, 4
sub eax, ebx
je 0x43c25d
dec eax
je 0x43c256
mov eax, 0x4ad330
jmp 0x43c262
mov eax, dword [esi]
mov eax, dword [eax + 4]
jmp 0x43c262
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push eax
push 0x4adad4
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.0047f750
add esp, 8
mov esi, dword [esi + 0x14]
cmp esi, ebx
jne 0x43c238
cmp byte [esp + 0x20], bl
je 0x43c2cb
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43c290
sub eax, edx
cmp eax, 0x7b
jbe 0x43c2bd
mov esi, 0x7f
sub esi, eax
push esi
lea ebp, [esp + eax + 0x24]
push 0x4aaf60
push ebp
call fcn.00496040
add esp, 0xc
mov byte [esi + ebp], bl
jmp 0x43c2cb
cmp byte [esp + eax + 0x1f], 0x20
lea eax, [esp + eax + 0x20]
jne 0x43c2cb
mov byte [eax - 1], bl
mov edx, dword [0x4ba010]
cmp byte [edx + 0xd8], bl
je 0x43c2e9
mov dword [esp + 0x14], 1
cmp byte [0x4bca7d], bl
je 0x43c2ed
mov dword [esp + 0x14], ebx
mov eax, dword [0x4bb5bc]
mov dword [esp + 0x10], 0x4adad8
cmp eax, 1
jg 0x43c3fc
mov dword [esp + 0x10], 0x4a7935
mov dword [esp + 0x18], ebx
mov ebp, 0x4a9c50
cmp dword [0x4bb57c], ebx
je 0x43c321
mov ebp, 0x4a9c4c
mov esi, 0x4a9c50
cmp dword [0x4bb578], ebx
je 0x43c333
mov esi, 0x4a9c4c
push 1
call fcn.0041a9a0
mov bl, al
add esp, 4
lea eax, [esp + 0x108]
call fcn.0041ad90
mov ecx, dword [0x4bb5bc]
mov edx, dword [0x4bb5c0]
sub edx, dword [esp + 0x14]
push eax
mov eax, dword [0x4bb5b8]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [0x4bca40]
push ecx
mov ecx, dword [0x4bca44]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push ebp
push esi
lea edx, [esp + 0xcc]
push edx
push 0x4adb18
mov esi, 0xfffe
call fcn.0047f710
mov esi, dword [esp + 0x50]
add edi, eax
mov eax, esi
sub eax, edi
add esp, 0x34
add eax, 0xfffe
push eax
push edi
call fcn.00410ff0
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43c3c0
sub eax, ecx
add edi, eax
cmp dword [0x4bbc60], 0
mov eax, 0x4ad640
jne 0x43c3de
mov eax, 0x4adbcc
sub esi, edi
push eax
add esi, 0xfffe
call fcn.0047f710
add esp, 4
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret
dec eax
mov dword [esp + 0x18], eax
jmp 0x43c30f
Function at 0x4424b0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.0041e130
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4424e5
mov ecx, dword [ebp + 8]
push esi
push eax
push 0x4aa44c
call fcn.0043b4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x4424ef
jmp dword [eax*4 + 0x4426dc]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x442505
call fcn.0045f250
jmp 0x44250b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4bbc50]
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.0045f250
mov ebx, eax
test ebx, ebx
je 0x44257f
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44257f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4bbc50]
push 0x18
push 0
push esi
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.004828b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00495934
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4425b9.67
movzx edx, byte [eax + 0x44270c]
jmp dword [edx*4 + 0x4426f0]
mov esi, 0x40
jmp 0x4425e8
mov esi, 0x4000
jmp 0x4425e8
mov esi, 0x20
jmp 0x4425e8
mov esi, 0x8000
jmp 0x4425e8
mov esi, 0x80
jmp 0x4425e8
mov esi, pe_nt_image_headers32
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x4425f7
call fcn.0045f250
jmp 0x4425fd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x44257f
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44257f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x442553
mov ecx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push ecx
call fcn.004828b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x442676
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041c2a0
fmul qword [0x4b1660]
call fcn.004a21b0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x442680
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.0045f250
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x44269b
test esi, esi
jne 0x442562
jmp 0x4426a3
test esi, esi
je 0x44257f
cmp byte [esp + 0xf], 0
jne 0x4426c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x442562
push 1
push 0x64
call fcn.004014b0
add esp, 8
jmp 0x442680
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4462f0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x4bca70]
push eax
mov edi, 0x4a7935
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebp
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x446351
lea ecx, [esp + 0x50]
push ecx
call fcn.00446890
add esp, 4
test eax, eax
je 0x446344
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x446351
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
cmp byte [esp + 0x15c], 0
je 0x44637c
test bl, bl
je 0x44637c
push esi
push 0x4ae734
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.0047f710
mov esi, dword [0x4bca6c]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4bc460
mov edx, esi
call fcn.0043c410
test eax, eax
mov eax, dword [0x4b8c90]
setne bl
test eax, eax
je 0x4463ab
mov eax, dword [eax]
test eax, eax
jne 0x4463b0
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x148
ret

Function at 0x446890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push 0x4ae8b0
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x4468c8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446943
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x4ae8a4
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x4468c0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4468c0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x446927
cmp eax, ebx
je 0x446943
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x446921
dec eax
jne 0x446918
mov dword [esp + 0x10], eax
jmp 0x44693f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x44693b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446943
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x446951
cmp edi, ebx
jne 0x446951
mov edi, pe_nt_image_headers32
jmp 0x4468a4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x44696e
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x446964
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x45e670
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [0x4bb388]
push edi
mov edi, eax
call fcn.0041c2e0
test edi, edi
je 0x45e7c5
cmp byte [edi], 0
je 0x45e7c5
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x45e6e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x45e7fc
mov ecx, dword [0x4bbc50]
push 1
push esi
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.004828b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push esi
call fcn.004931f9
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x45e79d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4aaf98
push ebp
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45e79d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x4af0f4
mov esi, 0x80
lea edi, [esp + 0x34]
call fcn.0047f710
add esp, 0x14
push ebp
call fcn.00492c28
mov eax, dword [0x4bbc50]
mov edx, dword [0x4b7a70]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
mov dword [edx + 0x30], 0
call fcn.004828b0
mov edx, dword [0x4bb388]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.004828b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
push ebp
mov dword [ecx + 0x30], eax
call fcn.00492c28
add esp, 4
call fcn.0043d050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45e7fc
mov edx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.004828b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043b050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x45f040
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45f061
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push 0x4af108
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45f05b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x45f0c0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45f11f
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
test eax, eax
je 0x45f11f
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45f11f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x470250
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x470260
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x470270
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x47028c
test eax, eax
je 0x47029f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x4702e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x470435
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x470325
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x47031c
cmp byte [eax + esi + 4], 6
je 0x47031c
lea edx, [esi + eax]
mov eax, dword [edx + 8]
push eax
push edi
mov ecx, 0x4ab2ac
call fcn.004704e0
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x4702f9
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x47035a
mov ecx, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x4703a3
cmp dword [esp + 0x10], 1
jne 0x470392
cmp ebx, 1
jle 0x470392
cmp ebp, 0xffffffff
jne 0x47036d
xor ebp, ebp
push 0xa
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.004928a2
mov eax, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004828b0
cmp esi, dword [edi + 0x10]
je 0x470422
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
cmp byte [eax + edx + 4], 6
jne 0x47040b
mov esi, dword [eax + edx + 8]
inc ebx
test esi, esi
je 0x4703c2
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax + edx]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x4703f6
test ebp, ebp
je 0x4703e3
or ebp, 0xffffffff
jmp 0x4703e5
mov ebp, ebx
test esi, esi
je 0x47040b
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
jmp 0x470405
test esi, esi
je 0x47040b
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push esi
call fcn.004828b0
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x47033e
cmp byte [esp + 0x44], 0
je 0x470435
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x474b60
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x474b7a
cmp al, 9
jne 0x474b7d
inc esi
jmp 0x474b70
mov cl, byte [esi]
test cl, cl
jne 0x474b89
pop esi
xor al, al
pop ebp
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x474ba3
movzx eax, cl
mov word [ebp + 2], ax
pop esi
mov byte [ebp], 0
mov al, 1
pop ebp
pop ecx
ret
push ebx
push edi
push 0x2b
push eax
mov byte [ebp], 1
mov byte [esp + 0x1b], 0
call fcn.004945a1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x474c5f
lea eax, [ebx - 1]
cmp eax, esi
jbe 0x474be1
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x474bdc
cmp cl, 9
jne 0x474be1
dec eax
cmp eax, esi
ja 0x474bd0
sub eax, esi
lea edi, [eax + 1]
push edi
push 0x4a8ea8
push esi
call fcn.0049353e
add esp, 0xc
test eax, eax
jne 0x474c00
or byte [esp + 0x13], 1
jmp 0x474c32
push edi
push 0x4a8ea4
push esi
call fcn.0049353e
add esp, 0xc
test eax, eax
jne 0x474c1a
or byte [esp + 0x13], 4
jmp 0x474c32
push edi
push 0x4a8e9c
push esi
call fcn.0049353e
add esp, 0xc
test eax, eax
jne 0x474c91
or byte [esp + 0x13], 0x10
lea esi, [ebx + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x474c3f
cmp al, 9
jne 0x474c42
inc esi
jmp 0x474c35
cmp byte [esi], 0
je 0x474c91
lea ecx, [esi + 1]
push 0x2b
push ecx
call fcn.004945a1
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x474bc3
cmp byte [esi + 1], 0
jne 0x474c99
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, byte [esi]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
lea edi, [esp + 0x1b]
mov bl, al
call fcn.0041b380
movzx eax, al
add esp, 8
mov word [ebp + 2], ax
jmp 0x474cb7
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041b2a0
movzx ecx, al
add esp, 0xc
mov word [ebp + 2], cx
mov al, byte [esp + 0x13]
test al, 1
je 0x474cc3
or byte [ebp], 8
test al, 4
je 0x474ccb
or byte [ebp], 0x10
test al, 0x10
je 0x474cd3
or byte [ebp], 4
cmp word [ebp + 2], 0
pop edi
pop ebx
pop esi
setne al
pop ebp
pop ecx
ret
Function at 0x47a6e0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4a4078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ebx + 8]
push ebp
push esi
mov esi, dword [ebx + 4]
push edi
xor ebp, ebp
mov edx, ebx
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 4], edi
mov dword [esp + 0x2c], ebp
cmp ecx, ebp
jle 0x47a814
mov edi, edi
cmp eax, dword [esp + 0x3c]
jl 0x47a77f
mov eax, dword [0x4b7a70]
mov ecx, 0x3a
mov esi, 0x4ba100
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], ebp
mov dword [0x4bca90], ebp
mov dword [0x4bca94], ebp
cmp dword [0x4bb5ec], ebp
je 0x47a77b
mov eax, dword [0x4b8c90]
cmp eax, ebp
je 0x47a76f
mov eax, dword [eax]
cmp eax, ebp
jne 0x47a774
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x3c]
push eax
push 0x4a7930
push ecx
xor eax, eax
call fcn.00477620
add esp, 0x10
test eax, eax
je 0x47a7cf
cmp dword [esp + 0xc], ebp
jne 0x47a7f0
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x47a730
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 4], ecx
jmp 0x47a817
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 3
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov dword [edx + 4], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x24
ret 0xc