joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f93
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408408
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083f8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405fe4
xor eax, eax
jmp 0x40600b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40600b
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405fe0
call esi
pop esi
leave
ret 4

Function at 0x406045
Capabilities:
Create process on windows

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

Function at 0x406088
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406126
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406586
mov edi, eax
cmp edi, 0xffffffff
je 0x406167
test byte [esp + 0x10], 1
push esi
je 0x406149
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40614f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406158
xor eax, eax
inc eax
jmp 0x406169
test byte [esp + 0x10], 4
jne 0x406167
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40616e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.00406492
test bl, 8
mov dword [ebp - 8], eax
je 0x4061ad
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42cc48], eax
jmp 0x406383
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4061c7
test eax, eax
je 0x406305
test bl, 2
je 0x406305
mov edi, 0x426898
push esi
push edi
call fcn.00406abb
cmp dword [ebp + 8], 0
je 0x4061e6
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4061ec
push esi
call fcn.004063d6
cmp word [esi], 0
jne 0x4061fc
cmp word [0x426898], 0x5c
jne 0x406207
push 0x40a524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4062fa
cmp word [ebp - 0x22c], 0x2e
jne 0x406259
cmp word [ebp - 0x22a], 0
je 0x4062dd
cmp word [ebp - 0x22a], 0x2e
jne 0x406259
cmp word [ebp - 0x228], 0
je 0x4062dd
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406abb
test byte [ebp - 0x258], 0x10
je 0x406284
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4062dd
push dword [ebp + 0xc]
push esi
call fcn.0040616e
jmp 0x4062dd
push esi
push str.Delete:_DeleteFile___s__
call fcn.0040700e
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00406126
test eax, eax
push esi
jne 0x4062d6
cmp dword [ebp - 4], eax
je 0x4062c2
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040700e
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405a8f
push 0
push esi
call fcn.0040687b
jmp 0x4062dd
push str.Delete:_DeleteFile_failed___s__
call fcn.0040700e
inc dword [0x42cc48]
pop ecx
pop ecx
jmp 0x4062dd
push 0xfffffffffffffff2
call fcn.00405a8f
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406229
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406305
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x406383
cmp dword [ebp - 8], edi
push esi
jne 0x406326
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040700e
inc dword [0x42cc48]
pop ecx
pop ecx
jmp 0x406383
call fcn.0040703f
test eax, eax
je 0x406383
push esi
call fcn.0040638a
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040700e
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00406126
test eax, eax
push esi
jne 0x40637c
cmp dword [ebp - 4], edi
je 0x406375
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040700e
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405a8f
push edi
push esi
call fcn.0040687b
jmp 0x406383
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x406317
push 0xffffffffffffffe5
call fcn.00405a8f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406492
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x427098
push esi
call fcn.00406abb
push esi
call fcn.00406435
mov edi, eax
test edi, edi
jne 0x4064b3
xor eax, eax
jmp 0x40650b
push edi
call fcn.00406d42
test byte [0x42cbd8], 0x80
je 0x4064d0
mov ax, word [edi]
test ax, ax
je 0x4064af
cmp ax, 0x5c
je 0x4064af
sub edi, esi
sar edi, 1
jmp 0x4064ea
call fcn.0040703f
test eax, eax
je 0x4064e4
test byte [eax], 0x10
je 0x4064af
push esi
call fcn.004063d6
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4064d6
call fcn.0040638a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4065a5
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4065ab
Capabilities:
Get file attributes

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

