joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4307b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042af60
test eax, eax
je 0x43089f
mov ecx, edi
call fcn.0042af60
mov ecx, eax
call fcn.004285d0
test eax, eax
jne 0x43089f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43089f
mov eax, dword [0x4aeca8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x430812
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042af60
mov ecx, eax
call fcn.00428800
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x43089f
cmp ebx, eax
jne 0x43089f
cmp dword [esp + 0x10], eax
jne 0x430885
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4334d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4697c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x433509
inc eax
mov dword [esi + 0x10], eax
jmp 0x43361c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43351d
mov eax, 0xffffffc7
jmp 0x43361e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43352e
cmp dword [esi + 8], eax
jne 0x43351d
cmp dword [esi + 8], eax
jne 0x433547
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433547
mov eax, 0xffffffc7
jmp 0x43361e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43355b
push eax
mov ecx, ebx
call fcn.00432d00
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401580
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43358c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004015a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432470
test eax, eax
mov dword [esp + 0x38], eax
je 0x4335bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x483f50
call fcn.00401780
mov eax, dword [esp + 0x38]
jmp 0x43361e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433330
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433603
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433350
mov esi, eax
test esi, esi
jne 0x433633
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433330
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4335d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x483f50
call fcn.00401780
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x483f50
call fcn.00401780
mov eax, esi
jmp 0x43361e

Function at 0x436760
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4367c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4367c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4367c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4367c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x436800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43c710
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00462910
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c0b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046283e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045f102
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045f102
push 1
push 0
push 0
mov ecx, esi
call fcn.0045f0aa
push 1
push 0
push 1
mov ecx, esi
call fcn.0045f0aa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462982
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43c890
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00462910
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c0b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046283e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43c954
cmp dword [esp + 0x40], 1
jne 0x43c952
cmp ecx, eax
jge 0x43c954
mov eax, ecx
cmp eax, 0xc8
jge 0x43c960
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c710
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462982
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d0e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469e83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045d522
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00462bb8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464117
test eax, eax
je 0x43d1fc
mov ecx, dword [esp + 0x3c]
call fcn.00462be5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d1c0
push edi
mov ecx, esi
call fcn.00460249
mov ecx, esi
call fcn.0043d360
cmp dword [esp + 0x38], 1
jne 0x43d1f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00460384
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fc20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fc53
push esi
call fcn.00442d10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fc4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fcd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fcc2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fc77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fcbe
cmp eax, 2
je 0x43fcc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fc6a
cmp eax, 3
je 0x43fc9d
cmp eax, 1
jne 0x43fc6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fc6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fc6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fd00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fce8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fd00
add esp, 4
pop esi
ret

Function at 0x45e318
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e350
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c3cc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c3a4
jmp 0x45e35c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45fa06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45fa48
call fcn.00465502
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45fa48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45fa3f
xor eax, eax
jmp 0x45fa50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045fa56
pop edi
pop esi
pop ebx
ret 4

Function at 0x465a32
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465a60
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465a7e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465998
jmp 0x465a7e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465a7e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465998
test edi, edi
mov eax, edi
jne 0x465a68
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404da3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x404e0d
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x404e0d
cmp dword [esi], 0x104
jb 0x404e0d
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x4013f4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404e0d
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0x4013e0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [entry0]
test esi, esi
jne 0x404e0d
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jne 0x404e0d
cmp byte [edi], 0
jne 0x404e0f
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x404e13
Capabilities:
Query service status

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x24]
mov ebx, eax
add ebx, dword [esp + 0x28]
jmp 0x404eae
mov eax, dword [esi + 4]
cmp eax, dword [esp + 0x20]
je 0x404ed2
cmp dword [esp + 0x28], 0xffffffff
je 0x404e57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jb 0x404ec5
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x404e6f
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jmp 0x404e87
cmp dword [esp + 0x10], eax
je 0x404e7e
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x404e87
mov eax, dword [esi + 0x14]
cmp eax, ebp
jb 0x404ed2
mov ebp, eax
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x404e9c
mov eax, ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x404ea7
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
test edi, edi
jne 0x404e39
jmp 0x404ed2
push 0x5b4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x401000
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push esi
call edi
test eax, eax
je 0x401029
cmp eax, esi
je 0x401029
push eax
mov esi, eax
call edi
test eax, eax
jne 0x40101c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 8]
push 0x100
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 8]
test al, al
jne 0x40105a
xor eax, eax
pop edi
pop esi
add esp, 0x200
ret
lea ecx, [esp + 0x108]
push 0x100
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x108]
push str.ATH_Note
push edx
call fcn.0040ab00
add esp, 8
test eax, eax
je 0x401095
mov eax, 1
pop edi
pop esi
add esp, 0x200
ret
lea eax, [esp + 8]
push str.Microsoft_Internet_Explorer
push eax
call fcn.0040ab00
add esp, 8
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x200
ret

