joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000561d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
mov dword [ebp - 8], 0x10
call fcn.10005d19
test eax, eax
je 0x1000563b
mov esi, 0x100
lea eax, [ebp - 4]
or esi, 0x20019
push eax
push esi
push 0
push 0x100d70c4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005695
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100d70bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10005695
cmp dword [ebp - 0xc], 4
jne 0x10005695
push 1
pop eax
cmp dword [ebp - 0x1c], eax
je 0x10005697
xor eax, eax
pop esi
leave
ret

Function at 0x1000569a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x100d7d90]
or eax, 0x20006
push 0
push eax
push 0
push 0x100d7304
push 0
push 0x100d7020
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100056f9
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x100d7124
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100056fb
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x100d7d90]
xor edi, edi
or eax, 0x20019
push edi
push eax
push edi
push 0x100d7304
push edi
push 0x100d7020
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000588e
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x100d7124
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1000588e
cmp dword [ebp - 0x10], 4
jne 0x1000588e
mov eax, dword [ebp - 0x24]
test al, 7
mov dword [ebp - 4], eax
je 0x1000588e
mov esi, 0x10000
push esi
call fcn.10005518
push esi
mov ebx, eax
call fcn.10005518
pop ecx
cmp ebx, edi
pop ecx
mov esi, eax
je 0x1000588e
cmp esi, edi
je 0x1000588e
push dword [0x100d7d70]
push ebx
call sub.MSVCRT.dll_strcpy
push 0x100d716c
push esi
call sub.MSVCRT.dll_strcpy
push 0x100d7164
push esi
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcat
push 0x100d7160
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x28
test byte [ebp - 4], 4
je 0x100057f9
push 0x100d7154
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
test byte [ebp - 4], 2
je 0x1000580c
push 0x100d7148
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
test byte [ebp - 4], 1
je 0x1000581f
push 0x100d7134
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x3c
lea eax, [ebp - 0x60]
pop edi
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
and dword [ebp - 0x58], 0
add esp, 0xc
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], edi
push eax
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x54], 0x100d6dcc
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1000588e
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x1000588e
push 0x78
pop esi
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10005883
dec esi
test esi, esi
jg 0x1000586b
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005893
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
mov eax, dword [0x100d7d90]
or eax, 0x20019
push esi
push eax
push esi
push 0x100d7304
push esi
push 0x100d7020
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10005969
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x100d7124
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x10005969
cmp dword [ebp - 0xc], 4
jne 0x10005969
test byte [ebp - 0x5c], 7
jne 0x10005917
push 0x100d71dc
jmp 0x1000591c
push 0x100d71b4
lea eax, [ebp - 0x9c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x4c]
pop ecx
push 0x3c
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x9c]
add esp, 0xc
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x40], 0x100d6dcc
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
leave
ret

Function at 0x1000596d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
cmp dword [ebp + 0x10], esi
lea eax, [ebp + 0x10]
push eax
mov eax, dword [0x100d7d90]
push esi
jne 0x1000599b
or eax, 0x20006
push eax
push esi
push 0x100d7304
push esi
push 0x100d7204
jmp 0x100059ab
or eax, 0x20006
push eax
push esi
push 0x100d7304
push esi
push dword [ebp + 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x100059be
xor eax, eax
jmp 0x100059e7
push edi
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x100059ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x100d7d90]
or eax, 0x20019
push 0
push eax
push 0
push 0x100d7304
push 0
push 0x100d7218
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10005a62
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 0x100d819c
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
jne 0x10005a62
cmp dword [ebp - 8], esi
mov eax, dword [0x100d819c]
je 0x10005a65
mov eax, dword [ebp + 0xc]
pop esi
leave
ret
Function at 0x10005a68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x100d7d90]
or eax, 0x20006
push 0
push eax
push 0
push 0x100d7304
push 0
push 0x100d7218
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10005aa3
xor eax, eax
leave
ret
push esi
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x10005ade
Capabilities:
Delete registry value
Set registry value

Disassembly:
push dword [esp + 4]
push 0x100d7234
call fcn.10005a68
pop ecx
pop ecx
jmp fcn.10005af3

Function at 0x10005bc2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
call fcn.10005445
mov ebx, eax
cmp byte [ebx], 0
je 0x10005c1b
push ebx
call sub.MSVCRT.dll_strlen
mov edi, 0x100d7278
mov esi, eax
push edi
call sub.MSVCRT.dll_strlen
lea eax, [esi + eax + 0xa]
push eax
call fcn.10005518
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10005c1b
push ebx
push esi
call sub.MSVCRT.dll_strcpy
push 0x100d6de8
push esi
call sub.MSVCRT.dll_strcat
push edi
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x18
push 0x3c
lea eax, [ebp - 0x3c]
pop edi
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
add esp, 0xc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], 0x100d6dcc
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005c61
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x10005cb2
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x10005d14
mov eax, dword [ebp - 0x8c]
dec eax
je 0x10005cf4
dec eax
jne 0x10005d14
cmp dword [ebp - 0x98], 5
jne 0x10005cee
cmp dword [ebp - 0x94], 0
jne 0x10005cd4
push 2
jmp 0x10005d11
cmp dword [ebp - 0x94], 1
jne 0x10005ce1
push 3
jmp 0x10005d11
cmp dword [ebp - 0x94], 2
jne 0x10005d14
push 4
jmp 0x10005d11
jbe 0x10005d14
push 6
jmp 0x10005d11
cmp dword [ebp - 0x98], 4
jne 0x10005d14
cmp dword [ebp - 0x94], 0xa
je 0x10005d0f
cmp dword [ebp - 0x94], 0x5a
jne 0x10005d14
push 1
pop eax
jmp 0x10005d16
xor eax, eax
pop esi
leave
ret
Function at 0x10005d64
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, 0x9c
push edi
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10005dbd
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call esi
test eax, eax
je 0x10005e25
push 2
pop esi
cmp dword [ebp - 0x90], esi
jne 0x10005e25
cmp dword [ebp - 0x9c], 5
mov eax, dword [ebp - 0x98]
push 1
pop ebx
jne 0x10005e08
cmp eax, ebx
jne 0x10005dee
call fcn.10005d19
test eax, eax
jne 0x10005e00
cmp word [ebp - 0xc], 3
jmp 0x10005e04
cmp eax, esi
jne 0x10005e08
cmp byte [ebp - 6], bl
jne 0x10005e25
call fcn.10005d19
test eax, eax
je 0x10005e25
cmp word [ebp - 0xc], si
jb 0x10005e25
jmp 0x10005e22
test edi, edi
je 0x10005e25
cmp dword [ebp - 0x9c], 6
jne 0x10005e25
test eax, eax
je 0x10005e1d
cmp eax, ebx
jne 0x10005e25
cmp byte [ebp - 6], bl
jne 0x10005e25
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ebc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x43da70
push dword [esp + 0x18]
push dword [0x44e080]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41ecdc
push esi
push dword [0x44e080]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41ecdc
push esi
push dword [0x44e080]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ecdc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41ecdc
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41ecd4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41eccd
push edi
push esi
push eax
call fcn.00426c60
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41ecc6
push ebp
push dword [esp + 0x14]
call fcn.0041eaf6
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43c280]
call esi
test edi, edi
je 0x41ecc6
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41ecb4
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41ecb4
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x43c280]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x41ecde
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41fd24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x449724], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 0x400
push edi
mov edi, dword [ebp + 0x14]
jne 0x41fd7f
push 0x64
lea eax, [ebp - 0x130]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x130]
mov word [0x455854], ax
xor eax, eax
mov word [0x455856], ax
mov dword [0x449724], 0x455854
push 0x32
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416787
push edi
push esi
xor eax, eax
push 0x449714
mov word [esi], ax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edi*2 - 2], ax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00425724
leave
ret 0x10
Function at 0x423c09
Capabilities:
Hide graphical window

Disassembly:
and dword [0x45587c], 0
push 1
push dword [esp + 8]
mov byte [0x455871], 1
mov byte [0x455872], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401cc4
cmp dword [0x4496c0], 0
jne 0x423c49
cmp byte [0x45587b], 0
je 0x423c52
cmp dword [0x455874], 0
jne 0x423c65
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4
Function at 0x405bd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405bec
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405c21
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405c1d
cmp edi, eax
jae 0x405c21
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405c0f
cmp edi, eax
jb 0x405c25
xor eax, eax
jmp 0x405c2f
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405d92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405e20
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405dc9
cmp dword [ebp - 8], 2
jne 0x405e1f
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405a9f
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004059a0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405e07
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405e17
push eax
call fcn.004ef8b4
pop ecx
mov edx, esi
call fcn.00405967
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x406c38
Capabilities:
Get disk information

Disassembly:
mov eax, 0x50f051
call fcn.0050c5c8
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.004eef40
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x406c83
xor eax, eax
jmp 0x406d47
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.004eef40
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00407320
test edi, edi
jle 0x406d44
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x406d3c
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405adf
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.004072c5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040586f
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405adf
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.004072c5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040586f
add ebx, 8
dec dword [ebp - 0x10]
jne 0x406cc9
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x406d7e
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x406dff
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x406dff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x406dfa
cmp dword [esi + 4], ebx
je 0x406dfa
cmp dword [esi + 8], ebx
je 0x406dfa
cmp dword [esi + 0xc], ebx
je 0x406dfa
cmp eax, ebx
je 0x406dfa
xor eax, eax
inc eax
jmp 0x406dfc
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x406f2e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x50e147
call fcn.0050c5c8
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.004eef40
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040629f
push 0x53c7ac
push eax
mov dword [ebp - 4], esi
call fcn.0040541e
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.0040586f
test bl, bl
je 0x407104
mov ebx, 0x53c8a0
push ebx
call fcn.004ef8b4
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.004ef8b4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040629f
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040541e
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040586f
test bl, bl
je 0x40701d
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040624f
mov dword [ebp - 4], 2
call fcn.00404ed3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4070d3
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040629f
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040541e
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040586f
test bl, bl
je 0x4070db
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040624f
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405adf
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004062db
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ed3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040586f
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040586f
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040586f
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x4070ee
mov esi, edi
call fcn.00405a9f
jmp 0x40710b
cmp ecx, 1
jge 0x4070fd
push 0x80070057
call fcn.00405988
cmp word [eax + 2], 0x3a
jne 0x4070e5
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40711d
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407147
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x407d85
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x407db3
push dword [esp + 0xc]
call fcn.004ef8b4
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407db3
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x407dcd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x407e56
push ebx
call fcn.004ebbbb
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407e47
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x53c7ac
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407e47
cmp dword [ebp - 0xc], ebx
je 0x407e47
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x407e56
push dword [ebp - 4]
call fcn.004eef35
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x407e92
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50ddae
call fcn.0050c5c8
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x55daac
mov dword [ebp - 0x10], edi
call fcn.00405b22
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.004eef40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00405cfa
push esi
call fcn.00408e48
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret