joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45148b
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x469090]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x10], eax
xor ecx, ecx
push 0x11
mov eax, str.Create_directory
lea esi, [esp + 0xb4]
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], cx
call fcn.00402510
lea esi, [edi + 4]
mov eax, esi
mov dword [esp + 0xf8], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f72
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0xb4]
call fcn.00402190
cmp dword [eax + 0x14], 8
jb 0x404f98
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
push eax
push str.INFO
mov ecx, edi
call fcn.0040c980
mov dword [esp + 0xf8], 0xffffffff
cmp dword [esp + 0xc4], 8
jb 0x404fce
mov edx, dword [esp + 0xb0]
push edx
call fcn.00437245
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ff4
test al, 0x10
je 0x404ff4
push str.Folder_exist_already
push str.INFO
mov ecx, edi
call fcn.0040c980
jmp 0x4050e1
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4050e1
push 0xa
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00437d01
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00405b30
push ebx
push ecx
push str.__error_code
push ecx
push esi
push ecx
lea ecx, [esp + 0x2c]
push str.Cant_create_folder_
push ecx
mov dword [esp + 0x118], 1
call fcn.00406ac0
add esp, 0xc
push eax
call fcn.00406ac0
add esp, 0xc
push eax
call fcn.00406ac0
add esp, 0xc
push eax
call fcn.00406ac0
add esp, 8
lea ecx, [esp + 0xcc]
lea eax, [esp + 0x14]
call fcn.00405c10
mov esi, 8
mov byte [esp + 0xf8], 2
cmp dword [eax + 0x14], esi
jb 0x405087
mov eax, dword [eax]
push eax
push str.ERROR
mov ecx, edi
call fcn.0040c980
cmp dword [esp + 0xe0], esi
jb 0x4050ad
mov edx, dword [esp + 0xcc]
push edx
call fcn.00437245
add esp, 4
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], 0
mov word [esp + 0xcc], ax
mov dword [esp + 0xf8], 0xffffffff
call fcn.00405110
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405310
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5410
call fcn.00446fd0
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x458b10
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x405543
push 0
lea ecx, [ebp - 0x540c]
push ecx
push 0x5000
lea edx, [ebp - 0x5408]
push edx
push eax
mov dword [ebp - 0x540c], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0x458afc
mov edi, eax
lea ecx, [ebp - 0x208]
xor eax, eax
push 0x100
push ecx
mov word [ebp - 0x208], ax
call fcn.00437c36
add esp, 0xc
test edi, edi
je 0x40553a
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0x540c]
lea ecx, [ebp - 0x5408]
push ecx
shr edx, 1
xor eax, eax
push str.Receive_command_:__s
mov word [ebp + edx*2 - 0x5408], ax
lea edx, [ebp - 0x408]
push 0x100
push edx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
push str.INFO
call fcn.0040c980
mov eax, dword [ebp - 0x540c]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
lea eax, [ebp - 0x5408]
push eax
call edx
mov edi, eax
test edi, edi
je 0x405455
lea eax, [ebp - 0x5408]
push eax
push str.execute_command:__s
lea ecx, [ebp - 0x408]
push 0x100
push ecx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
push str.INFO
call fcn.0040c980
mov ecx, dword [esi + 4]
mov eax, dword [edi]
mov eax, dword [eax + 4]
push ecx
push 0x100
lea edx, [ebp - 0x208]
push edx
mov ecx, edi
call eax
jmp 0x405477
push str._9999
lea edx, [ebp - 0x208]
xor ecx, ecx
push 0x100
push edx
mov word [ebp - 0x208], cx
call fcn.00437c36
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push str.command_result:__s
lea ecx, [ebp - 0x408]
push 0x100
push ecx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
push str.INFO
call fcn.0040c980
lea eax, [ebp - 0x208]
mov dword [ebp - 0x5410], 0
lea edx, [eax + 2]
jmp 0x4054c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4054c0
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x5410]
push ecx
mov ecx, dword [esi]
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40553a
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0x540c]
push edx
push 0x5000
lea eax, [ebp - 0x5408]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0x458afc
mov edi, eax
lea eax, [ebp - 0x208]
xor edx, edx
push 0x100
push eax
mov word [ebp - 0x208], dx
call fcn.00437c36
add esp, 0xc
test edi, edi
jne 0x4053a9
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
test ecx, ecx
je 0x405699
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x920]
push edx
push 0x208
lea edx, [ebp - 0x91c]
push edx
mov dword [ebp - 0x920], 0
call eax
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [ebp - 0x91c]
push ecx
push str.send_command_:__s
lea edx, [ebp - 0x30c]
push 0x100
push edx
call ebx
mov ecx, dword [esi + 4]
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
push str.INFO
call fcn.0040c980
mov edx, dword [ebp - 0x920]
push 0
lea ecx, [ebp - 0x928]
push ecx
lea eax, [edx + edx]
mov edx, dword [esi]
push eax
lea ecx, [ebp - 0x91c]
push ecx
push edx
mov dword [ebp - 0x928], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4056ac
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_send_data__err:__d
lea eax, [ebp - 0x50c]
push 0x100
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x50c]
push ecx
mov ecx, dword [esi + 4]
push str.ERROR
call fcn.0040c980
xor al, al
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0x924]
push edx
push 0xfe
lea eax, [ebp - 0x10c]
push eax
push ecx
mov dword [ebp - 0x924], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp - 0x924]
shr edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x10c], ax
test edi, edi
je 0x4056fe
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x10c]
push ecx
push edx
push edi
call fcn.0043782b
add esp, 0xc
push edi
push str.command_result:__s
lea eax, [ebp - 0x30c]
push 0x100
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, dword [esi + 4]
push str.INFO
call fcn.0040c980
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
Function at 0x406680
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f32b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469090]
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_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044bdbe
push 4
mov dword [ebp - 4], 0
call fcn.004372a1
mov edi, eax
add esp, 4
test edi, edi
je 0x4066fc
call fcn.0044bc96
mov dword [edi], eax
call fcn.0044ba55
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044bd7f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4066f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044bda7
jmp 0x4066fe
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 0x406d80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x458e0c
lea esi, [ecx + 0x10]
push 0x4000
push esi
mov dword [ebp - 0x9f4], ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x9ec]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x9f0], esi
test esi, esi
je 0x406f26
xor edi, edi
mov dword [ebp - 0x9e8], edi
cmp dword [ebp - 0x9ec], edi
jle 0x406f26
test edi, edi
jne 0x406e58
push 0x3e8
lea ecx, [ebp - 0x9e4]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x406e1d
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x9e4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
mov ecx, dword [esi]
lea eax, [ebp - 0x214]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406e4b
test dx, dx
je 0x406e47
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406e4b
add eax, 4
add ecx, 4
test dx, dx
jne 0x406e25
xor eax, eax
jmp 0x406e50
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f13
mov ebx, dword [esi + edi*4]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e60
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
call fcn.00437d28
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, eax
push 0x458e0c
push edi
xor esi, esi
call ebx
mov ecx, dword [ebp - 0x9e8]
lea eax, [ecx + 1]
add esp, 0x10
cmp eax, dword [ebp - 0x9ec]
jge 0x406edd
mov edx, dword [ebp - 0x9f0]
mov ecx, dword [edx + ecx*4 + 4]
cmp word [ecx], 0x2f
je 0x406edd
push 0x208
mov dword [ebp - 0x9e8], eax
call fcn.0043723a
mov edx, dword [ebp - 0x9f0]
mov esi, eax
mov eax, dword [ebp - 0x9e8]
mov ecx, dword [edx + eax*4]
push ecx
push 0x458e0c
push esi
call ebx
add esp, 0x10
mov dword [ebp - 0x9fc], edi
mov dword [ebp - 0x9f8], esi
mov esi, dword [ebp - 0x9f4]
lea edi, [ebp - 0x9fc]
call fcn.0040dfc0
push eax
push esi
lea esi, [ebp - 0xa04]
call fcn.00407210
mov edi, dword [ebp - 0x9e8]
mov esi, dword [ebp - 0x9f0]
inc edi
mov dword [ebp - 0x9e8], edi
cmp edi, dword [ebp - 0x9ec]
jl 0x406de9
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret 4
Function at 0x407740
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00446fd0
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov word [esi], dx
lea edx, [ebp - 0x1408]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x407808
lea eax, [ebp - 0x1410]
push eax
mov eax, dword [ebp - 0x1408]
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x140c]
push edx
push 0
push edi
push eax
mov dword [ebp - 0x1410], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4077fb
mov eax, dword [ebp - 0x140c]
cmp eax, 1
je 0x4077c3
cmp eax, 2
je 0x4077c8
cmp eax, 7
je 0x4077c3
cmp eax, 3
jne 0x4077fb
cmp eax, 2
jne 0x4077ea
push 0x1000
lea ecx, [ebp - 0x1404]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1404]
push eax
jmp 0x4077f1
lea ecx, [ebp - 0x404]
push ecx
push ebx
push esi
call fcn.0043782b
add esp, 0xc
mov edx, dword [ebp - 0x1408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x407820
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00446fd0
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov word [esi], ax
xor edi, edi
nop
mov eax, dword [ebx + edi*4]
lea edx, [ebp - 0x1408]
push edx
push eax
xor ecx, ecx
push SysReAllocString
mov word [esi], cx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4078fd
lea eax, [ebp - 0x1410]
push eax
mov eax, dword [ebp - 0x1408]
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x140c]
push edx
push 0
push 0x45ad9c
push eax
mov dword [ebp - 0x1410], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4078f0
mov eax, dword [ebp - 0x140c]
cmp eax, 1
je 0x4078b4
cmp eax, 2
je 0x4078b9
cmp eax, 7
je 0x4078b4
cmp eax, 3
jne 0x4078f0
cmp eax, 2
jne 0x4078db
push 0x1000
lea ecx, [ebp - 0x1404]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1404]
push eax
jmp 0x4078e2
lea ecx, [ebp - 0x404]
push ecx
push 0x100
push esi
call fcn.0043782b
add esp, 0xc
mov edx, dword [ebp - 0x1408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
jne 0x40791e
inc edi
cmp edi, 7
jl 0x407840
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + edi*4]
xor ecx, ebp
pop edi
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x407930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test esi, esi
je 0x407991
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407991
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407960
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4079a0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x469090]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x407a7e
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x407a60
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x407a60
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x407a60
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.0043782b
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x407a60
cmp word [esi + 2], 0
je 0x407a7e
add esi, 2
cmp word [esi + 2], 0
jne 0x4079f0
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x407aa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp word [edi], 0
je 0x407b05
test ebx, ebx
je 0x407aea
push esi
push 0x800
call fcn.0043723a
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push edi
push str.Execute_process_NO_WAIT__cmd:___s___param:___s_
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
push esi
push str.INFO
mov ecx, ebx
call fcn.0040c980
push esi
call fcn.00437245
add esp, 4
pop esi
mov ecx, dword [ebp + 8]
push 1
push 0
push ecx
push edi
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x407b10
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x469090]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x44
push 0x40
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ecx, dword [ebp + 0xc]
mov esi, eax
neg edi
mov dword [esp + 8], 0xfffffffb
sbb edi, edi
and edi, 0xfffffff6
xor eax, eax
push str.Execute_process__WAIT_cmd:
mov dword [esi + 0x3c], ecx
add edi, 0xa
push str.INFO
mov ecx, ebx
mov dword [esi], 0x44
mov dword [esi + 0x2c], 0x101
mov word [esi + 0x30], di
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], eax
call fcn.0040c980
mov edi, dword [esp + 0xc]
push edi
push str.INFO
mov ecx, ebx
call fcn.0040c980
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x407c31
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push str.End_waiting_process_:
push str.INFO
mov ecx, ebx
call fcn.0040c980
push edi
push str.INFO
mov ecx, ebx
call fcn.0040c980
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x407c1e
cmp dword [esp + 8], 0x103
jne 0x407c26
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x407c26
mov dword [esp + 8], 0xfffffffe
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x407c67
push eax
push str.Exit_code_is__d
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push str.INFO
mov ecx, ebx
call fcn.0040c980
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x407c80
Capabilities:
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
push edi
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, 1
call fcn.00407b10
push 0x100
push 0
push esi
mov edi, eax
call fcn.0043c0c0
mov edx, dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0x14
push edx
call ebx
mov ecx, dword [ebp - 8]
push 0
lea eax, [ebp - 0xc]
push eax
push 0x100
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp - 8]
push edx
call ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor eax, eax
push eax
push 1
push 3
push eax
push 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407d4f
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [edi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f2f
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x407f28
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.0043723a
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea edi, [ebx + 1]
push edi
call fcn.0043723a
push edi
mov esi, eax
push 0
push esi
call fcn.0043c0c0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push edx
push eax
mov eax, esi
call fcn.00407de0
push esi
mov edi, eax
call fcn.00437245
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408010
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x124]
push ebx
push eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x128], 0x114
call fcn.0043c0c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x118], 2
mov dword [ebp - 0x130], ebx
je 0x40807a
mov byte [ebp - 0x129], 1
jmp 0x408149
lea edx, [ebp - 0x130]
push edx
push 8
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408149
mov ecx, dword [ebp - 0x130]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [ebp - 0x14], 0x201
mov dword [ebp - 0x10], 0x5000000
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x220
call edi
test eax, eax
jne 0x408148
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x408148
mov edx, dword [ebp - 0x134]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x408147
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x408140
xor edi, edi
cmp dword [esi], ebx
jbe 0x408140
lea ebx, [esi + 4]
jmp 0x408120
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x408138
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x408120
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop esi
pop edi
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x129]
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret