joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7365569f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
mov eax, section..text_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4d646bd7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x438c8d
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ecx
push edi
pop edi
add edi, edi
call fcn.00438cca
sub ebx, 0xf05daad2
mov ebx, 0xc0ce8f86
sub edi, 1
xor dword [esi], ecx
sub ebx, edi
or ebx, edi
sub edi, edi
inc esi
sub ebx, 1
add edi, edi
cmp esi, edx
jne fcn.00438c8d
mov ebx, 0x8d421036
ret
Function at 0x401c8e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x401d41
xor eax, eax
cmp word [edi], ax
je 0x401d41
test ebx, ebx
je 0x401d41
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x401d41
push esi
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x401d28
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401d28
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401d28
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x401d24
sub ebx, ecx
movzx eax, word [ecx]
mov word [ebx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x401d15
mov bl, 1
jmp 0x401d2a
xor bl, bl
test esi, esi
je 0x401d3c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, bl
pop esi
jmp 0x401d43
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401eb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xc], edi
call fcn.00406880
cmp eax, 1
jle 0x401fef
push 0
push 0x8000000
push 3
push 0
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ffb
test ebx, ebx
je 0x401ffb
push 4
push 0x1000
push 0xf4240
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x401fd5
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jle 0x401fc8
fld qword [0x434cf8]
mov esi, edi
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fmul qword [ebp - 0x30]
call fcn.00426c10
xor esi, esi
lea ecx, [ebp - 0x20]
push esi
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x401fe6
fld qword [ebp - 0x28]
fld qword [0x434cf8]
fmul st(1), st(0)
jmp 0x401f99
fxch st(1)
fcomi st(1)
jbe 0x401f6e
fstp st(0)
jmp 0x401f70
fstp st(1)
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00426c10
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fde
cmp dword [ebp - 0x10], esi
jbe 0x401fde
fld qword [ebp - 0x18]
fld qword [0x434cf8]
fsub st(1), st(0)
fxch st(1)
fst qword [ebp - 0x18]
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x401f64
fstp st(0)
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc eax
add edi, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
cmp eax, dword [ebp + 8]
jl 0x401f2e
mov eax, dword [ebp - 4]
fstp st(0)
push 0x8000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401ffb
fld qword [0x434cf8]
jmp 0x401faa
mov eax, dword [ebp - 4]
test eax, eax
je 0x401fd5
jmp 0x401fc8
mov dl, byte [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0040ad70
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402199
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x420], edi
test edi, edi
je 0x40234a
test esi, esi
je 0x40234a
cmp dword [ebp + 0x18], 0
je 0x40234a
test ebx, ebx
je 0x4021ec
push esi
call fcn.0040110c
pop ecx
push eax
push esi
lea ecx, [ebx + 0x24]
call fcn.00403fd7
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004129f0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
call fcn.004129f0
lea edx, [ebp - 0x214]
add esp, 0xc
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402223
mov edx, dword [ebp + 0x18]
push esi
push ecx
lea ecx, [ebp - 0x214]
call fcn.00401b9a
pop ecx
pop ecx
xor edx, edx
mov ecx, edx
movzx eax, word [ebp + ecx - 0x214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x41e], ax
test ax, ax
jne 0x402248
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, dx
jne 0x402269
mov eax, dword [0x4345cc]
mov dword [edi], eax
lea edi, [ebp - 0x214]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, dx
jne 0x402285
push 5
pop ecx
lea eax, [ebp - 0x41c]
mov esi, str.kugou.dll
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp + 8], 0
jne 0x4022f2
mov edx, dword [ebp + 0x18]
push str.kugou.dll
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00401b9a
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x420]
xor edi, edi
push edi
push ebx
call fcn.00402002
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x402346
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push edi
push ebx
call fcn.00402002
add esp, 0xc
jmp 0x402344
push dword [ebp + 0xc]
lea edx, [ebp - 0x214]
push dword [ebp + 8]
push ebx
call fcn.00402002
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x402346
call fcn.00401c10
test al, al
je 0x402346
call fcn.00414d02
mov edx, dword [ebp + 0x18]
push str.kugou.dll
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00401b9a
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x420]
push dword [ebp + 8]
push ebx
call fcn.00402002
add esp, 0x14
mov esi, eax
mov eax, esi
jmp 0x40234c
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f8a1
mov esp, ebp
pop ebp
ret
Function at 0x40235d
Capabilities:
Create directory
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x208
push eax
mov bl, al
lea eax, [ebp - 0x20c]
push eax
call fcn.004129f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 1
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor eax, eax
xor esi, esi
push eax
push eax
inc esi
lea eax, [ebp - 0x238]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x224], 0xc
lea eax, [ebp - 0x238]
mov dword [ebp - 0x21c], esi
sub edi, 2
mov dword [ebp - 0x220], eax
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4023eb
mov esi, 0x4345d0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x20c]
sub edi, 2
xor edx, edx
mov ax, word [edi + 2]
add edi, 2
cmp ax, dx
jne 0x402420
push 8
pop ecx
push edx
push 0x8000000
push 4
lea eax, [ebp - 0x224]
mov esi, str._startup_record
push eax
push 7
push 0xc0000000
lea eax, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
je 0x402534
test eax, eax
je 0x402534
xor ecx, ecx
push ecx
push 0xc
push ecx
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402522
test edi, edi
je 0x402522
push 0xc
xor eax, eax
push eax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x402519
mov ecx, dword [esi + 4]
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x4024f9
fild dword [esi]
fstp dword [ebp - 0x214]
fld dword [ebp - 0x214]
fild dword [ebp - 0x210]
fstp dword [ebp - 0x210]
fdiv dword [ebp - 0x210]
fstp dword [ebp - 0x210]
fld dword [0x434cdc]
fld dword [ebp - 0x210]
fcompi st(1)
fstp st(0)
ja 0x4024f9
cmp byte [esi + 9], 0
jne 0x4024f9
xor ecx, ecx
mov bl, cl
jmp 0x402503
lea eax, [ecx + 1]
mov bl, 1
mov dword [esi + 4], eax
xor ecx, ecx
push 0xc
push esi
mov byte [esi + 8], bl
mov byte [esi + 9], cl
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402526
xor ecx, ecx
mov bl, cl
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40253e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov bl, cl
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f8a1
mov esp, ebp
pop ebp
ret
Function at 0x406710
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406781
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push ecx
push edi
call eax
test eax, eax
jne 0x406776
mov eax, 2
jmp 0x406781
xor eax, eax
cmp dword [ebp - 0x124], eax
setne al
push pe_nt_image_headers32
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004129f0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.004065c0
mov dword [esi], eax
add esp, 4
movzx eax, word [ebp - 0xc]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0xa]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x148]
test eax, eax
je 0x406851
cmp eax, 6
je 0x406848
cmp eax, 9
jne 0x406858
mov dword [esi + 0x18], 1
jmp 0x406858
mov dword [esi + 0x18], 2
jmp 0x406858
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f8a1
mov esp, ebp
pop ebp
ret

