joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45d440
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
test eax, eax
je 0x40b8d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
cmp eax, 0x11
jne 0x40b84d
push 0x260
push str.nidscosdeppath.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::ObjectAlreadyExists.0
lea eax, [ebp - 0x24]
push eax
call fcn.0040b150
add esp, 0x20
lea eax, [ebp - 0x24]
push 0x473dc4
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
cmp eax, 2
jne 0x40b891
push 0x262
push str.nidscosdeppath.cpp
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040d5a0
sub esp, 0x20
mov dword [ebp - 4], 0
mov ecx, esp
push eax
call fcn.0040b9f0
lea eax, [ebp - 0x50]
push eax
call fcn.0040afc0
add esp, 0x2c
lea eax, [ebp - 0x50]
push 0x473d88
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x269
push str.nidscosdeppath.cpp
push esi
lea ecx, [ebp - 0x30]
call fcn.0040d5a0
sub esp, 0x20
mov dword [ebp - 4], 1
mov ecx, esp
push eax
call fcn.0040b9f0
lea eax, [ebp - 0x70]
push eax
call fcn.0040afc0
add esp, 0x2c
lea eax, [ebp - 0x70]
push 0x473d88
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0040b510
add esp, 4
test al, al
je 0x40bdfd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bdfd
test al, 0x10
seta al
test al, al
je 0x40bdfd
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40c230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x40c240
or eax, eax
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
pop ebp
ret 8
Function at 0x411760
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
push edi
shr ecx, 2
xor edi, edi
test ecx, ecx
je 0x411834
cmp ecx, 8
jb 0x41180a
mov eax, ecx
mov edx, ecx
and eax, 7
mov esi, ebp
sub edx, eax
xorps xmm3, xmm3
mov dword [esp + 0x14], edx
mov ebx, ebp
mov edx, dword [esp + 0x20]
movaps xmm2, xmm3
sub esi, edx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
lea eax, [edx + 0x10]
movups xmm0, xmmword [ebx]
add edi, 8
lea ebx, [ebx + 0x20]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, dword [esp + 0x14]
jb 0x4117b5
mov ebp, dword [esp + 0x1c]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
jmp 0x41180e
mov edx, dword [esp + 0x20]
cmp edi, ecx
jae 0x411834
mov esi, ebp
lea edx, [edx + edi*4]
sub esi, dword [esp + 0x20]
sub ecx, edi
add edi, ecx
nop
mov eax, dword [edx + esi]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or ebx, eax
sub ecx, 1
jne 0x411820
mov esi, dword [esp + 0x24]
shl edi, 2
sub esi, edi
jne 0x41184a
pop edi
xor eax, eax
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
add ecx, edi
or dl, al
mov dword [esp + 0x20], ecx
mov eax, ebx
add ebp, edi
shr eax, 8
xor edi, edi
or dl, al
or dl, bl
mov dword [esp + 0x14], edx
test esi, esi
je 0x411930
cmp esi, 0x20
jb 0x41190c
mov eax, esi
mov ebx, esi
and eax, 0x1f
mov edx, ebp
sub ebx, eax
xorps xmm3, xmm3
sub edx, ecx
mov eax, ecx
mov dword [esp + 0x10], edx
movaps xmm2, xmm3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + ebp + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ebx
jb 0x4118a3
por xmm2, xmm3
mov ecx, dword [esp + 0x20]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp edi, esi
jae 0x411930
sub ebp, dword [esp + 0x20]
add ecx, edi
sub esi, edi
nop dword [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x411920
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x411b70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, edx
xor ebp, ebp
shr esi, 2
push edi
mov edi, dword [esp + 0x20]
test esi, esi
je 0x411c24
cmp esi, 8
jb 0x411c03
lea eax, [edi - 4]
lea eax, [eax + esi*4]
lea ecx, [ebx - 4]
lea ecx, [ecx + esi*4]
cmp ebx, eax
ja 0x411bab
cmp ecx, edi
jae 0x411c03
mov eax, esi
mov ecx, esi
and eax, 7
mov edx, edi
sub ecx, eax
sub edx, ebx
mov dword [esp + 0x10], edx
lea eax, [ebx + 0x10]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, edi
mov edi, dword [esp + 0x10]
nop dword [eax]
movups xmm0, xmmword [ecx]
add ebp, 8
lea ecx, [ecx + 0x20]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebp, dword [esp + 0x14]
jb 0x411bd0
mov edi, dword [esp + 0x20]
cmp ebp, esi
jae 0x411c24
mov edx, edi
lea ecx, [ebx + ebp*4]
sub esi, ebp
sub edx, ebx
add ebp, esi
mov eax, dword [ecx + edx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x411c12
mov edx, dword [esp + 0x24]
shl ebp, 2
sub edx, ebp
je 0x411ca4
add ebx, ebp
add edi, ebp
xor ecx, ecx
test edx, edx
je 0x411ca4
cmp edx, 0x20
jb 0x411c8b
lea eax, [edi - 1]
lea esi, [ebx - 1]
add eax, edx
add esi, edx
cmp ebx, eax
ja 0x411c4c
cmp esi, edi
jae 0x411c8b
mov eax, edx
mov esi, edx
and eax, 0x1f
mov ebp, edi
sub esi, eax
mov eax, ebx
sub ebp, ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edi + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, esi
jb 0x411c60
cmp ecx, edx
jae 0x411ca4
sub edi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x411c96
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x421f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push edi
push eax
push 0
push 0
mov edi, ecx
mov dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
push 0
call fcn.0040e0a0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421f9c
cmp dword [ebp + 0xc], 4
jne 0x421f94
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
call fcn.0040e0a0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421f8c
cmp dword [ebp - 4], 4
jne 0x421f84
mov esi, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
je 0x421f7a
jmp 0x421fa7
cmp byte [ebp + 0x10], 0
je 0x421f7a
jmp 0x421fe2
cmp byte [ebp + 0x10], 0
je 0x421f7a
jmp 0x422011
cmp byte [ebp + 0x10], 0
je 0x421f7a
jmp 0x422060
push 0x1b0
push str.nidscosdepRegKey.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
call fcn.004191e2
lea eax, [ebp - 0x20]
push eax
call fcn.004185a0
add esp, 0x20
lea eax, [ebp - 0x20]
push 0x475760
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x1b3
push str.nidscosdepRegKey.cpp
sub esp, 0x24
mov ecx, esp
push eax
call fcn.0040a890
lea eax, [ebp - 0x30]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x30]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x1b6
push str.nidscosdepRegKey.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::InvalidOperation.0
lea eax, [ebp - 0x20]
push eax
call fcn.004185a0
add esp, 0x20
lea eax, [ebp - 0x20]
push 0x475760
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x1b9
push str.nidscosdepRegKey.cpp
sub esp, 0x24
mov ecx, esp
push eax
call fcn.0040a890
lea eax, [ebp - 0x30]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x30]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4220b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e85a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
push 0
call fcn.0040e0a0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422229
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.0041fe90
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x14], 0
call fcn.0040e0a0
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4221c6
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x42219f
cmp eax, 2
je 0x42219f
cmp byte [ebp + 0x14], 0
je 0x4221fb
push 0x15d
push str.nidscosdepRegKey.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
call fcn.004191e2
lea eax, [ebp - 0x3c]
push eax
call fcn.004185a0
add esp, 0x20
lea eax, [ebp - 0x3c]
push 0x475760
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, dword [ebp + 8]
push esi
call fcn.0040d5a0
push esi
call fcn.0041fe99
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x14], 0
je 0x4221fb
push 0x160
push str.nidscosdepRegKey.cpp
sub esp, 0x24
mov ecx, esp
push eax
call fcn.0040a890
lea eax, [ebp - 0x4c]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x4c]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041fe99
add esp, 4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42225e
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d3d0
mov dword [ebp - 4], 1
mov ecx, 2
jmp 0x422272
cmp byte [ebp + 0x14], 0
je 0x42220b
push 0x163
push str.nidscosdepRegKey.cpp
sub esp, 0x24
mov ecx, esp
push eax
call fcn.0040a890
lea eax, [ebp - 0x70]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x70]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0x28]
call fcn.0040d630
mov dword [ebp - 4], 2
mov ecx, 4
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x14], ecx
mov ecx, esi
push eax
call fcn.0040d3d0
mov eax, dword [ebp + 0x14]
or eax, 1
test al, 4
je 0x42229e
and eax, 0xfffffffb
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x14], eax
call fcn.0040d860
mov eax, dword [ebp + 0x14]
test al, 2
je 0x4222aa
lea ecx, [ebp - 0x34]
call fcn.0040d860
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4223d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e8d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x14], 0
call fcn.00422f10
add esp, 4
push str.DSCError_Logs_
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0040d5a0
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040be50
add esp, 0xc
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040e350
push eax
mov ecx, esi
call fcn.0040e0a0
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e030
lea ecx, [ebp - 0x2c]
call fcn.0040d860
lea ecx, [ebp - 0x38]
call fcn.0040d860
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040e0a0
push eax
call fcn.0040bd50
add esp, 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
call fcn.004222f0
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
push esi
call fcn.0040be50
add esp, 0x14
lea ecx, [ebp - 0x38]
call fcn.0040d860
lea ecx, [ebp - 0x20]
call fcn.0040d860
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4239d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x4239b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
or eax, 0xffffffff
test esi, esi
cmove esi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x423a38
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424dc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 5
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jl 0x424df8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d4e0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
push 0x118
push str.nidscosdepAbsTimeToString.cpp
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x34]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x34]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x425930
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x200
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
push 0x1f
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jl 0x425978
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call fcn.00425a30
mov eax, dword [ebp + 8]
add esp, 0xc
mov esp, ebp
pop ebp
ret
push 0x2f
push 0x467168
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x2c]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x2c]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4259b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x200
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jl 0x4259fb
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call fcn.00425a30
mov eax, dword [ebp + 8]
add esp, 0xc
mov esp, ebp
pop ebp
ret
push 0x2f
push str.nidscosdepGetSystemTimeFormat.cpp
sub esp, 0x24
mov ecx, esp
call fcn.0040a8f0
lea eax, [ebp - 0x2c]
push eax
call fcn.004074a0
add esp, 0x30
lea eax, [ebp - 0x2c]
push 0x4739cc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4286df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
lea eax, [ebp - 0x94]
push ebx
push esi
push edi
push eax
call fcn.00428b64
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
lea eax, [ebp - 0x38]
push eax
push 0x462c00
call edi
add esp, 0xc
xor ebx, ebx
test eax, eax
js 0x4287a6
push 0x30
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00429c76
movzx eax, word [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x198]
push 0x468864
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov esi, ebx
add esp, 0x14
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x198]
push eax
call edi
pop ecx
pop ecx
test eax, eax
js 0x4287a4
movzx eax, word [ebp - 0x34]
cmp eax, dword [ebp - 4]
jne 0x42876e
cmp dword [ebp - 0x38], ebx
je 0x4287a4
push 0x30
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00429c76
movzx eax, word [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push 0x468868
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x14
inc esi
cmp esi, 0x28
jl 0x42874d
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
pop ecx
pop ecx
test eax, eax
js 0x4287cc
push 0x30
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00429c76
add esp, 0xc
lea eax, [ebp - 0x198]
mov byte [ebp - 0x198], bl
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
lea ecx, [esi - 1]
cmp ecx, 0x102
ja 0x428859
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
cmp byte [ebp + esi - 0x199], 0x5c
mov ecx, str.rnd._d
push eax
mov eax, str._rnd._d
cmovne ecx, eax
lea eax, [ebp - 0x29c]
push ecx
push 0x104
push eax
call fcn.0042864e
lea eax, [ebp - 0x29c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, esi
mov ecx, 0x104
add esp, 0x14
cmp eax, ecx
jae 0x428859
lea eax, [ebp - 0x29c]
push eax
push ecx
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov bl, byte [ebp - 0x198]
add esp, 0xc
jmp 0x42885f
mov byte [ebp - 0x198], bl
test bl, bl
je 0x4288bb
lea eax, [ebp - 0x198]
push 0x180
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__creat]
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x4288bb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x198]
push eax
call edi
pop ecx
pop ecx
test eax, eax
js 0x4288a5
push 0x30
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00429c76
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
pop ecx
pop ecx
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 8]
call fcn.00428a8e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428b64
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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
pop ebp
ret
Function at 0x429f9b
Capabilities:
Create thread

