joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ce278
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.004068c0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409c13
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.004067a0
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004068c0
cmp dword [esp + 0x24], 8
jb 0x409c5c
mov eax, dword [esp + 0x10]
push eax
call fcn.0049c830
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x40a540
Capabilities:
Get disk information

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x3a4], eax
mov eax, dword [esp + 0x3ac]
xor ecx, ecx
push 0x18e
push ecx
lea edx, [esp + 0x21e]
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x220], cx
call fcn.004a0bd0
add esp, 0xc
lea eax, [esp + 0x214]
push eax
push 0xc7
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x40a5ab
mov ecx, dword [esp + 0x3a4]
xor ecx, esp
call fcn.004a0e91
add esp, 0x3a8
ret
push ebp
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov word [esp + 0x20], cx
call fcn.004a0bd0
mov eax, dword [0x4e0d78]
mov cx, word [0x4e0d7c]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
add esp, 0xc
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
lea edi, [esp + 0x21c]
push esi
lea ebx, [ebx]
mov dx, word [edi]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], dx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40a650
lea eax, [esp + 0x18]
lea edx, [eax + 2]
jmp 0x40a620
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a620
sub eax, edx
sar eax, 1
mov esi, eax
mov edx, 0x5c
mov word [esp + esi*2 + 0x18], dx
inc esi
push esi
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
push ebx
mov word [esp + esi*2 + 0x24], ax
call ebp
test eax, eax
je 0x40a67a
mov dx, word [edi]
add edi, 2
test dx, dx
jne 0x40a650
cmp word [edi], dx
jne 0x40a5f0
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x3a4]
xor ecx, esp
call fcn.004a0e91
add esp, 0x3a8
ret
mov edx, dword [esp + 0xc]
lea eax, [ebx + esi*2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4e0d80
push 0x104
push edx
call fcn.0040a3d0
mov ecx, dword [esp + 0x3c4]
add esp, 0x14
pop esi
pop edi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004a0e91
add esp, 0x3a8
ret
Function at 0x40a6c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4cac51
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x25c]
test edi, edi
je 0x40a764
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x254], 0
cmp dword [0x501964], esi
je 0x40a764
test esi, esi
je 0x40a764
push 0x228
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40a76c
cmp dword [0x501964], esi
je 0x40a764
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x40a864
push edi
lea ecx, [esp + 0x14]
call fcn.00404030
lea ecx, [esp + 0x10]
mov byte [esp + 0x254], 1
call fcn.00404fb0
or edi, 0xffffffff
lea ebx, [ebx]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x10]
call fcn.00404030
lea ecx, [esp + 0xc]
mov byte [esp + 0x254], 2
call fcn.0040bf00
mov ecx, eax
call fcn.0040bf50
lea ecx, [esp + 0xc]
call fcn.00404fb0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040b6e0
add esp, 8
test al, al
je 0x40a7fa
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [esp + 0x260]
cmp ecx, dword [esp + 0x14]
je 0x40a88a
push 0x22c
lea edx, [esp + 0x20]
push 0
push edx
call fcn.004a0bd0
mov byte [esp + 0x260], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x1c], 0x22c
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a83d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a790
lea ecx, [esp + 0x10]
call fcn.0041af20
lea ecx, [esp + 0x18]
call fcn.0040a4c0
mov eax, edi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x24c
ret
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
call fcn.0041af20
lea ecx, [esp + 0x10]
call fcn.0041af20
lea ecx, [esp + 0x18]
call fcn.0040a4c0
mov eax, esi
jmp 0x40a864
Function at 0x40abc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x884
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x87c], eax
push ebx
mov ebx, dword [esp + 0x890]
push ebp
push esi
mov esi, dword [esp + 0x894]
push edi
xor edi, edi
cmp esi, edi
jne 0x40abf3
xor eax, eax
jmp 0x40ad6c
push 0x400
push esi
call fcn.004a1b75
add esp, 8
cmp eax, 0x400
jge 0x40abec
push 0x800
lea ecx, [esp + 0x86]
xor eax, eax
push edi
push ecx
mov word [esp + 0x8c], ax
call fcn.004a0bd0
push 0x400
push esi
lea edx, [esp + 0x94]
push 0x401
push edx
call fcn.004a2812
add esp, 0x1c
lea eax, [esp + 0x1c]
push eax
push 0x8b
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x40ad6a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 1
push 2
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, edi
je 0x40ad45
lea eax, [esp + 0x18]
push eax
push str.S_1_16_8192
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, edi
je 0x40ad45
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edi
push eax
mov dword [esp + 0x28], 0x20
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [esp + 0x14]
add eax, 8
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x19
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x40ad45
xor eax, eax
push 0x40
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push edi
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
push ebx
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0xa0]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40ad3a
push eax
call ebp
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x40ad45
push eax
call ebp
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40ad54
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ad5f
push eax
call ebp
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40ad6a
push eax
call ebp
mov eax, esi
mov ecx, dword [esp + 0x88c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a0e91
add esp, 0x884
ret
Function at 0x40ada0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40addd
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x230
ret
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
or edi, 0xffffffff
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40ae2b
lea esp, [esp]
cmp dword [esp + 0x10], ebx
je 0x40ae27
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ae10
jmp 0x40ae2b
mov edi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004a0e91
add esp, 0x230
ret

Function at 0x40af60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov edi, dword [esp + 0x240]
mov eax, edi
call fcn.0040b580
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40afad
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x230
ret
push ebx
push 0x228
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x22c
xor ebx, ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40afff
push ebp
mov ebp, dword [esp + 0x244]
cmp dword [esp + 0x18], ebp
je 0x40affa
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40afe3
jmp 0x40affe
mov ebx, dword [esp + 0x28]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.0040ae50
mov ecx, dword [esp + 0x238]
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004a0e91
add esp, 0x230
ret

Function at 0x40b0a0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x40a4f0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 4]
add esp, 8
ret
Function at 0x40ed20
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40ed2b
xor al, al
ret
push esi
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x40ebd0
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.004a57c7
mov esi, eax
add esp, 0x18
cmp dword [0x501964], esi
je 0x40ed5b
test esi, esi
jne 0x40ed5f
xor al, al
pop esi
ret
mov edx, dword [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ed7b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x501964], esi
je 0x40ed8a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x40ee40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eeb6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40ee85
cmp eax, 2
jne 0x40eea1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x40eeb0
test eax, eax
je 0x40eeab
test al, 1
jne 0x40eea1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40eeb0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x40f060
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4c9c4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov dword [esi], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00404cb0
add eax, 0x10
add esp, 8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x40f0d3
xor eax, eax
jmp 0x40f0e5
mov eax, dword [esp + 0x28]
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
mov dword [esi + 0xc], eax
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f10d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x40f440
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f4a4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x40f5f0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push 0
lea ecx, [esp + 8]
push ecx
push 0
or edx, 0x20006
push edx
push 0
push 0
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f65f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x410400
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c9c10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x410548
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x410548
test esi, esi
je 0x410548
mov eax, dword [edi]
test eax, eax
je 0x410548
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
push ecx
push ebp
push SysReAllocString
mov dword [esp + 0x2c], 1
call ebx
test eax, eax
jne 0x4104de
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4104de
push esi
lea ecx, [esp + 0x10]
mov dword [edi], eax
call fcn.00404030
push 0
push 0x4e0a48
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.00413440
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0xc]
test eax, eax
je 0x4104d1
call fcn.0041af20
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x20], 0xffffffff
call fcn.0041af20
mov ecx, dword [edi]
lea edx, [esp + 0x28]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
push ecx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x410548
cmp dword [edi], eax
je 0x410548
mov edx, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x14]
mov dword [edi], edx
call fcn.00404030
push 0
push 0x4e0a48
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 1
call fcn.00413440
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
test eax, eax
jne 0x4104b8
call fcn.0041af20
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x410700
Capabilities:
Check if file exists
Query environment variable

Disassembly:
sub esp, 0x61c
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x618], eax
xor eax, eax
cmp eax, str.Google
je 0x4108a1
xor ecx, ecx
cmp ecx, str.Chrome
je 0x4108a1
xor edx, edx
cmp edx, str.glcimepnljoholdmjchkloafkggfoijh
je 0x4108a1
push esi
push edi
push 0x206
push edx
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004a0bd0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x42e]
push eax
mov word [esp + 0x430], dx
call fcn.004a0bd0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x232]
push edx
mov word [esp + 0x234], cx
call fcn.004a0bd0
add esp, 0x24
push 0x104
lea eax, [esp + 0x41c]
push eax
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.glcimepnljoholdmjchkloafkggfoijh
push str.Chrome
push str.Google
push str...Local_s_sUser_DataDefaultExtensions_s
lea ecx, [esp + 0x220]
push 0x104
push ecx
call fcn.0040a3d0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x18
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 8]
push edx
call edi
test eax, eax
je 0x410819
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.004a0e91
add esp, 0x61c
ret
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004a0bd0
push 0x208
lea ecx, [esp + 0x220]
push 0
push ecx
call fcn.004a0bd0
push str.glcimepnljoholdmjchkloafkggfoijh
push str.Chrome
push str.Google
push str...Local_SettingsApplication_Data_s_sUser_DataDefaultExtensions_s
lea edx, [esp + 0x238]
push 0x104
push edx
call fcn.0040a3d0
add esp, 0x30
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0x41c]
push ecx
lea edx, [esp + 0x10]
push edx
call esi
lea eax, [esp + 8]
push eax
call edi
test eax, eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.004a0e91
add esp, 0x61c
ret
mov ecx, dword [esp + 0x618]
xor ecx, esp
xor al, al
call fcn.004a0e91
add esp, 0x61c
ret
Function at 0x411310
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cab3d
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, 7
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esp + 0x1c], esi
mov word [esi + 4], dx
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x34], edi
mov word [esp + 0x24], ax
mov eax, ecx
mov dword [esp + 0x250], 1
lea ebx, [eax + 2]
jmp 0x411390
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x411390
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004069f0
push 0x13
push str._shellopencommand
lea ecx, [esp + 0x28]
call fcn.004067a0
mov eax, dword [esp + 0x24]
mov ebx, 8
mov dword [esp + 0xc], edi
cmp dword [esp + 0x38], ebx
jae 0x4113d1
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x411459
push 0x206
lea eax, [esp + 0x42]
xor edx, edx
push edi
push eax
mov dword [esp + 0x1c], edi
mov word [esp + 0x48], dx
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x18]
push eax
push edi
push edi
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x41144e
cmp dword [esp + 0x10], 1
jne 0x41144e
mov edx, dword [esp + 0x14]
and edx, 0xfffffffe
cmp edx, 0x208
jae 0x41144e
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.004069c0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x38], ebx
jb 0x41146c
mov edx, dword [esp + 0x24]
push edx
call fcn.0049c830
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004a0e91
add esp, 0x248
ret
Function at 0x411630
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4caae2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x21c], eax
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esp + 8], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x18], esi
mov word [esi + 4], ax
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [esp + 0x238], edi
push SysReAllocString
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x411725
push 0x206
lea eax, [esp + 0x22]
xor edx, edx
push edi
push eax
mov dword [esp + 0x1c], edi
mov word [esp + 0x28], dx
call fcn.004a0bd0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push edi
push str.Progid
push ecx
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41171a
cmp dword [esp + 0x10], 1
jne 0x41171a
mov edx, dword [esp + 0xc]
and edx, 0xfffffffe
cmp edx, 0x208
jae 0x41171a
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004069c0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004a0e91
add esp, 0x22c
ret

Function at 0x411750
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cb7c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea edi, [esp + 0xc]
call fcn.0040efd0
mov dword [esp + 0x18], 0
mov eax, dword [eax]
push eax
mov ecx, 0x5066a8
call fcn.00413960
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4117e2
push 4
push 0x4e0c80
push 0x4e0c80
push ebx
push str.open
push 0
mov ecx, 0x5066a8
call fcn.0049a5d0
cmp eax, 0x20
jg 0x4117fc
push 4
push 0x4e0c80
push 0x4e0c80
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret