joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032d6
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032f3
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403302
mov ebx, 0x40f888
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403317
mov ecx, dword [0x425b38]
add ecx, eax
push ecx
call fcn.00403505
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034d3
test eax, eax
je 0x40347e
test byte [ebp + 0x17], 0x80
je 0x403467
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b7b8
mov dword [ebp - 0xc], eax
call fcn.00406487
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034c9
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403367
mov esi, dword [ebp + 0x14]
mov edi, 0x40b888
push esi
push edi
call fcn.004034d3
test eax, eax
je 0x40347e
sub dword [ebp + 0x14], esi
mov dword [0x40b7d0], edi
mov dword [0x40b7d4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b7b8
mov dword [0x40b7d8], ebx
mov dword [0x40b7dc], eax
call fcn.004064a7
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40345f
mov esi, dword [0x40b7d8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x40983c], 1
mov edi, eax
je 0x403409
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033d6
cmp dword [ebp + 0x14], 0
jne 0x403409
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405203
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403454
cmp dword [ebp + 0x10], eax
jne 0x403432
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403463
cmp dword [ebp - 0x10], esi
jne 0x403463
add dword [ebp - 4], esi
jmp 0x403448
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b7d8]
jl 0x4034c9
cmp dword [ebp - 0x14], 1
jne 0x40338a
jmp 0x4034c9
cmp dword [ebp + 0x14], eax
jg 0x40335a
jmp 0x4034c9
push 0xfffffffffffffffc
jmp 0x403480
push 0xfffffffffffffffe
jmp 0x403480
test edi, edi
je 0x4034be
cmp dword [ebp + 0x14], esi
jge 0x403473
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034d3
test eax, eax
jne 0x4034c6
push 0xfffffffffffffffd
pop eax
jmp 0x4034cc
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40348e
mov esi, dword [ebp + 0x14]
mov edi, 0x40b888
push esi
push edi
call fcn.004034d3
test eax, eax
je 0x40347e
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403463
cmp esi, dword [ebp + 0x10]
jne 0x403463
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403483
jmp 0x4034c9
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40571c
Capabilities:
Check if file exists
Create process on windows
Get file attributes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405acf
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40580a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x425b68], eax
jmp 0x4059e9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405828
test eax, eax
je 0x405968
test byte [ebp + 0xc], 2
je 0x405968
mov esi, 0x4224d8
push edi
push esi
call fcn.00405efc
test ebx, ebx
je 0x405845
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40584b
push edi
call fcn.00405a36
push 0x40925c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40595e
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405a1a
cmp byte [eax], 0
je 0x40589c
cmp byte [ebp - 0x18], 0
je 0x40589c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4058ba
mov al, byte [esi + 1]
test al, al
je 0x40593d
cmp al, 0x2e
jne 0x4058ba
cmp byte [esi + 2], 0
je 0x40593d
push esi
push ebx
call fcn.00405efc
test byte [ebp - 0x148], 0x10
je 0x4058df
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40593d
push dword [ebp + 0xc]
push edi
call fcn.004057d6
jmp 0x40593d
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406350
pop ecx
pop ecx
push edi
call fcn.00405bb3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edi
jne 0x405936
test byte [ebp + 0xc], 4
je 0x405922
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406350
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405203
push 0
push edi
call fcn.00405c49
jmp 0x40593d
push str.Delete:_DeleteFile_failed___s__
call fcn.00406350
inc dword [0x425b68]
pop ecx
pop ecx
jmp 0x40593d
push 0xfffffffffffffff2
call fcn.00405203
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40587a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405968
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4059e9
cmp dword [ebp - 8], esi
push edi
jne 0x40598a
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406350
inc dword [0x425b68]
pop ecx
pop ecx
jmp 0x4059e9
call fcn.0040637e
test eax, eax
je 0x4059e9
push edi
call fcn.004059ef
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406350
pop ecx
pop ecx
push edi
call fcn.00405bb3
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x4059e2
test byte [ebp + 0xc], 4
je 0x4059db
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406350
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405203
push esi
push edi
call fcn.00405c49
jmp 0x4059e9
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x40597b
push 0xffffffffffffffe5
call fcn.00405203
pop edi
pop esi
leave
ret 8
Function at 0x405acf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4228d8
push esi
call fcn.00405efc
push esi
call fcn.00405a82
mov edi, eax
test edi, edi
jne 0x405af0
xor eax, eax
jmp 0x405b42
push edi
call fcn.00406138
test byte [0x425af0], 0x80
je 0x405b09
mov al, byte [edi]
test al, al
je 0x405aec
cmp al, 0x5c
je 0x405aec
sub edi, esi
jmp 0x405b21
call fcn.0040637e
test eax, eax
je 0x405b1b
test byte [eax], 0x10
je 0x405aec
push esi
call fcn.00405a36
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b0d
call fcn.004059ef
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 0x405bb3
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 0x405bcf
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405bd2
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 0x405c01
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 0x405c45
test edi, edi
jne 0x405c0c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c3f
Function at 0x405c49
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.004063bc
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c75
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405db4
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423660], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423660
je 0x405cb9
push 1
push 0
push esi
call fcn.00405bd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dba
cmp eax, edi
jg 0x405dba
mov esi, 0x4230d8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dba
cmp eax, edi
jg 0x405dba
push esi
push ebp
push str._s_s_r_n
push 0x422cd8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.00405bd2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405db4
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 0x405dad
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 0x405dad
cmp edi, dword [esp + 0x18]
jne 0x405dad
push str._Rename__r_n
push esi
call fcn.00405b47
test eax, eax
jne 0x405dc1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405efc
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422cd8
push eax
call fcn.00405b93
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 [0x425b70]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4099f0
push eax
call fcn.00405b47
test eax, eax
je 0x405d78
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405de8
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405ddd
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d7a
Function at 0x405df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e54
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e43
cmp dword [ebp + 0x14], 1
je 0x405e45
cmp dword [ebp + 0x14], 2
je 0x405e45
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405f1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405f3f
mov ecx, dword [0x4252bc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x425b18]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x424280
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x406112
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x406112
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x40611f
inc ebx
cmp cl, 0xfc
jbe 0x406105
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x4060b0
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405fd3
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x40604b
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ff2
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405df0
jmp 0x406046
cmp eax, 0x26
jne 0x406022
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405df0
cmp byte [edi], 0
jne 0x4060a8
push str.C:Program_Files
push edi
call fcn.00405efc
jmp 0x406046
cmp eax, 0x25
jne 0x406035
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x406046
cmp eax, 0x24
jne 0x40604b
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x4060a8
cmp dword [0x425b64], 0
jne 0x406057
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x425ae4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40608d
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004056f1
cmp dword [ebp - 8], 0
jne 0x406094
jmp 0x406090
and byte [edi], 0
test esi, esi
jne 0x406057
cmp byte [edi], 0
je 0x4060a8
cmp dword [ebp + 0xc], 0
je 0x4060a8
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00406138
jmp 0x4060f6
cmp byte [ebp + 0xf], 0xfd
jne 0x4060e4
cmp esi, 0x1b
jne 0x4060c9
push dword [0x425ae4]
push edi
call fcn.00405e5a
jmp 0x4060da
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405efc
add esi, 0xffffffeb
cmp esi, 6
jae 0x4060f6
jmp 0x4060a8
cmp byte [ebp + 0xf], 0xff
jne 0x4060f6
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405f1e
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x424280
jmp 0x406112
jne 0x40610f
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x406112
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405f6a
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x406134
push eax
push dword [ebp + 8]
call fcn.00405efc
leave
ret 8
Function at 0x4061d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4061f6
mov eax, dword [0x4098ec]
cmp eax, 0xffffffff
je 0x4061ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x4098ec], 0xffffffff
jmp 0x406269
cmp dword [0x424260], ebx
je 0x406269
cmp byte [0x423e60], bl
je 0x406235
cmp dword [0x4098ec], 0xffffffff
jne 0x40623e
push 4
push 0x40000000
push 0x423e60
call fcn.00405bd2
cmp eax, 0xffffffff
mov dword [0x4098ec], eax
je 0x406269
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x4098ec], 0xffffffff
je 0x406269
push esi
mov esi, 0x424a80
push 0x409abc
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x4098ec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
cmp dword [0x423a64], 0
push esi
jne 0x406450
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 0x40642a
mov dword [ecx*4 + 0x423a60], eax
inc ecx
cmp ecx, 0x100
jl 0x406425
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406481
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 + 0x423a60]
xor eax, esi
inc ecx
dec edx
jne 0x406463
pop edi
not eax
pop esi
ret 0xc
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x408d1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x408d2d
pop dword [ebp - 0x48]
mov eax, 0xe8be47f4
add eax, 0x17824539
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x355bc
push 0
mov eax, 0xcf4c11d0
add eax, 0x30f4cf50
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4d25a7bb
sub ecx, 0x4d256fa9
xor edx, edx
add edx, eax
mov edi, 0x417800
add edi, dword [ebp - 0x48]
mov esi, 0xfd97eb7c
sub esi, 0xf82cf048
xor dword [ebp - 8], 0xccf4508b
mov ebx, dword [edi]
sub ebx, esi
mov dword [ebp - 0x20], 0xeae6ca0f
mov dword [edx], ebx
add dword [ebp - 8], eax
add edx, 0x1193ac2e
sub edx, 0x1193ac2a
add edi, 0x1724b045
add edi, 0xe8db4fbf
loop 0x408d88
add eax, 0x76fc8869
add eax, 0x89044ab2
xor ebx, ebx
add ebx, eax
add eax, 0xd7cc9cf3
sub eax, 0xd7cc9cee
mov ecx, 0xf06e48e3
sub ecx, 0xf02e48e3
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x41f080
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f086
ret

Function at 0x42a810
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42a9c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call 0x405180
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42a9d8
call fcn.00404ddc
mov eax, ebx
call fcn.0041c98c
mov edi, eax
dec edi
test edi, edi
jl 0x42a8c8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c960
mov edx, dword [0x42deb8]
call fcn.00403e88
test al, al
je 0x42a8c4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041c960
lea edx, [ebp - 0x14]
call fcn.004351fc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call 0x405180
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call 0x404e50
inc esi
dec edi
jne 0x42a876
mov al, byte [0x42a9dc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42a9e8
mov eax, dword [ebp - 0xc]
call fcn.0040e470
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404b68
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004351fc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42a9d8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.004351fc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42a9d8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42a9d8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42a9f4
call fcn.0040a600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a9c8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404af4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404af4
lea eax, [ebp - 0x14]
call fcn.00404ad0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404af4
ret