joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047f0
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 [0x42701c]
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 0x4208f8
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.004038b0
mov edi, dword [esp + 0xc]
push edi
push 0x4208f8
mov ecx, ebx
call fcn.004038b0
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 0x404911
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 0x4208f8
mov ecx, ebx
call fcn.004038b0
push edi
push 0x4208f8
mov ecx, ebx
call fcn.004038b0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x4048fe
cmp dword [esp + 8], 0x103
jne 0x404906
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x404906
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 0x404947
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.ERROR
mov ecx, ebx
call fcn.004038b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret

Function at 0x404960
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.004047f0
push 0x100
push 0
push esi
mov edi, eax
call fcn.00415640
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 0x404b70
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42701c]
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.00415640
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 0x404bda
mov byte [ebp - 0x129], 1
jmp 0x404ca9
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 0x404ca9
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 0x404ca8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x404ca8
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 0x404ca7
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 0x404ca0
xor edi, edi
cmp dword [esi], ebx
jbe 0x404ca0
lea ebx, [esi + 4]
jmp 0x404c80
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x404c98
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x404c80
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.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x404cd0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x110
lea ecx, [ebp - 0x114]
push 0
push ecx
mov dword [ebp - 0x118], 0x114
call fcn.00415640
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
call esi
cmp dword [ebp - 0x114], 6
jae 0x404d4a
call fcn.00404b70
test al, al
jne 0x404d4a
push 0x30
push 0
push 0x420bf0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x38
lea eax, [ebp - 0x444]
push 0
push eax
mov dword [ebp - 0x448], 0x3c
call fcn.00415640
push 0x110
lea ecx, [ebp - 0x114]
push 0
push ecx
mov dword [ebp - 0x118], 0x114
call fcn.00415640
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call esi
cmp dword [ebp - 0x114], 6
pop esi
jae 0x404daa
call fcn.00404b70
mov dword [ebp - 0x43c], str.open
test al, al
jne 0x404db4
mov dword [ebp - 0x43c], str.runas
lea ecx, [ebp - 0x448]
lea eax, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x434], 0x420550
mov dword [ebp - 0x444], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404e77
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x4c7
jne 0x404e27
push str.User_did_not_allow_elevation
push str.WARNING
mov ecx, edi
call fcn.004038b0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
push eax
push str.Error:__d
lea edx, [ebp - 0x204]
push 0x100
push edx
call fcn.00410072
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x204]
push ecx
push str.WARNING
mov ecx, edi
call fcn.004038b0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x404e90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push str.extract_resource_file
push 0x4208f8
mov ecx, edi
mov ebx, eax
call fcn.004038b0
push ebx
push 0x4208f8
mov ecx, edi
call fcn.004038b0
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x404f60
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404f40
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov bl, 1
test eax, eax
jne 0x404f31
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cant_create_file
push str.ERROR
mov ecx, edi
call fcn.004038b0
push edi
call fcn.00403820
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Resource_file_is_not_found
push str.ERROR
mov ecx, edi
call fcn.004038b0
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f80
Capabilities:
Get common file path
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cf40
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, ecx
lea edx, [ebp - 0x21c]
push edx
xor ecx, ecx
push 0x104
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x430], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x21c]
push eax
push str._shd.vbs
mov ecx, eax
push 0x104
push ecx
call edi
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov byte [ebp - 0x425], 0
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x405110
push 0
lea eax, [ebp - 0x438]
push eax
push 0xf5
push str.Set_objWMIService__GetObject__winmgmts:._rootcimv2____n_Set_colItems__objWMIService.ExecQuery____n___Select__from_Win32_DiskDrive___n_For_Each_objItem_in_colItems__n_Wscript.Echo_objItem.SerialNumber__n_exit_for___do_the_first_cpu_only___n_Next
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov dword [ebp - 0x434], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x434], 0
je 0x405110
lea ecx, [ebp - 0x21c]
push ecx
push str.cscript___NoLogo__s
lea edx, [ebp - 0x424]
push 0x104
push edx
call edi
push 0x100
call fcn.0040fafb
mov esi, eax
mov eax, dword [ebp - 0x430]
add esp, 0x14
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.00404960
add esp, 8
test eax, eax
jne 0x405107
push 0x200
push eax
push ebx
call fcn.00415640
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050b8
push 0x200
push ebx
sub eax, edx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
call fcn.00404370
test eax, eax
jle 0x405107
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4050e1
sub eax, edx
sar eax, 1
cmp eax, 5
jbe 0x405107
mov ecx, ebx
call fcn.00404400
test al, al
jne 0x405107
mov byte [ebp - 0x425], 1
push esi
call fcn.0040fa9f
add esp, 4
cmp byte [ebp - 0x425], 0
jne 0x405164
jmp 0x405127
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x42c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov ecx, dword [ebp - 0x42c]
mov eax, 0x5f
push 0xa
mov word [ebx], ax
push 0xff
add ebx, 2
push ebx
push ecx
call fcn.0040ffe3
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
Function at 0x4053e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push str.binjavaw.exe
push eax
push 0x421048
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40543c
test al, 0x10
jne 0x40543c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret

Function at 0x405550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
push esi
je 0x4055b7
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
push str._sjre
push 0x104
push edi
call esi
push str.binjavaw.exe
push edi
push 0x421048
lea eax, [ebp - 0x414]
push 0x104
push eax
call esi
add esp, 0x24
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4055b7
test al, 0x10
je 0x405643
lea edx, [ebp - 0x20c]
mov ecx, edi
mov esi, str.SOFTWAREWow6432NodeJavaSoftJava_Runtime_Environment
call fcn.00405450
test al, al
jne 0x40560f
lea edx, [ebp - 0x20c]
mov ecx, edi
mov esi, str.SOFTWAREWow6432NodeJavaSoftJava_Development_Kit
call fcn.00405450
test al, al
jne 0x40560f
lea edx, [ebp - 0x20c]
mov ecx, edi
mov esi, str.SOFTWAREJavaSoftJava_Runtime_Environment
call fcn.00405450
test al, al
jne 0x40560f
lea edx, [ebp - 0x20c]
mov ecx, edi
mov esi, str.SOFTWAREJavaSoftJava_Development_Kit
call fcn.00405450
test al, al
je 0x40563e
xor eax, eax
movzx ecx, word [ebp + eax - 0x20c]
movzx edx, word [eax + 0x421150]
cmp cx, dx
ja 0x405643
jb 0x40563e
add eax, 2
cmp eax, 6
jl 0x405611
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret
xor edx, edx
mov word [edi], dx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret

Function at 0x405660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x208
call fcn.0040fafb
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push str.Software_s
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4056cf
mov edx, dword [ebp - 4]
push 4
push 0x421180
push 1
push eax
push str.license
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040fa9f
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406320
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov byte [esi + 0x48], 1
call edx
cmp byte [eax + 0xd], 0
je 0x406353
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x406370
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x40637d
mov al, 1
pop esi
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi - 4]
mov eax, dword [edx + 0x28]
lea ecx, [esi - 4]
call eax
xor al, al
pop esi
ret

Function at 0x4063a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov byte [esi + 0x48], 1
call edx
cmp byte [eax + 0xc], 0
je 0x406402
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
cmp byte [eax + 0xd], 0
jne 0x406402
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
mov esi, eax
mov eax, dword [esi + 0x10]
mov byte [esi + 0xe], 1
test eax, eax
je 0x40641f
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], 0
test ecx, ecx
je 0x40641f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
pop esi
jmp eax
mov esi, dword [esi + 8]
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov edx, dword [esi + 4]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x4064b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
test al, al
je 0x406572
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
cmp byte [eax + 0xd], 0
je 0x406572
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
cmp byte [eax + 0xe], 0
jne 0x406572
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
cmp byte [eax + 0x1324], 0
jne 0x406572
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
cmp byte [eax + 4], 0
je 0x406557
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov eax, dword [eax + 0x1bb4]
test eax, eax
je 0x406572
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
cmp byte [eax + 0xe], 0
jne 0x40659a
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
movzx ecx, byte [eax + 0xe]
mov eax, dword [eax + 4]
push ecx
call fcn.00409250
add esp, 4
pop esi
ret

Function at 0x406a60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cedb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42701c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1c
call fcn.0040fafb
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x406abc
mov eax, dword [edi - 0x808]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + 0x20]
mov eax, dword [esi + 4]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x1c]
push esi
push eax
call fcn.0040a270
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 8]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 0x20]
add edx, 0x8a
push edx
call fcn.00405660
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0x208
mov edi, ecx
call fcn.0040fa6a
add esp, 4
push edi
push str.Software_s
mov ebx, eax
push 0x104
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
push ebx
xor eax, eax
push SysReAllocString
mov word [esi], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x406ec1
push 0x4213a0
lea ecx, [ebp - 4]
mov ebx, 0x100
mov edi, esi
call fcn.00404440
add esp, 4
cmp word [esi], 0
jne 0x406f32
mov edi, 0x100
mov ebx, esi
call fcn.00406dd0
mov eax, dword [ebp - 8]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406f32
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f00
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x4213a0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040fa9f
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42701c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov edi, edx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ecx
call fcn.0040fa6a
mov edx, dword [ebp + 8]
add esp, 4
push 0
push 0
push edx
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x424]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [ebp - 0x418]
push ecx
push esi
mov eax, ebx
call fcn.00404a60
mov edx, dword [ebp - 0x418]
add esp, 8
cmp byte [edx], 0
mov edi, eax
je 0x40772f
mov eax, dword [ebp - 0x41c]
push eax
push str._sinit.xml
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov esi, dword [ebp - 0x420]
add esp, 0x10
push str.write_init_xml_to
push 0x4208f8
mov ecx, esi
call fcn.004038b0
lea edx, [ebp - 0x214]
push edx
push 0x4208f8
mov ecx, esi
call fcn.004038b0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4076e8
mov edx, dword [ebp - 0x418]
push 0
lea ecx, [ebp - 0x41c]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x407720
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.createInitXml__d
lea eax, [ebp - 0x414]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp - 0x420]
push str.ERROR
call fcn.004038b0
mov edx, dword [ebp - 0x418]
push edx
call fcn.0040fa9f
add esp, 4
push ebx
call fcn.0040fa9f
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret