joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0ea
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0040d04c
mov ebx, eax
cmp ebx, edi
jge 0x40d126
push 0x43c248
push ebx
call fcn.004317fa
pop ecx
pop ecx
jmp 0x40d193
push esi
xor esi, esi
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x40d192
push edi
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d156
add esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
jb 0x40d131
jmp 0x40d192
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40d16a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x40d175
mov ebx, 0x80004005
push ebx
push 0x2f5
push 0x43c08a
call fcn.0043180e
push 0x43c222
push ebx
call fcn.004317fa
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x40d1a0
push dword [ebp - 8]
call fcn.00431b78
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x40d1a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x40d211
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40d1f7
and dword [ebp - 4], 0
jmp 0x40d211
cmp eax, 0x6d
je 0x40d25f
test eax, eax
jle 0x40d20a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x40d278
add esi, dword [ebp - 8]
cmp esi, 8
jb 0x40d1ca
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebx + 4], eax
cmp eax, esi
je 0x40d2ef
push esi
push eax
call fcn.004319bc
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x40d291
mov esi, 0x8007000e
push esi
push 0x328
push 0x43c08a
mov dword [ebp - 4], esi
call fcn.0043180e
push 0x43c2b2
push esi
jmp 0x40d2df
push 8
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00408720
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x40d219
push dword [ebp - 4]
push 0x31d
push 0x43c08a
call fcn.0043180e
push 0x43c290
jmp 0x40d2dc
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 4]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x40d2e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x40d2b7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40d2c5
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x32c
push 0x43c08a
call fcn.0043180e
push 0x43c26e
push dword [ebp - 4]
call fcn.004317fa
pop ecx
pop ecx
jmp 0x40d2ef
mov dword [ebx + 8], 1
cmp dword [ebx + 8], 0
jne 0x40d302
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40d302
push ebx
call fcn.00431b78
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d30c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x40d384
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d35f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40d36a
mov edi, 0x80004005
push edi
push 0x34c
push 0x43c08a
call fcn.0043180e
push 0x43c444
jmp 0x40d4f6
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0xff
jbe 0x40d3b2
mov esi, 0x8007000d
push esi
push 0x352
push 0x43c08a
mov edi, esi
call fcn.0043180e
push 0x43c418
push esi
jmp 0x40d4f7
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042ed04
mov edi, eax
cmp edi, ebx
jge 0x40d3cd
push 0x43c3e4
jmp 0x40d4f6
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40d41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d3f5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40d400
mov edi, 0x80004005
push edi
push 0x35a
push 0x43c08a
call fcn.0043180e
push 0x43c3ae
jmp 0x40d4f6
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40d452
mov esi, 0x8007000d
push esi
push 0x361
push 0x43c08a
mov edi, esi
call fcn.0043180e
push 0x43c37e
jmp 0x40d3ac
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40d49c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d47a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40d485
mov edi, 0x80004005
push edi
push 0x367
push 0x43c08a
call fcn.0043180e
push 0x43c344
jmp 0x40d4f6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, ebx
jne 0x40d514
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d4fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d4d6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x40d4e1
mov edi, 0x80004005
push edi
push 0x378
push 0x43c08a
call fcn.0043180e
push 0x43c30c
push edi
call fcn.004317fa
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40d50b
push dword [ebp - 4]
call fcn.0042ee18
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp eax, dword [ebp - 0x10]
je 0x40d4aa
mov esi, 0x8007000d
push esi
push 0x372
push 0x43c08a
mov edi, esi
call fcn.0043180e
push 0x43c2d8
jmp 0x40d3ac
Function at 0x40d730
Capabilities:
Create pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0x14], 0xffffffff
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], ebx
jne 0x40d7c0
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
push 0x43c680
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x40d7b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d77c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x40d78a
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x11e
push 0x43c08a
call fcn.0043180e
push 0x43c634
push dword [ebp - 4]
call fcn.004317fa
pop ecx
pop ecx
jmp 0x40d8b4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
push esi
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [ebp - 8]
push 0x402744
push eax
call fcn.004302dc
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x40d7f3
push dword [esi]
push 0x43c60a
push eax
call fcn.004317fa
add esp, 0xc
jmp 0x40d8b3
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
push eax
push 1
mov esi, 0x10000
push esi
push esi
push 1
push ebx
mov ebx, 0x80003
push ebx
push dword [ebp - 8]
call edi
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40d86e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d839
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x40d847
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x12e
push 0x43c08a
call fcn.0043180e
push dword [ebp - 8]
push 0x43c5ee
push dword [ebp - 4]
call fcn.004317fa
add esp, 0xc
jmp 0x40d8b1
cmp dword [ebp + 0xc], 0
je 0x40d931
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push 0x40271c
push eax
call fcn.004302dc
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x40d8d8
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0x43c5be
push eax
call fcn.004317fa
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
pop esi
cmp dword [ebp - 8], ebx
je 0x40d8c1
push dword [ebp - 8]
call fcn.0042ee18
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x40d8d1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
leave
ret 0xc
push 0
push 1
push esi
push esi
push 1
push 0
push ebx
push dword [ebp - 8]
call edi
cmp eax, 0xffffffff
jne 0x40d934
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d901
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x40d90f
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x13a
push 0x43c08a
call fcn.0043180e
push dword [ebp - 8]
push 0x43c5ee
push dword [ebp - 4]
jmp 0x40d8a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x40d8b1
Function at 0x410728
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x410783
push dword [ebp + 0xc]
push 0x43dd1a
push dword [ebp + 8]
call fcn.00432894
mov esi, eax
cmp esi, ebx
jge 0x41075e
push 0x43e0ca
jmp 0x410865
cmp dword [ebp + 0xc], 3
jne 0x410783
push 1
push 0x402b40
push dword [ebp + 8]
call fcn.00432894
mov esi, eax
cmp esi, ebx
jge 0x410789
push 0x43e0a8
jmp 0x410865
cmp dword [ebp + 0xc], 1
je 0x410803
cmp dword [ebp + 0x10], ebx
jne 0x410803
lea eax, [ebp - 4]
push eax
push 0x20006
push 0x402c98
push dword [edi + 0x48]
call fcn.004329fc
mov esi, eax
cmp esi, 0x80070002
je 0x4107ff
cmp esi, 0x80070003
je 0x4107ff
push dword [edi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x4107c9
xor eax, eax
cmp eax, ebx
je 0x41086d
jle 0x4107dd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x4107e8
mov esi, 0x80004005
push esi
push 0x4d7
push 0x43de74
call fcn.0043180e
push 0x43e088
jmp 0x410865
xor esi, esi
jmp 0x41086d
push 0x40268c
push dword [edi + 0x54]
lea eax, [ebp - 8]
push 0x43e076
push eax
call fcn.004302dc
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x410829
push 0x43e044
jmp 0x410865
lea eax, [ebp - 4]
push eax
push 0x20006
push 0x402c98
push dword [edi + 0x48]
call fcn.00432938
mov esi, eax
cmp esi, ebx
jge 0x41084c
push 0x43e02a
jmp 0x410865
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00432fb6
mov esi, eax
cmp esi, ebx
jge 0x41086d
push 0x43e00a
push esi
call fcn.004317fa
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x41087a
push dword [ebp - 8]
call fcn.0042ee18
cmp dword [ebp - 4], ebx
je 0x410888
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41165c
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.00430b5c
mov ebx, eax
cmp ebx, esi
jge 0x4116ae
mov eax, 0x43ea0e
cmp dword [ebp + 8], esi
jne 0x41169d
mov eax, 0x43ea04
push eax
push 0x43e9d8
push ebx
call fcn.004317fa
add esp, 0xc
jmp 0x411718
mov dword [ebp - 0x10], esi
cmp dword [edi + 4], esi
jbe 0x411718
mov dword [ebp + 8], esi
mov esi, dword [edi]
add esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp - 0xc]
call fcn.00430b92
mov ebx, eax
test ebx, ebx
js 0x411709
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.00430b92
mov ebx, eax
test ebx, ebx
js 0x411709
push dword [ebp - 8]
call fcn.004352fc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], 0xc
cmp eax, dword [edi + 4]
jb 0x4116b9
jmp 0x411716
push 0x43e9b2
push ebx
call fcn.004317fa
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x411725
push dword [ebp - 8]
call fcn.0042ee18
cmp dword [ebp - 4], esi
je 0x411732
push dword [ebp - 4]
call fcn.0042ee18
cmp dword [ebp - 0xc], esi
je 0x41173f
push dword [ebp - 0xc]
call fcn.0042ee18
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x412aa6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.00414064
mov esi, eax
cmp esi, ebx
jge 0x412ad4
push 0x43f640
jmp 0x412b4d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x412af6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x412b08
cmp esi, 0x80070003
jne 0x412b17
xor esi, esi
jmp 0x412b17
test al, 0x10
je 0x412b17
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x412b30
push dword [ebp - 4]
push dword [edi]
push 0x43f604
push esi
call fcn.004317fa
add esp, 0x10
jmp 0x412b55
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.004159cc
mov esi, eax
cmp esi, ebx
jge 0x412b55
push 0x43f5ec
push esi
call fcn.004317fa
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x412b62
push dword [ebp - 4]
call fcn.0042ee18
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.00414064
mov esi, eax
test esi, esi
jns 0x412b93
push 0x43f640
jmp 0x412bd8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x412bb5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x412be7
test al, 0x10
je 0x412be2
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.00415a0e
mov esi, eax
test esi, esi
jns 0x412be7
push 0x43f69e
push esi
call fcn.004317fa
pop ecx
pop ecx
jmp 0x412c27
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x412c10
cmp esi, 0x80070003
je 0x412c10
test esi, esi
jns 0x412c27
push dword [ebp - 4]
push dword [edi]
push 0x43f604
push esi
call fcn.004317fa
add esp, 0x10
jmp 0x412c27
push esi
push dword [ebp - 4]
push dword [edi]
push 0x43f662
push 1
call fcn.0043144a
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x412c35
push dword [ebp - 4]
call fcn.0042ee18
mov eax, esi
pop esi
leave
ret 4
Function at 0x412c3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00414064
mov esi, eax
test esi, esi
jns 0x412c69
push 0x43f640
jmp 0x412d02
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x412cc5
cmp eax, 3
je 0x412cc5
test eax, eax
je 0x412ce5
jle 0x412c97
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x412ca2
mov esi, 0x80004005
push esi
push 0x27a
push 0x43f71c
call fcn.0043180e
push dword [edi + 0x14]
push 0x43f6f6
push esi
call fcn.004317fa
add esp, 0xc
jmp 0x412d0a
push dword [ebp - 4]
push dword [edi]
push 0x43f6cc
push 1
call fcn.0043144a
add esp, 0x10
jmp 0x412ce5
and eax, 0x10
cmp al, 0x10
je 0x412ce5
xor ebx, ebx
inc ebx
push 0
mov eax, ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.004159cc
mov esi, eax
test esi, esi
jns 0x412d0a
push 0x43f5ec
push esi
call fcn.004317fa
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x412d18
push dword [ebp - 4]
call fcn.0042ee18
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.00414064
mov esi, eax
test esi, esi
jns 0x412dfb
push 0x43f640
jmp 0x412e67
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412e48
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x412e1d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x412e71
cmp esi, 0x80070003
je 0x412e71
test esi, esi
jns 0x412e87
push dword [ebp - 4]
push dword [edi]
push 0x43f7b8
push esi
call fcn.004317fa
add esp, 0x10
jmp 0x412e87
test al, 0x10
jne 0x412e71
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.00415a0e
mov esi, eax
test esi, esi
jns 0x412e1f
push 0x43f78c
push esi
call fcn.004317fa
pop ecx
pop ecx
jmp 0x412e87
push dword [ebp - 4]
push dword [edi]
push 0x43f6cc
push 1
call fcn.0043144a
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x412e95
push dword [ebp - 4]
call fcn.0042ee18
mov eax, esi
pop esi
leave
ret 4
Function at 0x412e9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 1
cmp dword [edi + 0x24], ebx
je 0x412ec7
mov dword [ebp - 0xc], 0x101
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00414064
mov esi, eax
cmp esi, ebx
jge 0x412ee7
push 0x43f8ec
jmp 0x412feb
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi + 0x18]
call fcn.004329fc
mov esi, eax
cmp esi, ebx
jl 0x412f2f
mov eax, dword [edi + 0x20]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x412fce
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call fcn.00414064
mov esi, eax
cmp esi, ebx
jge 0x412f5e
push 0x43f8cc
jmp 0x412feb
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x412f4b
push 0x43f8a8
push 1
call fcn.0043144a
add esp, 0xc
jmp 0x412fc2
push 0x43f87e
push esi
call fcn.004317fa
add esp, 0xc
jmp 0x412ff3
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
sub ecx, ebx
je 0x412fc7
dec ecx
dec ecx
je 0x412fad
cmp eax, ebx
je 0x412fce
jle 0x412f8b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x412f96
mov esi, 0x80004005
push esi
push 0x30c
push 0x43f71c
call fcn.0043180e
push 0x43f85a
jmp 0x412feb
push dword [ebp - 8]
push dword [ebp - 4]
push 0x43f824
push 1
call fcn.0043144a
add esp, 0x10
mov dword [ebp - 0xc], ebx
jmp 0x412fce
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.004159cc
mov esi, eax
cmp esi, ebx
jge 0x41300a
push 0x43f5ec
push esi
call fcn.004317fa
pop ecx
pop ecx
cmp esi, ebx
jge 0x41300a
push esi
push dword [ebp - 4]
push 0x43f7f0
push 1
call fcn.0043144a
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x413017
push dword [ebp - 4]
call fcn.0042ee18
cmp dword [ebp - 8], ebx
je 0x413024
push dword [ebp - 8]
call fcn.0042ee18
cmp dword [ebp - 0x10], ebx
je 0x413032
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x41b664
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x2c
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00408720
push 0x2c
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00408720
mov esi, dword [ebp + 0x1c]
xor eax, eax
mov ebx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
add esp, 0x18
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], esi
xor esi, esi
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x28]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp + 0x28]
push 0x41b3b4
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 0x2c]
push esi
push esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x41b752
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x41b728
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, esi
jl 0x41b733
mov ebx, 0x80004005
push ebx
push 0x3bd
push 0x442d32
call fcn.0043180e
push 0x443e98
push ebx
call fcn.004317fa
pop ecx
pop ecx
jmp 0x41b799
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x41b464
push dword [ebp + 0xc]
call fcn.0040d53a
mov ebx, eax
cmp ebx, esi
jge 0x41b77c
push 0x443de8
push ebx
call fcn.004317fa
pop ecx
pop ecx
jmp 0x41b792
push edi
call fcn.00419368
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x38
Function at 0x41ba7a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 1
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x41bae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41babf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x41bacd
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x3b
push 0x443ef6
call fcn.0043180e
push 0x443f7a
jmp 0x41bb42
mov esi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x41b8c4
push ebx
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x41bb4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41bb20
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x41bb2e
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x44
push 0x443ef6
call fcn.0043180e
push 0x443f5a
push dword [ebp - 4]
call fcn.004317fa
pop ecx
pop ecx
jmp 0x41bb69
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 8]
mov dword [esi + 0x1e0], eax
mov dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x41bb7c
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x41bb86
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8