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

Disassembly:
mov edi, eax
mov esi, edx
mov eax, 0x41363233
xor al, byte [esi]
call fcn.006ed271
mov ebx, eax
xor ah, byte [esi]
call fcn.006ed271
shr ecx, 2
mov edx, ecx
xor dword [edi], eax
mov cl, al
add edi, 4
rol ebx, cl
xor eax, ebx
mov cl, bh
ror eax, cl
add ebx, eax
dec edx
jne 0x6ed258
ret

Function at 0x6ed271
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
push edx
xor edx, edx
dec esi
inc esi
xor ah, byte [esi]
xor al, dl
add eax, 0x6e203cc5
add eax, 0x21424a6
mov cl, al
ror eax, cl
xor eax, 0x8372a5a7
dec dx
jne 0x6ed27a
cmp byte [esi], 0
jne 0x6ed277
pop edx
pop esi
pop ecx
ret

Function at 0x6ed2c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
add edx, 0x89421025
bswap edx
mov eax, dword [esi]
sub eax, edx
xor eax, ebx
mov ebx, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x6ed2d6
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x6ef508
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
imul eax, dword [ebp + 0x10], 0x9e3779b9
cmp dword [ebp + 0x10], 0
jbe 0x6ef568
mov edx, ebx
shl edx, 4
sub ecx, edx
mov edx, dword [esi + 8]
xor edx, ebx
sub ecx, edx
mov edx, ebx
shr edx, 5
xor edx, eax
sub ecx, edx
sub ecx, dword [esi + 0xc]
mov edx, ecx
shl edx, 4
sub ebx, edx
mov edx, dword [esi]
xor edx, ecx
sub ebx, edx
mov edx, ecx
shr edx, 5
xor edx, eax
sub ebx, edx
sub ebx, dword [esi + 4]
sub eax, 0x9e3779b9
dec dword [ebp + 0x10]
jmp 0x6ef51e
mov dword [edi], ebx
mov dword [edi + 4], ecx
popal
leave
ret 0xc
Function at 0x403c80
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4e6210]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.0042c130
mov esi, eax
add esp, 4
cmp esi, section..data
je 0x403cf4
mov ecx, section..data
call fcn.00403a80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [section..data], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4e6010], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x403d34
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403d2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f03
push edx
push ecx
call fcn.00436532
add esp, 8
cmp dword [0x4e60bc], 0
je 0x403e1c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x4b8608
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e12
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x250]
movaps xmmword [ebp - 0x250], xmm0
push ecx
movaps xmmword [ebp - 0x240], xmm0
call eax
mov ax, word [ebp - 0x250]
cmp ax, 9
je 0x403e08
cmp ax, 6
je 0x403e08
cmp ax, 0xc
je 0x403e08
push str.IsWow64Process2
push 0x4b8634
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x403dff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x403dff
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x214], cx
sete al
mov dword [0x4ebf10], eax
jmp 0x403e12
xor eax, eax
mov dword [0x4ebf10], eax
jmp 0x403e12
mov dword [0x4ebf10], 1
mov dword [0x4e60bc], 0
cmp dword [0x4ebf10], 0
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
setne byte [0x4ebee1]
call fcn.0047af10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e60
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4e6060
call fcn.00404450
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0047af10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x403ebf
push str.SysWOW64
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ed0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4e6078
call fcn.00404450
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004367da
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047e4a9
int3
Function at 0x403f10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e6210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403ae0
add esp, 8
lea ecx, [ebp - 0x1c]
cmp dword [0x4e6014], 8
mov edx, section..data
mov eax, 0x4e6030
cmovae edx, dword [section..data]
cmp dword [ebp - 8], 8
push edx
cmovae ecx, dword [ebp - 0x1c]
cmp dword [0x4e6044], 8
push 1
cmovae eax, dword [0x4e6030]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
test eax, eax
sete bl
cmp edx, 8
jb 0x403fa8
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fb9
push edx
push ecx
call fcn.00436532
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004367da
mov esp, ebp
pop ebp
ret
call fcn.0047e4a9
int3

Function at 0x4040d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e6210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00403ae0
add esp, 8
lea ecx, [ebp - 0x1c]
cmp dword [0x4e6014], 8
mov edx, section..data
mov eax, 0x4e6030
cmovae edx, dword [section..data]
cmp dword [ebp - 8], 8
push edx
cmovae ecx, dword [ebp - 0x1c]
cmp dword [0x4e6044], 8
push 1
cmovae eax, dword [0x4e6030]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
test eax, eax
sete bl
cmp edx, 8
jb 0x404169
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40415f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041d1
push edx
push ecx
call fcn.00436532
add esp, 8
test bl, bl
jne 0x4041c1
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00403ae0
add esp, 8
lea ecx, [ebp - 0x34]
cmp dword [0x4e6014], 8
mov edx, section..data
mov eax, 0x4e6030
cmovae edx, dword [section..data]
cmp dword [ebp - 0x20], 8
push edx
cmovae ecx, dword [ebp - 0x34]
cmp dword [0x4e6044], 8
push 0x4b8670
cmovae eax, dword [0x4e6030]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x34]
call fcn.00403a80
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004367da
mov esp, ebp
pop ebp
ret
call fcn.0047e4a9
int3
Function at 0x407e30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acb66
mov eax, dword fs:[0]
push eax
sub esp, 0x194
push ebx
push esi
push edi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4b8bd4
push 1
mov bl, 1
push 0
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x407f4e
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40801d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov ebx, eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409ef0
mov byte [ebp - 4], 1
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x108]
push 0x14
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004054a0
mov esi, eax
push str.check_instance_fail__errno_
push esi
mov byte [ebp - 4], 2
call fcn.004063d0
add esp, 8
mov ecx, esi
push ebx
call fcn.00406230
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x108]
call fcn.00406630
lea ecx, [ebp - 0x28]
call fcn.00405e10
lea ecx, [ebp - 0x40]
call fcn.00405e10
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408031
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004395b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40801d
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.00409ef0
push 3
push 0x4b8930
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00409ef0
mov byte [ebp - 4], 4
call fcn.004395b0
mov edi, eax
lea ecx, [ebp - 0x1a0]
push 0x19
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004054a0
mov esi, eax
push str.instance_exist
push esi
mov byte [ebp - 4], 5
call fcn.004063d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1a0]
call fcn.00406630
lea ecx, [ebp - 0x58]
call fcn.00405e10
lea ecx, [ebp - 0x70]
call fcn.00405e10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x40803a
mov dword [eax], esi
xor al, al
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 0x408380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e6210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408407
test ebx, ebx
je 0x408407
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x408407
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x408407
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408401
push esi
push ebx
push edi
call fcn.0047a410
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408401
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004367da
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004367da
mov esp, ebp
pop ebp
ret

Function at 0x408420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408479
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408479
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40846a
cmp esi, edx
jae 0x408479
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x408458
cmp esi, edx
jae 0x408479
cmp word [esi], 0
je 0x408479
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40ad90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acd88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00436502
mov edi, eax
add esp, 4
test edi, edi
je 0x40ae33
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00431922
add esp, 4
mov dword [edi + 4], eax
jmp 0x40ae35
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00404da0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x40ae95
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40ae95
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x40aeb9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40aedb
cmp byte [ebp + 0xc], 0
je 0x40aec8
push esi
call fcn.00431e49
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40aee7
mov esi, str.ios_base::badbit_set
jmp 0x40aef7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040af20
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00405a40
push 0x4d8a30
lea eax, [ebp - 0x30]
push eax
call fcn.0047b11d
int3
Function at 0x4217a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af580
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push edi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42188f
cmp byte [ecx + 0x30], 0
jne 0x42188f
cmp byte [ecx + 0x31], 0
mov edi, str.__x86_
mov edx, str.__x64_
mov eax, edi
cmove eax, edx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.004192b0
add esp, 0xc
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 0
push 4
push ecx
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [eax + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00403a80
mov ecx, dword [ebp + 0x10]
call fcn.00420880
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x31], 0
mov eax, str.__x64_
cmove edi, eax
lea eax, [ebp - 0x3c]
push edi
mov edi, dword [ebp + 0x10]
push edi
push eax
call fcn.004192b0
add esp, 0xc
mov edx, dword [ebx]
xor eax, eax
cmp byte [edi + 0x30], al
mov ecx, ebx
push 0
setne al
mov dword [ebp - 4], 1
add eax, 5
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [edx + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403a80
mov al, byte [edi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4218b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af580
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push edi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4219a2
cmp byte [ecx + 0x30], 0
jne 0x4219a2
cmp byte [ecx + 0x31], 0
mov edi, str.__x86_
mov edx, str.__x64_
mov eax, edi
cmove eax, edx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.004192b0
add esp, 0xc
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 0
push 4
push ecx
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [eax + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00403a80
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.00420ed0
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0x31], 0
mov eax, str.__x64_
cmove edi, eax
lea eax, [ebp - 0x3c]
push edi
mov edi, dword [ebp + 0x14]
push edi
push eax
call fcn.004192b0
add esp, 0xc
mov edx, dword [ebx]
xor eax, eax
cmp byte [edi + 0x30], al
mov ecx, ebx
push 0
setne al
mov dword [ebp - 4], 1
add eax, 5
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [edx + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403a80
mov al, byte [edi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427160
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b00f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x3c
call fcn.00436502
mov ecx, dword [ebp + 8]
mov esi, eax
lea edx, [esi + 4]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 4], 0
lea edi, [edx + 4]
mov dword [ebp - 0x18], edx
mov dword [esi], vtable.std::_Func_impl_no_alloc_class__lambda_cda2627f00237dd55970028a13a9395e___void___.0
lea ebx, [ecx + 4]
mov eax, dword [ecx]
mov ecx, edi
push ebx
mov dword [edx], eax
mov dword [ebp + 8], edi
call fcn.004052a0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004052a0
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x30], eax
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
Function at 0x42c130
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0920
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call fcn.0042fd00
add esp, 4
push 0xb
push str.dll_repair
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004042c0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d160
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x42c1c7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c1bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c257
push edx
push ecx
call fcn.00436532
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x10], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 0
push eax
push 0
mov dword [ebp - 0x2c], 7
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0xb
push str._repair.dat
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004042c0
push eax
mov ecx, esi
call fcn.0040d160
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x42c245
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c23b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c25c
push edx
push ecx
call fcn.00436532
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0047e4a9
call fcn.0047e4a9
int3

Function at 0x42c310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afd88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4e6210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x10], esi
call fcn.0042fd00
add esp, 4
push 0xb
push str.dll_repair
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004042c0
push eax
mov ecx, esi
call fcn.0040d160
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42c39b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c391
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c3c2
push edx
push ecx
call fcn.00436532
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42c3a5
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0047e4a9
int3
Function at 0x42cad0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x4e6210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4bc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x3e8
push 0
push eax
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x4c0], ebx
call fcn.0047af10
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.0047af10
add esp, 0x18
test esi, esi
je 0x42cbd0
test ebx, ebx
je 0x42cbd0
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42cbd0
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x42cbd0
xor ecx, ecx
movzx edx, ax
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42cbbb
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x4c4]
call fcn.00482825
add esp, 0xc
test eax, eax
je 0x42cbe3
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x42cb61
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004367da
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42cc39
cmp edi, 0x7fffffff
ja 0x42cc30
mov ecx, ebx
mov esi, SysReAllocString
lea ebx, [ebp - 0xc]
sub esi, edi
mov edx, edi
sub ebx, ecx
nop
lea eax, [esi + edx]
test eax, eax
je 0x42cc1b
movzx eax, word [ebx + ecx]
test ax, ax
je 0x42cc1b
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x42cc00
mov ebx, dword [ebp - 0x4c0]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x42cc39
test edi, edi
je 0x42cc39
xor eax, eax
mov word [ebx], ax
xor ecx, ecx
test edi, edi
je 0x42cc47
cmp edi, 0x7fffffff
jbe 0x42cc4c
mov ecx, 0x80070057
test ecx, ecx
js 0x42cc7e
mov esi, edi
mov eax, ebx
test edi, edi
je 0x42cc66
cmp word [eax], 0
je 0x42cc66
add eax, 2
sub esi, 1
jne 0x42cc58
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x42cc80
xor esi, esi
test ecx, ecx
js 0x42ccd6
mov edx, edi
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x42ccc9
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
mov eax, dword [ebp - 0x4c8]
add eax, eax
sub eax, ecx
add edi, eax
nop word [eax + eax]
test esi, esi
je 0x42ccc9
movzx eax, word [edi + ecx]
test ax, ax
je 0x42ccc9
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x42ccb0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004367da
mov esp, ebp
pop ebp
ret