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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0102d240
test eax, eax
jne 0x1052234
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100204d
leave
ret
call fcn.010242af
test eax, eax
jne 0x102d22f
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 [0x10b11ec], 0
stosd dword es:[edi], eax
mov edi, 0x4010000
mov esi, 0x80000000
je 0x10522c6
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x1052282
test al, al
jne 0x10522c6
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
and eax, edi
and ecx, esi
or eax, ecx
je 0x10522c6
mov eax, dword [0x10b11e0]
mov ebx, dword [0x10b11e4]
mov ecx, eax
mov edx, ebx
and ecx, edi
and edx, esi
cmp ecx, eax
jne 0x10522c6
cmp edx, ebx
jne 0x10522c6
push 0x10523f0
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x105234b
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x105238b
push 0x1052428
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x105238b
push 0x1052410
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101237f
mov ebx, eax
test ebx, ebx
jl 0x105238b
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 0x105235b
jmp 0x1052362
lea eax, [ebp - 0x21c]
push eax
call fcn.01094ead
test eax, eax
je 0x1052366
call fcn.0101d802
mov ebx, eax
test ebx, ebx
jl 0x105238b
push 0xffffffffffffffff
push dword [ebp - 0x21c]
push 0
call fcn.0106ab1f
push dword [ebp - 0x218]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x21c]
call ebx
cmp dword [0x10b11ec], 0
je 0x10523e5
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x10523a1
test al, al
jne 0x10523e5
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
and eax, edi
and ecx, esi
or eax, ecx
je 0x10523e5
mov eax, dword [0x10b11e0]
mov ecx, eax
and ecx, edi
mov edi, dword [0x10b11e4]
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x10523e5
cmp edx, edi
jne 0x10523e5
push 0x1052400
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
pop edi
pop esi
pop ebx
jmp 0x102d22f
Function at 0x102d240
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.0102efc5
test eax, eax
jl 0x102d2d9
cmp dword [ebp - 8], esi
jl 0x102d2d9
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp - 8], ebx
jg 0x102d2d8
push edi
push 0x40000048
call dword [sym.imp.SHELL32.dll_SHRestricted]
push ebx
push 0x102d2e0
mov esi, 0x80000002
push esi
mov edi, eax
call fcn.0102d34d
test eax, eax
jne 0x105a6ed
test edi, edi
jne 0x102d2d7
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push 0x1023b48
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d2d7
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 0x102d2ce
cmp dword [ebp - 0x10], esi
ja 0x105a6f5
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 0x102d2d7
mov dword [ebp - 4], ebx
jmp 0x102d2ce

Function at 0x102d387
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
and dword [ebp - 0x41c], 0
push esi
push edi
push 4
pop edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x102d3f4
mov ebx, 0x100f4a0
push ebx
mov esi, 0x80000001
push esi
mov dword [ebp - 0x428], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x41c], edi
jb 0x105297f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret
cmp dword [ebp - 0x41c], 0
jne 0x1052a02
push 0x1052b04
push 0x1017800
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x424], 0x104
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x1052af0
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1052a02
cmp word [ebp - 0x20c], ax
je 0x1052a02
push edi
lea eax, [ebp - 0x418]
push eax
push edi
push 0x1052ad0
push ebx
push esi
mov dword [ebp - 0x418], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
call fcn.010854e5
call fcn.0108085f
call fcn.01087dbf
call fcn.010831ed
call fcn.01083188
push 0x10290fc
push 0x1029050
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0x18
push 0x1052ab0
push 0x1052a94
push 0x80000002
mov dword [ebp - 0x42c], edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x1052a72
cmp dword [ebp - 0x420], eax
jne 0x102d3e2
push edi
lea eax, [ebp - 0x418]
push eax
push edi
push 0x102d3f4
push ebx
push esi
mov dword [ebp - 0x418], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x102d3e2
Function at 0x102d696
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 0x102d8e0
push 0x80000002
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x102d80c
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 0x102d8bc
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x102d6fe
cmp dword [ebp - 8], esi
jne 0x102d6fe
cmp dword [ebp - 4], esi
jne 0x102d6fe
mov eax, dword [ebp - 0xc]
cmp eax, 0x3e8
jb 0x102d6fe
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 0x102d898
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x102d732
cmp dword [ebp - 8], esi
jne 0x102d732
cmp dword [ebp - 4], esi
jne 0x102d732
mov eax, dword [ebp - 0xc]
cmp eax, 0x64
jb 0x102d732
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 0x102d880
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x102d766
cmp dword [ebp - 8], esi
jne 0x102d766
cmp dword [ebp - 4], esi
jne 0x102d766
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0xc]
jbe 0x102d766
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 0x102d854
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x102d79a
cmp dword [ebp - 8], esi
jne 0x102d79a
cmp dword [ebp - 4], esi
jne 0x102d79a
mov eax, dword [ebp - 0xc]
cmp eax, 0x32
jae 0x102d79a
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 0x102d82c
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x102d7cd
cmp dword [ebp - 8], esi
jne 0x102d7cd
cmp dword [ebp - 4], esi
jne 0x102d7cd
mov eax, dword [ebp - 0xc]
test eax, eax
jbe 0x102d7cd
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 0x102d810
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x102d801
cmp dword [ebp - 8], esi
jne 0x102d801
cmp dword [ebp - 4], esi
jne 0x102d801
mov eax, dword [ebp - 0xc]
cmp eax, 0x32
jbe 0x102d801
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 0x102e847
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x10b0090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0xa8], 0xffffffff
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esi + 4], eax
cmp eax, edi
je 0x102e986
push ebx
push edi
push dword [0x10b00b4]
mov dword [ebp - 0xa8], edi
push edi
push eax
mov eax, 0x80000000
push eax
push eax
push eax
push eax
push 0x80000001
push edi
push 0x1032264
push edi
call fcn.010313b1
mov dword [esi + 0x50], eax
cmp eax, edi
je 0x102e8fe
mov eax, dword [esi + 4]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
push 0x50
lea eax, [ebp - 0xa4]
push eax
lea ebx, [esi + 0x1c]
push 0x35a
mov dword [ebx], 0x30
mov dword [esi + 0x20], 0xa1
push dword [0x10b00b4]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push edi
push 0x432
push dword [esi + 0x50]
lea eax, [ebp - 0xa4]
mov dword [esi + 0x40], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [esi + 0x50]
call fcn.01018ae7
push edi
push edi
push 0x1021468
mov ebx, 0x10213f0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
xor ecx, ecx
cmp eax, edi
sete cl
push 0x1f4
push 0x102e99c
push ebx
add ecx, ecx
xor ecx, dword [esi + 0x74]
and ecx, 2
xor dword [esi + 0x74], ecx
call fcn.01010590
mov dword [esi + 0x60], eax
call dword [sym.imp.UxTheme.dll_BufferedPaintInit]
xor ecx, ecx
cmp eax, edi
sete cl
lea eax, [esi + 8]
push eax
push dword [esi + 4]
shl ecx, 4
xor ecx, dword [esi + 0x74]
and ecx, 0x10
xor dword [esi + 0x74], ecx
call dword [sym.imp.ole32.dll_RegisterDragDrop]
push 0xc
xor eax, eax
lea ecx, [ebp - 0xb4]
push ecx
inc eax
push eax
push edi
push dword [esi + 4]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], eax
call dword [sym.imp.USER32.dll_SetGestureConfig]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa8]
pop edi
xor ecx, ebp
pop esi
call fcn.0100204d
leave
ret 4
Function at 0x10352f9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10b0090]
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, 0x1035408
test edi, edi
jne 0x103532f
mov eax, 0x10353f4
push ebx
push eax
push 0x10353a8
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0100ecf0
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x1050947
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push 0x80000001
mov dword [ebp - 0x41c], 0x208
call sub.SHLWAPI.dll_SHGetValueW
test eax, eax
je 0x1050903
test esi, esi
jne 0x1050947
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 8
cmp dword [ebp - 0x41c], eax
je 0x1035389
cmp word [ebp - 0x20c], ax
je 0x1035389
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 0x1035389
test byte [ebp + 0xc], 2
je 0x1035391
jmp 0x105a110
cmp dword [ebp - 0x418], 0
jne 0x1035391
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 0x418], 1
mov edi, eax
jmp 0x1035321
Function at 0x1035929
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 0x1052b2e
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 0x1035943
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0106c895
mov dword [ebp - 4], 1
jmp 0x1035943
Function at 0x1038e73
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
test byte [0x10b0100], 1
push edi
mov edi, ecx
je 0x103ce78
mov eax, dword [0x10b00fc]
test eax, eax
jne 0x10534d8
pop edi
ret
or dword [0x10b0100], 1
push 0
push 0
push 0
push 0x103ceac
push 0x100f4a0
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
mov dword [0x10b00fc], eax
jmp 0x1038e88
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x1038e90
push 0
push 0x100f000
push 3
push 0x10660c8
call fcn.01003c49
mov ecx, edi
pop edi
jmp fcn.0104d20f

Function at 0x1039f76
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 0x1039f99
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.010388b7

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

Disassembly:
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 0x103c655
push ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x50]
jne 0x103c654
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.01012959
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
call fcn.0103c670
mov ecx, eax
cmp ecx, dword [esi + 0x60]
jae 0x103c6b8
mov ebx, dword [esi + 0x5c]
cmp ecx, ebx
jae 0x103c6da
mov eax, ecx
imul eax, eax, 0xff
xor edx, edx
div ebx
mov byte [ebp - 8], al
cmp ecx, dword [esi + 0x60]
jae 0x103c6d1
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.010173bb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
cmp dword [ebp - 0xc], eax
je 0x103c5b1
pop ebx
mov eax, dword [edi]
cmp dword [ebp - 0xc], eax
jne 0x103c66c
mov esi, dword [esi + 0x50]
cmp dword [ebp - 0x10], esi
jne 0x103c66c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
leave
ret
cmp ecx, dword [esi + 0x5c]
jb 0x103c5fd
push 0
push 0xff
mov ecx, esi
call fcn.010173bb
jmp 0x103c654
mov byte [ebp - 4], 0
jmp 0x103c634
mov byte [ebp - 8], 0
jmp 0x103c617
Function at 0x103cc95
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 0x105cdd8
xor eax, eax
neg eax
sbb eax, eax
and eax, 0x103cd48
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 0x103cd3b
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.01037588
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
cmp ebx, 0x800704c7
je 0x103cce8
jmp 0x103cd32
push 0x11
call edi
test ax, ax
jge 0x103ccc2
xor eax, eax
inc eax
jmp 0x103ccc4

Function at 0x1041f30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10b010c], 0
push esi
je 0x1048e34
mov eax, dword [0x10b010c]
cmp eax, 1
je 0x1059a17
push eax
call dword [0x10b0114]
test eax, eax
je 0x1059a2e
pop esi
ret
call fcn.01048e4b
test eax, eax
jne 0x1041f3e
jmp 0x1059a45
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1059a45
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 0x1059a49
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10b010c]
call dword [0x10b0114]
mov edi, eax
test edi, edi
je 0x1059a6e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1059a8a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10b010c]
call dword [0x10b0110]
add edi, 0x10
cmp edi, esi
jb 0x1059a76
mov eax, edi
pop edi
jmp 0x1041f5b
Function at 0x1045805
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 0x1045870
call fcn.010458a5
lea eax, [ebp + 0xc]
push eax
push 0x1045890
call fcn.01045401
mov edi, eax
test edi, edi
jl 0x1045859
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push esi
movzx eax, ax
push 0x10452ec
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 0x1045880
call fcn.010458a5
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x10475ff
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 0x104764a
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.0103b7a7
lea ebx, [edi + 0x6c]
mov eax, dword [ebx]
test eax, eax
jne 0x105b873
push ebx
call fcn.01018201
mov eax, dword [edi + 0x58]
and dword [ebp - 4], 0
cmp eax, dword [edi + 0x1e0]
je 0x105b883
push dword [esi + 0xc]
mov ecx, edi
call fcn.010472ff
push ebx
push dword [edi + 0x38]
push edi
push dword [esi + 0xc]
call fcn.010473b6
xor ebx, ebx
cmp eax, ebx
jl 0x10476fb
mov eax, dword [esi + 0x24]
or eax, dword [ebp + 8]
mov ecx, dword [edi + 0x6c]
push eax
add esi, 0x10
push esi
call fcn.01047709
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jne 0x105b8d7
cmp dword [0x10b11ec], ebx
je 0x10476e6
mov al, byte [0x10b11f0]
cmp al, 4
jb 0x10476f5
mov ecx, dword [0x10b11d8]
mov edx, dword [0x10b11dc]
mov eax, 0x10000
mov esi, 0x80000000
and ecx, eax
and edx, esi
or ecx, edx
jne 0x105b941
cmp dword [ebp + 8], 0
jl 0x10476fb
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
test al, al
je 0x10476c4
jmp 0x10476e6
mov ecx, edi
call fcn.01046c3e
jmp 0x10476ec
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x24]
jmp 0x104765e
lea ebx, [edi + 0x68]
mov eax, dword [ebx]
mov dword [ebp - 4], 1
test eax, eax
je 0x105b8a6
push dword [esi + 0xc]
push dword [eax + 0xc]
call fcn.0107e482
test eax, eax
je 0x105b8a6
xor eax, eax
jmp 0x105b8cb
push ebx
call fcn.01018201
push dword [esi + 0xc]
mov ecx, edi
call fcn.010472ff
push ebx
push dword [edi + 0x38]
push edi
push dword [esi + 0xc]
call fcn.010473b6
test eax, eax
jl 0x10476fb
mov ebx, dword [ebx]
mov dword [edi + 0x6c], ebx
inc dword [ebx]
jmp 0x104768e
cmp dword [0x10b11ec], ebx
je 0x10476e6
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x105b8f4
test al, al
jne 0x10476e6
mov ecx, dword [0x10b11d8]
mov edx, dword [0x10b11dc]
mov eax, 0x10000
mov esi, 0x80080000
and ecx, eax
and edx, esi
or ecx, edx
je 0x10476e6
mov ecx, dword [0x10b11e0]
mov ebx, dword [0x10b11e4]
mov edx, ecx
and edx, eax
mov eax, ebx
and eax, esi
cmp edx, ecx
jne 0x10476e6
cmp eax, ebx
jne 0x10476e6
push 0x1065948
jmp 0x105b96a
mov ecx, dword [0x10b11e0]
mov ebx, dword [0x10b11e4]
mov edx, ecx
and edx, eax
mov eax, ebx
and eax, esi
cmp edx, ecx
jne 0x10476e6
cmp eax, ebx
jne 0x10476e6
push 0x105b980
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
jmp 0x10476e6