joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11416c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcfe000]
push edi
or ebp, 0xffffffff
jmp 0x11416e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x11416e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11416d8
mov eax, 1
add ebx, ebx
jne 0x11416fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x114170c
jne 0x114172b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x114172b
dec eax
add ebx, ebx
jne 0x1141718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x11416f0
add ebx, ebx
jne 0x1141727
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x114177d
xor ecx, ecx
sub eax, 3
jb 0x1141743
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x11417b2
sar eax, 1
mov ebp, eax
jmp 0x114174e
add ebx, ebx
jne 0x114174e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x114171c
inc ecx
add ebx, ebx
jne 0x114175c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x114171c
add ebx, ebx
jne 0x1141769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x114175e
jne 0x114177a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x114175e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x114179c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x114178e
jmp 0x11416de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x114179c
add edi, ecx
jmp 0x11416de
pop esi
mov edi, esi
mov ecx, 0x302d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x11417ba
cmp byte [edi], 0x16
jne 0x11417ba
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 0x11417bf
lea edi, [esi + 0xd3b000]
mov eax, dword [edi]
or eax, eax
je 0x1141837
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19dfaec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19dfc18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x11417ec
mov ecx, edi
jns 0x114181b
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 + 0x19dfc1c]
or eax, eax
je 0x1141831
mov dword [ebx], eax
add ebx, 4
jmp 0x1141809
call dword [esi + 0x19dfc2c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1141868
cmp al, 0xef
ja 0x114185b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x114183d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x114184a
mov ebp, dword [esi + 0x19dfc20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x114189c
sub esp, 0xffffff80
jmp 0x43cd8d
Function at 0x4030f0
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
test esi, esi
stosw word es:[edi], ax
je 0x4031b7
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebx
add esp, 4
cmp eax, 0x104
ja 0x4031b7
push esi
xor edi, edi
call ebx
add esp, 4
test eax, eax
jbe 0x4031a3
lea ebp, [esp + 0x10]
mov ebx, esi
sub ebp, esi
mov ax, word [ebx]
cmp ax, 0x5c
je 0x403159
cmp ax, 0x2f
jne 0x403191
push edi
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea ecx, [esp + 0x1c]
push 0
push ecx
mov word [ebx + ebp], 0
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0x14
test eax, eax
je 0x403191
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4031b7
push esi
inc edi
add ebx, 2
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp edi, eax
jb 0x40314a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret

Function at 0x403370
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
je 0x4033cb
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x4033cb
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x54
ret

Function at 0x404560
Capabilities:
Get disk size

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
push esi
push 0
lea eax, [esp + 8]
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x14]
xor edx, edx
shrd ecx, eax, 0x14
shr eax, 0x14
cmp eax, edx
jb 0x4045b3
ja 0x4045a9
cmp ecx, esi
jbe 0x4045b3
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7eeed0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405cfb
cmp eax, ebx
je 0x401533
push ebx
push dword [0x7eeed0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
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 [0x7eeed0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f3a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x7b0a00]
sub esi, dword [0x7b0a0c]
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 [0x7eee40], eax
jle 0x403098
push dword [0x7b0a08]
call fcn.00402f23
push ebx
push ebx
push dword [0x7b0a0c]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x7a49fc], esi
mov dword [0x41e134], ebx
mov ebp, 0x7a4a00
mov eax, dword [0x7b0a04]
sub eax, dword [0x7b0a08]
mov edi, 0x4000
cmp eax, edi
jg 0x402faf
mov edi, eax
push edi
mov esi, 0x7aca00
push esi
call fcn.00402ef1
test eax, eax
je 0x4030aa
add dword [0x7b0a08], edi
mov dword [0x426138], esi
mov dword [0x42613c], edi
cmp dword [0x7eedfc], ebx
je 0x403006
cmp dword [0x7eeec0], ebx
jne 0x403006
mov eax, dword [0x7a49fc]
sub eax, dword [0x7b0a00]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x7b0a0c]
mov dword [0x41e134], eax
call fcn.00402e4f
pop ecx
push 0x426138
mov dword [0x426140], ebp
mov dword [0x426144], 0x8000
call fcn.00406a29
test eax, eax
jl 0x4030af
mov esi, dword [0x426140]
sub esi, ebp
je 0x403064
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030b4
cmp esi, dword [esp + 0x10]
jne 0x4030b4
add dword [0x7b0a0c], esi
cmp dword [0x42613c], ebx
jne 0x402fd5
jmp 0x403070
cmp dword [0x42613c], ebx
jne 0x4030af
cmp edi, ebx
je 0x4030af
mov eax, dword [0x7b0a00]
mov ecx, eax
sub ecx, dword [0x7b0a0c]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f99
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030a2
push 0xfffffffffffffffd
pop eax
jmp 0x4030a2
push 0xfffffffffffffffe
jmp 0x4030b1
Function at 0x4030b8
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 0x4030e4
mov ecx, dword [0x7eee38]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x7b0a00], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f3a
cmp eax, edi
jl 0x4031dd
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 [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp dword [ebp - 4], esi
jne 0x4031d9
push dword [ebp + 8]
add dword [0x7b0a00], esi
call fcn.00402f3a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031dc
cmp dword [ebp + 0x10], edi
jne 0x4031a8
cmp dword [ebp + 8], edi
jle 0x4031d4
mov esi, 0x7aca00
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403158
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp edi, dword [ebp - 4]
jne 0x4031d9
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 0x4031a4
cmp dword [ebp + 0x14], edi
jne 0x4031a4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x7b0a00], eax
cmp dword [ebp + 8], 0
jg 0x40314b
jmp 0x4031d4
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031b3
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
mov eax, dword [ebp - 4]
add dword [0x7b0a00], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031dc
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405828
Capabilities:
Create process on windows

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

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

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

Function at 0x405a3a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405a69
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088ec]
mov dword [ebp - 8], eax
mov eax, dword [0x4088f0]
dec edi
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ab9
test edi, edi
jne 0x405a76
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ab3

Function at 0x405abd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b36
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b1f
cmp dword [ebp + 0x14], 1
je 0x405b24
cmp dword [ebp + 0x14], 2
je 0x405b24
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40617e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7d4ae8
push esi
call fcn.00405bf4
push esi
call fcn.00405943
mov edi, eax
test edi, edi
jne 0x40619f
xor eax, eax
jmp 0x4061fd
push edi
call fcn.00405c23
test byte [0x7eee48], 0x80
je 0x4061bc
movzx eax, word [edi]
test ax, ax
je 0x40619b
cmp ax, 0x5c
je 0x40619b
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4061de
push esi
call fcn.00405cd4
test eax, eax
je 0x4061d8
test byte [eax], 0x10
je 0x406202
push esi
call fcn.00406151
push esi
call ebx
cmp eax, edi
jg 0x4061c9
push esi
call fcn.00406122
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4061fc
Function at 0x406497
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089d4
mov ebx, 0x7d8af0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4064e5
push 1
push ebp
push edi
call fcn.00405a3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40665c
cmp eax, esi
jg 0x40665c
push esi
mov edi, 0x7de148
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40665c
cmp eax, esi
jg 0x40665c
push ebp
push ebp
push esi
push 0x7d92f0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40665c
push ebp
push ebp
push esi
mov esi, 0x7d9940
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40665c
push esi
push 0x7d92f0
push str._s_s_r_n
push 0x7d9d40
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x7eedfc]
push dword [eax + 0x128]
push edi
call fcn.00406206
push 4
push 0xc0000000
push edi
call fcn.00405a3a
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40665c
push ebp
push eax
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
cmp esi, ebp
je 0x406652
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406652
cmp edi, dword [esp + 0x10]
jne 0x406652
push str._Rename__r_n
push esi
call fcn.004059a0
cmp eax, ebp
jne 0x4065e9
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40661a
push 0x4089c8
add eax, 0xa
push eax
call fcn.004059a0
mov ebp, eax
test ebp, ebp
je 0x406618
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40660b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406605
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x40661c
xor ebp, ebp
mov eax, edi
push ebx
push 0x7d9d40
add eax, esi
push eax
call fcn.004059f6
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406695
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040617e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4066ca
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7eeea8], eax
jmp 0x406870
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4066e5
test eax, eax
je 0x40681b
test cl, 2
je 0x40681b
push edi
push ebx
mov esi, 0x7da140
push esi
call fcn.00405bf4
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406708
push str..
push esi
call edi
jmp 0x40670e
push ebx
call fcn.00406151
cmp word [ebx], 0
jne 0x40671e
cmp word [0x7da140], 0x5c
jne 0x406726
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40680a
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004058ef
xor edi, edi
cmp word [eax], di
je 0x40676d
cmp word [ebp - 0x28], di
je 0x40676d
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406788
movzx eax, word [esi + 2]
cmp ax, di
je 0x4067e7
cmp ax, 0x2e
jne 0x406788
cmp word [esi + 4], di
je 0x4067e7
push esi
push dword [ebp - 4]
call fcn.00405bf4
test byte [ebp - 0x25c], 0x10
je 0x4067af
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4067e7
push dword [ebp + 0xc]
push ebx
call fcn.00406695
jmp 0x4067e7
push ebx
call fcn.00405a1a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4067df
test byte [ebp + 0xc], 4
je 0x4067d7
push ebx
push 0xfffffffffffffff1
call fcn.00404baf
push edi
push ebx
call fcn.00406662
jmp 0x4067e7
inc dword [0x7eeea8]
jmp 0x4067e7
push ebx
push 0xfffffffffffffff2
call fcn.00404baf
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40674d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40680c
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x40681b
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40686f
cmp dword [ebp - 0xc], esi
je 0x40685f
push ebx
call fcn.00405cd4
test eax, eax
je 0x40686f
push ebx
call fcn.00406122
push ebx
call fcn.00405a1a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406867
test byte [ebp + 0xc], 4
je 0x40685f
push ebx
push 0xfffffffffffffff1
call fcn.00404baf
push esi
push ebx
call fcn.00406662
jmp 0x40686f
inc dword [0x7eeea8]
jmp 0x40686f
push ebx
push 0xffffffffffffffe5
call fcn.00404baf
pop esi
pop ebx
leave
ret 8
Function at 0x406875
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x7de94c], 0
jne 0x4068b3
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 0x406889
mov dword [ecx*4 + 0x7de948], eax
inc ecx
cmp ecx, 0x100
jl 0x406884
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068e0
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 + 0x7de948]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068c1
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x1f00805
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42f314
mov ecx, 0x2402309b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4015c2
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 4
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4015f7
push section..text
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
ret

Function at 0x40166a
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x40102c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4016ee
xor esi, esi
mov edi, 0x104
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x318]
push eax
lea edx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push edx
lea ecx, [ebp - 0x214]
push 0
mov dword [ebp - 8], edi
push eax
mov dword [ebp - 0xc], edi
push ecx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4016e5
cmp dword [ebp - 0x10], 1
jne 0x4016e2
push 0
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 8]
call fcn.004015fb
inc esi
jmp 0x401694
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x404224], 0
je 0x40173d
push 0x104
lea eax, [ebp - 0x110]
push eax
push 2
push dword [0x404214]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x401727
push 0x401010
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x110]
push 0x401028
push eax
push dword [ebp + 8]
call fcn.004015fb
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4