joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101abef
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x78
mov eax, 0x10321f4
call fcn.0100a149
movzx edi, byte [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + esi + 0x1c]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
cmp byte [eax], bl
jne 0x101ad0f
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov eax, dword [esi + 0x124]
push ebx
push 0x20019
push ecx
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.0100ee20
cmp eax, ebx
je 0x101ac4d
jle 0x101ac47
and eax, 0xffff
or eax, 0x80070000
push eax
call fcn.0101cfae
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x1006b58
push dword [ebp - 0x78]
mov dword [ebp - 0x68], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x101ace8
cmp dword [ebp - 0x7c], 1
jne 0x101ac7f
cmp dword [ebp - 0x68], 2
jae 0x101ac89
push 0x8007000d
call fcn.0101cfae
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x64]
call fcn.0101abbb
mov byte [ebp - 4], 1
cmp dword [ebp - 0x64], ebx
je 0x101acd6
lea ecx, [ebp - 0x64]
call fcn.0101aab1
mov ecx, dword [eax]
lea edx, [ebp - 0x84]
push edx
lea edx, [ebp - 0x80]
push edx
push edi
push eax
call dword [ecx + 0x24]
push eax
call fcn.0100f0e3
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.010303bf
push eax
call fcn.0100f0e3
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x101ad01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x101ad01
cmp eax, 2
je 0x101ad01
cmp eax, ebx
jle 0x101acfb
and eax, 0xffff
or eax, 0x80070000
push eax
call fcn.0101cfae
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x78]
mov byte [eax], 1
call fcn.0100ee02
call fcn.0100a1db
ret 8

Function at 0x101c845
Capabilities:
Create directory
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1038080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 0x10070dc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, esi
je 0x101c901
lea eax, [edi + edi]
cmp eax, esi
je 0x101c8b3
cmp eax, dword [0x1038d70]
ja 0x101c8b3
mov ecx, dword [0x1038d74]
lea ebx, [edi + edi + 8]
add ecx, ebx
cmp ecx, eax
jb 0x101c8b3
push ecx
call fcn.0100d15c
test eax, eax
je 0x101c8b3
mov eax, ebx
call fcn.0100a090
mov esi, esp
test esi, esi
je 0x101c8b3
mov dword [esi], 0x6b637453
add esi, 8
jne 0x101c8d8
lea eax, [edi + edi + 8]
lea ecx, [edi + edi]
cmp eax, ecx
jb 0x101c8d4
push eax
call dword [0x1038d78]
mov esi, eax
test esi, esi
je 0x101c901
mov dword [esi], 0x70616548
add esi, 8
test esi, esi
je 0x101c901
push edi
push esi
push 0x10070dc
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x101c8f9
cmp eax, edi
jae 0x101c8f9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 8]
call fcn.0101c827
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100a0c1
leave
ret
Function at 0x102eac6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor eax, eax
mov byte [ebp - 4], 0
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call dword [fcn.0100178c]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp byte [ebp - 4], 0x30
pop edi
jne 0x102eafa
push 2
pop eax
leave
ret
xor eax, eax
cmp byte [ebp - 4], 0x31
jne 0x102eb05
inc eax
leave
ret
cmp byte [ebp - 4], 0x32
setne al
dec eax
and eax, 3
leave
ret
Function at 0x402cd0
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.00405f7d
xor ebx, ebx
cmp eax, ebx
jne 0x402db3
test byte [ebp + 0x10], 2
je 0x402d31
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 0x402d98
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402d6d
test edi, edi
jne 0x402d98
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402cd0
test eax, eax
jne 0x402d76
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402d46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406500
test eax, eax
jne 0x402da8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402db3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402db3
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 0x4030d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030f5
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403107
mov dword [ebp - 0xc], 0x421448
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40311c
mov ecx, dword [0x42f498]
add ecx, eax
push ecx
call fcn.00403300
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032ea
test eax, eax
je 0x4032d8
test byte [ebp + 0x17], 0x80
je 0x403283
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40bdac], 0
and dword [0x40bda8], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40d430
mov dword [0x40b890], 8
mov dword [0x415438], eax
mov dword [0x415434], eax
mov eax, dword [ebp + 0x14]
mov dword [0x415430], 0x415430
mov dword [ebp + 8], eax
jle 0x4032e0
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403195
mov esi, dword [ebp + 0x14]
mov edi, 0x41d448
push esi
push edi
call fcn.004032ea
test eax, eax
je 0x4032d8
sub dword [ebp + 0x14], esi
mov dword [0x40b880], edi
mov dword [0x40b884], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b880
mov dword [0x40b888], edi
mov dword [0x40b88c], eax
call fcn.00406625
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40327b
mov esi, dword [0x40b888]
sub esi, edi
call ebx
test byte [0x42f4f4], 1
mov edi, eax
je 0x403236
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403203
cmp dword [ebp + 0x14], 0
jne 0x403236
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040521e
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40326f
cmp dword [ebp + 0x10], 0
jne 0x403255
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405d37
test eax, eax
je 0x40327f
add dword [ebp - 4], esi
jmp 0x403263
mov eax, dword [0x40b888]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x4031b8
jmp 0x4032e0
cmp dword [ebp + 0x14], 0
jg 0x403188
jmp 0x4032e0
push 0xfffffffffffffffc
jmp 0x4032da
push 0xfffffffffffffffe
jmp 0x4032da
test edi, edi
jne 0x4032c5
cmp dword [ebp + 0x14], edi
jle 0x4032e0
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403299
mov esi, ebx
mov edi, 0x41d448
push esi
push edi
call fcn.004032ea
test eax, eax
je 0x4032d8
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d37
test eax, eax
je 0x40327f
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40328f
jmp 0x4032e0
cmp dword [ebp + 0x14], esi
jge 0x4032cd
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032ea
test eax, eax
jne 0x4032dd
push 0xfffffffffffffffd
pop eax
jmp 0x4032e3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056e4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408384
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408374
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405735
xor eax, eax
jmp 0x40575c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40575c
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405731
call esi
pop esi
leave
ret 4

Function at 0x405796
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c098], 0x44
push eax
xor eax, eax
push 0x42c098
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 0x4057d5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4057d9
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 0x405877
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c6b
mov edi, eax
cmp edi, 0xffffffff
je 0x4058b8
test byte [esp + 0x10], 1
push esi
je 0x40589a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4058a0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4058a9
xor eax, eax
inc eax
jmp 0x4058ba
test byte [esp + 0x10], 4
jne 0x4058b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4058bf
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.00405b7d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4058fe
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4c8], eax
jmp 0x405a88
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405918
test eax, eax
je 0x405a36
test bl, 2
je 0x405a36
mov esi, 0x42b898
push edi
push esi
call fcn.004060f7
cmp dword [ebp + 8], 0
je 0x405937
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40593d
push edi
call fcn.00405ad6
cmp byte [edi], 0
jne 0x40594b
cmp byte [0x42b898], 0x5c
jne 0x405956
push 0x40a014
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 0x405a2c
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405aba
cmp byte [eax], 0
je 0x40599c
cmp byte [ebp - 0x1c], 0
je 0x40599c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4059b2
mov al, byte [esi + 1]
test al, al
je 0x405a0b
cmp al, 0x2e
jne 0x4059b2
cmp byte [esi + 2], 0
je 0x405a0b
push esi
push ebx
call fcn.004060f7
test byte [ebp - 0x14c], 0x10
je 0x4059d7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405a0b
push dword [ebp + 0xc]
push edi
call fcn.004058bf
jmp 0x405a0b
push dword [ebp - 4]
push edi
call fcn.00405877
test eax, eax
jne 0x405a03
cmp dword [ebp - 4], eax
je 0x4059fb
push edi
push 0xfffffffffffffff1
call fcn.0040521e
push 0
push edi
call fcn.00405ed6
jmp 0x405a0b
inc dword [0x42f4c8]
jmp 0x405a0b
push edi
push 0xfffffffffffffff2
call fcn.0040521e
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40597a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a36
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a88
cmp dword [ebp - 0xc], esi
jne 0x405a4a
inc dword [0x42f4c8]
jmp 0x405a88
push edi
call fcn.0040646b
test eax, eax
je 0x405a88
push edi
call fcn.00405a8f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405877
test eax, eax
jne 0x405a80
cmp dword [ebp - 4], esi
je 0x405a42
push edi
push 0xfffffffffffffff1
call fcn.0040521e
push esi
push edi
call fcn.00405ed6
jmp 0x405a88
push edi
push 0xffffffffffffffe5
call fcn.0040521e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b7d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bc98
push esi
call fcn.004060f7
push esi
call fcn.00405b28
mov edi, eax
test edi, edi
jne 0x405b9e
xor eax, eax
jmp 0x405bf0
push edi
call fcn.004063d2
test byte [0x42f43c], 0x80
je 0x405bb7
mov al, byte [edi]
test al, al
je 0x405b9a
cmp al, 0x5c
je 0x405b9a
sub edi, esi
jmp 0x405bcf
call fcn.0040646b
test eax, eax
je 0x405bc9
test byte [eax], 0x10
je 0x405b9a
push esi
call fcn.00405ad6
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405bbb
call fcn.00405a8f
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 0x405c6b
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 0x405c8a
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 0x405c90
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 0x405cbf
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 [0x40a3d4]
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 0x405d04
test edi, edi
jne 0x405cca
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cfe
Function at 0x405d66
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x42c620], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c620
je 0x405db2
push 1
push 0
push esi
call fcn.00405c90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405ed1
cmp eax, edi
jg 0x405ed1
mov esi, 0x42ca20
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405ed1
cmp eax, edi
jg 0x405ed1
push esi
push ebp
push str._s_s_r_n
push 0x42c220
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f434]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040618a
push 4
push 0xc0000000
push esi
call fcn.00405c90
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405ed1
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 0x405eca
push edi
push esi
push ebp
call fcn.00405d08
test eax, eax
je 0x405eca
push str._Rename__r_n
push esi
call fcn.00405bf5
test eax, eax
jne 0x405e68
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e9d
add eax, 0xa
push 0x40a3d8
push eax
call fcn.00405bf5
mov ebp, eax
test ebp, ebp
je 0x405e99
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e8a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e84
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e9f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42c220
push eax
call fcn.00405c4b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405d37
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405ed6
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405ef9
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d66
pop ecx
pop ecx
inc dword [0x42f4d0]
ret 8

Function at 0x405fde
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f7d
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40604d
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x40604d
cmp dword [ebp + 0xc], 1
je 0x406050
cmp dword [ebp + 0xc], 2
je 0x406050
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x9284909
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
mov eax, str.nDlD
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x442e70c5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100594e
Capabilities:
Accept command line arguments
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push esi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
je 0x1005989
cmp dword [ebp - 4], 2
jae 0x1005991
push dword [ebp + 8]
call fcn.0100593d
xor eax, eax
inc eax
jmp 0x1005b5a
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
mov esi, ebx
jbe 0x1005af7
mov eax, dword [edi + esi*4]
mov cx, word [eax]
cmp cx, 0x2d
je 0x10059e1
cmp cx, 0x2f
je 0x10059e1
mov ecx, dword [ebp - 8]
sub ecx, 0
je 0x10059cd
dec ecx
jne 0x1005aeb
push eax
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x254]
jmp 0x10059d4
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.01005d6f
inc dword [ebp - 8]
pop ecx
pop ecx
jmp 0x1005a00
movzx eax, word [eax + 2]
cmp eax, 0x43
je 0x10059f3
cmp eax, 0x63
jne 0x1005aeb
cmp dword [ebp - 4], 3
jb 0x1005aeb
mov dword [ebp - 0xc], ebx
inc esi
cmp esi, dword [ebp - 4]
jb 0x10059a0
xor esi, esi
cmp dword [ebp - 0x10], esi
jne 0x1005a56
cmp dword [ebp - 0xc], esi
je 0x1005af9
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.01005d6f
pop ecx
pop ecx
lea eax, [ebp - 0x254]
push eax
call fcn.01005d59
pop ecx
mov word [ebp + eax*2 - 0x25a], 0x74
mov word [ebp + eax*2 - 0x258], 0x69
mov word [ebp + eax*2 - 0x256], 0x66
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.01008ec0
test eax, eax
je 0x1005b4a
push 0xe
xor eax, eax
cmp dword [ebp - 0xc], esi
pop ecx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x4c], esi
rep stosd dword es:[edi], eax
jne 0x1005b57
lea eax, [ebp - 0x254]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x40], 0x100223c
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x1002238
mov dword [ebp - 0x30], 3
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1005ad1
push dword [ebp + 8]
push 0xca
call fcn.010058e0
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1005b57
push dword [ebp + 8]
call fcn.0100593d
mov eax, ebx
jmp 0x1005b59
xor esi, esi
lea eax, [ebp - 0x664]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1005b1e
push dword [ebp + 8]
push 0xcc
call fcn.010058e0
jmp 0x1005af3
lea eax, [ebp - 0x254]
push eax
push esi
push 0x1002230
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1005a2b
push dword [ebp + 8]
push 0xcb
call fcn.010058e0
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10