joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006630
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x1000664b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jge 0x100066ad
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
shr edx, 1
mov eax, dword [ebp - 0xc]
and eax, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor edx, dword [eax + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [eax + ecx*4 + 4], edx
jmp 0x10006642
jmp 0x100066b8
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x26f
jge 0x1000671c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
shr eax, 1
mov ecx, dword [ebp - 0x10]
and ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor eax, dword [ecx + edx*4 - 0x388]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + edx*4 + 4], eax
jmp 0x100066af
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
and eax, 0x7fffffff
or ecx, eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp - 8]
and edx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
mov eax, dword [ebp - 0x14]
xor ecx, dword [eax + 0x634]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [eax + edx*4 + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret

Function at 0x10006780
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x270
jmp 0x1000679b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jge 0x100067fd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp - 8]
and eax, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor edx, dword [eax + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [eax + ecx*4 + 4], edx
jmp 0x10006792
mov esp, ebp
pop ebp
ret
Function at 0x10008790
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x100087cf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x100088eb
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x1000885c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x10008857
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10008830
xor eax, eax
jmp 0x100088f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.101050d0
add esp, 0xc
jmp 0x100087bd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10008770
add esp, 8
test eax, eax
jne 0x1000887d
xor eax, eax
jmp 0x100088f0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100088b4
xor eax, eax
jmp 0x100088f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10105860
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x100087bd
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1001cb77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1001cbbe
call fcn.1000baad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001cbbe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1001cbda
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001c677
mov esi, eax
test edi, edi
je 0x1001cbd8
test ebx, ebx
je 0x1001cbd8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001cfb9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101234a6
call fcn.10106cad
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x1001cfde
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1001d030
call fcn.1001031c
push eax
lea ecx, [ebp - 0x10]
call fcn.1000a57b
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10106b16
push eax
call fcn.10009578
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10009e13
mov eax, esi
call fcn.10106d85
ret 8

Function at 0x10048ca4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10048948
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10048cee
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000d443
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000d414
jmp 0x10048cf9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000f623
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10048cff
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.1001cc83
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10048d3c
call fcn.10048948
mov dword [esi + 0xc], 1
jmp 0x10048d41
call fcn.10048948
cmp dword [esi], 0
je 0x10048d8a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10048d62
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000d443
jmp 0x10048d74
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.1000a72d
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000d414
jmp 0x10048dae
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10048dae
push dword [esi]
push dword [ebp + 8]
call fcn.1000f623
pop esi
pop ebp
ret 0xc

Function at 0x10074778
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.1000baad
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100747b1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.100743b5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1007480f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x10074833
cmp dword [edi + 0x74], 0
jne 0x10074833
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.1000baad
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.100747d0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1007afe4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1007affe
call fcn.1000baad
mov esi, dword [eax + 0xc]
push dword [0x101881f8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1007b01c
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1007b014
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1007b049
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1007b016
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1007af0f
mov esi, eax
jmp 0x1007b03b

Function at 0x100c8ff6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100ff14d
call fcn.1000b45e
cmp dword [eax + 0x14], 0
jne 0x100c9013
mov ecx, esi
pop esi
jmp fcn.100c8afb
pop esi
ret

Function at 0x100cc873
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.10016f3e
call fcn.1000b45e
cmp dword [eax + 0x14], 0
jne 0x100cc890
mov ecx, esi
pop esi
jmp fcn.100cc246
pop esi
ret

Function at 0x100def4f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100def67
mov edi, dword [esi + 0xc]
jmp 0x100defa7
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100def80
call fcn.1000d831
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100def95
call fcn.1000d831
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100defa7
call fcn.1000d831
call fcn.1000baad
cmp dword [eax + 0x3c], 0
je 0x100defbc
push edi
mov ecx, ebx
call fcn.100ddd67
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100dee69
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100defda
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100defe6
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10104f34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10182624]
jne 0x10104f3e
repz ret
jmp fcn.1010c89c
Function at 0x10118b53
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10182624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1010c296
and dword [ebp - 0x14], 0
cmp dword [0x1018a9d0], 0
mov dword [ebp - 0x18], eax
jne 0x10118c06
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10118cae
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1015cdb4
push ebx
call edi
test eax, eax
je 0x10118cae
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1015cda4
push ebx
mov dword [0x1018a9d0], eax
call edi
push eax
call esi
push 0x1015cd90
push ebx
mov dword [0x1018a9d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1018a9d8], eax
call edi
push eax
call esi
mov dword [0x1018a9e0], eax
test eax, eax
je 0x10118c06
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1018a9dc], eax
mov eax, dword [0x1018a9dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10118c5f
cmp dword [0x1018a9e0], ecx
je 0x10118c5f
push eax
call esi
push dword [0x1018a9e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10118c5f
test ebx, ebx
je 0x10118c5f
call edi
test eax, eax
je 0x10118c56
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10118c56
test byte [ebp - 8], 1
jne 0x10118c5f
or dword [ebp + 0x10], 0x200000
jmp 0x10118c92
mov eax, dword [0x1018a9d4]
cmp eax, dword [ebp - 0x18]
je 0x10118c92
push eax
call esi
test eax, eax
je 0x10118c92
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10118c92
mov eax, dword [0x1018a9d8]
cmp eax, dword [ebp - 0x18]
je 0x10118c92
push eax
call esi
test eax, eax
je 0x10118c92
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1018a9d0]
call esi
test eax, eax
je 0x10118cae
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10118cb0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10104f34
leave
ret
Function at 0x402a3f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42e450]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a90
cmp dword [ebp + 0x10], ebx
jne 0x402ac7
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3f
test eax, eax
jne 0x402aa2
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a77
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ebe
cmp eax, ebx
je 0x402ada
push ebx
push dword [0x42e450]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e450], ebx
jne 0x402ad0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad0
jmp 0x402ad3
Function at 0x405346
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b028], 0x44
push eax
xor eax, eax
push 0x42b028
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405381
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40540b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057ff
mov edi, eax
cmp edi, 0xffffffff
je 0x40544c
test byte [esp + 0x10], 1
push esi
je 0x40542e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405434
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40543d
xor eax, eax
inc eax
jmp 0x40544e
test byte [esp + 0x10], 4
jne 0x40544c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405453
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405711
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405492
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e428], eax
jmp 0x40561c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054ac
test eax, eax
je 0x4055ca
test bl, 2
je 0x4055ca
mov esi, 0x42a828
push edi
push esi
call fcn.00405b93
cmp dword [ebp + 8], 0
je 0x4054cb
push 0x409360
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054d1
push edi
call fcn.0040566a
cmp byte [edi], 0
jne 0x4054df
cmp byte [0x42a828], 0x5c
jne 0x4054ea
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055c0
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040564e
cmp byte [eax], 0
je 0x405530
cmp byte [ebp - 0x1c], 0
je 0x405530
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405546
mov al, byte [esi + 1]
test al, al
je 0x40559f
cmp al, 0x2e
jne 0x405546
cmp byte [esi + 2], 0
je 0x40559f
push esi
push ebx
call fcn.00405b93
test byte [ebp - 0x14c], 0x10
je 0x40556b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40559f
push dword [ebp + 0xc]
push edi
call fcn.00405453
jmp 0x40559f
push dword [ebp - 4]
push edi
call fcn.0040540b
test eax, eax
jne 0x405597
cmp dword [ebp - 4], eax
je 0x40558f
push edi
push 0xfffffffffffffff1
call fcn.00404e7e
push 0
push edi
call fcn.00405a47
jmp 0x40559f
inc dword [0x42e428]
jmp 0x40559f
push edi
push 0xfffffffffffffff2
call fcn.00404e7e
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40550e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055ca
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40561c
cmp dword [ebp - 0xc], esi
jne 0x4055de
inc dword [0x42e428]
jmp 0x40561c
push edi
call fcn.00405e97
test eax, eax
je 0x40561c
push edi
call fcn.00405623
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040540b
test eax, eax
jne 0x405614
cmp dword [ebp - 4], esi
je 0x4055d6
push edi
push 0xfffffffffffffff1
call fcn.00404e7e
push esi
push edi
call fcn.00405a47
jmp 0x40561c
push edi
push 0xffffffffffffffe5
call fcn.00404e7e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405711
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac28
push esi
call fcn.00405b93
push esi
call fcn.004056bc
mov edi, eax
test edi, edi
jne 0x405732
xor eax, eax
jmp 0x405784
push edi
call fcn.00405dfe
test byte [0x42e3b8], 0x80
je 0x40574b
mov al, byte [edi]
test al, al
je 0x40572e
cmp al, 0x5c
je 0x40572e
sub edi, esi
jmp 0x405763
call fcn.00405e97
test eax, eax
je 0x40575d
test byte [eax], 0x10
je 0x40572e
push esi
call fcn.0040566a
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40574f
call fcn.00405623
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057ff
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40581e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405824
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405853
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405898
test edi, edi
jne 0x40585e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405892