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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x43b954
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x43b91d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x4b65
call fcn.0043b9eb
add esp, 0x14
jmp 0x43b94f
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x43b935
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x43b94f
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x43b94f
push 1
push 1
push 0
call fcn.0042ff4d
add esp, 0xc
jmp 0x43b9e7
lea eax, [ebp + 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x43b9df
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x43b9c2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xfffffffa
jmp 0x43b9a8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x25
je 0x43b9c0
push 0
push 0xdcb
call fcn.00436bde
pop ecx
pop ecx
jmp 0x43b99d
jmp 0x43b9dd
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x43b9dd
push 0
push 0
push 0x17ed
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
jmp 0x43b9e7
push 0
call fcn.00436063
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x468576
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x47668f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x489484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004663d4
mov dword [ebp - 0x14], eax
cmp dword [0xa83d30], esi
jne 0x476782
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x47670f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x476862
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x476862
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x476862
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa83d30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa83d34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa83d38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa83d40], eax
test eax, eax
je 0x47677f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa83d3c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4767a7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47679a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4767bc
push 4
pop eax
jmp 0x476864
cmp dword [ebp - 0x14], esi
je 0x4767bc
push dword [0xa83d30]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4767a1
mov eax, dword [0xa83d3c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x47681a
cmp dword [0xa83d40], edi
je 0x47681a
push eax
call ebx
push dword [0xa83d40]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47681a
test eax, eax
je 0x47681a
call ecx
test eax, eax
je 0x47680f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x47680f
test byte [ebp - 8], 1
jne 0x47681a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x47684a
mov eax, dword [0xa83d34]
cmp eax, edi
je 0x476847
push eax
call ebx
test eax, eax
je 0x476847
call eax
mov esi, eax
test esi, esi
je 0x476847
mov eax, dword [0xa83d38]
cmp eax, edi
je 0x476847
push eax
call ebx
test eax, eax
je 0x476847
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa83d30]
call ebx
test eax, eax
je 0x476862
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x476864
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046587b
mov esp, ebp
pop ebp
ret
Function at 0x401581
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
push 5
call fcn.00402fb2
xor esi, esi
add esp, 0xc
inc esi
cmp eax, esi
jge 0x4015b6
push 3
pop eax
jmp 0x40179e
push ebx
push edi
push 0x431fd0
push 0x431dc8
push 0x42670c
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00403cbc
lea eax, [ebp - 0x20c]
mov edi, 0x4327f0
push eax
push 0x426714
push ebx
push edi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x24
test eax, eax
je 0x40160c
push edi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426444
call fcn.00409020
pop ecx
cmp eax, esi
jne 0x401622
push esi
call fcn.0040809b
pop ecx
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x25c]
push 0x3c
push 0
push eax
mov dword [ebp - 0x264], 0x44
call fcn.0040eb20
movsx eax, byte [0x4323e0]
push eax
call fcn.0041146d
add esp, 0x10
cmp eax, 0x48
jne 0x401667
xor eax, eax
mov dword [ebp - 0x238], esi
mov word [ebp - 0x234], ax
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
mov ebx, edx
cmp byte [0x4321d8], cl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
mov eax, 0x4321d8
cmove eax, ecx
push eax
push edx
push 0x20
push edx
push edx
push edx
lea eax, [ebp - 0x20c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x40176b
mov edi, 0x103
mov dword [ebp - 0x210], edi
cmp byte [0x433a74], bl
jne 0x401705
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, esi
jne 0x4016fb
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x401718
call fcn.00405ab0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x433a74], bl
je 0x4016c5
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x401718
push edi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40173e
push eax
push 0x426724
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x20c]
jmp 0x401743
mov eax, 0x4266e8
push eax
push 0x42672c
call fcn.00408df2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x220]
call esi
push dword [ebp - 0x21c]
call esi
xor esi, esi
inc esi
jmp 0x401783
push 0x426488
push 0x4325e8
call fcn.00411539
neg eax
pop ecx
sbb ebx, ebx
pop ecx
and ebx, 0x1b
push 0x426444
call fcn.00409020
pop ecx
cmp eax, esi
jne 0x40179a
push 0
call fcn.0040809b
pop ecx
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d603
leave
ret
Function at 0x4018a4
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 3
call fcn.00402fb2
add esp, 0xc
cmp eax, 2
jge 0x4018d6
push 3
pop eax
jmp 0x401a88
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x4018ed
push eax
call fcn.0040809b
pop ecx
push ebx
push esi
push edi
mov ebx, 0x431fd0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x208
cmp eax, 0xffffffff
je 0x401921
test al, 0x10
je 0x401921
push ebx
call fcn.0040723d
mov dword [esp], 0x431dc8
push esi
push ebx
call fcn.0041149d
add esp, 0xc
push ebx
push 0x426450
push esi
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x40194e
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426464
call fcn.00409020
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
pop ecx
push 0x431fd0
push 0x431dc8
call fcn.00405dd7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a6b
test esi, esi
jle 0x40198b
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401961
cmp edi, 0x1f
jne 0x401a40
push 0x426470
push 0x4321d8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
jne 0x401a37
mov esi, 0x431fd0
lea eax, [ebp - 0x108]
push esi
push 0x426480
push 0x104
push eax
call fcn.00403cbc
add esp, 0x10
lea eax, [ebp - 0x108]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
xor ecx, ecx
test eax, eax
push 4
push 0
lea eax, [ebp - 0x108]
cmove ecx, edi
push eax
mov edi, ecx
call esi
mov byte [0x433a72], 1
test edi, edi
jne 0x401a32
push 0x426464
call fcn.00409020
pop ecx
mov esi, eax
push 0x431fd0
push 0x431dc8
call fcn.00405dd7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a32
test esi, esi
jle 0x401a32
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401a0c
cmp edi, 0x1f
jne 0x401a3c
push 8
pop edi
jmp 0x401a40
test edi, edi
je 0x401a6b
push 0x426488
push 0x4321d8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
jne 0x401a6b
push 0x431fd0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 8
pop edi
cmovne edi, ecx
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401a83
push 0
call fcn.0040809b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d603
leave
ret
Function at 0x401bf1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fb2
add esp, 0xc
cmp eax, 4
jge 0x401c11
push 3
pop eax
leave
ret
push ebx
push esi
push edi
mov ebx, 0x4323e0
mov edi, 0x4327f0
push ebx
push 0x4321d8
push 0x4264d0
push 0x208
push edi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x14
xor esi, esi
test eax, eax
je 0x401c50
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401c67
push eax
call fcn.0040809b
pop ecx
push 0xa
push esi
push ebx
call fcn.00415381
push 0x431dc8
mov dword [ebp - 8], eax
mov edi, esi
call fcn.00403004
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401cef
cmp byte [0x433a70], 0
mov esi, 0xf003f
je 0x401cb1
push 0x4264f0
push 0x4325e8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push esi
xor esi, esi
push esi
push esi
push esi
push 0x431fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4321d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401cf2
push 0xc
pop edi
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401d09
push esi
call fcn.0040809b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fb2
add esp, 0xc
cmp eax, 4
jge 0x401d2f
push 3
pop eax
leave
ret
push esi
push edi
push 0x4323e0
push 0x4321d8
push 0x4264d0
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x14
xor edi, edi
test eax, eax
je 0x401d6c
push esi
push edi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x401d83
push eax
call fcn.0040809b
pop ecx
push ebx
push 0x431dc8
mov esi, edi
call fcn.00403004
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e07
cmp byte [0x433a70], 0
mov edi, 0xf003f
je 0x401dc0
push 0x4264f0
push 0x4325e8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove edi, ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
xor edi, edi
push edi
push edi
push edi
push 0x431fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, 0x4323e0
push ebx
call fcn.00411620
pop ecx
inc eax
push eax
push ebx
push 1
push edi
push 0x4321d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e0a
push 0xb
pop esi
push 0x426444
call fcn.00409020
pop ecx
pop ebx
cmp eax, 1
jne 0x401e22
push edi
call fcn.0040809b
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x402122
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x42669c
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x402168
push esi
push ebx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x42668c
call fcn.004079ee
pop ecx
test eax, eax
jne 0x4022b8
push 0x530
lea eax, [ebp - 0x73c]
push ebx
push eax
call fcn.0040eb20
add esp, 0xc
lea eax, [ebp - 0x744]
mov esi, ebx
push eax
push 0x20019
push ebx
push 0x4266c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022b8
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x402230
lea eax, [ebp - 0x73c]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00407ea6
pop ecx
pop ecx
test al, al
je 0x40221d
push 0x4266dc
lea eax, [ebp - 0x728]
push eax
push 0x4265ec
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402298
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x744]
mov dword [ebp - 0x740], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4021cc
cmp byte [ebp - 0x728], bl
je 0x402294
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x728]
push eax
push 0x4266ec
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
push 0x426670
push 0x426674
lea eax, [ebp - 0x108]
push eax
push 0x42668c
call fcn.004089eb
add esp, 0x24
xor eax, eax
jmp 0x4022bb
push 0x4266e8
push 0x426674
lea eax, [ebp - 0x108]
push eax
push 0x42668c
call fcn.004089eb
add esp, 0x10
jmp 0x402294
push 0x1a
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d603
leave
ret
Function at 0x4022c9
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 2
call fcn.00402fb2
add esp, 0xc
cmp eax, 1
jge 0x4022fb
push 3
pop eax
jmp 0x40246a
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x402312
push eax
call fcn.0040809b
pop ecx
push esi
push edi
mov esi, 0x431dc8
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
call fcn.00411293
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040edb0
add esp, 0x14
test eax, eax
je 0x402344
mov byte [eax + 1], 0
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402447
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cbc
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x402431
lea eax, [ebp - 0x108]
push eax
push 0x4265a0
push 0x208
push 0x4327f0
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x4023d3
push 0x4327f0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426464
call fcn.00409020
mov esi, eax
mov eax, 0x3e8
cmp esi, eax
pop ecx
cmovl esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402431
test esi, esi
jle 0x402420
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402431
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0x64
test esi, esi
jg 0x4023ea
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40235d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x426444
call fcn.00409020
pop ecx
pop edi
pop esi
cmp eax, 1
jne 0x402468
push 0
call fcn.0040809b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d603
leave
ret
Function at 0x402552
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 4
call fcn.00402fb2
add esp, 0xc
cmp eax, 3
jge 0x402570
push 3
pop eax
leave
ret
push ebx
push esi
push edi
push 0x4321d8
push 0x426610
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x4025a8
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x4025bf
push eax
call fcn.0040809b
pop ecx
push 0x431dc8
xor edi, edi
call fcn.00403004
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40262c
cmp byte [0x433a70], 0
mov esi, 0xf003f
je 0x4025fb
push 0x4264f0
push 0x4323e0
call fcn.00411539
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x431fd0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], edi
je 0x40262f
push 0x4321d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40262f
push 0x16
pop edi
push 0x426444
call fcn.00409020
pop ecx
cmp eax, 1
jne 0x402647
push 0
call fcn.0040809b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a97
Capabilities:
Check if file exists
Delete directory
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
inc edi
push edi
call fcn.00402fb2
add esp, 0xc
cmp eax, edi
je 0x402ab9
push 3
pop eax
jmp 0x402b51
push esi
push 0x431dc8
push 0x4265b4
push 0x208
mov esi, 0x4327f0
push esi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
test eax, eax
je 0x402aef
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x426444
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402b05
push edi
call fcn.0040809b
pop ecx
push 0x431dc8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b37
push 0x431dc8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402b37
push 4
push eax
push 0x431dc8
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x14
pop esi
push 0x426444
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402b4e
push 0
call fcn.0040809b
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402b54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
call fcn.00402fb2
xor edi, edi
add esp, 0xc
inc edi
cmp eax, edi
jge 0x402b77
push 3
pop eax
jmp 0x402c04
push 0x426444
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402b8d
push edi
call fcn.0040809b
pop ecx
push ebx
push esi
push 0x4266f8
mov esi, 0x431dc8
xor ebx, ebx
push esi
call fcn.0040eef0
pop ecx
pop ecx
test eax, eax
je 0x402bcf
push 0x426700
push 0x4321d8
call fcn.00411539
pop ecx
pop ecx
test eax, eax
je 0x402bcf
push ebx
push 0x431fd0
push esi
call fcn.0040879f
add esp, 0xc
mov esi, eax
jmp 0x402bea
push edi
push ebx
push 0x431fd0
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1b
cmp eax, 0x20
mov esi, ebx
pop ecx
cmovbe esi, ecx
push 0x426444
call fcn.00409020
pop ecx
cmp eax, edi
jne 0x402c00
push ebx
call fcn.0040809b
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402dae
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 1
call fcn.00402fb2
add esp, 0xc
cmp eax, 1
je 0x402ddd
push 3
pop eax
jmp 0x402e6a
push ebx
push esi
push edi
mov ebx, 0x431dc8
mov edi, 0x4327f0
push ebx
push 0x42662c
push 0x208
push edi
call fcn.00403cbc
mov eax, dword [0x432c10]
add esp, 0x10
xor esi, esi
test eax, eax
je 0x402e17
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x402e2d
inc eax
jmp 0x402e67
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x402e5e
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d603
leave
ret