Function at 0x4065da
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 [0x40b508]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b50c]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40662a
test edi, edi
jne 0x4065e7
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406624
Function at 0x406701
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x427f30], 0x55004e
mov dword [0x427f34], 0x4c
mov edi, 0x400
mov ebp, 0x427f30
je 0x406757
push 1
push 0
push esi
call fcn.004065ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406876
cmp eax, edi
jg 0x406876
mov esi, 0x428730
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406876
cmp eax, edi
jg 0x406876
push esi
push ebp
push str._ls_ls_r_n
push 0x427b30
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42cbd0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406af8
push 4
push 0xc0000000
push esi
call fcn.004065ab
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406876
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 0x40686f
push edi
push esi
push ebp
call fcn.0040662e
test eax, eax
je 0x40686f
push str._Rename__r_n
push esi
call fcn.00406510
test eax, eax
jne 0x40680d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406842
add eax, 0xa
push 0x40b510
push eax
call fcn.00406510
mov ebp, eax
test ebp, ebp
je 0x40683e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40682f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406829
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406844
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x427b30
push eax
call fcn.00406566
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040665d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40687b
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40689e
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406701
pop ecx
pop ecx
inc dword [0x42cc50]
ret 8
Function at 0x406989
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406928
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4069f9
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4069f9
cmp dword [ebp + 0xc], 1
je 0x4069fd
cmp dword [ebp + 0xc], 2
je 0x4069fd
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x407066
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40708a
xor eax, eax
test eax, eax
je 0x40709d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40709d
xor ecx, ecx
jmp 0x4070a0
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a524]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x428f34], 0
push esi
jne 0x4071fa
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 0x4071d4
mov dword [ecx*4 + 0x428f30], eax
inc ecx
cmp ecx, 0x100
jl 0x4071cf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40722b
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 + 0x428f30]
xor eax, esi
inc ecx
dec edx
jne 0x40720d
pop edi
not eax
pop esi
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x417a54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4306a9
call fcn.00430290
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.004069bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040ef32
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040ef32
mov ecx, eax
call fcn.004069cb
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f1c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417b6e
xor ecx, ecx
cmp word [eax], cx
je 0x417b6e
lea ecx, [ebp - 0x10]
call fcn.0040ef32
mov ecx, eax
call fcn.00406a7a
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x417ba1
mov ecx, dword [edi]
call fcn.00406aa2
lea ecx, [ebp - 0x10]
call fcn.0040eea9
lea ecx, [ebp - 0x14]
call fcn.0040eea9
lea ecx, [ebp - 0x18]
call fcn.0040eea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42c0b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bd74

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4103c3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x411288
call fcn.00410c58
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41251c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x410408
cmp eax, esi
jne 0x4103fb
xor esi, esi
inc esi
mov edi, esi
jmp 0x41040b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4103df
xor esi, esi
inc esi
cmp dword [0x412520], esi
jne 0x41041d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x410457
cmp dword [0x412520], ebx
jne 0x410451
mov dword [0x412520], esi
push 0x4011ac
push 0x4011a0
call fcn.0041053c
pop ecx
pop ecx
test eax, eax
je 0x410457
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41052c
mov dword [0x412074], esi
cmp dword [0x412520], esi
jne 0x41047a
push 0x40119c
push 0x40117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x412520], 2
test edi, edi
jne 0x410487
xor eax, eax
mov ecx, 0x41251c
xchg dword [ecx], eax
cmp dword [0x41252c], 0
je 0x4104b3
push 0x41252c
call fcn.00410ab0
pop ecx
test eax, eax
je 0x4104b3
push ebx
push 2
push ebx
mov esi, dword [0x41252c]
mov ecx, esi
call dword [0x4131c0]
call esi
push dword [0x412080]
push dword [0x41207c]
push dword [0x412078]
call fcn.0040db8d
add esp, 0xc
mov dword [0x412070], eax
cmp dword [0x412088], 0
jne 0x410511
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x412074], 0
jne 0x410525
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x412070]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004a2000
jmp 0x4103c3

Function at 0x410994
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4112c8
call fcn.00410c58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4109f4
cmp eax, 0xffffffff
je 0x4109f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4109ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4109ed
cmp edx, 0x10000000
jae 0x4109ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4109ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410a60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x410a9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x410a96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x410aa0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x410a86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5db624e5
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x39e15272
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x405a12
pop dword [ebp - 0x1c]
mov eax, 0x405a12
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xc8173101
add dword [ebp - 0x2c], 0x863b144a
mov dword [ebp - 0x28], 0xf79f983b
add dword [ebp - 0x28], 0x3a93b40a
mov dword [ebp - 0x24], 0x7ef0fa68
sub dword [ebp - 0x24], 0x32a4b63a
mov dword [ebp - 0x20], 0x538dc4e5
sub dword [ebp - 0x20], 0x538dc4e5
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xaf50f415
add dword [ebp - 0x2c], 0xc5217541
mov dword [ebp - 0x28], 0xb8c757ac
add dword [ebp - 0x28], 0x88a509c9
mov dword [ebp - 0x24], 0x29560658
add dword [ebp - 0x24], 0x3a196614
mov dword [ebp - 0x20], 0x436066f4
sub dword [ebp - 0x20], 0x436066f4
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xda3c66e9
sub eax, 0xd9fbe5e9
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37144
push 0
call eax
mov ecx, 0x79a00d2d
sub ecx, 0x799fc4c8
mov ebx, eax
mov edx, 0xe4e0ae21
add edx, 0x1b6635df
add edx, dword [ebp - 0x1c]
mov edi, 0x98721ce6
add edi, 0xb846c952
add dword [ebp - 0x10], eax
mov esi, dword [edx]
sub dword [ebp - 0x18], 0x6dcce8d5
add esi, edi
xor dword [ebp - 0x14], 0x5a6bfab7
mov dword [ebx], esi
sub dword [ebp - 0x18], edx
add ebx, 4
add edx, 4
loop 0x405b2a
add eax, 0x5b4ac672
add eax, 0xa4b64df5
xor ebx, ebx
add ebx, eax
add eax, 0x363013ea
sub eax, 0x363013e5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1966387d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2f076cec
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219