joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405617
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421908
push esi
call fcn.00405a43
push esi
call fcn.004055ca
mov edi, eax
test edi, edi
jne 0x405638
xor eax, eax
jmp 0x40568a
push edi
call fcn.00405ca1
test byte [0x423f18], 0x80
je 0x405651
mov al, byte [edi]
test al, al
je 0x405634
cmp al, 0x5c
je 0x405634
sub edi, esi
jmp 0x405669
call fcn.00405d3a
test eax, eax
je 0x405663
test byte [eax], 0x10
je 0x405634
push esi
call fcn.0040557d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405655
call fcn.00405536
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 0x4056fb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405717
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40571a
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 0x405749
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
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 0x40578d
test edi, edi
jne 0x405754
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405787
Function at 0x405791
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d61
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057b5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4058ee
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422690], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422690
je 0x4057f9
push 1
push 0
push esi
call fcn.0040571a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
mov esi, 0x422108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
push esi
push ebp
push str._s_s_r_n
push 0x421d08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a65
push 4
push 0xc0000000
push esi
call fcn.0040571a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058e7
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058e7
cmp edi, dword [esp + 0x18]
jne 0x4058e7
push str._Rename__r_n
push esi
call fcn.0040568f
test eax, eax
jne 0x4058fb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a43
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d08
push eax
call fcn.004056db
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b0
push eax
call fcn.0040568f
test eax, eax
je 0x4058b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405922
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405917
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058b4
Function at 0x405dcd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a94], 0
push esi
jne 0x405e04
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dde
mov dword [ecx*4 + 0x422a90], eax
inc ecx
cmp ecx, 0x100
jl 0x405dd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e35
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a90]
xor eax, esi
inc ecx
dec edx
jne 0x405e17
pop edi
not eax
pop esi
ret 0xc
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410c39
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x410c4a
lcall 0x5de5, 0x8b10c483
jmp fcn.007c78ec

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x410c4a
lcall 0x5de5, 0x8b10c483
jmp fcn.007c78ec

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

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x1bd74881
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x60b33e41
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x404e40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
xor ecx, ecx
mov eax, ecx
mov dword [ebp + ecx*4 - 0x400], ecx
shr eax, 1
test cl, 1
je 0x404e67
xor eax, 0xedb88320
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404e7b
shr eax, 1
xor eax, 0xedb88320
jmp 0x404e7d
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404e91
shr eax, 1
xor eax, 0xedb88320
jmp 0x404e93
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404ea7
shr eax, 1
xor eax, 0xedb88320
jmp 0x404ea9
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404ebd
shr eax, 1
xor eax, 0xedb88320
jmp 0x404ebf
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404ed3
shr eax, 1
xor eax, 0xedb88320
jmp 0x404ed5
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404ee9
shr eax, 1
xor eax, 0xedb88320
jmp 0x404eeb
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404eff
shr eax, 1
xor eax, 0xedb88320
jmp 0x404f01
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x404e52
xor ecx, ecx
test edx, edx
je 0x404f3a
jmp 0x404f20
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [ebp + eax*4 - 0x400]
cmp ecx, edx
jb 0x404f20
not esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404f80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 8], ecx
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jb 0x404f91
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
mov dl, byte [ebp + esi - 0x108]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x108], al
inc esi
mov byte [ebp + edi - 0x108], dl
cmp esi, 0x100
jb 0x404fb0
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 4], ebx
jbe 0x405056
jmp 0x405000
inc esi
and esi, 0xff
mov dl, byte [ebp + esi - 0x108]
movzx eax, dl
add ebx, eax
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x108]
mov byte [ebp + esi - 0x108], al
mov byte [ebp + ebx - 0x108], dl
movzx ecx, byte [ebp + esi - 0x108]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x108]
mov ecx, dword [ebp - 8]
xor byte [edi + ecx], al
inc edi
cmp edi, dword [ebp - 4]
jb 0x405000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405060
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405089
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 0xc]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4050b8
push esi
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4050e5
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
mov dword [edi], ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4054d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [0x411f50]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405537
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405537
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405537
push dword [ebp - 4]
mov edx, edi
mov ecx, ebx
call fcn.00405120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405610
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push 0xf0000000
push 1
push 0
mov eax, dword [eax + 0xc]
push 0
push 0x411f4c
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x20]
mov dword [0x411f50], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x405650
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa54
lea eax, [esp + 0x654]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0x404d04
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405709
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x405702
cmp word [esp + 0x3c], 0x2e
je 0x4056f6
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x268]
push 0x404d10
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x4056dd
lea ecx, [esp + 0x260]
call fcn.00405650
jmp 0x4056f6
lea ecx, [esp + 0x3c]
call fcn.00404e30
test eax, eax
je 0x4056f6
lea ecx, [esp + 0x260]
call fcn.00405540
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x4056a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405830
Capabilities:
Check mutex on windows
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push esi
call fcn.00405610
test eax, eax
jne 0x405850
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
call fcn.004054d0
push 0x404d20
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40587d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0
push 0x405730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400
lea eax, [esp + 0x14]
push eax
push 0x404db0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.ntdll.dll_NtDelayExecution]
mov dword [esp + 8], 0x4d2fa200
mov dword [esp + 0xc], 0xffffffff
lea ecx, [ecx]
lea ecx, [esp + 0x10]
call fcn.00405650
lea eax, [esp + 8]
push eax
push 0
call esi
jmp 0x4058c0
Function at 0x408f95
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407065
mov dword [ebp - 0x14], eax
cmp dword [0x411bf4], esi
jne 0x409088
push 0x800
push esi
push 0x4021ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409015
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409168
push esi
push esi
push 0x4021ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409168
push 0x402204
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409168
push eax
call ebx
push 0x402210
push edi
mov dword [0x411bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402220
push edi
mov dword [0x411bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402234
push edi
mov dword [0x411bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411c04], eax
test eax, eax
je 0x409085
push 0x402250
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411c00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4090ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4090a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4090c2
push 4
pop eax
jmp 0x40916a
cmp dword [ebp - 0x14], esi
je 0x4090c2
push dword [0x411bf4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4090a7
mov eax, dword [0x411c00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x409120
cmp dword [0x411c04], edi
je 0x409120
push eax
call ebx
push dword [0x411c04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409120
test eax, eax
je 0x409120
call ecx
test eax, eax
je 0x409115
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409115
test byte [ebp - 8], 1
jne 0x409120
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409150
mov eax, dword [0x411bf8]
cmp eax, edi
je 0x40914d
push eax
call ebx
test eax, eax
je 0x40914d
call eax
mov esi, eax
test esi, esi
je 0x40914d
mov eax, dword [0x411bfc]
cmp eax, edi
je 0x40914d
push eax
call ebx
test eax, eax
je 0x40914d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x411bf4]
call ebx
test eax, eax
je 0x409168
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40916a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040917b
mov esp, ebp
pop ebp
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x30a2398f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x62ad41d5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403181
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x4031a1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4031b3
mov dword [ebp - 0xc], 0x434200
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031c8
mov ecx, dword [0x47af58]
add ecx, eax
push ecx
call fcn.004033b2
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040339c
test eax, eax
je 0x40338a
test byte [ebp + 0x17], 0x80
je 0x403335
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41eb64], 0
and dword [0x41eb60], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x4201e8
mov dword [0x41e648], 8
mov dword [0x4281f0], eax
mov dword [0x4281ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4281e8], 0x4281e8
mov dword [ebp + 8], eax
jle 0x403392
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403241
mov esi, dword [ebp + 0x14]
mov edi, 0x430200
push esi
push edi
call fcn.0040339c
test eax, eax
je 0x40338a
sub dword [ebp + 0x14], esi
mov dword [0x41e638], edi
mov dword [0x41e63c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x41e638
mov dword [0x41e640], edi
mov dword [0x41e644], eax
call fcn.0040686a
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40332d
mov esi, dword [0x41e640]
sub esi, edi
call ebx
test byte [0x47afb4], 1
mov edi, eax
je 0x4032e8
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4032af
cmp dword [ebp + 0x14], 0
jne 0x4032e8
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405397
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403321
cmp dword [ebp + 0x10], 0
jne 0x403307
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405ed7
test eax, eax
je 0x403331
add dword [ebp - 4], esi
jmp 0x403315
mov eax, dword [0x41e640]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403264
jmp 0x403392
cmp dword [ebp + 0x14], 0
jg 0x403234
jmp 0x403392
push 0xfffffffffffffffc
jmp 0x40338c
push 0xfffffffffffffffe
jmp 0x40338c
test edi, edi
jne 0x403377
cmp dword [ebp + 0x14], edi
jle 0x403392
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40334b
mov esi, ebx
mov edi, 0x430200
push esi
push edi
call fcn.0040339c
test eax, eax
je 0x40338a
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ed7
test eax, eax
je 0x403331
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403341
jmp 0x403392
cmp dword [ebp + 0x14], esi
jge 0x40337f
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040339c
test eax, eax
jne 0x40338f
push 0xfffffffffffffffd
pop eax
jmp 0x403395
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10