Function at 0x407140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
jb 0x407152
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4071c1
mov edi, dword [ebp - 4]
test edi, edi
je 0x4071c1
cmp dword [esi + 0x14], 8
jb 0x40718d
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407192
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.ErrCode
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4071d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
cmp dword [ecx + 0x14], 8
jb 0x4071e2
mov ecx, dword [ecx]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407253
mov esi, dword [ebp - 4]
test esi, esi
je 0x407253
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0
push str.Status
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407253
mov eax, dword [ebp - 4]
cmp eax, 4
je 0x407243
cmp eax, 3
jne 0x407253
cmp dword [ebp - 8], 4
jne 0x407253
cmp dword [ebp - 0xc], 2
jne 0x407253
mov bl, 1
jmp 0x407255
xor bl, bl
test esi, esi
je 0x407260
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
jb 0x407282
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4072f1
mov edi, dword [ebp - 4]
test edi, edi
je 0x4072f1
cmp dword [esi + 0x14], 8
jb 0x4072bd
mov esi, dword [esi]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072c2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.CurrPatchVersion
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 8
push esi
push edi
mov edi, edx
jb 0x407312
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407365
mov esi, dword [ebp - 4]
test esi, esi
je 0x407365
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 4
push 0
push str.AlreadyRunCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov esi, edx
jb 0x407383
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4073fb
mov edi, dword [ebp - 4]
test edi, edi
je 0x4073fb
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x4073c1
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x4073c9
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073d0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4087f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.00410910
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
add ecx, 0x1c
push ebx
push esi
push edi
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x1210], 2
mov dword [ebp - 0x120c], eax
jb 0x408828
mov ecx, dword [ecx]
lea edx, [ebp - 0x1208]
mov edi, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x408830
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x434894
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1214], 0
cmp ebx, 0xffffffff
je 0x408905
push 0x9ff
lea eax, [ebp - 0xa07]
push 0
push eax
call fcn.004129f0
add esp, 0xc
mov dword [ebp - 0xa08], 0xc8
lea eax, [ebp - 0x1218]
mov ecx, 0x202
lea esi, [ebp - 0x1210]
lea edi, [ebp - 0xa04]
push 0
push eax
push 0xa00
lea eax, [ebp - 0xa08]
push eax
rep movsd dword es:[edi], dword [esi]
push ebx
mov word [ebp - 0x1fc], 0x101
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408905
push 0
lea eax, [ebp - 0x1218]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1214]
xor edx, edx
cmp eax, 0xea
cmove ecx, edx
mov dword [ebp - 0x1214], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1214], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040f8a1
mov esp, ebp
pop ebp
ret
Function at 0x408930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427888
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x438070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0xb0]
xor bl, bl
push 0
push eax
call fcn.004129f0
xor eax, eax
mov dword [ebp - 0xb0], 0x44
mov dword [ebp - 0x64], eax
add esp, 0xc
cmp dword [esi + 0x30], 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [esi + 0x1c]
jb 0x408997
mov eax, dword [eax]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408ad2
push 0xffffffffffffffff
push dword [ebp - 0x64]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov dword [ebp - 0x54], 0x7fffff
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x64]
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov eax, dword [ebp - 0x54]
jne 0x4089f9
test eax, eax
je 0x4089f9
xor bl, bl
jmp 0x408a01
test bl, bl
jne 0x408ad2
xor ecx, ecx
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], ecx
mov word [ebp - 0x50], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x38]
push 0x10
push ecx
push eax
call fcn.004195ba
add esp, 0xc
cmp word [ebp - 0x38], 0
jne 0x408a4c
xor ecx, ecx
jmp 0x408a61
lea ecx, [ebp - 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a52
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00403fd7
lea ecx, [esi + 0x34]
lea edx, [ebp - 0x50]
call fcn.00407140
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x408ad2
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x7fffffff
jbe 0x408a91
call fcn.00418d3b
add eax, eax
cmp eax, 0x1000
jb 0x408ac9
test byte [ebp - 0x50], 0x1f
je 0x408aa5
call fcn.00418d3b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x408ab1
call fcn.00418d3b
sub ecx, eax
cmp ecx, 4
jae 0x408abd
call fcn.00418d3b
cmp ecx, 0x23
jbe 0x408ac7
call fcn.00418d3b
mov ecx, eax
push ecx
call fcn.0040fd8e
add esp, 4
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x60]
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f8a1
mov esp, ebp
pop ebp
ret
Function at 0x40a6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
cmp esi, eax
jb 0x40a6ef
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, eax
mov ecx, ebx
push eax
sub edi, esi
call fcn.0040ae50
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
cmp eax, esi
jbe 0x40a740
push 0
lea eax, [ecx + esi]
mov dword [ebp + 8], 0
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a737
cmp dword [ebp + 8], edi
jne 0x40a737
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0040eace
int3

Function at 0x40a820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, edx
mov dword [ebp - 0x20], eax
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ecx, 0x1000
test eax, eax
cmove eax, ecx
lea ecx, [edi - 1]
add ecx, esi
mov dword [ebp - 0x20], eax
cmp esi, ecx
jae 0x40a879
lea esp, [esp]
mov al, byte [esi]
add esi, dword [ebp - 0x20]
cmp esi, ecx
jb 0x40a870
mov al, byte [ecx]
pop edi
pop esi
mov esp, ebp
pop ebp
ret