joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf6a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x40c02d
cmp word [eax], bx
je 0x40c02d
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebx
jne 0x40bfe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40bfbb
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x40bfc6
mov esi, 0x80004005
push esi
push 0x1f1
push 0x43b640
call fcn.00431468
push 0x43b624
push esi
call fcn.00431454
pop ecx
pop ecx
jmp 0x40c08a
xor esi, esi
cmp dword [ebp - 0x10], ebx
jle 0x40c02d
mov eax, dword [edi + esi*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x40bfff
cmp ecx, 0x2f
jne 0x40c01b
push 0xffffffffffffffff
push 0x40268c
push 0xffffffffffffffff
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40c027
push dword [edi + esi*4]
lea eax, [ebp - 0xc]
push eax
call fcn.0042ff62
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x40bfef
push ebx
lea eax, [ebp - 4]
push eax
call fcn.004304c2
mov esi, eax
cmp esi, ebx
jge 0x40c04c
push 0x43b600
push esi
call fcn.00431454
pop ecx
pop ecx
jmp 0x40c07f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x40c058
mov eax, 0x43b5fe
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.0042e7ca
mov esi, eax
cmp esi, ebx
jge 0x40c07f
push dword [ebp - 4]
push 0x43b5c8
push esi
call fcn.00431454
add esp, 0xc
cmp edi, ebx
je 0x40c08a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x40c09b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x40c0a8
push dword [ebp - 0xc]
call fcn.0042ea70
cmp dword [ebp - 4], ebx
je 0x40c0b5
push dword [ebp - 4]
call fcn.0042ea70
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40c350
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [esi + 0x268], 2
push ebx
push edi
jne 0x40c3b6
lea ebx, [esi + 0x278]
lea eax, [esi + 0x274]
push ebx
push eax
call fcn.0040cd62
mov edi, eax
test edi, edi
jns 0x40c38d
push 0x43b854
jmp 0x40c4fc
push dword [esi + 0x2a8]
push dword [ebx]
push dword [esi + 0x274]
push dword [esi + 0x2c]
push dword [ebp + 0xc]
call fcn.0040cea2
mov edi, eax
test edi, edi
jns 0x40c3b6
push 0x43b82e
jmp 0x40c4fc
push 1
lea eax, [esi + 0x274]
push eax
call fcn.0040dd34
mov edi, eax
test edi, edi
jns 0x40c3d4
push 0x43b804
jmp 0x40c4fc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x26c], eax
cmp eax, 0xffffffff
jne 0x40c41e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40c3f9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x40c404
mov edi, 0x80004005
push edi
push 0x1a4
push 0x43b640
call fcn.00431468
push 0x43b7ce
jmp 0x40c4fc
push dword [esi + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40c468
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40c443
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x40c44e
mov edi, 0x80004005
push edi
push 0x1a9
push 0x43b640
call fcn.00431468
push 0x43b78a
jmp 0x40c4fc
push esi
push dword [ebp + 8]
call fcn.0041ba7a
mov edi, eax
test edi, edi
jns 0x40c47e
push 0x43b764
jmp 0x40c4fc
push 1
call fcn.004320f0
push esi
push 0x40c106
call fcn.00430b32
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0xe4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xa8]
push eax
lea eax, [esi + 0xe8]
push eax
lea eax, [esi + 0x78]
push eax
lea eax, [esi + 0x1b0]
push eax
lea eax, [esi + 0x198]
push eax
lea eax, [esi + 0x1b8]
push eax
lea eax, [esi + 0x1a0]
push eax
push dword [esi + 0x288]
push dword [esi + 0x284]
push dword [esi + 0x26c]
call fcn.0041b664
push 0
push 0
mov edi, eax
call fcn.00430b32
test edi, edi
jns 0x40c504
push 0x43b736
push edi
call fcn.00431454
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
call fcn.00430b32
push esi
call fcn.0041b7a2
cmp dword [ebp - 8], ebx
je 0x40c51d
call fcn.00419348
cmp dword [ebp - 4], ebx
je 0x40c534
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 8
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 0x43bea8
push ebx
call fcn.00431454
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 0x43bcea
call fcn.00431468
push 0x43be82
push ebx
call fcn.00431454
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x40d1a0
push dword [ebp - 8]
call fcn.004317d2
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.00431616
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x40d291
mov esi, 0x8007000e
push esi
push 0x328
push 0x43bcea
mov dword [ebp - 4], esi
call fcn.00431468
push 0x43bf12
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 0x43bcea
call fcn.00431468
push 0x43bef0
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 0x43bcea
call fcn.00431468
push 0x43bece
push dword [ebp - 4]
call fcn.00431454
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.004317d2
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 0x43bcea
call fcn.00431468
push 0x43c0a4
jmp 0x40d4f6
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0xff
jbe 0x40d3b2
mov esi, 0x8007000d
push esi
push 0x352
push 0x43bcea
mov edi, esi
call fcn.00431468
push 0x43c078
push esi
jmp 0x40d4f7
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042e95c
mov edi, eax
cmp edi, ebx
jge 0x40d3cd
push 0x43c044
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 0x43bcea
call fcn.00431468
push 0x43c00e
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 0x43bcea
mov edi, esi
call fcn.00431468
push 0x43bfde
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 0x43bcea
call fcn.00431468
push 0x43bfa4
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 0x43bcea
call fcn.00431468
push 0x43bf6c
push edi
call fcn.00431454
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40d50b
push dword [ebp - 4]
call fcn.0042ea70
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 0x43bcea
mov edi, esi
call fcn.00431468
push 0x43bf38
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 0x43c2e0
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 0x43bcea
call fcn.00431468
push 0x43c294
push dword [ebp - 4]
call fcn.00431454
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.0042ff34
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x40d7f3
push dword [esi]
push 0x43c26a
push eax
call fcn.00431454
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 0x43bcea
call fcn.00431468
push dword [ebp - 8]
push 0x43c24e
push dword [ebp - 4]
call fcn.00431454
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.0042ff34
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x40d8d8
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0x43c21e
push eax
call fcn.00431454
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.0042ea70
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 0x43bcea
call fcn.00431468
push dword [ebp - 8]
push 0x43c24e
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 0x40e75e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fimul word [ebp + 0x5d88e845]
call 0xe99e6ee0
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040e32f
push eax
push esi
push dword [ebp + 8]
call fcn.0040e2e4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040e32f
push eax
push esi
push dword [ebp + 8]
call fcn.0040e2e4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x40e7ba
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040e32f
push eax
push esi
push dword [ebp + 8]
call fcn.0040e2e4
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040e31f
rol dword [ecx], 1
mov al, byte [0x7c9d882f]
invalid
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 0x43d97a
push dword [ebp + 8]
call fcn.004324ee
mov esi, eax
cmp esi, ebx
jge 0x41075e
push 0x43dd2a
jmp 0x410865
cmp dword [ebp + 0xc], 3
jne 0x410783
push 1
push 0x402b40
push dword [ebp + 8]
call fcn.004324ee
mov esi, eax
cmp esi, ebx
jge 0x410789
push 0x43dd08
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.00432656
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 0x43dad4
call fcn.00431468
push 0x43dce8
jmp 0x410865
xor esi, esi
jmp 0x41086d
push 0x40268c
push dword [edi + 0x54]
lea eax, [ebp - 8]
push 0x43dcd6
push eax
call fcn.0042ff34
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x410829
push 0x43dca4
jmp 0x410865
lea eax, [ebp - 4]
push eax
push 0x20006
push 0x402c98
push dword [edi + 0x48]
call fcn.00432592
mov esi, eax
cmp esi, ebx
jge 0x41084c
push 0x43dc8a
jmp 0x410865
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00432c10
mov esi, eax
cmp esi, ebx
jge 0x41086d
push 0x43dc6a
push esi
call fcn.00431454
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x41087a
push dword [ebp - 8]
call fcn.0042ea70
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.004307b4
mov ebx, eax
cmp ebx, esi
jge 0x4116ae
mov eax, 0x43e66e
cmp dword [ebp + 8], esi
jne 0x41169d
mov eax, 0x43e664
push eax
push 0x43e638
push ebx
call fcn.00431454
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.004307ea
mov ebx, eax
test ebx, ebx
js 0x411709
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.004307ea
mov ebx, eax
test ebx, ebx
js 0x411709
push dword [ebp - 8]
call fcn.00434f56
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 0x43e612
push ebx
call fcn.00431454
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x411725
push dword [ebp - 8]
call fcn.0042ea70
cmp dword [ebp - 4], esi
je 0x411732
push dword [ebp - 4]
call fcn.0042ea70
cmp dword [ebp - 0xc], esi
je 0x41173f
push dword [ebp - 0xc]
call fcn.0042ea70
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 0x43f2a0
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 0x43f264
push esi
call fcn.00431454
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 0x43f24c
push esi
call fcn.00431454
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x412b62
push dword [ebp - 4]
call fcn.0042ea70
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 0x43f2a0
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 0x43f2fe
push esi
call fcn.00431454
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 0x43f264
push esi
call fcn.00431454
add esp, 0x10
jmp 0x412c27
push esi
push dword [ebp - 4]
push dword [edi]
push 0x43f2c2
push 1
call fcn.004310a4
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x412c35
push dword [ebp - 4]
call fcn.0042ea70
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 0x43f2a0
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 0x43f37c
call fcn.00431468
push dword [edi + 0x14]
push 0x43f356
push esi
call fcn.00431454
add esp, 0xc
jmp 0x412d0a
push dword [ebp - 4]
push dword [edi]
push 0x43f32c
push 1
call fcn.004310a4
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 0x43f24c
push esi
call fcn.00431454
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x412d18
push dword [ebp - 4]
call fcn.0042ea70
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 0x43f2a0
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 0x43f418
push esi
call fcn.00431454
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 0x43f3ec
push esi
call fcn.00431454
pop ecx
pop ecx
jmp 0x412e87
push dword [ebp - 4]
push dword [edi]
push 0x43f32c
push 1
call fcn.004310a4
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x412e95
push dword [ebp - 4]
call fcn.0042ea70
mov eax, esi
pop esi
leave
ret 4