joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404722
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402aa4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40470c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404729
lea eax, [ebp - 0x10]
call fcn.00403a20
ret

Function at 0x4066f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406729
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b10
jmp 0x406732
mov eax, ebx
mov edx, esi
call fcn.00403a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40673c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40675d
mov al, byte [esp]
jmp 0x40675f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407894
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4078f8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403c68
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405a40
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4078ff
lea eax, [ebp - 0xc]
call fcn.00403a20
ret

Function at 0x408520
Capabilities:
Get mac address on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov edi, eax
mov eax, ebp
call fcn.00403a20
mov dword [esp + 4], 0x1400
mov eax, dword [esp + 4]
call fcn.00402864
mov esi, eax
lea eax, [esp + 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x408569
mov eax, esi
call fcn.00402894
mov eax, dword [esp + 4]
call fcn.00402864
mov esi, eax
jmp 0x408578
test eax, eax
je 0x408578
push eax
call sub.kernel32.dll_SetLastError
call fcn.00407e70
mov dword [esp], esi
xor ebx, ebx
jmp 0x408588
inc ebx
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp], eax
cmp dword [esp], 0
je 0x408592
cmp edi, ebx
jne 0x40857f
inc edi
jne 0x4085a0
mov edx, ebp
mov eax, ebx
call fcn.0040592c
jmp 0x4085be
cmp dword [esp], 0
je 0x4085be
mov ecx, ebp
mov eax, dword [esp]
mov edx, dword [eax + 0x190]
mov eax, dword [esp]
add eax, 0x194
call fcn.0040847c
mov eax, esi
call fcn.00402894
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xae87ad
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae87ad
ret
Function at 0x4014f2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401587
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401544
cmp dword [ebp + 0x10], ebx
jne 0x40157b
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.004014f2
test eax, eax
jne 0x401556
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40152b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405b48
cmp eax, ebx
je 0x40158e
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401587
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 [0x423cb0], ebx
jne 0x401584
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401584
jmp 0x401587
Function at 0x402df3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad7c]
sub esi, dword [0x41ed88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402f51
push dword [0x41ed84]
call fcn.00402ddc
push ebx
push ebx
push dword [0x41ed88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad78], esi
mov dword [0x40acec], ebx
mov ebp, 0x412d78
mov eax, dword [0x41ed80]
sub eax, dword [0x41ed84]
mov edi, 0x4000
cmp eax, edi
jg 0x402e68
mov edi, eax
push edi
mov esi, 0x41ad80
push esi
call fcn.00402daa
test eax, eax
je 0x402f63
add dword [0x41ed84], edi
mov dword [0x412d08], esi
mov dword [0x412d0c], edi
cmp dword [0x423bcc], ebx
je 0x402ebf
cmp dword [0x423ca0], ebx
jne 0x402ebf
mov eax, dword [0x41ad78]
sub eax, dword [0x41ad7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed88]
mov dword [0x40acec], eax
call fcn.00402d0b
pop ecx
mov ecx, 0x412cf0
mov dword [0x412d10], ebp
mov dword [0x412d14], 0x8000
call fcn.0040632e
test eax, eax
jl 0x402f68
mov esi, dword [0x412d10]
sub esi, ebp
je 0x402f1d
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f6d
cmp esi, dword [esp + 0x10]
jne 0x402f6d
add dword [0x41ed88], esi
cmp dword [0x412d0c], ebx
jne 0x402e8e
jmp 0x402f29
cmp dword [0x412d0c], ebx
jne 0x402f68
cmp edi, ebx
je 0x402f68
mov eax, dword [0x41ad7c]
mov ecx, eax
sub ecx, dword [0x41ed88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402e52
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402d0b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402f5b
push 0xfffffffffffffffd
pop eax
jmp 0x402f5b
push 0xfffffffffffffffe
jmp 0x402f6a
Function at 0x402f71
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f9d
mov ecx, dword [0x423c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41ad7c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402df3
cmp eax, edi
jl 0x403096
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403092
cmp dword [ebp - 4], esi
jne 0x403092
push dword [ebp + 8]
add dword [0x41ad7c], esi
call fcn.00402df3
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403095
cmp dword [ebp + 0x10], edi
jne 0x403061
cmp dword [ebp + 8], edi
jle 0x40308d
mov esi, 0x41ad80
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403011
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403092
cmp edi, dword [ebp - 4]
jne 0x403092
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40305d
cmp dword [ebp + 0x14], edi
jne 0x40305d
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad7c], eax
cmp dword [ebp + 8], 0
jg 0x403004
jmp 0x40308d
push 0xfffffffffffffffe
jmp 0x403094
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40306c
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403092
mov eax, dword [ebp - 4]
add dword [0x41ad7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403095
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x404a63
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
push esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x404a9a
push str.CommandLine_Failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x404b40
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jle 0x404b37
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push edi
mov ebx, 0xfde9
mov edi, 0x3e8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + ecx*4]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 0x14], eax
push ecx
push ebx
call esi
cmp eax, edi
jge 0x404b17
xor eax, eax
push eax
push eax
push edi
lea ecx, [ebp - 0x3fc]
push ecx
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [ecx]
push eax
push ebx
call esi
cmp dword [ebp - 8], 0
jne 0x404b11
push dword [ebp + 0xc]
lea eax, [ebp - 0x3fc]
push eax
call fcn.00404a1c
pop ecx
pop ecx
test eax, eax
je 0x404b17
mov dword [ebp - 8], 1
jmp 0x404b17
cmp dword [ebp - 8], 1
je 0x404b24
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x404ab8
jmp 0x404b35
lea eax, [ebp - 0x3fc]
push eax
call fcn.004059dc
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
leave
ret

Function at 0x404b43
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x423be8]
push edi
mov edi, dword [0x423bec]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or dword [0x423cb8], eax
push str.install_thread
call ebp
push str._updateprogresshandle
push 0x4233a0
mov dword [0x4233a0], ebx
mov dword [0x4233a4], ebx
mov dword [0x42338c], ebx
call fcn.00404a63
pop ecx
pop ecx
cmp dword [0x4233a0], ebx
je 0x404bb3
push str.hUpdateProgressbar___NULL
call ebp
push 4
mov dword [0x4233b8], ebx
call fcn.00403e2f
mov dword [0x4233b0], eax
push str._updatestatichandle
push 0x4233a4
call fcn.00404a63
pop ecx
pop ecx
push ebx
call fcn.00403874
cmp edi, ebx
je 0x404c12
add esi, 0x18
dec edi
test byte [esi - 0x10], 1
je 0x404c00
push str.PPLiveOnline
push esi
call fcn.00404a1c
pop ecx
neg eax
pop ecx
push dword [esp + 0x14]
sbb eax, eax
neg eax
mov dword [0x42338c], eax
push dword [esi - 0xc]
call fcn.00401398
test eax, eax
jne 0x404c0c
add esi, 0x418
cmp edi, ebx
jne 0x404bd1
jmp 0x404c12
inc dword [0x423c8c]
push 0x404
call fcn.00403874
call dword [sym.imp.ole32.dll_OleUninitialize]
push str.install_thread_finish
call ebp
mov eax, dword [0x423c8c]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x405733
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058d2
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4058d5
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405904
Capabilities:
Get common file path

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

