joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057b7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 2
push 0xffffffffffffffff
push 0x100c
push 0x3ed
mov eax, dword [ebp + 8]
push eax
call dword [0x418328]
push eax
call dword [0x41835c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0x1005
push 0x3ed
mov edx, dword [ebp + 8]
push edx
call dword [0x418328]
push eax
call dword [0x41835c]
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x111]
test ecx, ecx
je 0x405856
push 0x3c
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.0040deb0
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], str.properties
mov ecx, dword [ebp - 8]
add ecx, 0x111
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x64]
push edx
call dword [0x418254]
mov esp, ebp
pop ebp
ret

Function at 0x40585a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
call dword [0x4182f4]
mov eax, dword [ebp + 8]
push eax
call dword [0x4182f8]
test eax, eax
jne 0x40587b
xor eax, eax
jmp 0x405996
call dword [0x4182fc]
push 2
push 0xffffffffffffffff
push 0x100c
mov ecx, dword [ebp + 8]
push ecx
call dword [0x41835c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4058a4
xor eax, eax
jmp 0x405996
push 0x6590
push 0x2002
call dword [0x4181ec]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [0x4181f0]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0x104
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x102d
mov eax, dword [ebp + 8]
push eax
call dword [0x41835c]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x20], 2
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x1019
mov eax, dword [ebp + 8]
push eax
call dword [0x41835c]
test eax, eax
je 0x40597a
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040df20
add esp, 8
mov dword [ebp - 0x28], eax
push 1
push 0x41b96c
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040dfe0
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x64], 0x104
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x102d
mov eax, dword [ebp + 8]
push eax
call dword [0x41835c]
jmp 0x4058fd
mov ecx, dword [ebp - 0x24]
push ecx
call dword [0x4181f4]
mov edx, dword [ebp - 0x24]
push edx
push 1
call dword [0x418300]
call dword [0x4182f4]
mov esp, ebp
pop ebp
ret
Function at 0x40802e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
lea eax, [ebp - 0x134]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [0x418008]
test eax, eax
je 0x40805f
mov eax, dword [ebp + 0x18]
jmp 0x4080f4
mov dword [ebp - 4], 0x12c
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x134]
push eax
call dword [0x418018]
test eax, eax
jne 0x4080e4
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
test ecx, ecx
jne 0x4080bf
push 0x41be98
lea edx, [ebp - 0x130]
push edx
call fcn.0040dc80
add esp, 8
push 0x41be9c
lea eax, [ebp - 0x130]
push eax
call fcn.0040dc80
add esp, 8
mov cl, byte [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407fcc
add esp, 0x14
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x134]
push eax
call dword [0x41800c]
mov eax, dword [ebp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x40c41e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call fcn.0040d06a
mov byte [0x420ab0], al
push 0x4e
call dword [0x418350]
mov dword [0x41fe90], eax
cmp dword [0x41fe90], 0
jne 0x40c451
push 0x10
call dword [0x418350]
mov dword [0x41fe90], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 8]
mov dword [0x420564], eax
push str.GetLongPathNameA
push str.kernel32.dll
call dword [0x4180c8]
push eax
call dword [0x4181b4]
mov dword [0x420a9c], eax
push 0x30
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040deb0
add esp, 0xc
mov dword [ebp - 0x38], 0x30
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x1e
mov edx, dword [0x420564]
mov dword [ebp - 0x24], edx
push 0x41cf90
mov eax, dword [0x420564]
push eax
call dword [0x418304]
mov dword [ebp - 0x20], eax
push 0
push 0x32
call dword [0x418350]
push eax
push 0x31
call dword [0x418350]
push eax
push 1
push 0x41cf98
mov ecx, dword [ebp + 8]
push ecx
call dword [0x418384]
mov dword [ebp - 0xc], eax
push 0x7f00
push 0
call dword [0x4182b0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x40b492
mov dword [ebp - 0x10], 0x41cfa0
lea edx, [ebp - 0x38]
push edx
call dword [0x4182dc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x401094
push 0xe0ffff
call dword [0x4180b0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], str.BALLOON
lea eax, [ebp - 0x38]
push eax
call dword [0x4182dc]
push 0
push 0x40b492
push 0
push str.MainDialog
mov ecx, dword [ebp + 8]
push ecx
call dword [0x418288]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [0x41836c]
push str.ACCELERATORS
mov ecx, dword [0x420564]
push ecx
call dword [0x418284]
mov dword [ebp - 4], eax
push 0
push 0
push 0
lea edx, [ebp - 0x54]
push edx
call dword [0x418278]
test eax, eax
je 0x40c5e3
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x418274]
test eax, eax
je 0x40c5b9
jmp 0x40c58d
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x41838c]
test eax, eax
je 0x40c5cd
jmp 0x40c58d
lea edx, [ebp - 0x54]
push edx
call dword [0x418270]
lea eax, [ebp - 0x54]
push eax
call dword [0x418264]
jmp 0x40c58d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40d936
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [0x418008]
test eax, eax
jne 0x40d98c
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x418444
push dword [ebp - 4]
call dword [0x418018]
test eax, eax
jne 0x40d97f
inc esi
push dword [ebp - 4]
call dword [0x41800c]
mov eax, esi
jmp 0x40d98e
xor eax, eax
pop esi
leave
ret 4
Function at 0x403132
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4031be
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4031a9
cmp dword [ebp + 0x10], ebx
jne 0x40319b
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403132
test eax, eax
jne 0x4031a9
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x40316e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x4031be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403524
Capabilities:
Check for time delay via gettickcount
Write file on windows

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 0x403541
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403550
mov ebx, 0x4193c4
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403565
mov ecx, dword [0x44ba98]
add ecx, eax
push ecx
call fcn.00403752
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403720
test eax, eax
je 0x40370e
test byte [ebp + 0x17], 0x80
je 0x4036b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4152f8
mov dword [ebp - 0xc], eax
call fcn.00406771
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403716
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4035b5
mov esi, dword [ebp + 0x14]
mov edi, 0x4153c4
push esi
push edi
call fcn.00403720
test eax, eax
je 0x40370e
sub dword [ebp + 0x14], esi
mov dword [0x415310], edi
mov dword [0x415314], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4152f8
mov dword [0x415318], ebx
mov dword [0x41531c], eax
call fcn.00406793
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4036ac
mov esi, dword [0x415318]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x40a818], 1
mov edi, eax
je 0x403657
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403624
cmp dword [ebp + 0x14], 0
jne 0x403657
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.00405571
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4036a1
cmp dword [ebp + 0x10], eax
jne 0x403680
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036b0
cmp dword [ebp - 0x10], esi
jne 0x4036b0
add dword [ebp - 4], esi
jmp 0x403696
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x415318]
jl 0x403716
cmp dword [ebp - 0x14], 1
je 0x403716
jmp 0x4035d8
cmp dword [ebp + 0x14], eax
jg 0x4035a8
jmp 0x403716
push 0xfffffffffffffffc
jmp 0x403710
push 0xfffffffffffffffe
jmp 0x403710
test edi, edi
jne 0x4036fb
cmp dword [ebp + 0x14], 0
jle 0x403716
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4036c9
mov esi, dword [ebp + 0x14]
mov edi, 0x4153c4
push esi
push edi
call fcn.00403720
test eax, eax
je 0x40370e
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036b0
cmp esi, dword [ebp + 0x10]
jne 0x4036b0
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x4036b8
cmp dword [ebp + 0x14], esi
jge 0x403703
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403720
test eax, eax
jne 0x403713
push 0xfffffffffffffffd
pop eax
jmp 0x403719
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403e2a
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, 0xffff
mov edi, 0x47c000
je 0x403e49
push edi
call fcn.0040620a
jmp 0x403e4f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44ba84]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403ea3
mov ecx, dword [0x44ba48]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44ba80]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403e8a
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403e72
jmp 0x403ea3
mov edx, dword [ecx + 2]
mov dword [0x447a20], edx
mov edx, dword [ecx + 6]
mov dword [0x44bae8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403eb5
cmp bx, 0xffff
jne 0x403eb1
mov ebx, 0x3ff
jmp 0x403e4f
xor ebx, ebx
jmp 0x403e4f
mov dword [0x447a1c], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.004061f1
push 0xfffffffffffffffe
push 0x447a40
call fcn.004062c3
push eax
push dword [0x4353dc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba6c]
mov esi, dword [0x44ba68]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403f0f
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403f08
push eax
push ebx
call fcn.004062c3
add esi, edi
add ebx, edi
dec ebp
jne 0x403efb
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405ac4
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43ac00], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405ae8
test al, 0x10
jne 0x405aeb
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43ac00
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405b16
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405b96
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405e7b
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405bca
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44bac8], eax
jmp 0x405d93
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405be8
test eax, eax
je 0x405d17
test byte [ebp + 0xc], 2
je 0x405d17
mov esi, 0x436400
push edi
push esi
call fcn.00406294
test ebx, ebx
je 0x405c05
push str..
push esi
call fcn.004062b2
jmp 0x405c0b
push edi
call fcn.00405de0
push 0x40a238
push edi
call fcn.004062b2
push edi
call fcn.004062a5
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d0d
cmp byte [ebp - 0x118], 0x2e
jne 0x405c5c
cmp byte [ebp - 0x117], 0x2e
je 0x405cf0
cmp byte [ebp - 0x117], 0
je 0x405cf0
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00406294
test byte [ebp - 0x144], 0x10
je 0x405c87
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cf0
push dword [ebp + 0xc]
push edi
call fcn.00405b96
jmp 0x405cf0
push edi
push str.Delete:_DeleteFile___s__
call fcn.0040663a
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405ce8
test byte [ebp + 0xc], 4
push edi
je 0x405cd4
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040663a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405571
push 0
push edi
call fcn.00405fdd
jmp 0x405cf0
push str.Delete:_DeleteFile_failed___s__
call fcn.0040663a
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405cf0
push edi
push 0xfffffffffffffff2
call fcn.00405571
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d17
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405d93
cmp dword [ebp - 4], esi
push edi
jne 0x405d39
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040663a
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405d93
call fcn.00406656
test eax, eax
je 0x405d93
push edi
call fcn.00405d99
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040663a
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405d8b
test byte [ebp + 0xc], 4
push edi
je 0x405d84
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040663a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405571
push esi
push edi
call fcn.00405fdd
jmp 0x405d93
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405d2a
push edi
push 0xffffffffffffffe5
call fcn.00405571
pop edi
pop esi
leave
ret 8
Function at 0x405e7b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x438400
push esi
call fcn.00406294
push esi
call fcn.00405e2c
mov edi, eax
test edi, edi
jne 0x405e9c
xor eax, eax
jmp 0x405eee
push edi
call fcn.00406504
test byte [0x44ba50], 0x80
je 0x405eb5
mov al, byte [edi]
test al, al
je 0x405e98
cmp al, 0x5c
je 0x405e98
sub edi, esi
push esi
call fcn.004062a5
cmp eax, edi
push esi
jle 0x405ed8
call fcn.00406656
test eax, eax
je 0x405ed0
test byte [eax], 0x10
je 0x405e98
push esi
call fcn.00405de0
jmp 0x405eb7
call fcn.00405d99
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 0x405f65
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 0x405f94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
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 0x405fd9
mov eax, edi
dec edi
test eax, eax
jne 0x405f9f
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405fd3
Function at 0x405fdd
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00406694
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406009
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40614d
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ad88], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43ad88
je 0x40604d
push 1
push 0
push esi
call fcn.00405f65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406153
cmp eax, edi
jg 0x406153
mov esi, 0x43a800
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406153
cmp eax, edi
jg 0x406153
push esi
push ebp
push str._s_s_r_n
push 0x43a400
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.004062b2
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40614d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406135
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406129
push str._Rename__r_n
push edi
call fcn.00405ef3
test eax, eax
jne 0x40615a
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00406294
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x43a400
push eax
call fcn.00405f3f
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44bad0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9cc
push eax
call fcn.00405ef3
test eax, eax
je 0x406110
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406183
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406176
sub eax, edi
jmp 0x406112
Function at 0x406187
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
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 0x4061eb
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4061da
cmp dword [ebp + 0x14], 1
je 0x4061dc
cmp dword [ebp + 0x14], 2
je 0x4061dc
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40659d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4065c2
mov eax, dword [0x40a8c8]
cmp eax, 0xffffffff
je 0x4065b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c8], 0xffffffff
jmp 0x406635
cmp dword [0x43b9a0], ebx
je 0x406635
cmp byte [0x43b5a0], bl
je 0x406601
cmp dword [0x40a8c8], 0xffffffff
jne 0x40660a
push 4
push 0x40000000
push 0x43b5a0
call fcn.00405f65
cmp eax, 0xffffffff
mov dword [0x40a8c8], eax
je 0x406635
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c8], 0xffffffff
je 0x406635
push esi
mov esi, 0x43f9e0
push 0x40aa9c
push esi
call fcn.004062b2
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004062a5
push eax
push esi
push dword [0x40a8c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b18c], esi
push edi
jne 0x406735
mov ecx, 0x43b188
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406711
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b588
jl 0x40670c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40676a
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b188]
xor eax, esi
inc ecx
dec edx
jne 0x40674d
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6db569f9
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x58623363
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219