Disassembly:
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
call 0x429f9b
jmp 0x429f9b
push 0
push 0x400
mov dword [0x48a64c], 0
push 0x429f4d
mov dword [0x48a640], 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
push 0x10
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
mov dword [0x48a640], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x48a64c]
mov ecx, dword [0x48a64c]
shr eax, 3
xor ecx, eax
mov eax, dword [0x48a648]
shr ecx, 3
xor eax, ecx
xor dword [0x48a64c], eax
and dword [0x48a64c], 7
mov eax, dword [0x48a64c]
mov dword [0x48a648], eax
mov eax, dword [0x48a644]
mov ecx, dword [0x48a64c]
shl eax, 3
xor ecx, eax
mov dword [0x48a644], ecx
mov eax, dword [0x48a644]
ret

Function at 0x42a250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ed1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
lea edi, [ecx + 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx], vtable.ni::ipc::Server.0
mov dword [ecx + 4], ecx
lea ecx, [edi + 0x14]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
movzx eax, byte [esi + 0x10]
mov byte [edi + 0x10], al
movzx eax, byte [esi + 0x11]
mov byte [edi + 0x11], al
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 4], 0
mov dword [ebp + 8], edi
call fcn.0040d070
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407360
lea edi, [esi + 0x34]
mov dword [edi], vtable.ni::ipc::Server::EventWaiterMutexValidator.0
mov dword [edi + 4], esi
add esi, 0x3c
mov byte [ebp - 4], 3
push str.EventWaiterMutex
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.0044e050
mov dword [esi + 8], edi
mov edi, dword [ebp - 0x10]
xorps xmm0, xmm0
lea esi, [edi + 0x74]
mov byte [ebp - 4], 4
push 0
push 0
mov dword [edi + 0x48], 0
mov ecx, esi
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
movups xmmword [edi + 0x54], xmm0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov byte [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042b920
mov dword [esi], eax
lea esi, [edi + 0x7c]
mov byte [ebp - 4], 5
push 0
push 0
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042b920
mov dword [esi], eax
mov byte [ebp - 4], 6
lea esi, [edi + 0x84]
mov ecx, esi
mov dword [esi], 0
push 0
push 0
mov dword [ebp + 8], esi
mov dword [esi + 4], 0
call fcn.0042b920
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, edi
mov word [edi + 0x8c], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8