joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4243d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acca
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.00412ed0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x424444
push 0x80004005
call fcn.00412c60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x14], eax
mov byte [ebp - 4], 1
call fcn.00412ed0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x42446f
push 0x80004005
call fcn.00412c60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
call fcn.00412ed0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x42449d
push 0x80004005
call fcn.00412c60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push eax
push 0x67
call fcn.00420290
lea eax, [ebp - 0x21c]
push eax
push 0x65
call fcn.00420290
mov edi, dword [ebp - 0x220]
add esp, 0x10
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42452f
lea ecx, [ebx + 0x14]
call fcn.00412d00
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424510
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x14]
call fcn.00424f80
mov esi, dword [ebp - 0x21c]
lea ecx, [ebx + 0x14]
push esi
call fcn.00424ea0
lea eax, [ebx + 0x14]
push eax
call fcn.004204c0
lea eax, [ebp - 0x230]
push 0x48e358
push eax
call fcn.0041fea0
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov byte [ebp - 4], 4
sar eax, 1
jne 0x424574
push str.invalid_vector_T__subscript
call fcn.00441bba
push ecx
lea ecx, [ebx + 0x14]
call fcn.00424ea0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x424590
push eax
call fcn.0044317c
add esp, 4
push 0
push 0
push 1
push 0
push 0
push 0
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4245cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4245e7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x425450
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47adab
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.004419aa
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004454b0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004437ef
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4254ee
push esi
call fcn.004437ea
mov ecx, dword [ebp - 0x18]
add esp, 4
call fcn.00412d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42556d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.00425f90
mov edx, dword [ebp - 0x120]
mov dword [ebp - 4], 0
test edx, edx
jne 0x425527
xor ecx, ecx
jmp 0x42553f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425530
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.00413590
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x425562
push eax
call fcn.004436b7
add esp, 4
push esi
call fcn.004437ea
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4259c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ae5b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 0
push 0xf
mov dword [ebp - 0x24c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x248], eax
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push ebx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x244], 0
mov edi, eax
call fcn.00411470
mov ebx, dword [ebp - 0x248]
mov dword [ebp - 4], 0
test edi, edi
je 0x425aed
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x244]
call fcn.00445ce5
add esp, 8
test eax, eax
jne 0x425ad8
push dword [ebp - 0x238]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x425ad8
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x14]
cmp ecx, eax
jae 0x425abd
mov ecx, dword [esi]
lea edx, [ebp - 0x14]
cmp ecx, edx
ja 0x425abd
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x425aad
push 1
mov ecx, esi
call fcn.00415860
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x425ad4
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x425ad4
cmp eax, dword [esi + 8]
jne 0x425acb
push 1
mov ecx, esi
call fcn.00415860
mov eax, dword [esi + 4]
test eax, eax
je 0x425ad4
mov dword [eax], edi
add dword [esi + 4], 4
lea eax, [ebp - 0x240]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x425a50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
xor ecx, ecx
sub eax, dword [esi]
mov edi, dword [ebp - 0x244]
sar eax, 2
cmp ecx, eax
mov dword [ebp - 4], 0xffffffff
sbb esi, esi
add edi, 0xfffffff0
neg esi
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425b2b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x426080
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xf0000040
push 0x18
push 0
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42610e
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42610e
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42610e
lea eax, [esi + 4]
push eax
push 1
push dword [ebp - 8]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x42610e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
je 0x42611c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044448b
mov esp, ebp
pop ebp
ret 8

Function at 0x426300
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4263b5
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4263b5
cmp dword [ebp - 8], 0x103
jne 0x4263b5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x426390
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x426378
cmp dword [ebp - 8], 0x103
jne 0x426378
mov ecx, 1
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
pop esi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x427040
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b05b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xa4], eax
call fcn.00413000
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004112e0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x4270d5
push eax
call fcn.004436b7
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x427104
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42715d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
mov dword [ecx], eax
call fcn.004419aa
mov ecx, dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ecx]
push 0
push eax
call fcn.004454b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push dword [ebx]
call fcn.004437ef
add esp, 0x20
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push dword [ebx]
push 0
push 1
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x42715b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42715d
xor esi, esi
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x427180
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4271a1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x427995
cmp byte [ebx + 0x45], 0
je 0x427995
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4278c4
xor al, al
jmp 0x427997
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42792e
dec eax
je 0x427932
sub eax, 2
je 0x42797e
xor bl, bl
jmp 0x427980
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x427964
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00446816
add esp, 0x10
cmp esi, eax
jne 0x42792a
cmp byte [ebx + 0x45], 0
je 0x42797e
test esi, esi
jne 0x4278f4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00415da0
jmp 0x4278f4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x427991
push dword [ebp - 0x28]
call fcn.0044317c
add esp, 4
mov al, bl
jmp 0x427997
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x42a450
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b3fd
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax - 0xc]
test eax, eax
je 0x42a4fd
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42a4b9
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42a4ff
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00418220
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x42a4d6
push str.invalid_vector_T__subscript
call fcn.00441bba
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x42a4fd
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42a4ff
xor esi, esi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a523
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret

Function at 0x42a6c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004454b0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42a729
cmp dword [ebp - 0x114], 5
jne 0x42a729
cmp dword [ebp - 0x110], 1
jb 0x42a729
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x42a740
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b467
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a883
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x42a883
push esi
call fcn.004419aa
add esp, 4
mov edi, eax
push edi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42a86a
lea eax, [ebp - 0x28]
push str.CR0xKDs7LBEzPiwGIz48FWdgeWtjcydBhQzIyotNjoTPyAmIjg0JhweOw0lGDobIyUQNwg4IiUOIh4JLAEGFDw7MQEvMAAFPC0eKAAQPTwwDyYgGx0qIgcoED0nCh8AAAA4
push eax
call fcn.00429e10
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov byte [ebp - 4], 1
sar eax, 1
jne 0x42a7e6
push str.invalid_vector_T__subscript
call fcn.00441bba
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x28]
mov esi, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x42a80b
push ecx
call fcn.0044317c
add esp, 4
test esi, esi
jne 0x42a85d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], esi
push str.CR0xKDs7LBEzPiwGIz48FWdkeWJjd3UsBhQzIyotNjoTPyAmIjg0Az02ChEUIgU1BB8FPjIqEh4TDj8vAyomOwg9IgQ3OB4LBTUyGicTABgSBSYjEDIqOhcLGwcUHAswGAYMITgBLCEQHC8MPgo3Ci4GGQobNSY2FxwOFB8MGRA7OTA2LhEyGgMVHygCIik_PxEpPAw1MiIfIgQZDB48NgIjJRQRJCICExUDER0qGD4IPik_DB0QACgXGAIUBAQgAjYqETw8AjgVMBcrIiACJAA7FD08EjwdEiEwBD4FDDI3Oz8sPScDBjcBPwkuFDoTJAUzKSAwIg8eAB01HR02CDwNOiUiFxYlGzwAAADj
push eax
call fcn.00429e10
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov byte [ebp - 4], 2
sar eax, 1
jne 0x42a83c
push str.invalid_vector_T__subscript
call fcn.00441bba
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
call sub.VERSION.dll_VerQueryValueW
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004247a0
test esi, esi
je 0x42a86a
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.00413590
cmp dword [ebp - 0x18], 0
je 0x42a87a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004437ea
add esp, 4
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a8a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x42a8d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
xor eax, eax
cmp dword [ebp + 0xc], eax
push edi
push 0x20
setne al
inc eax
push eax
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42a91d
call fcn.00425120
mov esi, eax
test esi, esi
jne 0x42a951
jmp 0x42a91f
mov edi, eax
push 0
test ebx, ebx
lea eax, [ebp - 8]
cmovne eax, ebx
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42a944
call fcn.00425120
mov esi, eax
jmp 0x42a946
xor esi, esi
test edi, edi
je 0x42a951
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a96e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x42bef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b740
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b42b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp + 0x24]
mov byte [ebp - 4], 1
test bl, bl
je 0x42bf84
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0043ae10
add esp, 4
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x10]
and esi, 0xffffff00
add esi, 0x20206
jmp 0x42bf89
mov esi, 0x20206
push esi
push eax
push dword [edi]
lea ecx, [ebp - 0x20]
call fcn.0043ba50
mov edi, eax
test edi, edi
je 0x42bfb6
cmp byte [ebp + 0x28], 0
je 0x42bfb2
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0042be10
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x42bff2
test bl, bl
je 0x42bfd5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0043ae10
add esp, 4
test eax, eax
je 0x42bfd5
or esi, 0x100
jmp 0x42bfdb
or esi, 0x200
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push esi
push dword [ebp - 0x10]
push dword [eax]
call fcn.0043ba50
mov edi, eax
test edi, edi
je 0x42bffc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42c031
push eax
jmp 0x42c02b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub eax, ecx
jne 0x42c010
push str.invalid_vector_T__subscript
call fcn.00441bba
mov esi, dword [ebp - 0x20]
push eax
push ecx
push dword [ebp + 0x20]
push 0
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x42c031
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42c041
push eax
call fcn.0044317c
add esp, 4
mov eax, edi
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 0x4355f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cc2e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
xorps xmm0, xmm0
mov dword [esi], eax
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x18], xmm0
movdqu xmmword [ebp - 0x28], xmm0
call fcn.0044287c
mov dword [ebp - 0x28], 0x49fe5c
mov dword [ebp - 0x18], 0x43c7a0
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00442974
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004428ed
cmp dword [esi + 0xc], 0
je 0x4356b8
call fcn.0044843c
mov ecx, dword [ebp - 0x30]
mov eax, esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret