joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10303bd
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.010303f0
test eax, eax
jne 0x1055478
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001fef
leave
ret
call fcn.01028546
test eax, eax
jne 0x10303df
push ebx
push esi
push edi
push 0x44
push eax
lea eax, [ebp - 0x260]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [0x10b24cc], 0
stosd dword es:[edi], eax
mov edi, 0x4010000
mov esi, SHChangeNotifyRegister
je 0x105550a
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x10554c6
test al, al
jne 0x105550a
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
and eax, edi
and ecx, esi
or eax, ecx
je 0x105550a
mov eax, dword [0x10b24c0]
mov ebx, dword [0x10b24c4]
mov ecx, eax
mov edx, ebx
and ecx, edi
and edx, esi
cmp ecx, eax
jne 0x105550a
cmp edx, ebx
jne 0x105550a
push 0x1055638
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x105558f
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x10555cf
push 0x1055670
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10555cf
push 0x1055658
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01010e33
mov ebx, eax
test ebx, ebx
jl 0x10555cf
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x105559f
jmp 0x10555a6
lea eax, [ebp - 0x21c]
push eax
call fcn.01096dfd
test eax, eax
je 0x10555aa
call fcn.0101af08
mov ebx, eax
test ebx, ebx
jl 0x10555cf
push 0xffffffffffffffff
push dword [ebp - 0x21c]
push 0
call fcn.0106dabd
push dword [ebp - 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x21c]
call ebx
cmp dword [0x10b24cc], 0
je 0x1055629
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x10555e5
test al, al
jne 0x1055629
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
and eax, edi
and ecx, esi
or eax, ecx
je 0x1055629
mov eax, dword [0x10b24c0]
mov ecx, eax
and ecx, edi
mov edi, dword [0x10b24c4]
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1055629
cmp edx, edi
jne 0x1055629
push 0x1055648
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
pop edi
pop esi
pop ebx
jmp 0x10303df
Function at 0x10303f0
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
mov dword [ebp - 4], esi
call fcn.01030537
test eax, eax
jl 0x1030489
cmp dword [ebp - 8], esi
jl 0x1030489
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp - 8], ebx
jg 0x1030488
push edi
push 0x40000048
call dword [sym.imp.SHELL32.dll_SHRestricted]
push ebx
push 0x1030490
mov esi, reloc.SHELL32.dll_SHChangeNotifyRegister
push esi
mov edi, eax
call fcn.010304fd
test eax, eax
jne 0x105d875
test edi, edi
jne 0x1030487
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push 0x1025690
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1030487
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHQueryInfoKeyW]
test eax, eax
jne 0x103047e
cmp dword [ebp - 0x10], esi
ja 0x105d87d
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret
mov dword [ebp - 4], ebx
jmp 0x1030487
mov dword [ebp - 4], ebx
jmp 0x103047e

