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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x47d974
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040442c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409548
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d97b
lea eax, [ebp - 0xc]
call fcn.004041ac
ret

Function at 0x47da18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x47da74
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x47da43
call fcn.0040ec30
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402944
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x47da74
call fcn.0040ec30
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x48a648
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48a7cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x276]
sub al, 2
jb 0x48a7b1
cmp byte [ebx + 0x268], 0
je 0x48a7b1
mov eax, dword [ebp - 4]
call fcn.00490df4
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x48a7aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x48a6ee
dec ax
je 0x48a6c4
sub ax, 0x12
jne 0x48a708
call fcn.00403bd4
jmp 0x48a7b1
cmp byte [ebx + 0x269], 0
je 0x48a790
mov eax, ebx
call fcn.00450110
test al, al
je 0x48a790
xor edx, edx
mov eax, ebx
call fcn.00450134
jmp 0x48a790
mov eax, dword [esi]
call fcn.00404b44
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00404d2c
jmp 0x48a790
cmp byte [ebx + 0x269], 0
je 0x48a725
mov eax, ebx
call fcn.00450110
test al, al
jne 0x48a725
mov dl, 1
mov eax, ebx
call fcn.00450134
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x48a73d
mov eax, esi
call fcn.004048e4
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.004049fc
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00404bb0
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0048a478
test al, al
je 0x48a790
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.004049fc
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404b50
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a7b1
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.00490e28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a7d3
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048fc
ret

Function at 0x48e7b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x4b45e0]
cmp byte [eax], 0
jne 0x48e7de
mov ecx, 0xaf
mov edx, 0x48e82c
mov eax, 0x48e87c
call fcn.00404108
mov eax, ebx
call fcn.004048e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x48e81d
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404a9c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e890
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x4b45e0]
cmp byte [eax], 0
jne 0x48e8b3
mov ecx, 0xbd
mov edx, 0x48e8f4
mov eax, 0x48e944
call fcn.00404108
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x48e8e6
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x48e8e6
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x48e8e6
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4999e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x499a58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b4b00]
cmp dword [eax], 2
jne 0x499a1c
mov eax, dword [ebp + 8]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceExW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
jmp 0x499a42
mov eax, dword [ebp + 8]
push eax
push edi
push esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004043e4
mov eax, dword [ebp - 4]
call fcn.00404698
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499a5f
lea eax, [ebp - 4]
call fcn.004041ac
ret
Function at 0x499bb8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x499cf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b4b00]
cmp dword [eax], 2
jne 0x499c0b
push esi
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
mov edi, eax
jmp 0x499cc7
push ebx
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x499b98]
call fcn.004058e0
add esp, 4
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x499b98]
call fcn.004058e0
add esp, 4
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004043e4
mov eax, dword [ebp - 0x10]
call fcn.00404698
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edi, eax
mov eax, ebx
add eax, eax
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
push 0
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x499b98]
call fcn.004058e0
add esp, 4
push 0
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x499b98]
call fcn.004058e0
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499cf7
lea eax, [ebp - 0x10]
call fcn.004041ac
lea eax, [ebp - 0xc]
mov edx, dword [0x499b98]
mov ecx, 2
call fcn.00405028
ret

Function at 0x49dde0
Capabilities:
Timestomp file

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x49de87
mov eax, dword [0x4b4b00]
cmp dword [eax], 2
jne 0x49de87
push 0
push 0x2000000
push 4
push 0
push 3
push 0x80000000
mov eax, dword [ebx + 0x10]
call fcn.00404b34
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
push 0
push 0x2000000
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebx + 0x14]
call fcn.00404b34
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp esi, 0xffffffff
je 0x49de7b
cmp ebx, 0xffffffff
je 0x49de7b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x49de7b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x49f22c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49f2b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push esi
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x49f275
lea eax, [ebp - 8]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_SetFileTime
test eax, eax
jne 0x49f29e
lea eax, [ebp - 0xc]
call fcn.004b1760
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x30]
call fcn.0049e520
mov ecx, dword [ebp - 0x10]
mov edx, dword [0x4b4540]
mov edx, dword [edx]
mov eax, ebx
call fcn.0049f2c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f2c0
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048fc
ret
Function at 0x4b15c8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
call sub.kernel32.dll_SetLastError
push 0
push 0
mov edx, 1
mov eax, esi
call fcn.00499938
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4b1636
push dword [ebp + 0xc]
push dword [ebp + 8]
xor edx, edx
mov eax, esi
call fcn.00499938
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4b1636
push esi
call sub.kernel32.dll_SetEndOfFile
test eax, eax
je 0x4b1636
push dword [ebp - 4]
push dword [ebp - 8]
xor edx, edx
mov eax, esi
call fcn.00499938
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4b1636
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4b1f20
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
mov edi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404eec
xor eax, eax
push ebp
push 0x4b2032
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b34
push eax
mov eax, dword [0x4b4b04]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4b200c
push 0x104
lea eax, [ebp - 0x212]
push eax
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x4b4744]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4b200c
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00404a9c
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.00481d10
mov eax, dword [ebp - 0x218]
call fcn.00404b34
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4b200c
push 0
lea eax, [ebp - 8]
push eax
push 0xc
push edi
push 0
push 0
push 0x2d1080
push esi
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2039
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.004048fc
lea eax, [ebp - 4]
call fcn.004048e4
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xdf57af9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
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
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4d0f7d5a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x6dff18f9
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
mov ecx, 0x41aa280e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x2939795a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0xc085414
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4018c1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
test esi, esi
push edi
mov edi, 0x40a248
je 0x40190d
push ebx
xor ebx, ebx
mov eax, 0x1000000
cmp esi, eax
ja 0x4018e0
mov eax, esi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x40190a
test ecx, ecx
je 0x40190a
test esi, esi
ja 0x4018d5
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4019ac
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401a4b
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call fcn.00406260
add esp, 0xc
cmp word [esi], bx
je 0x401a2c
push edi
lea edi, [ebp - 0x208]
sub edi, esi
cmp word [esi], 0x5c
jne 0x401a19
cmp word [esi - 2], 0x3a
je 0x401a19
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401a19
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ax, word [esi]
mov word [edi + esi], ax
inc esi
inc esi
cmp word [esi], bx
mov word [edi + esi], bx
jne 0x4019ed
pop edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x401a4b
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebx
leave
ret
Function at 0x403a1a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x403a22
mov dword [ecx*4 + 0x40b248], eax
inc ecx
cmp ecx, 0x100
jb 0x403a1d
pop esi
ret

Function at 0x40429c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x4043e4
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x4042d4
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4042d9
inc esi
cmp esi, dword [ebp - 8]
jb 0x4042cb
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x4043c5
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x404358
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x404305
cmp cl, 0xff
jne 0x404387
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, 5
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x404398
movzx edi, byte [edx + 0x40186c]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x404348
cmp bl, 0xff
jne 0x404395
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x404320
dec ecx
shl edx, cl
and edx, 7
je 0x4042f2
movzx ecx, byte [edx + 0x40186c]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x401864], 0
mov cl, byte [ebx + 4]
je 0x404384
test cl, cl
je 0x404384
cmp cl, 0xff
jne 0x4042f2
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4042c6
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4042c6
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x406590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x4064a3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
pop esi
jne 0x4065bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x407929
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
jne 0x40794d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40798e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x407943
push edi
mov ecx, esi
call fcn.0040791d
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407994
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4079bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40798d
mov bl, 1
jmp 0x4079b1

Function at 0x407b31
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x118
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00406260
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407b85
cmp dword [ebp - 0x118], 6
jne 0x407b85
cmp dword [ebp - 0x114], 0
jne 0x407b85
xor eax, eax
inc eax
cmp byte [ebp - 2], al
je 0x407b87
xor eax, eax
leave
ret

Function at 0x407db1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [section..SPLASH], edi
mov esi, ecx
je 0x407dc8
call fcn.00407b8c
push 0x104
push dword [ebp + 8]
push esi
call fcn.0040808a
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x208], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esi + 0x20c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x210], eax
mov eax, dword [ebp + 0x18]
push edi
push edi
mov dword [esi + 0x214], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x21c], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x407bf9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x21c]
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x218], edi
jne 0x407e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x407e54
push dword [esi + 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
leave
ret 0x14

Function at 0x407e7e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407eb8
cmp dword [ebp - 0x104], 2
jne 0x407eb8
cmp dword [ebp - 0x110], 6
jae 0x407eb8
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x407ebc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f03
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f03
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x408479
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push edi
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
call fcn.0040808a
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
lea eax, [ebp + eax*2 - 0x228]
mov word [eax], dx
mov word [eax - 2], dx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], edx
mov word [ebp - 0x10], 0x14
mov dword [ebp - 0xe], edx
mov dword [ebp - 6], edx
mov dword [ebp - 0xa], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
je 0x408501
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
leave
ret
mov al, 1
leave
ret

Function at 0x408505
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40856a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40851e
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2 - 2]
jmp 0x408538
dec esi
dec esi
cmp esi, edi
je 0x408566
cmp word [esi], 0x5c
jne 0x408532
and word [esi], 0
push edi
call fcn.00408505
test al, al
pop ecx
mov word [esi], 0x5c
je 0x40856a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x40856a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40856c
mov al, 1
pop edi
pop esi
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x54250f50
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x140d108d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219