Function at 0x4010c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edx, dword [esp + 0x104]
xor ecx, ecx
test edx, edx
lea edx, [esp]
setne cl
push edx
mov byte [esp + 0x18], cl
call dword [sym.imp.USER32.dll_SetKeyboardState]
add esp, 0x100
ret
Function at 0x4011a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
movsx eax, word [esp + 0x114]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x18]
push 0x413494
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x100
call fcn.0040aea0
mov edi, str.Keyboard_Layoutpreload
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edx
push 0x80000001
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401276
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x40126b
lea edx, [esp + 0x20]
push edx
call fcn.00401130
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.Keyboard_Layoutpreload_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push 0x80000001
call ebx
test eax, eax
jne 0x401335
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x40132a
lea eax, [esp + 0x20]
push eax
call fcn.00401130
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
Function at 0x405190
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
call fcn.00407150
mov eax, dword [0x416904]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 1
call fcn.004010c0
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
push 0x4051f0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [0x416900]
push eax
push str.Getbm
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0
mov edi, eax
call fcn.004010c0
mov eax, dword [0x416904]
add esp, 4
push 4
push eax
call esi
mov eax, edi
pop edi
pop esi
ret

Function at 0x40aff0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b007
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b009
xor eax, eax
test eax, eax
je 0x40b01a
push eax
call fcn.0040d540
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40df30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x430a10]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40df4f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x430a0c], 1
mov byte [0x430a08], bl
jne 0x40dfa9
mov ecx, dword [0x431dc8]
test ecx, ecx
je 0x40df97
mov esi, dword [0x431dc4]
sub esi, 4
cmp esi, ecx
jb 0x40df97
mov eax, dword [esi]
test eax, eax
je 0x40df90
call eax
mov ecx, dword [0x431dc8]
sub esi, 4
cmp esi, ecx
jae 0x40df82
push 0x41301c
push 0x413014
call fcn.0040dfe0
add esp, 8
push 0x413024
push 0x413020
call fcn.0040dfe0
add esp, 8
test ebx, ebx
jne 0x40dfd0
push ebp
mov dword [0x430a10], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x40ea00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x430b20]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40ea42
call edi
mov esi, eax
test esi, esi
je 0x40ea2c
mov eax, 1
jmp 0x40ea3d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40eb4f
mov eax, 2
mov dword [0x430b20], eax
cmp eax, 1
jne 0x40eae2
test esi, esi
jne 0x40ea5b
call edi
mov esi, eax
test esi, esi
je 0x40eb4f
cmp word [esi], 0
mov eax, esi
je 0x40ea75
add eax, 2
cmp word [eax], 0
jne 0x40ea63
add eax, 2
cmp word [eax], 0
jne 0x40ea63
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40ead4
push edi
call fcn.0040af40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ead4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40eac6
push ebx
call fcn.0040d5b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40eb4f
test ebx, ebx
jne 0x40eaf3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40eb4f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40eb0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40eafb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40eafb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040af40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40eb2d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret