joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483b9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048384d

Function at 0x483ba7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004839d7

Function at 0x4498a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38000]
push edi
jmp 0x4498ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4498c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498b0
mov eax, 1
add ebx, ebx
jne 0x4498d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4498e4
jne 0x449903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x449903
dec eax
add ebx, ebx
jne 0x4498f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4498c8
add ebx, ebx
jne 0x4498ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x449955
xor ecx, ecx
sub eax, 3
jb 0x44991b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44998a
sar eax, 1
mov ebp, eax
jmp 0x449926
add ebx, ebx
jne 0x449926
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498f4
inc ecx
add ebx, ebx
jne 0x449934
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4498f4
add ebx, ebx
jne 0x449941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x449936
jne 0x449952
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x449936
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x449974
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x449966
jmp 0x4498b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x449974
add edi, ecx
jmp 0x4498b6
pop esi
mov edi, esi
mov ecx, 0x215e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x449992
cmp byte [edi], 0xb
jne 0x449992
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x449997
lea edi, [esi + 0x47000]
mov eax, dword [edi]
or eax, eax
je 0x449a0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a3a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a3e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4499c4
mov ecx, edi
jns 0x4499f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a3e8]
or eax, eax
je 0x449a09
mov dword [ebx], eax
add ebx, 4
jmp 0x4499e1
call dword [esi + 0x4a3e4]
mov ebp, dword [esi + 0x4a3ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x449a43
sub esp, 0xffffff80
jmp 0x404230
Function at 0x10002020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub al, 0xc6
test dword [ebp + 0x26fffffc], ebx
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
test dword [edi + 0x30fffffc], ebx

Function at 0x10002030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + 0x30fffffc], ebx
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.100010c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000107e
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.100010b9
push ecx
or al, 0xc2
jmp 0x10012521
Function at 0x10002490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x33c]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 4], eax
call fcn.100010b9
dec ecx
jnp 0x10002432
test eax, 0xf924a580
invalid
lea eax, [ebp - 0x6dc]
push eax
call fcn.100010c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000107e
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x1000324c
invalid
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.1000102a
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x100024c6
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x1000250f
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x100024b9
call fcn.100010b9
je 0x1000254b
jecxz 0x100024a7
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.100010b9
sub byte [edx + eax*8], 0xc0
lea eax, [ebp - 0x72c]
push eax
call fcn.100010c9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000107e
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.100010b9
frstor dword [edx + 0x14]
adc cl, byte [ebp - 0x7177b]
call dword [eax + 0x6a]
inc eax
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.1000102a
add esp, 0xc
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x718]
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
call fcn.100010b9
lodsd eax, dword [esi]
in al, dx
sub eax, 0xa58393
stc
invalid
invalid
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009dd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push dword [ebp + 0xc]
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x10009e13
push dword [ebp + 0xc]
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
test eax, eax
jne 0x10009e1d
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10009e47
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
je 0x10009e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10009e13
mov byte [esi + 0xc], 1
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x128]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call fcn.00405fb4
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x128], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040654f
test eax, eax
jne 0x401514
push dword [esp + 0x124]
push dword [esp + 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret 0xc
Function at 0x402f57
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x4175c0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x402f93
mov eax, dword [0x424458]
add eax, ecx
push eax
call fcn.00402f40
push 4
lea eax, [esp + 0x70]
push eax
push dword [0x40a010]
call fcn.004065b1
test eax, eax
je 0x40314e
mov eax, dword [esp + 0x6c]
test eax, eax
jns 0x4030f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b538
mov dword [esp + 0x70], eax
call fcn.0040786c
mov eax, dword [esp + 0x6c]
and eax, 0x7fffffff
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
jbe 0x4030ee
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x4135c0
call fcn.00402f2a
test eax, eax
je 0x40314e
sub dword [esp + 0x6c], ebp
mov dword [0x40b554], ebp
mov ebp, dword [esp + 0x10]
mov dword [0x40b550], 0x4135c0
mov ecx, 0x40b538
mov dword [0x40b558], ebp
mov dword [0x40b55c], ebx
call fcn.00406aa0
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4030f2
mov eax, dword [0x40b558]
sub eax, ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4244f4], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
je 0x4030aa
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x40306e
test ecx, ecx
jne 0x4030aa
mov eax, dword [esp + 0x14]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004059ed
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4030e6
test edi, edi
jne 0x4030cb
push eax
push ebp
push dword [esp + 0x70]
call fcn.00406670
test eax, eax
je 0x403136
mov eax, dword [esp + 0x64]
jmp 0x4030d7
mov ebp, dword [0x40b558]
sub ebx, eax
mov dword [esp + 0x10], ebp
add esi, eax
cmp dword [esp + 0x1c], 1
jne 0x40301b
jmp 0x4030ee
test ecx, ecx
jg 0x402fe6
mov eax, esi
jmp 0x403151
push 0xfffffffffffffffc
jmp 0x403150
test edi, edi
jne 0x40313a
test eax, eax
jle 0x4030ee
mov ebp, 0x4135c0
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00402f2a
test eax, eax
je 0x40314e
push edi
push ebp
push dword [esp + 0x70]
call fcn.00406670
test eax, eax
je 0x403136
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x403103
jmp 0x4030ee
push 0xfffffffffffffffe
jmp 0x403150
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402f2a
test eax, eax
jne 0x4030ee
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x40315b
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40317a
mov eax, dword [0x40b530]
test eax, eax
je 0x403172
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b530], 0
ret
cmp dword [0x40b530], 0
je 0x40318b
push 0
call fcn.00405f21
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x424400]
jbe 0x4031be
push 0
push 0x403421
push 0
push 0x6f
push dword [0x423bf4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b530], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405b15
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405b35
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408548
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408538
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405ba3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405bad
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x405ba7
xor eax, eax
jmp 0x405bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x405eb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405eee
test eax, eax
je 0x405eee
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405ef4
mov ecx, 0x408298
jmp 0x405ef9
lea eax, [ebp - 0x120]
mov ecx, 0x408299
push dword [ebp + 8]
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 0x405f4f
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 0x405f72
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405fe2
pop ecx
pop ecx
inc dword [0x4244d0]
ret 8

Function at 0x405fe2
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x422a48], 0x4c554e
mov ebp, 0x422a48
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x40602e
push 1
push 0
push esi
call fcn.00406584
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x40610e
cmp eax, ebx
jg 0x40610e
push ebx
mov esi, 0x422648
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x40610e
cmp eax, ebx
jg 0x40610e
push esi
push ebp
push str._s_s_r_n
push 0x422248
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x424410]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405bb1
push 4
push 0xc0000000
push esi
call fcn.00406584
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40610e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406107
push esi
push edi
push ebx
call fcn.004065b1
test eax, eax
je 0x406107
push str._Rename__r_n
push edi
call fcn.00406790
test eax, eax
jne 0x406113
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x422248
lea eax, [ecx + edi]
push eax
call fcn.00406302
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406670
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40870c
add eax, 0xa
push eax
call fcn.00406790
mov ecx, eax
test ecx, ecx
je 0x4060d8
lea edx, [edi + esi]
jmp 0x406132
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x40612c
sub ecx, edi
inc ecx
jmp 0x4060da
Function at 0x4061dd
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004067f7
mov edi, eax
cmp edi, 0xffffffff
je 0x406220
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406201
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x406207
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406210
xor eax, eax
inc eax
jmp 0x406222
test byte [ebp + 0xc], 4
jne 0x406220
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x421e48
push ebx
call fcn.00406774
push ebx
call fcn.0040681f
mov esi, eax
test esi, esi
je 0x4062fb
push esi
call fcn.00406957
test byte [0x42440c], 0x80
je 0x4062c1
mov al, byte [esi]
test al, al
je 0x4062fb
cmp al, 0x5c
je 0x4062fb
sub esi, ebx
jmp 0x4062d9
call fcn.00406227
test eax, eax
je 0x4062d3
test byte [eax], 0x10
je 0x4062fb
push ebx
call fcn.0040692c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x4062c5
call fcn.004061b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062fb
xor eax, eax
inc eax
jmp 0x4062fd
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406324
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x421a00], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x421a00
xor eax, eax
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 0x406363
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406367
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.0040628b
mov dword [esp + 0x18], eax
test bl, 8
je 0x4063a9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4244c8], eax
jmp 0x406543
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x4063c6
test eax, eax
je 0x406532
test bl, 2
je 0x4064fc
push esi
push 0x421a48
call fcn.00406774
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063e9
push 0x4086f0
push 0x421a48
call ebp
jmp 0x4063ef
push esi
call fcn.0040692c
cmp byte [esi], 0
jne 0x4063fd
cmp byte [0x421a48], 0x5c
jne 0x406405
push 0x408298
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x421a48
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4064ea
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.0040624e
cmp byte [eax], 0
je 0x406457
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x40646e
mov al, byte [ebp + 1]
test al, al
je 0x4064c5
cmp al, 0x2e
jne 0x40646e
cmp byte [ebp + 2], 0
je 0x4064c5
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00406774
test byte [esp + 0x20], 0x10
je 0x406492
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4064c9
push ebx
push esi
call fcn.00406367
jmp 0x4064c9
push edi
push esi
call fcn.004061dd
test eax, eax
jne 0x4064bb
test edi, edi
je 0x4064b3
push esi
push 0xfffffffffffffff1
call fcn.004059ed
push 0
push esi
call fcn.00405f4f
jmp 0x4064c9
inc dword [0x4244c8]
jmp 0x4064c9
push esi
push 0xfffffffffffffff2
call fcn.004059ed
jmp 0x4064c9
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406430
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406542
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x406532
push esi
call fcn.00406227
test eax, eax
je 0x406542
push esi
call fcn.004061b0
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004061dd
test eax, eax
jne 0x40653a
test edi, edi
je 0x406532
push esi
push 0xfffffffffffffff1
call fcn.004059ed
push 0
push esi
call fcn.00405f4f
jmp 0x406542
inc dword [0x4244c8]
jmp 0x406542
push esi
push 0xffffffffffffffe5
call fcn.004059ed
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x4065e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405fb4
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406650
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x406650
cmp dword [ebp + 0x18], 1
je 0x406653
cmp dword [ebp + 0x18], 2
je 0x406653
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x406658
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 0x4066bb
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
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4066fa
test edi, edi
jne 0x4066c6
mov byte [esi], al
jmp 0x4066fc
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4067f7
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 0x406819
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x422f8c], 0
push esi
jne 0x406a6e
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406a45
mov dword [ecx*4 + 0x422f88], edx
inc ecx
cmp ecx, 0x100
jl 0x406a40
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406a98
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x422f88]
inc esi
sub edx, 1
jne 0x406a80
not ecx
mov eax, ecx
pop esi
ret 0xc