Function at 0x1030ba7
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push 0x1030c74
push 0x1030c08
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1054c5f
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001fef
leave
ret
cmp word [ebp - 0x20c], si
je 0x1030bf5
push 0x40
lea eax, [ebp - 0x260]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
inc eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x264], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1030bf5
push dword [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
jmp 0x1030bf5
Function at 0x10326ad
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov edx, eax
test edx, edx
je 0x10326de
cmp word [edx], 0
jne 0x1055044
call fcn.01030cb5
test eax, eax
je 0x1055087
call fcn.01025639
test eax, eax
jne 0x1032710
call fcn.0103271c
test eax, eax
jne 0x1032710
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01001fef
leave
ret
push 5
jmp 0x1055089
push 2
pop ebx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push edx
call fcn.0106d41b
test eax, eax
je 0x1032700
push esi
push 4
pop ecx
mov edi, 0x100d864
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop esi
je 0x1055079
push 4
pop ebx
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x1032700
push 2
pop ebx
jmp 0x1032700
Function at 0x1032996
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x1032be0
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1032b0c
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1032bbc
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x10329fe
cmp dword [ebp - 8], esi
jne 0x10329fe
cmp dword [ebp - 4], esi
jne 0x10329fe
mov eax, dword [ebp - 0xc]
cmp eax, 0x3e8
jb 0x10329fe
mov dword [ebx + 0x18], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1032b98
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x1032a32
cmp dword [ebp - 8], esi
jne 0x1032a32
cmp dword [ebp - 4], esi
jne 0x1032a32
mov eax, dword [ebp - 0xc]
cmp eax, 0x64
jb 0x1032a32
mov dword [ebx + 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1032b80
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x1032a66
cmp dword [ebp - 8], esi
jne 0x1032a66
cmp dword [ebp - 4], esi
jne 0x1032a66
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0xc]
jbe 0x1032a66
mov dword [ebx + 0x10], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1032b54
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x1032a9a
cmp dword [ebp - 8], esi
jne 0x1032a9a
cmp dword [ebp - 4], esi
jne 0x1032a9a
mov eax, dword [ebp - 0xc]
cmp eax, 0x32
jae 0x1032a9a
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1032b2c
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x1032acd
cmp dword [ebp - 8], esi
jne 0x1032acd
cmp dword [ebp - 4], esi
jne 0x1032acd
mov eax, dword [ebp - 0xc]
test eax, eax
jbe 0x1032acd
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1032b10
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x1032b01
cmp dword [ebp - 8], esi
jne 0x1032b01
cmp dword [ebp - 4], esi
jne 0x1032b01
mov eax, dword [ebp - 0xc]
cmp eax, 0x32
jbe 0x1032b01
mov dword [ebx + 0x30], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10374a5
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x1055d66
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
mov eax, dword [ebp + 0xc]
push ebx
push edi
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
pop edi
pop ebx
test eax, eax
je 0x10374bf
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0106eb85
mov dword [ebp - 4], 1
jmp 0x10374bf

Function at 0x1037588
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
and edi, 1
and dword [ebp - 0x418], 0
mov eax, 0x1037698
test edi, edi
jne 0x10375be
mov eax, 0x1037684
push ebx
push eax
push 0x1037638
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0103456a
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x104d020
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push SHChangeNotifyRegister
mov dword [ebp - 0x41c], 0x208
call sub.SHLWAPI.dll_SHGetValueW
test eax, eax
je 0x104cfdc
test esi, esi
jne 0x104d020
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001fef
leave
ret 8
cmp dword [ebp - 0x41c], eax
je 0x1037618
cmp word [ebp - 0x20c], ax
je 0x1037618
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xffc00000
add eax, 0x400000
or eax, 0x292013
push eax
push 0
push ebx
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1037618
test byte [ebp + 0xc], 2
je 0x1037620
jmp 0x105d296
cmp dword [ebp - 0x418], 0
jne 0x1037620
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 0x418], 1
mov edi, eax
jmp 0x10375b0
Function at 0x103a0fd
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
test byte [0x10b1104], 1
push edi
mov edi, ecx
je 0x103f2f0
mov eax, dword [0x10b1100]
test eax, eax
jne 0x10566f8
pop edi
ret
or dword [0x10b1104], 1
push 0
push 0
push 0
push 0x103f324
push 0x100f278
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
mov dword [0x10b1100], eax
jmp 0x103a112
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x103a11a
push 0
push 0x1002cd0
push 3
push 0x106926c
call fcn.01009311
mov ecx, edi
pop edi
jmp fcn.01053c74

Function at 0x103b266
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc10]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je 0x103b289
push ebx
push ebx
push 0x438
push eax
call edi
push ebx
push ebx
push 0x1f
push dword [esi + 4]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push ebx
push 1
push 0x43f
push dword [esi + 0xc10]
call edi
pop edi
lea ecx, [esi + 0xaf8]
pop esi
pop ebx
jmp fcn.01039b0e

Function at 0x103e1c4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
cmp ecx, dword [esi + 0x5c]
jb 0x103e249
push 0
push 0xff
mov ecx, esi
call fcn.01014f15
jmp 0x103e298
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea eax, [ebp - 0x28]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edi, [esi + 0x4c]
mov eax, dword [edi]
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi]
mov dword [ebp - 0xc], eax
cmp eax, ecx
jne 0x103e299
push ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x50]
jne 0x103e298
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push 0
sbb dword [ebp - 0x14], eax
push 0x3e8
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0100e7e5
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
call fcn.0103e15b
mov ecx, eax
cmp ecx, dword [esi + 0x60]
jae 0x103e1a3
mov ebx, dword [esi + 0x5c]
cmp ecx, ebx
jae 0x103e2ba
mov eax, ecx
imul eax, eax, 0xff
xor edx, edx
div ebx
mov byte [ebp - 8], al
cmp ecx, dword [esi + 0x60]
jae 0x103e2b4
mov ebx, dword [esi + 0x60]
mov eax, ebx
sub eax, ecx
imul eax, eax, 0xff
xor edx, edx
div ebx
mov byte [ebp - 4], al
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
call fcn.01014f15
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
cmp dword [ebp - 0xc], eax
je 0x103e1fd
pop ebx
mov eax, dword [edi]
cmp dword [ebp - 0xc], eax
jne 0x103e2b0
mov esi, dword [esi + 0x50]
cmp dword [ebp - 0x10], esi
jne 0x103e2b0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
leave
ret
mov byte [ebp - 4], 0
jmp 0x103e278
mov byte [ebp - 8], 0
jmp 0x103e25f
Function at 0x103e8f5
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push 2
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_GetAncestor]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
mov ebx, eax
call edi
test ax, ax
jl 0x105fea8
xor eax, eax
neg eax
sbb eax, eax
and eax, 0x103e9a8
push eax
push 0x100
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_Ordinal_571]
mov ebx, eax
test ebx, ebx
jl 0x103e99b
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
and dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x100e
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x10]
push eax
push 0
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x1c]
push eax
push 0xcc
push dword [esi + 0x44]
call fcn.0103c3ea
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
cmp ebx, 0x800704c7
je 0x103e948
jmp 0x103e992
push 0x11
call edi
test ax, ax
jge 0x103e922
xor eax, eax
inc eax
jmp 0x103e924
Function at 0x1041567
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x338]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x10415b7
cmp dword [ebp + 8], 0
jne 0x1041705
mov edx, dword [eax + 0x29c]
mov ecx, edx
and ecx, 0xf
test dl, 0x20
jne 0x10597ca
add eax, 0x18
push eax
push ecx
push 0x421
push dword [esi + 0x20]
call edi
mov eax, dword [esi + 0x338]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x10415ed
test byte [eax + 0x29c], 0x10
jne 0x10415ed
call ebx
sub eax, dword [ebp + 0xc]
cmp eax, 0x1388
jb 0x10415ed
call ebx
push 2
push 0x1041728
mov dword [ebp - 4], eax
call fcn.01037588
mov ecx, esi
call fcn.01040f5f
mov ecx, 0x10b1460
call fcn.0100dbeb
push 0x2c
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [ebp - 0x34], 0x30
call sub.msvcrt.dll_memset
mov ecx, dword [esi + 0x338]
add esp, 0xc
test ecx, ecx
je 0x1041641
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x439
push dword [esi + 0x20]
add ecx, 0x98
mov dword [ebp - 0x10], ecx
call edi
cmp dword [esi + 0x338], 0
mov dword [esi + 0x340], 1
je 0x10416fb
and dword [esi + 0x390], 0
push 0x21b
push 0x1041718
call fcn.01034ccd
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0x2016
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x104169c
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
cmp eax, 0x2328
jae 0x10597d2
mov eax, 0xbb8
add eax, 0x3e8
push eax
push 7
mov ecx, esi
call fcn.01041753
test eax, eax
je 0x10416fb
and dword [esi + 0x90], 0
call ebx
push 0x3e8
push 4
mov ebx, 0x403
push ebx
push dword [esi + 0x20]
mov dword [esi + 0x8c], eax
call edi
push 0x1388
push 5
push ebx
push dword [esi + 0x20]
call edi
push 0
push 0
add ebx, 0xe
push ebx
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
push dword [esi + 0x20]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
add eax, 0x18
push eax
push dword [ebp + 8]
jmp 0x10415ad
add ecx, 3
jmp 0x10415a8
add eax, 0xffffe890
jmp 0x10416a1
Function at 0x1041e06
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10b1110], 0
push esi
je 0x1048da4
mov eax, dword [0x10b1110]
cmp eax, 1
je 0x105cb87
push eax
call dword [0x10b1118]
test eax, eax
je 0x105cb9e
pop esi
ret
call fcn.01048dbb
test eax, eax
jne 0x1041e14
jmp 0x105cbb5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x105cbb5
pop esi
ret
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x105cbb9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10b1110]
call dword [0x10b1118]
mov edi, eax
test edi, edi
je 0x105cbde
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x105cbfa
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10b1110]
call dword [0x10b1114]
add edi, 0x10
cmp edi, esi
jb 0x105cbe6
mov eax, edi
pop edi
jmp 0x1041e31
Function at 0x1045765
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
and dword [esi], 0
push edi
push 0x10457d0
call fcn.01045805
lea eax, [ebp + 0xc]
push eax
push 0x10457f0
call fcn.01045301
mov edi, eax
test edi, edi
jl 0x10457b9
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push esi
movzx eax, ax
push 0x10451ec
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x10457e0
call fcn.01045805
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x1047553
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, ecx
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x20]
and dword [edi + 0x60], 0
and dword [edi + 0x5c], 0
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x24]
and eax, 0xe0000000
mov dword [ebp + 8], eax
jne 0x104759e
push 0xffffffffffffffec
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shl eax, 7
not eax
and eax, 0x20000000
or eax, 0x40000000
mov dword [ebp + 8], eax
mov ecx, edi
call fcn.0103d3a8
lea ebx, [edi + 0x6c]
mov eax, dword [ebx]
test eax, eax
jne 0x105e9fb
push ebx
call fcn.01015aed
mov eax, dword [edi + 0x58]
and dword [ebp - 4], 0
cmp eax, dword [edi + 0x1e0]
je 0x105ea0b
push dword [esi + 0xc]
mov ecx, edi
call fcn.01047255
push ebx
push dword [edi + 0x38]
push edi
push dword [esi + 0xc]
call fcn.0104730c
xor ebx, ebx
cmp eax, ebx
jl 0x104764f
mov eax, dword [esi + 0x24]
or eax, dword [ebp + 8]
mov ecx, dword [edi + 0x6c]
push eax
add esi, 0x10
push esi
call fcn.0104765d
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jne 0x105ea5f
cmp dword [0x10b24cc], ebx
je 0x104763a
mov al, byte [0x10b24d0]
cmp al, 4
jb 0x1047649
mov ecx, dword [0x10b24b8]
mov edx, dword [0x10b24bc]
mov eax, 0x10000
mov esi, SHChangeNotifyRegister
and ecx, eax
and edx, esi
or ecx, edx
jne 0x105eac9
cmp dword [ebp + 8], 0
jl 0x104764f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
test al, al
je 0x1047618
jmp 0x104763a
mov ecx, edi
call fcn.01046b8e
jmp 0x1047640
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x24]
jmp 0x10475b2
lea ebx, [edi + 0x68]
mov eax, dword [ebx]
mov dword [ebp - 4], 1
test eax, eax
je 0x105ea2e
push dword [esi + 0xc]
push dword [eax + 0xc]
call fcn.01080329
test eax, eax
je 0x105ea2e
xor eax, eax
jmp 0x105ea53
push ebx
call fcn.01015aed
push dword [esi + 0xc]
mov ecx, edi
call fcn.01047255
push ebx
push dword [edi + 0x38]
push edi
push dword [esi + 0xc]
call fcn.0104730c
test eax, eax
jl 0x104764f
mov ebx, dword [ebx]
mov dword [edi + 0x6c], ebx
inc dword [ebx]
jmp 0x10475e2
cmp dword [0x10b24cc], ebx
je 0x104763a
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x105ea7c
test al, al
jne 0x104763a
mov ecx, dword [0x10b24b8]
mov edx, dword [0x10b24bc]
mov eax, 0x10000
mov esi, 0x80080000
and ecx, eax
and edx, esi
or ecx, edx
je 0x104763a
mov ecx, dword [0x10b24c0]
mov ebx, dword [0x10b24c4]
mov edx, ecx
and edx, eax
mov eax, ebx
and eax, esi
cmp edx, ecx
jne 0x104763a
cmp eax, ebx
jne 0x104763a
push 0x104c218
jmp 0x105eaf2
mov ecx, dword [0x10b24c0]
mov ebx, dword [0x10b24c4]
mov edx, ecx
and edx, eax
mov eax, ebx
and eax, esi
cmp edx, ecx
jne 0x104763a
cmp eax, ebx
jne 0x104763a
push 0x105eb08
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
jmp 0x104763a