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

Disassembly:
push 0xffffffffffffffff
push 0x406afb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
test edx, edx
je 0x403421
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x40a9f8
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
call fcn.00406718
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403375
lea eax, [esp + eax + 0x14]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
mov edx, dword [esp + 4]
mov word [eax], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push 0x40a9f8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
jmp 0x403406
push str.www.
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4033be
lea ecx, [esp + eax + 0x14]
lea edi, [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x14]
mov word [ecx], 0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x14]
push 0x40a9f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
jmp 0x403406
push str.about:wz
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40340c
lea edx, [esp + eax + 0x14]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov word [edx], 0
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push 0x40a9f8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x403440
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp]
test eax, eax
je 0x4034a0
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x4034b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x406b1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000000
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40363e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0x40a9f8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.00406718
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
or ebx, 0xffffffff
cmp eax, ebx
je 0x40356b
lea eax, [esp + eax + 0x1c]
mov word [eax], 0
jmp 0x4035d1
push str.www.
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x403588
lea eax, [esp + eax + 0x1c]
mov word [eax], 0
jmp 0x4035d1
push str.about:wz
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x4035a5
lea eax, [esp + eax + 0x1c]
mov word [eax], 0
jmp 0x4035d1
mov edi, 0x40a364
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x130]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push 0x40a9f8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], ebx
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x403660
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406b3b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x4037ee
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x4037ee
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x403ea0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406c2b
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp + 4]
push eax
push str.SOFTWAREKSafe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403fb1
push edi
mov ecx, 0x41
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push 0
push str.Install_Path
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
call fcn.00406718
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x120], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp byte [esp + ecx + 0xf], 0x5c
je 0x403f55
push 0x40a55c
lea ecx, [esp + 4]
call fcn.0040671e
push str.KSafe.exe
lea ecx, [esp + 4]
call fcn.0040671e
mov ecx, dword [esp]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x403f88
push 0
push 0x10
push 0x40a53c
call sub.MFC42.DLL_AfxMessageBox
jmp 0x403f9d
mov edx, dword [esp]
push 5
push 0
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x404b20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x406d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp]
push eax
call fcn.00403110
add esp, 4
push str.SGDF.exe
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.0040671e
push str._force_http:__dl.ijinshan.com_safe_setup_dubaweb.exe
lea ecx, [esp + 8]
call fcn.00406718
mov ecx, dword [esp + 4]
mov edx, dword [esp]
push 5
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4032e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41a00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40337c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40335c
xor eax, eax
push ebp
push 0x403355
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403398
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40335c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41a00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41a00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404028
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b044], 0
je 0x404089
cmp word [0x41b218], 0xd7b2
jne 0x404051
cmp dword [0x41b220], 0
jbe 0x404051
mov eax, 0x41b214
call dword [0x41b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a01c], 0
jne 0x4040a5
push 0
push 0x41a074
push 0x41a054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408838
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408871
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404294
jmp 0x40887a
mov eax, ebx
mov edx, esi
call fcn.004041f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408884
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4088a5
mov al, byte [esp]
jmp 0x4088a7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x408f2c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x408da4
mov eax, dword [0x41a5e8]
cmp byte [eax], 0
je 0x408f94
mov eax, dword [0x41a504]
call fcn.00402bb0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407b54
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x408fdc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x408fca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41a4e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41b710]
call fcn.004057a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x409a34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409a98
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040440c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004078c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a9f
lea eax, [ebp - 0xc]
call fcn.004041a4
ret
Function at 0x40ae18
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push 0x40aed8
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x40aece
push 0x40aee8
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 8], eax
push 0x40af00
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0xc], eax
push 0x40af10
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x10], eax
push 0x40af28
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x14], eax
push 0x40af34
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x18], eax
push 0x40af44
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x40aebb
cmp dword [edi + 0xc], 0
je 0x40aebb
cmp dword [edi + 0x10], 0
je 0x40aebb
cmp dword [edi + 0x14], 0
je 0x40aebb
cmp dword [edi + 0x18], 0
je 0x40aebb
cmp dword [edi + 0x1c], 0
jne 0x40aebf
xor ebx, ebx
jmp 0x40aec1
mov bl, 1
test bl, bl
jne 0x40aed0
mov eax, edi
call fcn.0040af58
jmp 0x40aed0
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40afbc
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b092
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004041a4
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.0040473c
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.004046ac
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x40b07c
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 4]
call fcn.004046ac
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x40b07c
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x40b07c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [ebx + 8]
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.00407cb0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b099
lea eax, [ebp - 4]
call fcn.004041a4
ret
Function at 0x401e06
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x401e48
mov esi, ecx
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00402f40
lea eax, [ebx + 1]
cmp eax, 2
jb 0x401e41
mov dword [esi], ebx
call fcn.00405ce0
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00405e70
add esp, 0x10
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x403ba0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5d32a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5dd904]
mov ecx, dword [0x5e04e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403bed
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, 0x5dd900
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5dd904
call fcn.004ff107
add esp, 4
mov eax, dword [0x5dd904]
cmp eax, 0xffffffff
jne 0x403bd3
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.004eb600
add esp, 0xc
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push edi
call dword [sym.imp.kernel32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], 0
cmp eax, 0xa
je 0x403c4d
xor ebx, ebx
cmp eax, 6
jne 0x403c83
push 0x56d836
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.GetProductInfo
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov ebx, dword [ebp - 0x130]
push 0x5c
call fcn.004ff107
add esp, 4
mov esi, eax
push 0x5dd908
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
mov ecx, esi
push ebx
push 0x5dd908
push edi
call fcn.00403cd0
mov dword [0x5dd900], esi
push 0x5dd904
call fcn.004ff107
add esp, 4
jmp 0x403bd3

Function at 0x40b0cc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0040ae80
test al, al
je 0x40b0f0
push 0x32
push dword [esi]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.kernel32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.0040b13e
lea ecx, [esi + 0x30]
call fcn.0040333c
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40b114
push eax
call fcn.00401070
add esp, 4
mov ecx, edi
call fcn.0040b162
lea ecx, [esi + 0x18]
call fcn.00402f40
lea ecx, [esi + 0x14]
call fcn.00402f40
lea ecx, [esi + 0x10]
call fcn.00402f40
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.0040ad90
Function at 0x40b52a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x5d32a4]
mov edi, ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea ebx, [edi + 0x18]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [edx + ecx]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x8000004
push ecx
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ecx, ebx
push eax
call fcn.00401e06
mov esi, dword [edi + 0x18]
xor ecx, ecx
inc ecx
lea eax, [esi + 1]
cmp eax, ecx
ja 0x40b599
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x19
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov dword [ebp - 0x20], edi
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor edx, edx
lea ecx, [ebp - 0x14]
push edx
push edx
push 7
push ecx
push edi
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
je 0x40b6be
xor eax, eax
push eax
push eax
push eax
push 6
push dword [ebx]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x40b6d1
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x40b61c
test ecx, ecx
je 0x40b61c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
lea edi, [edx + eax]
push ecx
push ebx
push edi
call fcn.004eab00
add esp, 0xc
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x100]
test ecx, ecx
je 0x40b617
sub ecx, ebx
mov dword [edi + eax + 0x100], ecx
add eax, 4
jne 0x40b603
mov eax, dword [ebp - 0x14]
mov dword [0x5dd888], eax
sub esp, 0xc
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5dd888
mov ecx, edi
call fcn.0040b4cc
test eax, eax
mov dword [0x5dd888], 0
jne 0x40b6af
mov eax, dword [ebp + 0x10]
mov dword [0x5dd998], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5dd998
call fcn.0040b4cc
test eax, eax
mov dword [0x5dd998], 0
jne 0x40b6af
mov eax, dword [ebp + 0x14]
mov dword [0x5dd99c], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x5dd99c
call fcn.0040b4cc
test eax, eax
mov dword [0x5dd99c], 0
je 0x40b6e3
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi], eax
jmp 0x40b583
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x1a
jmp 0x40b581
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi], eax
mov ebx, 0x1b
jmp 0x40b583
mov esi, dword [ebp + 8]
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], eax
push 0x1c
call fcn.004ff107
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.00423208
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.0040b13e
mov ecx, dword [edi + 0x20]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.004232e8
mov ebx, 4
test al, al
je 0x40b583
mov ecx, edi
call fcn.0040b010
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
jmp 0x40b583
Function at 0x42042e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x5d32a4]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, 5
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
jne 0x4204c6
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 7
jbe 0x420472
mov edi, dword [edi]
mov ebx, dword [ebx]
push 0
push esi
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x4204b3
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
cmp eax, 1
lea eax, [ebp - 0x14]
sbb edi, edi
or edi, dword [eax]
jmp 0x4204b6
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e85d0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret