joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002d70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x264], esi
test ebx, ebx
je 0x10002e98
test esi, esi
je 0x10002e98
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10002e49
cmp byte [ebp - 0x25c], 0
je 0x10002e49
lea esi, [ebp - 0x25c]
lea ecx, [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x10023204
push esi
call edi
test eax, eax
je 0x10002e3b
push 0x10023208
push esi
call edi
test eax, eax
je 0x10002e3b
mov cl, byte [esi]
mov dl, byte [esi + 1]
push 0x64
lea eax, [ebp - 0x68]
mov byte [ebp - 0x260], cl
push eax
lea ecx, [ebp - 0x260]
push ecx
mov byte [ebp - 0x25f], dl
mov byte [ebp - 0x25e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10002e51
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.1000be8c
add esp, 0xc
test eax, eax
je 0x10002e64
add esi, 4
cmp byte [esi], 0
jne 0x10002dd0
mov esi, dword [ebp - 0x264]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebx, edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x10002eb0
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x344], esi
cmp esi, 0xffffffff
je 0x10002fdd
push 0x124
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.1000f770
add esp, 0xc
lea ecx, [ebp - 0x340]
push ecx
push esi
mov dword [ebp - 0x340], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002fdd
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x103
lea edx, [ebp - 0x10f]
push 0
push edx
call fcn.1000f770
mov eax, dword [ebp - 0x338]
add esp, 0xc
push eax
push 0
push 0x400
mov edi, eax
mov byte [ebp - 0x110], 0
call ebx
mov esi, eax
test esi, esi
je 0x10002fc1
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
jne 0x10002f72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002fc1
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x218]
call fcn.10002d70
push esi
test eax, eax
jne 0x10002f90
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002fc1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x110]
push str.C:WindowsSysWOW64config_systemprofileAppData
push ecx
call fcn.1000b100
add esp, 8
test eax, eax
je 0x10002fc1
push edi
push 1
push 0x100001
call ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x344]
lea edx, [ebp - 0x340]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10002f1d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100093ad
mov esp, ebp
pop ebp
ret

Function at 0x10003510
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100033c0
call fcn.10003450
call fcn.10003310
call fcn.100031f0
push 0x3ff
lea eax, [ebp - 0x487]
push 0
push eax
mov byte [ebp - 0x488], 0
call fcn.1000f770
add esp, 0xc
push 0x7f
lea ecx, [ebp - 0x87]
push 0
push ecx
mov dword [ebp - 0x48c], 0x400
mov byte [ebp - 0x88], 0
call fcn.1000f770
add esp, 0xc
lea edx, [ebp - 0x494]
push edx
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x48c]
push edx
lea eax, [ebp - 0x488]
push eax
push str.SYSTEM
push 0
mov dword [ebp - 0x490], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push 0
push 0
push 0
lea ecx, [ebp - 0x488]
push ecx
push 1
push 4
push str.CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet_SettingsConnections
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x100035e0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.10003310
call fcn.100031f0
xor eax, eax
push 0x3ff
push eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x4a8], al
lea eax, [ebp - 0x4a7]
push eax
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x4b4], 0x24
call fcn.1000f770
add esp, 0xc
push 0x7f
lea ecx, [ebp - 0xa7]
push 0
push ecx
mov dword [ebp - 0x4ac], 0x400
mov byte [ebp - 0xa8], 0
call fcn.1000f770
add esp, 0xc
lea edx, [ebp - 0x4b4]
push edx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x4b0], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x4b8]
push ecx
lea edx, [ebp - 0x4b0]
push edx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x4ac]
push ecx
lea edx, [ebp - 0x4a8]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x100036f1
push 0
push 0
push 0
lea ecx, [ebp - 0x4a8]
push ecx
push 1
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
test eax, eax
jne 0x100036f1
mov esi, 1
jmp 0x100036e0
push esi
mov eax, edi
call fcn.10002ff0
inc esi
add esp, 4
cmp esi, 8
jl 0x100036e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x100046a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ed78
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10002eb0
push 0x2c
push str.C:Program_Files__x86_DNS_LOCKDNS_LOCK.exe
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10001ef0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.100045e0
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 4
lea esi, [ebx + 0x10]
cmp al, bl
je 0x10004745
lea ecx, [ebp - 0x2c]
push str.C:Program_Files__x86_DNS_LOCKDNS_LOCK.exe__I
push ecx
lea ebx, [ebp + 8]
call fcn.10007d20
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], esi
jae 0x1000472d
lea eax, [ebp - 0x2c]
push 0
push eax
call edi
cmp dword [ebp - 0x18], esi
jb 0x10004743
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100093a2
add esp, 4
xor ebx, ebx
push 0x26
push str.C:Program_FilesDNS_LOCKDNS_LOCK.exe
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10001ef0
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.100045e0
add esp, 4
test al, al
je 0x100047ac
lea ecx, [ebp - 0x2c]
push str.C:Program_FilesDNS_LOCKDNS_LOCK.exe__I
push ecx
lea ebx, [ebp + 8]
call fcn.10007d20
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], esi
jae 0x10004794
lea eax, [ebp - 0x2c]
push 0
push eax
call edi
cmp dword [ebp - 0x18], esi
jb 0x100047aa
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100093a2
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x50], esi
jb 0x100047bd
mov eax, dword [ebp - 0x64]
push eax
call fcn.100093a2
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], esi
jb 0x100047dc
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100093a2
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp + 0x1c], esi
jb 0x100047f6
mov edx, dword [ebp + 8]
push edx
call fcn.100093a2
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x10004820
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x19c]
push ecx
push 0x101
mov ebx, edx
mov dword [ebp - 0x1b0], eax
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000487b
push str._gethostbyname_error_for_host:_n
call fcn.1000b965
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x100048dd
mov eax, dword [esi + 0xc]
cmp dword [eax], edi
je 0x100048d3
nop
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.1000c9f0
mov edx, dword [ebp - 0x1a8]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x100234b8
mov edx, ebx
call fcn.10007df0
mov eax, dword [esi + 0xc]
inc edi
lea eax, [eax + edi*4]
add esp, 8
add ebx, 0x64
cmp dword [eax], 0
jne 0x10004890
mov ecx, dword [ebp - 0x1b0]
mov dword [ecx], edi
jmp 0x100048eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1b0]
mov dword [edx], edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x10004e00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x10004e16
lea eax, [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x20006
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10004e69
cmp dword [ebp + 0x1c], edi
jb 0x10004e43
mov edx, dword [ebp + 8]
push edx
call fcn.100093a2
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x10004e61
mov eax, dword [ebp + 0x24]
push eax
call fcn.100093a2
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x38]
push esi
mov esi, dword [ebp + 0x24]
mov eax, esi
cmp ecx, edi
jae 0x10004e7b
lea eax, [ebp + 0x24]
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
inc eax
push eax
push esi
push 1
push ebx
push str.NameServer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
pop esi
push edx
test eax, eax
je 0x10004edd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], edi
jb 0x10004eb7
mov eax, dword [ebp + 8]
push eax
call fcn.100093a2
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x10004e61
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.100093a2
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], edi
jb 0x10004ef4
mov eax, dword [ebp + 8]
push eax
call fcn.100093a2
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x10004f12
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.100093a2
add esp, 4
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005160
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e943
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x10023534
push ebx
mov dword [ebp - 4], ebx
call fcn.1000c3af
add esp, 8
lea eax, [ebp - 0x518]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push 0x80000002
mov dword [ebp - 0x518], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100052c7
push 0x103
lea ecx, [ebp - 0x113]
push ebx
push ecx
xor esi, esi
mov byte [ebp - 0x114], bl
call fcn.1000f770
push 0x3ff
lea edx, [ebp - 0x513]
push ebx
push edx
mov byte [ebp - 0x514], bl
call fcn.1000f770
mov ecx, dword [ebp - 0x518]
add esp, 0x18
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x100052c7
lea edx, [ebp - 0x114]
push edx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push str._s_s
lea edx, [ebp - 0x514]
call fcn.10007f20
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x520], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
inc esi
mov byte [ecx], bl
call fcn.10001c30
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], edi
lea eax, [ebp - 0x514]
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x51c], esp
mov byte [ecx], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10005284
sub eax, edi
push eax
lea edx, [ebp - 0x514]
push edx
call fcn.10001ef0
mov byte [ebp - 4], bl
call fcn.10004f20
mov ecx, dword [ebp - 0x518]
add esp, 0x38
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10005223
mov edx, dword [ebp - 0x518]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 0x10
jb 0x100052e6
mov eax, dword [ebp + 8]
push eax
call fcn.100093a2
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x10005460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [ebp - 0x10c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100054dc
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push str.AutoConfigURL
push ecx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x110], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005503
sub eax, edx
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.10001ef0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x100072a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x10007431
cmp byte [ebx + 0x49], 0
je 0x10007431
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10007425
lea esi, [ebp - 0x2c]
call fcn.10006aa0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10007313
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000734c
dec eax
je 0x10007350
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x1000742c
call fcn.10001a00
xor al, al
jmp 0x10007433
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10007360
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000738d
cmp edi, 0x10
jae 0x1000736f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1000c072
add esp, 0x10
cmp esi, eax
jne 0x1000741d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10007429
test esi, esi
jne 0x10007307
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000744e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000744e
cmp edi, esi
jae 0x10007406
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10002280
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10007307
mov ecx, eax
cmp edi, 0x10
jae 0x100073e2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x100073fd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10007301
test esi, esi
jne 0x100073d8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10007415
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10007301
lea ecx, [ebp - 0x2c]
call fcn.10001a00
xor al, al
jmp 0x10007433
lea ecx, [ebp - 0x2c]
call fcn.10001a00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.1000863e
int3
Function at 0x100076c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e55b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100274a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10008c8f
push 4
mov dword [ebp - 4], 0
call fcn.1000aaae
mov edi, eax
add esp, 4
test edi, edi
je 0x1000773c
call fcn.10008b67
mov dword [edi], eax
call fcn.10008926
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10008c50
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10007732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10008c78
jmp 0x1000773e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100093ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100274a0]
jne 0x100093b7
repz ret
jmp fcn.1000f858
Function at 0x1001d28c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100116d1
and dword [ebp - 0x14], 0
cmp dword [0x1002947c], 0
mov dword [ebp - 0x18], eax
jne 0x1001d33f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001d3e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001d3e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002947c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10029480], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10029484], eax
call edi
push eax
call esi
mov dword [0x1002948c], eax
test eax, eax
je 0x1001d33f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10029488], eax
mov eax, dword [0x10029488]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001d398
cmp dword [0x1002948c], ecx
je 0x1001d398
push eax
call esi
push dword [0x1002948c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001d398
test ebx, ebx
je 0x1001d398
call edi
test eax, eax
je 0x1001d38f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001d38f
test byte [ebp - 8], 1
jne 0x1001d398
or dword [ebp + 0x10], 0x200000
jmp 0x1001d3cb
mov eax, dword [0x10029480]
cmp eax, dword [ebp - 0x18]
je 0x1001d3cb
push eax
call esi
test eax, eax
je 0x1001d3cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001d3cb
mov eax, dword [0x10029484]
cmp eax, dword [ebp - 0x18]
je 0x1001d3cb
push eax
call esi
test eax, eax
je 0x1001d3cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002947c]
call esi
test eax, eax
je 0x1001d3e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001d3e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100093ad
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx