joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c692
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [esi + 0x144]
lea ebx, [esi + 0x78]
push dword [esi + 0x20]
lea eax, [esi + 0x1f0]
push ebx
push eax
mov dword [ebp - 8], 1
call fcn.0041c36a
mov edi, eax
test edi, edi
jns 0x40c6cf
push 0x43bb08
jmp 0x40c84f
lea eax, [esi + 0xe8]
push ebx
push eax
call fcn.00421464
mov edi, eax
test edi, edi
jns 0x40c6ec
push 0x43bad4
jmp 0x40c84f
cmp dword [esi + 0x268], 1
jne 0x40c740
lea eax, [ebp - 4]
push eax
push 1
lea ebx, [esi + 0x274]
push ebx
call fcn.0040d730
mov edi, eax
test edi, edi
jns 0x40c717
push 0x43ba96
jmp 0x40c84f
push ebx
call fcn.0040d94c
mov edi, eax
test edi, edi
jns 0x40c72d
push 0x43ba68
jmp 0x40c84f
cmp dword [ebp - 4], 0
je 0x40c740
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
push dword [esi + 0x144]
lea eax, [esi + 0x9c]
push dword [esi + 0x20]
lea ebx, [esi + 0x78]
push eax
push ebx
call fcn.00420734
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x40c776
push 0x43ba46
jmp 0x40c84f
cmp dword [ebp - 8], eax
jne 0x40c78e
push 0xe0000035
push 1
call fcn.0040c33a
xor edi, edi
jmp 0x40c855
cmp dword [esi + 0xa8], eax
je 0x40c7a9
cmp dword [esi + 0x20], 2
jle 0x40c7a9
lea ecx, [esi + 0x34]
push ecx
push eax
push dword [ebp + 8]
call fcn.0041f71c
push esi
push dword [ebp + 8]
call fcn.0041ba7a
mov edi, eax
test edi, edi
jns 0x40c7c2
push 0x43b7c4
jmp 0x40c84f
push esi
call fcn.004170d2
mov edi, eax
test edi, edi
jns 0x40c7d5
push 0x43ba28
jmp 0x40c84f
push ebx
push dword [esi + 0x1c]
call fcn.0041d5c0
mov edi, eax
test edi, edi
jns 0x40c7eb
push 0x43ba08
jmp 0x40c84f
push ebx
lea eax, [esi + 0xe8]
push eax
call fcn.00411d84
mov edi, eax
test edi, edi
jns 0x40c805
push 0x43b9e2
jmp 0x40c84f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40c82d
cmp word [eax], 0
je 0x40c82d
push 0
push eax
push 0x402658
push ebx
call fcn.00415a0e
mov edi, eax
test edi, edi
jns 0x40c82d
push 0x43b994
jmp 0x40c84f
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.0040c53c
mov edi, eax
test edi, edi
js 0x40c84a
cmp dword [ebp + 8], 0
jne 0x40c82d
jmp 0x40c857
push 0x43b97e
push edi
call fcn.004314ba
pop ecx
pop ecx
push esi
call fcn.0041b7a2
lea eax, [esi + 0x78]
push eax
call fcn.00416816
cmp dword [esi + 0x284], 0xffffffff
je 0x40c892
cmp dword [esi + 0x268], 1
jne 0x40c87d
mov eax, dword [esi + 0x18]
jmp 0x40c87f
xor eax, eax
push eax
push dword [esi + 0xe4]
lea eax, [esi + 0x274]
push eax
call fcn.0040dc3a
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c8ae
push 0
push 0
push 0x10
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 4], 0
je 0x40c8bd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 4
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 0x43bf08
push ebx
call fcn.004314ba
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 0x43bd4a
call fcn.004314ce
push 0x43bee2
push ebx
call fcn.004314ba
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x40d1a0
push dword [ebp - 8]
call fcn.00431838
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.0043167c
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x40d291
mov esi, 0x8007000e
push esi
push 0x328
push 0x43bd4a
mov dword [ebp - 4], esi
call fcn.004314ce
push 0x43bf72
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 0x43bd4a
call fcn.004314ce
push 0x43bf50
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 0x43bd4a
call fcn.004314ce
push 0x43bf2e
push dword [ebp - 4]
call fcn.004314ba
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.00431838
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 0x43bd4a
call fcn.004314ce
push 0x43c104
jmp 0x40d4f6
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0xff
jbe 0x40d3b2
mov esi, 0x8007000d
push esi
push 0x352
push 0x43bd4a
mov edi, esi
call fcn.004314ce
push 0x43c0d8
push esi
jmp 0x40d4f7
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042e9c4
mov edi, eax
cmp edi, ebx
jge 0x40d3cd
push 0x43c0a4
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 0x43bd4a
call fcn.004314ce
push 0x43c06e
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 0x43bd4a
mov edi, esi
call fcn.004314ce
push 0x43c03e
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 0x43bd4a
call fcn.004314ce
push 0x43c004
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 0x43bd4a
call fcn.004314ce
push 0x43bfcc
push edi
call fcn.004314ba
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40d50b
push dword [ebp - 4]
call fcn.0042ead8
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 0x43bd4a
mov edi, esi
call fcn.004314ce
push 0x43bf98
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 0x43c340
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 0x43bd4a
call fcn.004314ce
push 0x43c2f4
push dword [ebp - 4]
call fcn.004314ba
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.0042ff9c
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x40d7f3
push dword [esi]
push 0x43c2ca
push eax
call fcn.004314ba
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 0x43bd4a
call fcn.004314ce
push dword [ebp - 8]
push 0x43c2ae
push dword [ebp - 4]
call fcn.004314ba
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.0042ff9c
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x40d8d8
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0x43c27e
push eax
call fcn.004314ba
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.0042ead8
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 0x43bd4a
call fcn.004314ce
push dword [ebp - 8]
push 0x43c2ae
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 0x43d9da
push dword [ebp + 8]
call fcn.00432554
mov esi, eax
cmp esi, ebx
jge 0x41075e
push 0x43dd8a
jmp 0x410865
cmp dword [ebp + 0xc], 3
jne 0x410783
push 1
push 0x402b40
push dword [ebp + 8]
call fcn.00432554
mov esi, eax
cmp esi, ebx
jge 0x410789
push 0x43dd68
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.004326bc
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 0x43db34
call fcn.004314ce
push 0x43dd48
jmp 0x410865
xor esi, esi
jmp 0x41086d
push 0x40268c
push dword [edi + 0x54]
lea eax, [ebp - 8]
push 0x43dd36
push eax
call fcn.0042ff9c
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x410829
push 0x43dd04
jmp 0x410865
lea eax, [ebp - 4]
push eax
push 0x20006
push 0x402c98
push dword [edi + 0x48]
call fcn.004325f8
mov esi, eax
cmp esi, ebx
jge 0x41084c
push 0x43dcea
jmp 0x410865
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00432c76
mov esi, eax
cmp esi, ebx
jge 0x41086d
push 0x43dcca
push esi
call fcn.004314ba
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x41087a
push dword [ebp - 8]
call fcn.0042ead8
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.0043081c
mov ebx, eax
cmp ebx, esi
jge 0x4116ae
mov eax, 0x43e6ce
cmp dword [ebp + 8], esi
jne 0x41169d
mov eax, 0x43e6c4
push eax
push 0x43e698
push ebx
call fcn.004314ba
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.00430852
mov ebx, eax
test ebx, ebx
js 0x411709
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.00430852
mov ebx, eax
test ebx, ebx
js 0x411709
push dword [ebp - 8]
call fcn.00434fbe
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 0x43e672
push ebx
call fcn.004314ba
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x411725
push dword [ebp - 8]
call fcn.0042ead8
cmp dword [ebp - 4], esi
je 0x411732
push dword [ebp - 4]
call fcn.0042ead8
cmp dword [ebp - 0xc], esi
je 0x41173f
push dword [ebp - 0xc]
call fcn.0042ead8
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 0x43f300
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 0x43f2c4
push esi
call fcn.004314ba
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 0x43f2ac
push esi
call fcn.004314ba
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x412b62
push dword [ebp - 4]
call fcn.0042ead8
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 0x43f300
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 0x43f35e
push esi
call fcn.004314ba
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 0x43f2c4
push esi
call fcn.004314ba
add esp, 0x10
jmp 0x412c27
push esi
push dword [ebp - 4]
push dword [edi]
push 0x43f322
push 1
call fcn.0043110a
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x412c35
push dword [ebp - 4]
call fcn.0042ead8
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 0x43f300
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 0x43f3dc
call fcn.004314ce
push dword [edi + 0x14]
push 0x43f3b6
push esi
call fcn.004314ba
add esp, 0xc
jmp 0x412d0a
push dword [ebp - 4]
push dword [edi]
push 0x43f38c
push 1
call fcn.0043110a
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 0x43f2ac
push esi
call fcn.004314ba
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x412d18
push dword [ebp - 4]
call fcn.0042ead8
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 0x43f300
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 0x43f478
push esi
call fcn.004314ba
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 0x43f44c
push esi
call fcn.004314ba
pop ecx
pop ecx
jmp 0x412e87
push dword [ebp - 4]
push dword [edi]
push 0x43f38c
push 1
call fcn.0043110a
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x412e95
push dword [ebp - 4]
call fcn.0042ead8
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 0x43f5ac
jmp 0x412feb
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi + 0x18]
call fcn.004326bc
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 0x43f58c
jmp 0x412feb
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x412f4b
push 0x43f568
push 1
call fcn.0043110a
add esp, 0xc
jmp 0x412fc2
push 0x43f53e
push esi
call fcn.004314ba
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 0x43f3dc
call fcn.004314ce
push 0x43f51a
jmp 0x412feb
push dword [ebp - 8]
push dword [ebp - 4]
push 0x43f4e4
push 1
call fcn.0043110a
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 0x43f2ac
push esi
call fcn.004314ba
pop ecx
pop ecx
cmp esi, ebx
jge 0x41300a
push esi
push dword [ebp - 4]
push 0x43f4b0
push 1
call fcn.0043110a
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x413017
push dword [ebp - 4]
call fcn.0042ead8
cmp dword [ebp - 8], ebx
je 0x413024
push dword [ebp - 8]
call fcn.0042ead8
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