Function at 0x40594c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059bd
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059ac
cmp dword [ebp + 0x14], 1
je 0x4059ae
cmp dword [ebp + 0x14], 2
je 0x4059ae
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c06
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.00405a65
push esi
call fcn.0040583e
mov edi, eax
test edi, edi
jne 0x405c27
xor eax, eax
jmp 0x405c7f
push edi
call fcn.00405a87
test byte [0x423c28], 0x80
je 0x405c40
mov al, byte [edi]
test al, al
je 0x405c23
cmp al, 0x5c
je 0x405c23
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405c60
push esi
call fcn.00405b21
test eax, eax
je 0x405c5a
test byte [eax], 0x10
je 0x405c84
push esi
call fcn.00405bdf
push esi
call ebx
cmp eax, edi
jg 0x405c4b
push esi
call fcn.00405bb2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405c7e
Function at 0x405f38
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405b48
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405f5c
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406095
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
test esi, esi
je 0x405fa0
push 1
push 0
push esi
call fcn.004058d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40609b
cmp eax, edi
jg 0x40609b
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40609b
cmp eax, edi
jg 0x40609b
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405cde
push 4
push 0xc0000000
push esi
call fcn.004058d5
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x406095
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40608e
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40608e
cmp edi, dword [esp + 0x18]
jne 0x40608e
push str._Rename__r_n
push esi
call fcn.00405c88
test eax, eax
jne 0x4060a2
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405a65
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.00405891
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4076d0
add eax, 0xa
push eax
call fcn.00405c88
test eax, eax
je 0x406059
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x4060c9
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4060be
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40605b
Function at 0x4060d1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405c06
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x406106
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x406298
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406121
test eax, eax
je 0x406243
test cl, 2
je 0x406243
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.00405a65
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406144
push str..
push esi
call edi
jmp 0x40614a
push ebx
call fcn.00405bdf
cmp byte [ebx], 0
jne 0x406158
cmp byte [0x422358], 0x5c
jne 0x406160
push 0x4072a0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x406238
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.004057fa
cmp byte [eax], 0
je 0x4061a3
cmp byte [ebp - 0x18], 0
je 0x4061a3
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4061b9
mov al, byte [esi + 1]
test al, al
je 0x406217
cmp al, 0x2e
jne 0x4061b9
cmp byte [esi + 2], 0
je 0x406217
push esi
push edi
call fcn.00405a65
test byte [ebp - 0x148], 0x10
je 0x4061de
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406217
push dword [ebp + 0xc]
push ebx
call fcn.004060d1
jmp 0x406217
push ebx
call fcn.004058b5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40620f
test byte [ebp + 0xc], 4
je 0x406207
push ebx
push 0xfffffffffffffff1
call fcn.004048ba
push 0
push ebx
call fcn.00405f38
jmp 0x406217
inc dword [0x423c88]
jmp 0x406217
push ebx
push 0xfffffffffffffff2
call fcn.004048ba
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406185
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406242
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406297
cmp dword [ebp - 8], esi
je 0x406287
push ebx
call fcn.00405b21
test eax, eax
je 0x406297
push ebx
call fcn.00405bb2
push ebx
call fcn.004058b5
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40628f
test byte [ebp + 0xc], 4
je 0x406287
push ebx
push 0xfffffffffffffff1
call fcn.004048ba
push esi
push ebx
call fcn.00405f38
jmp 0x406297
inc dword [0x423c88]
jmp 0x406297
push ebx
push 0xffffffffffffffe5
call fcn.004048ba
pop esi
pop ebx
leave
ret 8
Function at 0x40629d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x4062db
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4062b1
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x4062ac
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406308
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4062e9
not eax
pop ebp
ret 0xc
Function at 0x4a1916
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d5b20]
jne 0x4a1920
repz ret
jmp fcn.004a7ba3

