joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100095d2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10009810
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000966d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10017bc8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1000966d
cmp eax, 1
je 0x1000968e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000966d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000963a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009669
xor eax, eax
inc eax
jmp 0x100096ad
cmp edi, eax
jae 0x10009671
xor eax, eax
jmp 0x100096ad
cmp eax, esi
jae 0x10009678
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10017bc8]
jmp 0x10009691
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000ab1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000db81
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000ab42
test byte [esp + 8], 2
je 0x1000ab42
call fcn.1000db6f
mov dword [eax], 0xd
call fcn.1000db78
mov dword [eax], 5
jmp 0x1000ab1b
xor eax, eax
ret
Function at 0x1000b22a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000b31a
mov eax, 0x94
call fcn.10009810
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b38f
mov ecx, dword [esi + 0x10]
mov dword [0x10017bc8], ecx
mov eax, dword [esi + 4]
mov dword [0x10017bd4], eax
mov edx, dword [esi + 8]
mov dword [0x10017bd8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10017bcc], esi
je 0x1000b295
or esi, 0x8000
mov dword [0x10017bcc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10017bd0], eax
call fcn.1000b67b
test eax, eax
pop ecx
je 0x1000b38f
call fcn.1000d386
test eax, eax
jne 0x1000b2c2
call fcn.1000b6cc
jmp 0x1000b38f
call fcn.1000f62c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100192d8], eax
call fcn.1000f50a
mov dword [0x10017a5c], eax
call fcn.1000efeb
test eax, eax
jl 0x1000b313
call fcn.1000f468
test eax, eax
jl 0x1000b30e
call fcn.1000f235
test eax, eax
jl 0x1000b30e
push 0
call fcn.1000c2c8
test eax, eax
pop ecx
jne 0x1000b30e
inc dword [0x10017a58]
jmp 0x1000b3a0
call fcn.1000f1e9
call fcn.1000d16f
jmp 0x1000b2b8
test eax, eax
jne 0x1000b34a
cmp dword [0x10017a58], eax
jle 0x1000b38f
dec dword [0x10017a58]
cmp dword [0x10017c04], eax
jne 0x1000b339
call fcn.1000c406
call fcn.1000f1e9
call fcn.1000d16f
call fcn.1000b6cc
jmp 0x1000b3a0
cmp eax, 2
jne 0x1000b393
push 0x8c
push 1
call fcn.1000ef30
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b38f
push esi
push dword [0x10016434]
call dword [0x10017c6c]
test eax, eax
push esi
je 0x1000b389
call fcn.1000d18c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000b3a0
call fcn.10009561
pop ecx
xor eax, eax
jmp 0x1000b3a3
cmp eax, 3
jne 0x1000b3a0
push 0
call fcn.1000d357
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000c332
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10012c48
call fcn.100096b8
push 8
call fcn.1000b630
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10017c08], esi
jne 0x1000c366
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10017c04], esi
mov al, byte [ebp + 0x10]
mov byte [0x10017c00], al
cmp dword [ebp + 0xc], edi
jne 0x1000c3b0
cmp dword [0x100192a8], edi
je 0x1000c3a0
mov eax, dword [0x100192a4]
sub eax, 4
mov dword [0x100192a4], eax
cmp eax, dword [0x100192a8]
jb 0x1000c3a0
mov eax, dword [eax]
cmp eax, edi
je 0x1000c381
call eax
jmp 0x1000c381
push 0x10016038
mov eax, 0x10016030
call fcn.1000c2b0
pop ecx
push 0x10016044
mov eax, 0x1001603c
call fcn.1000c2b0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000c3e1
cmp dword [ebp + 0x10], edi
jne 0x1000c3ef
mov dword [0x10017c08], esi
push dword [ebp + 8]
call fcn.1000c26e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000c3ee
push 8
call fcn.1000b57b
pop ecx
ret
call fcn.100096f3
ret
Function at 0x1000f833
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100162d0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10016b70]
je 0x1000f868
inc eax
cmp eax, 0x13
jb 0x1000f859
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10016b70]
jne 0x1000f98e
mov eax, dword [0x10017a64]
cmp eax, 1
je 0x1000f966
cmp eax, edx
jne 0x1000f898
cmp dword [0x10017a68], 1
je 0x1000f966
cmp ecx, 0xfc
je 0x1000f98e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000f8ce
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000ac60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100099a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000f902
mov eax, edi
push eax
call fcn.100099a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10012c8c
push edi
call fcn.1000ae70
add esp, 0x10
push edi
call fcn.100099a0
push dword [esi + 0x10016b74]
mov ebx, eax
call fcn.100099a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009810
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000ac60
push edi
push ebx
call fcn.1000ac70
push 0x10012c88
push ebx
call fcn.1000ac70
push dword [esi + 0x10016b74]
push ebx
call fcn.1000ac70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000fa7e
add esp, 0x2c
jmp 0x1000f98e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10016b74]
push dword [esi]
call fcn.100099a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000987e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000fa7e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10017dac], ebx
push esi
push edi
jne 0x1000fafe
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000fb39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10017dac], eax
je 0x1000fb39
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10017db0], eax
call esi
cmp dword [0x10017bc8], 2
mov dword [0x10017db4], eax
jne 0x1000fafe
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10017dbc], eax
je 0x1000fafe
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10017db8], eax
mov eax, dword [0x10017db8]
test eax, eax
je 0x1000fb43
call eax
test eax, eax
je 0x1000fb2a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10017dbc]
test eax, eax
je 0x1000fb2a
test byte [ebp - 8], 1
jne 0x1000fb43
cmp dword [0x10017bd4], 4
jb 0x1000fb3d
or byte [ebp + 0x12], 0x20
jmp 0x1000fb62
xor eax, eax
jmp 0x1000fb72
or byte [ebp + 0x12], 4
jmp 0x1000fb62
mov eax, dword [0x10017db0]
test eax, eax
je 0x1000fb62
call eax
mov ebx, eax
test ebx, ebx
je 0x1000fb62
mov eax, dword [0x10017db4]
test eax, eax
je 0x1000fb62
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10017dac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001041f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100162d0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10010450
xor eax, eax
jmp 0x100105d9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10017f40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001048c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10010de7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10010567
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100105a5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x100104f0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100104e1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x100104c1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010530
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10010539
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100104b2
jmp 0x1001053b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100105d4
cmp dword [ebp - 0x6c], edi
je 0x100105a5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001059a
call fcn.1000db6f
mov dword [eax], 9
call fcn.1000db78
mov dword [eax], esi
jmp 0x100105cf
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001058f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001053b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001053b
push dword [ebp - 0x6c]
call fcn.1000db81
pop ecx
jmp 0x100105cf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100105bd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100105bd
xor eax, eax
jmp 0x100105d7
call fcn.1000db6f
mov dword [eax], 0x1c
call fcn.1000db78
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100105d7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000987e
add ebp, 0x3a0
leave
ret
Function at 0x432002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x5262a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcf000]
mov dword [edi + 0xcf710], 0x35db6f68
push edi
or ebp, 0xffffffff
jmp 0x5262ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5262d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5262c0
mov eax, 1
add ebx, ebx
jne 0x5262e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5262f4
jne 0x526313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526313
dec eax
add ebx, ebx
jne 0x526300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5262d8
add ebx, ebx
jne 0x52630f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x526365
xor ecx, ecx
sub eax, 3
jb 0x52632b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52639a
sar eax, 1
mov ebp, eax
jmp 0x526336
add ebx, ebx
jne 0x526336
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526304
inc ecx
add ebx, ebx
jne 0x526344
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526304
add ebx, ebx
jne 0x526351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x526346
jne 0x526362
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x526346
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x526384
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x526376
jmp 0x5262c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x526384
add edi, ecx
jmp 0x5262c6
pop esi
mov edi, esi
mov ecx, 0x5707
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5263a2
cmp byte [edi], 0x19
jne 0x5263a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5263a7
lea edi, [esi + 0x123000]
mov eax, dword [edi]
or eax, eax
je 0x526416
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x126e90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x126f80]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5263d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x126f84]
or eax, eax
je 0x526410
mov dword [ebx], eax
add ebx, 4
jmp 0x5263f1
call dword [esi + 0x126f94]
mov ebp, dword [esi + 0x126f88]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52644a
sub esp, 0xffffff80
jmp 0x4cd890
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x401805
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401844
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401844
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401844
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401844
cmp dword [ecx + 0x74], 0xe
jbe 0x401844
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402e8c
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004065d1
xor ebx, ebx
cmp eax, ebx
jne 0x402f6f
test byte [ebp + 0x10], 2
je 0x402eed
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402f54
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402f29
test edi, edi
jne 0x402f54
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402e8c
test eax, eax
jne 0x402f32
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00406b73
test eax, eax
jne 0x402f64
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402f6f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f6f
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405da7
Capabilities:
Create process on windows

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

Function at 0x405dea
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004062b9
mov edi, eax
cmp edi, 0xffffffff
je 0x405ec9
test byte [esp + 0x10], 1
push esi
je 0x405eab
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405eb1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405eba
xor eax, eax
inc eax
jmp 0x405ecb
test byte [esp + 0x10], 4
jne 0x405ec9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405ed0
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.004061cb
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405f0f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x425448], eax
jmp 0x406099
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405f29
test eax, eax
je 0x406047
test bl, 2
je 0x406047
mov esi, 0x422948
push edi
push esi
call fcn.0040674b
cmp dword [ebp + 8], 0
je 0x405f48
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405f4e
push edi
call fcn.004060e7
cmp byte [edi], 0
jne 0x405f5c
cmp byte [0x422948], 0x5c
jne 0x405f67
push 0x40b014
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 0x40603d
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004060cb
cmp byte [eax], 0
je 0x405fad
cmp byte [ebp - 0x1c], 0
je 0x405fad
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405fc3
mov al, byte [esi + 1]
test al, al
je 0x40601c
cmp al, 0x2e
jne 0x405fc3
cmp byte [esi + 2], 0
je 0x40601c
push esi
push ebx
call fcn.0040674b
test byte [ebp - 0x14c], 0x10
je 0x405fe8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40601c
push dword [ebp + 0xc]
push edi
call fcn.00405ed0
jmp 0x40601c
push dword [ebp - 4]
push edi
call fcn.00405e88
test eax, eax
jne 0x406014
cmp dword [ebp - 4], eax
je 0x40600c
push edi
push 0xfffffffffffffff1
call fcn.0040582f
push 0
push edi
call fcn.00406524
jmp 0x40601c
inc dword [0x425448]
jmp 0x40601c
push edi
push 0xfffffffffffffff2
call fcn.0040582f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f8b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406047
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406099
cmp dword [ebp - 0xc], esi
jne 0x40605b
inc dword [0x425448]
jmp 0x406099
push edi
call fcn.00406ade
test eax, eax
je 0x406099
push edi
call fcn.004060a0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405e88
test eax, eax
jne 0x406091
cmp dword [ebp - 4], esi
je 0x406053
push edi
push 0xfffffffffffffff1
call fcn.0040582f
push esi
push edi
call fcn.00406524
jmp 0x406099
push edi
push 0xffffffffffffffe5
call fcn.0040582f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4061cb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422d48
push esi
call fcn.0040674b
push esi
call fcn.00406176
mov edi, eax
test edi, edi
jne 0x4061ec
xor eax, eax
jmp 0x40623e
push edi
call fcn.00406a45
test byte [0x4253bc], 0x80
je 0x406205
mov al, byte [edi]
test al, al
je 0x4061e8
cmp al, 0x5c
je 0x4061e8
sub edi, esi
jmp 0x40621d
call fcn.00406ade
test eax, eax
je 0x406217
test byte [eax], 0x10
je 0x4061e8
push esi
call fcn.004060e7
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x406209
call fcn.004060a0
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 0x4062b9
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 0x4062d8
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 0x4062de
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 0x40630d
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 [0x40b3f4]
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 0x406352
test edi, edi
jne 0x406318
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40634c