joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bec3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push 0
push dword [0x41fef0]
fild qword [esp]
add esp, 8
fstp dword [ebp - 0x120]
push 0
push dword [0x41fee4]
fild qword [esp]
add esp, 8
fstp dword [ebp - 0x124]
fld dword [0x4215dc]
fld dword [ebp - 0x124]
fdiv dword [ebp - 0x120]
fmulp st(1)
fstp qword [ebp - 0x130]
fld qword [0x4215d4]
fst qword [ebp - 0x138]
fcomp qword [ebp - 0x130]
fnstsw ax
sahf
ja 0x40bf46
fld qword [ebp - 0x130]
fsub qword [ebp - 0x138]
mov edi, eax
call fcn.00411ac8
xchg edi, eax
mov ebx, edi
add ebx, 0x80000000
jmp 0x40bf54
fld qword [ebp - 0x130]
mov ebx, eax
call fcn.00411ac8
xchg ebx, eax
mov esi, ebx
push 0x66
push dword [0x420324]
call sub.USER32.DLL_GetDlgItem
push 0
push esi
push 0x402
push eax
call sub.USER32.DLL_SendMessageA
push dword [ebp + 8]
push 0x420014
call fcn.00411b78
push 0x420014
call fcn.004111db
push 0x420014
call fcn.00411318
push 0x65
push dword [0x420324]
call sub.USER32.DLL_GetDlgItem
push 0x100
lea edi, [ebp - 0x11c]
push edi
push eax
call sub.USER32.DLL_GetWindowTextA
push 0x420014
lea eax, [ebp - 0x11c]
push eax
call sub.CRTDLL.DLL__stricmp
add esp, 0x10
or eax, eax
je 0x40bfe1
push 0x65
push dword [0x420324]
call sub.USER32.DLL_GetDlgItem
push 0x420014
push eax
call sub.USER32.DLL_SetWindowTextA
mov dword [0x420328], 0xff
jmp 0x40c00f
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call sub.USER32.DLL_IsDialogMessageA
or eax, eax
jne 0x40c00f
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x40bfed
xor eax, eax
cmp dword [0x420328], 2
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c7db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push edi
push 0x100
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetShortPathNameA
push 0x4215ad
lea eax, [ebp - 0x22c]
push eax
call sub.CRTDLL.DLL_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
call sub.CRTDLL.DLL_strcat
push 0x44
push 0
lea eax, [ebp - 0x270]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0x1c
mov dword [ebp - 0x270], 0x44
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
or eax, eax
jne 0x40c89f
call sub.KERNEL32.DLL_GetLastError
push 0
push 0x200
lea edi, [ebp - 0x22c]
push edi
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_FormatMessageA
push 0x30
push dword [0x41319c]
lea eax, [ebp - 0x22c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x40c939
mov eax, dword [0x420318]
cmp byte [eax + 0x22d], 0
je 0x40c926
push 0x3e8
push dword [ebp - 0x2c]
call sub.USER32.DLL_WaitForInputIdle
jmp 0x40c8e3
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x40c8bc
push 0xa
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
je 0x40c8ce
jmp 0x40c91d
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x40c8f6
call fcn.0040c93c
or eax, eax
jne 0x40c908
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0x410c4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x23]
lea esi, str.SoftwarePowerArchiverGeneral
mov ecx, 0x1f
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2d]
lea esi, str.Directory
mov ecx, 5
rep movsw word es:[edi], word [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
or ebx, ebx
jne 0x410c86
xor eax, eax
jmp 0x410ceb
push 0x421a10
push ebx
call fcn.00411b78
mov dword [ebp - 4], 0x80000001
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x23]
push eax
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
or eax, eax
jne 0x410ce9
lea eax, [ebp - 0x34]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x2d]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, ebx
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410cd7
cmp eax, 0
setne al
and eax, 1
jmp 0x410ceb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x18]
lea esi, str.SoftwareZipCentral
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x29]
lea esi, str.Application_Path
mov ecx, 0x11
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
push 0x421a10
push ebx
call fcn.00411b78
mov dword [ebp - 4], 0x80000002
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x18]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
or eax, eax
jne 0x410d85
lea eax, [ebp - 0x30]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, ebx
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410d73
cmp eax, 0
setne al
and eax, 1
jmp 0x410d87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410d8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x104]
lea esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x108], eax
push 0x421a10
push ebx
call fcn.00411b78
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
mov dword [ebp - 4], 0x80000002
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
or eax, eax
jne 0x410e30
lea eax, [ebp - 0x108]
push eax
push ebx
push 0
push 0
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, ebx
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410e1e
cmp eax, 0
setne al
and eax, 1
jmp 0x410e32
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411158
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x41116a
cmp byte [eax + edi - 1], 0x5c
jne 0x411189
lea ecx, [edi]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x41117d
mov byte [eax + edi - 1], 0
mov ecx, edi
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x41118e
cmp eax, 3
jb 0x4111a8
push edi
call fcn.00411494
add esp, 4
cmp eax, 0
je 0x4111aa
jmp 0x4111d8
lea eax, [ebp - 0x100]
push eax
push edi
call fcn.00411253
lea eax, [ebp - 0x100]
push eax
call fcn.00411158
push edi
push dword [0x41fef4]
call fcn.0041168d
push edi
call sub.CRTDLL.DLL__mkdir
add esp, 0x18
pop edi
leave
ret