Function at 0x4a5100
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d5b20]
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.0049de72
and dword [ebp - 0x14], 0
cmp dword [0x4d8e5c], 0
mov dword [ebp - 0x18], eax
jne 0x4a51b3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a525b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b00f0
push ebx
call edi
test eax, eax
je 0x4a525b
mov esi, dword [fcn.00499a00]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d8e5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d8e60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d8e64], eax
call edi
push eax
call esi
mov dword [0x4d8e6c], eax
test eax, eax
je 0x4a51b3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d8e68], eax
mov eax, dword [0x4d8e68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00499a04]
cmp eax, ecx
je 0x4a520c
cmp dword [0x4d8e6c], ecx
je 0x4a520c
push eax
call esi
push dword [0x4d8e6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a520c
test ebx, ebx
je 0x4a520c
call edi
test eax, eax
je 0x4a5203
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a5203
test byte [ebp - 8], 1
jne 0x4a520c
or dword [ebp + 0x10], 0x200000
jmp 0x4a523f
mov eax, dword [0x4d8e60]
cmp eax, dword [ebp - 0x18]
je 0x4a523f
push eax
call esi
test eax, eax
je 0x4a523f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a523f
mov eax, dword [0x4d8e64]
cmp eax, dword [ebp - 0x18]
je 0x4a523f
push eax
call esi
test eax, eax
je 0x4a523f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d8e5c]
call esi
test eax, eax
je 0x4a525b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a525d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1916
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219