joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032b9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
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 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032e8
mov ebx, 0x42a6c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fd
mov ecx, dword [0x46c278]
add ecx, eax
push ecx
call fcn.004034b4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040349e
test eax, eax
je 0x403455
test byte [ebp + 0x17], 0x80
je 0x40343e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x41e630
mov dword [ebp - 0xc], eax
call fcn.00406a70
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403494
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40334d
mov esi, dword [ebp + 0x14]
mov edi, 0x4266c0
push esi
push edi
call fcn.0040349e
test eax, eax
je 0x403455
sub dword [ebp + 0x14], esi
mov dword [0x41e648], edi
mov dword [0x41e64c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x41e630
mov dword [0x41e650], ebx
mov dword [0x41e654], eax
call fcn.00406a90
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403436
mov esi, dword [0x41e650]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x46c2d4], 1
mov edi, eax
je 0x4033f5
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033bc
cmp dword [ebp + 0x14], 0
jne 0x4033f5
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 - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.004055a6
mov dword [ebp - 0xc], edi
test esi, esi
je 0x40342a
cmp dword [ebp + 0x10], 0
jne 0x403412
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004060c3
test eax, eax
je 0x40343a
add dword [ebp - 4], esi
jmp 0x40341e
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x41e650]
cmp dword [ebp - 0x10], 1
jne 0x403370
jmp 0x403494
cmp dword [ebp + 0x14], 0
jg 0x403340
jmp 0x403494
push 0xfffffffffffffffc
jmp 0x403457
push 0xfffffffffffffffe
jmp 0x403457
test edi, edi
je 0x403489
cmp dword [ebp + 0x14], esi
jge 0x40344a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040349e
test eax, eax
jne 0x403491
push 0xfffffffffffffffd
pop eax
jmp 0x403497
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403465
mov esi, dword [ebp + 0x14]
mov edi, 0x4266c0
push esi
push edi
call fcn.0040349e
test eax, eax
je 0x403455
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060c3
test eax, eax
je 0x40343a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40345a
jmp 0x403494
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45a710], 0x44
push eax
xor eax, eax
push 0x45a710
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 0x405b43
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b47
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 0x405be5
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fec
mov edi, eax
cmp edi, 0xffffffff
je 0x405c26
test byte [esp + 0x10], 1
push esi
je 0x405c08
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c0e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c17
xor eax, eax
inc eax
jmp 0x405c28
test byte [esp + 0x10], 4
jne 0x405c26
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c2d
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
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ef8
test bl, 8
mov dword [ebp - 8], eax
je 0x405c6c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46c2a8], eax
jmp 0x405de9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c86
test eax, eax
je 0x405d97
test bl, 2
je 0x405d97
mov esi, 0x452710
push edi
push esi
call fcn.00406521
cmp dword [ebp + 8], 0
je 0x405ca5
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cab
push edi
call fcn.00405e3c
cmp word [edi], 0
jne 0x405cbb
cmp word [0x452710], 0x5c
jne 0x405cc6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d8c
cmp word [ebp - 0x22c], 0x2e
jne 0x405d10
cmp word [ebp - 0x22a], 0
je 0x405d6f
cmp word [ebp - 0x22a], 0x2e
jne 0x405d10
cmp word [ebp - 0x228], 0
je 0x405d6f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406521
test byte [ebp - 0x258], 0x10
je 0x405d3b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d6f
push dword [ebp + 0xc]
push edi
call fcn.00405c2d
jmp 0x405d6f
push dword [ebp - 4]
push edi
call fcn.00405be5
test eax, eax
jne 0x405d67
cmp dword [ebp - 4], eax
je 0x405d5f
push edi
push 0xfffffffffffffff1
call fcn.004055a6
push 0
push edi
call fcn.004062e1
jmp 0x405d6f
inc dword [0x46c2a8]
jmp 0x405d6f
push edi
push 0xfffffffffffffff2
call fcn.004055a6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ce8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d97
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405de9
cmp dword [ebp - 8], esi
jne 0x405dab
inc dword [0x46c2a8]
jmp 0x405de9
push edi
call fcn.0040687e
test eax, eax
je 0x405de9
push edi
call fcn.00405df0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405be5
test eax, eax
jne 0x405de1
cmp dword [ebp - 4], esi
je 0x405da3
push edi
push 0xfffffffffffffff1
call fcn.004055a6
push esi
push edi
call fcn.004062e1
jmp 0x405de9
push edi
push 0xffffffffffffffe5
call fcn.004055a6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ef8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x456710
push esi
call fcn.00406521
push esi
call fcn.00405e9b
mov edi, eax
test edi, edi
jne 0x405f19
xor eax, eax
jmp 0x405f71
push edi
call fcn.004067cf
test byte [0x46c238], 0x80
je 0x405f36
mov ax, word [edi]
test ax, ax
je 0x405f15
cmp ax, 0x5c
je 0x405f15
sub edi, esi
sar edi, 1
jmp 0x405f50
call fcn.0040687e
test eax, eax
je 0x405f4a
test byte [eax], 0x10
je 0x405f15
push esi
call fcn.00405e3c
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f3c
call fcn.00405df0
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 0x405fec
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 0x40600b
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 0x406011
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 0x406040
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 [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
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 0x406090
test edi, edi
jne 0x40604d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40608a
Function at 0x406167
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 [0x45ada8], 0x55004e
mov dword [0x45adac], 0x4c
mov edi, 0x400
mov ebp, 0x45ada8
je 0x4061bd
push 1
push 0
push esi
call fcn.00406011
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062dc
cmp eax, edi
jg 0x4062dc
mov esi, 0x45b5a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062dc
cmp eax, edi
jg 0x4062dc
push esi
push ebp
push str._ls_ls_r_n
push 0x45a9a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x46c230]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040655e
push 4
push 0xc0000000
push esi
call fcn.00406011
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062dc
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 0x4062d5
push edi
push esi
push ebp
call fcn.00406094
test eax, eax
je 0x4062d5
push str._Rename__r_n
push esi
call fcn.00405f76
test eax, eax
jne 0x406273
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062a8
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f76
mov ebp, eax
test ebp, ebp
je 0x4062a4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406295
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40628f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062aa
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45a9a8
push eax
call fcn.00405fcc
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.004060c3
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 0x4062e1
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 0x406304
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406167
pop ecx
pop ecx
inc dword [0x46c2b0]
ret 8
Function at 0x4063ef
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], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040638e
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40645f
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 + 0x3ffe], 0
test edi, edi
pop edi
jne 0x40645f
cmp dword [ebp + 0xc], 1
je 0x406463
cmp dword [ebp + 0xc], 2
je 0x406463
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068a5
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 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
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 0x406a02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdac], 0
push esi
jne 0x406a39
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 0x406a13
mov dword [ecx*4 + 0x45bda8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
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 + 0x45bda8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
neg dword [ecx - 0x2d949130]
imul edx, edx, 0x39
test al, 0x3b
mov ecx, dword [ebp - 0x4ba5c1d1]
mov esi, 0x4dc19fc
enter 0xffffffffffffa6b3, 0xffffffffffffffab
imul edx, edx, 0x39
test al, 0x3b
mov ecx, dword [ebp - 0x4ba5c1d1]
mov esi, 0x4dc19fc
enter 0xffffffffffffa6b3, 0xffffffffffffffab
shl byte [esp + ecx*4 + 0x229d9a86], 0x91
xchg dword [ebx + 0x3c], ebx
sub al, 0x3e
loope 0x414abb
invalid
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
mov ecx, 0x7f8b06dc
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x3fe75bbb
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x420014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x180], 0
lea eax, [ebp - 0x17c]
push eax
push 0x40
lea ecx, [ebp - 0x174]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4016d3
cmp dword [ebp - 0x17c], 0x40
je 0x4016da
xor eax, eax
jmp 0x4018b2
movzx ecx, word [ebp - 0x174]
cmp ecx, 0x5a4d
je 0x4016f0
xor eax, eax
jmp 0x4018b2
lea edx, [ebp - 0x17c]
push edx
push 0x108
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401727
cmp dword [ebp - 0x17c], 0x108
je 0x40173b
push 0x4182f8
call fcn.00402840
add esp, 4
xor eax, eax
jmp 0x4018b2
cmp dword [ebp - 0x10c], 0x4550
je 0x40175b
push str.No_NT_n
call fcn.00402840
add esp, 4
xor eax, eax
jmp 0x4018b2
movzx eax, word [ebp - 0xf8]
mov ecx, dword [ebp - 0x138]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x188], edx
movzx eax, word [ebp - 0x106]
mov dword [ebp - 0x180], eax
movzx ecx, word [ebp - 0xf4]
cmp ecx, 0x10b
jne 0x40179a
mov dword [ebp - 0x184], 0x20
jmp 0x4017a4
mov dword [ebp - 0x184], 0x40
mov edx, dword [ebp - 0x184]
mov dword [0x42213c], edx
mov dword [ebp - 0x178], 0
jmp 0x4017cb
mov eax, dword [ebp - 0x178]
add eax, 1
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
cmp ecx, dword [ebp - 0x180]
jae 0x4018a2
lea edx, [ebp - 0x17c]
push edx
push 0x28
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x188]
imul edx, dword [ebp - 0x178], 0x28
add ecx, edx
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401817
cmp dword [ebp - 0x17c], 0x28
je 0x40182b
push str.No_Read_n
call fcn.00402840
add esp, 4
xor eax, eax
jmp 0x4018b2
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x128]
imul edx, dword [ebp - 0x178], 0x18
mov dword [edx + 0x420938], ecx
mov esi, dword [ebp + 0xc]
add esi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x12c]
push eax
call fcn.00401640
add esp, 4
add esi, eax
imul ecx, dword [ebp - 0x178], 0x18
mov dword [ecx + 0x42093c], esi
push 8
lea edx, [ebp - 0x134]
push edx
imul eax, dword [ebp - 0x178], 0x18
add eax, 0x420940
push eax
call fcn.00406590
add esp, 0xc
imul ecx, dword [ebp - 0x178], 0x18
mov edx, 1
shl edx, 3
mov byte [ecx + edx + 0x420940], 0
jmp 0x4017bc
mov eax, dword [ebp - 0x180]
mov dword [0x422138], eax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405951
mov esp, ebp
pop ebp
ret
Function at 0x4030c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x420014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf8
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00406b10
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x4030fd
push 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4031b1
push 0x1c
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.00406b10
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
jne 0x40312b
xor eax, eax
jmp 0x4031b1
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x403148
xor eax, eax
jmp 0x4031b1
movzx eax, word [ebp - 0x44]
cmp eax, 0x5a4d
jne 0x403161
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x58]
ja 0x403161
cmp dword [ebp - 8], 0x40
jae 0x40316f
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4031b1
push 0
push 0xf8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x403192
xor eax, eax
jmp 0x4031b1
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
je 0x4031ab
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4031b1
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405951
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x38], 0
jne 0x4042e3
mov dword [ebp + 0x38], 0x405728
cmp dword [ebp + 0x2c], 0
jne 0x4042ff
lea eax, [ebp - 0x10]
mov dword [ebp + 0x2c], eax
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406b10
add esp, 0xc
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
or eax, 4
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x38]
test eax, eax
jne 0x404338
xor eax, eax
jmp 0x4043cb
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x34]
push ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call fcn.00404640
test eax, eax
jne 0x404393
mov ecx, dword [ebp + 0x38]
push ecx
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.004043e0
test eax, eax
jne 0x404393
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call sub.KERNEL32.dll_TerminateProcess
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x4043cb
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x4043a7
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call sub.KERNEL32.dll_ResumeThread
lea eax, [ebp - 0x10]
cmp dword [ebp + 0x2c], eax
jne 0x4043c6
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx]
push edx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret 0x34