Function at 0x411b14
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x411b48
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x411b63
mov edi, eax
inc edi
jmp 0x411b40
inc edi
cmp byte [edi], 0x20
je 0x411b3f
jmp 0x411b63
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x411b54
cmp eax, 0x20
jne 0x411b47
jmp 0x411b57
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x411b63
cmp eax, 0x20
je 0x411b56
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00409db0
pop edi
leave
ret
Function at 0x403b57
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x45fca0], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x403b8f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, dword [0x450738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x45073c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403b50
mov eax, dword [0x450740]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x450744]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x45fca0], 0xc
mov dword [ebp - 4], eax
jne 0x403c33
lea eax, [ebp - 0x438]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc38]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x45fca0]
cmp eax, 0xfa9
jne 0x403c4f
mov dword [0x45f23c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403c5c
mov dword [0x45ebe8], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x45f238], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x45fca0], 0x213
mov dword [ebp - 0x14], edx
jne 0x403c9a
push 0x403604
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x45fca0], 0xc
jne 0x403cc7
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00403b4a
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403bcb
cmp dword [0x45fca0], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403d22
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x404085
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x45fca0], 0x400
push edi
jne 0x4040e5
push esi
call fcn.004044a9
pop ecx
push esi
call fcn.00404692
pop ecx
push esi
push esi
call fcn.004049b2
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403ac7
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403aa4
fstp st(0)
push esi
call fcn.00404c10
pop ecx
push esi
push esi
call fcn.00404537
pop ecx
pop ecx
mov eax, dword [0x455be4]
mov dword [0x45fca0], eax
mov eax, dword [0x455bbc]
mov dword [0x45fca4], eax
call fcn.00403dc4
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x404154
cmp dword [esp + 0x18], 0x785074d5
jne 0x404162
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x404107
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40382c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x404193
cmp dword [esp + 0x18], 0x785074d5
jne 0x40419c
inc edi
cmp edi, 0x11915
jl 0x404164
mov eax, dword [0x45ebf0]
mov dword [0x45f234], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405580
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f118]
jne 0x40558a
repz ret
jmp fcn.0040a172
Function at 0x409e95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040824e
and dword [ebp - 4], 0
cmp dword [0x4564a4], 0
mov ebx, eax
jne 0x409f46
push 0x4023e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409ff7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023dc
push edi
call esi
test eax, eax
je 0x409ff7
push eax
call fcn.004081dc
mov dword [esp], 0x4023cc
push edi
mov dword [0x4564a4], eax
call esi
push eax
call fcn.004081dc
mov dword [esp], 0x4023b8
push edi
mov dword [0x4564a8], eax
call esi
push eax
call fcn.004081dc
mov dword [esp], 0x40239c
push edi
mov dword [0x4564ac], eax
call esi
push eax
call fcn.004081dc
pop ecx
mov dword [0x4564b4], eax
test eax, eax
je 0x409f46
push 0x402384
push edi
call esi
push eax
call fcn.004081dc
pop ecx
mov dword [0x4564b0], eax
mov eax, dword [0x4564b0]
cmp eax, ebx
je 0x409f9e
cmp dword [0x4564b4], ebx
je 0x409f9e
push eax
call fcn.00408257
push dword [0x4564b4]
mov esi, eax
call fcn.00408257
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409f9e
test edi, edi
je 0x409f9e
call esi
test eax, eax
je 0x409f95
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409f95
test byte [ebp - 0xc], 1
jne 0x409f9e
or dword [ebp + 0x10], 0x200000
jmp 0x409fd7
mov eax, dword [0x4564a8]
cmp eax, ebx
je 0x409fd7
push eax
call fcn.00408257
pop ecx
test eax, eax
je 0x409fd7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409fd7
mov eax, dword [0x4564ac]
cmp eax, ebx
je 0x409fd7
push eax
call fcn.00408257
pop ecx
test eax, eax
je 0x409fd7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4564a4]
call fcn.00408257
pop ecx
test eax, eax
je 0x409ff7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409ff9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401627
cmp dword [esp + 0x10], 2
jne 0x401627
cmp dword [esp + 4], 6
jb 0x401627
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x401630
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
call fcn.004015f0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
neg eax
sbb eax, eax
mov dword [esp + 0x18], ecx
and eax, 0x416070
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
xor esi, esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4016d9
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4016c3
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
mov eax, esi
pop edi
pop esi
add esp, 0x3c
ret

Function at 0x4016f0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea edx, [esp + 8]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
je 0x4017e7
mov byte [eax], 0
lea eax, [esp + 8]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x40178b
push 0xc
push str._repair.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
push 0xc
lea ecx, [esp + 0x110]
push str._repair.exe
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
lea edx, [esp + 0x14]
push edx
call fcn.00401000
add esp, 0x10
test eax, eax
je 0x4017e7
lea eax, [esp + 0x10c]
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4017e7
push 0
push 0x64
push 0
lea edx, [esp + 0x118]
push str._URL:http:__pinst.360.cn_360safe_safe_360sd_rebudingpop.cab
push edx
push 0
call fcn.00401630
add esp, 0x18
pop edi
pop esi
add esp, 0x208
ret
Function at 0x40b580
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x40d890
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
mov ecx, 0x417ab4
jmp fcn.0040d8a0
Function at 0x40e410
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40e43f
push str.GetFileSizeEx__
push eax
push 0x112
push str.E:_build360BaseQHImageHlp.c
call fcn.004065f0
add esp, 0x10
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40e690
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40e6cc
push str.SetFilePointerEx__
push eax
push 0xed
push str.E:_build360BaseQHImageHlp.c
call fcn.004065f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e705
push str.ReadFile__
push eax
push 0xf0
push str.E:_build360BaseQHImageHlp.c
call fcn.004065f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret
cmp edi, dword [esp + 0xc]
je 0x40e729
push 0x417764
push 1
push 0xf2
push str.E:_build360BaseQHImageHlp.c
call fcn.00406a70
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x40f3b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x410a10
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x410a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x410a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x40e7b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret