joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x158
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push eax
push 0x104
mov ebx, dword [ebp + 0x12]
mov edi, dword [ebp + 0xe]
add ebx, ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp + 0x16]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x6c]
add eax, esi
push str._u._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.004013e1
add esp, 0x14
test eax, eax
jne 0x401139
inc eax
jmp 0x4011d5
mov al, byte [ebp + 0xd]
test al, al
jne 0x401191
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0x20], esi
lea eax, [ebp + 0x3e]
push eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011d3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x88]
push ecx
call eax
mov ebx, eax
jmp 0x4011d3
cmp al, 1
jne 0x4011d1
lea eax, [ebp + 0x4e]
push eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011ba
lea ecx, [esp + 0x64]
push ecx
call eax
mov esi, eax
jmp 0x4011bc
xor esi, esi
test esi, esi
je 0x4011c8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
test esi, esi
setne bl
jmp 0x4011d3
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 5], 0
je 0x4011f7
cmp dword [esi + 1], 0
je 0x4011f7
call section..text
cmp dword [esp + 0xc], 0
jne 0x40121b
mov eax, dword [esi + 0x12]
test eax, eax
je 0x40121b
mov ecx, dword [esi + 0xe]
test ecx, ecx
je 0x40121b
add eax, ecx
cmp eax, edi
ja 0x40121b
pop edi
mov ecx, esi
pop esi
jmp 0x4010dd
pop edi
pop esi
ret
Function at 0x40121e
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x120
push ebx
push edi
push str._id
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4012ee
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [section.bss], eax
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [section.bss]
lea ecx, [esp + 0x28]
add eax, ecx
push str._u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.0040143a
add esp, 0x10
test eax, eax
je 0x4012ee
push ebp
xor ebp, ebp
mov dword [esp + 0x18], 4
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0x403000
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004024cf
mov esi, eax
cmp dword [esp + 0x10], ebp
je 0x4012d7
push dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cmp esi, eax
pop esi
pop ebp
jne 0x4012ee
mov ecx, dword [esp + 0x1c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
jmp 0x4012f0
xor eax, eax
pop edi
pop ebx
add esp, 0x120
ret

Function at 0x4012f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040121e
test eax, eax
je 0x401335
mov ecx, dword [ebp - 8]
cmp dword [ecx + 5], 0
je 0x4013cd
cmp dword [ecx + 1], 0
je 0x4013cd
mov edx, dword [ebp - 4]
call section..text
jmp 0x4013cd
push edi
xor edx, edx
mov edi, 0x204
mov cl, byte [edx*2 + 0x404100]
mov al, byte [edx*2 + 0x404101]
and cl, 0xf0
shr al, 4
or cl, al
xor cl, dl
mov byte [ebp + edx - 0x20c], cl
inc edx
cmp edx, edi
jb 0x40133d
mov ecx, dword [ebp - 0x20c]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x208]
call fcn.00402395
pop ecx
pop ecx
test eax, eax
je 0x4013cc
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], 0x400
jb 0x4013cc
push 0xea60
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 4]
push 0
call fcn.004011e0
pop ecx
test edi, edi
je 0x4013cc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4013e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401431
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401431
cmp dword [ebp - 4], edi
jne 0x401431
xor eax, eax
inc eax
jmp 0x401433
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40143a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebx
push 0x80
push 3
push ebx
inc esi
mov ebp, edx
push esi
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401467
xor eax, eax
jmp 0x4014e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x18]
mov dword [ebx], eax
test eax, eax
jne 0x40147e
and dword [ebp], eax
jmp 0x4014dd
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp], eax
test eax, eax
jne 0x40149a
xor esi, esi
jmp 0x4014dd
and dword [esp + 0x10], 0
cmp dword [ebx], 0
jne 0x4014a8
xor eax, eax
jmp 0x4014c1
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x10]
cmp eax, dword [ebx]
je 0x4014dd
xor esi, esi
cmp dword [ebp], esi
je 0x4014dd
push dword [ebp]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401725
Capabilities:
Get hostname
Get user security identifier

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push 5
pop edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2f
push eax
lea eax, [esp + 0x20]
xor ebp, ebp
push eax
push ebp
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x40181e
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push ebp
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40181e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40181e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40181e
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40181e
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x401812
movzx eax, byte [esi + 1]
cmp eax, edi
jae 0x4017e1
mov edi, eax
mov edx, edi
lea ecx, [esi + 8]
shl edx, 2
test ebx, ebx
je 0x401802
test ecx, ecx
je 0x401802
test edx, edx
je 0x401802
sub ebx, ecx
mov al, byte [ecx]
mov byte [ebx + ecx], al
inc ecx
sub edx, 1
jne 0x4017f7
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x401820
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x4018e0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov edx, dword [sym.imp.KERNEL32.dll_SwitchToThread]
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x14], 0x10
push esi
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edx
call edx
rdtsc
mov esi, eax
mov dword [esp + 0x24], edx
xor eax, eax
lea edi, [esp + 0x28]
inc eax
xor ecx, ecx
cpuid
mov dword [edi], eax
mov eax, edi
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
rdtsc
sub eax, esi
sbb edx, dword [esp + 0x24]
add ebp, eax
adc ebx, edx
mov dword [esp + 0x10], ebx
call dword [esp + 0x20]
rdtsc
mov ecx, eax
mov esi, edx
rdtsc
sub eax, ecx
nop
mov ecx, dword [esp + 0x14]
sbb edx, esi
add ecx, eax
mov eax, dword [esp + 0x18]
adc eax, edx
mov dword [esp + 0x14], ecx
sub dword [esp + 0x1c], 1
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jne 0x40190d
push eax
push ecx
push ebx
push ebp
call fcn.00402600
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a4b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x10], ecx
xor edx, edx
push edi
mov edi, dword [esp + 0x1c]
mov eax, edx
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x401a5f
mov cl, dl
mov ebx, edx
mov eax, dword [esp + 0x14]
movzx esi, dl
mov dl, byte [ebx + edi]
mov al, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x13], cl
movzx ecx, cl
mov al, byte [ecx + edi]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx + edi], dl
xor edx, edx
mov cl, byte [esp + 0x13]
div ebp
inc ebx
cmp ebx, 0x100
jb 0x401a6e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

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

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
je 0x401b63
cmp dword [esi + 4], ebx
je 0x401b63
cmp dword [esi + 8], ebx
je 0x401b63
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401b63
cmp dword [esi + 0x10], ebx
jne 0x401af8
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x10], eax
test eax, eax
je 0x401b63
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
mov ecx, dword [esi]
push ebp
push eax
call fcn.00401a4b
mov ebp, dword [esi + 0xc]
pop ecx
test ebp, ebp
je 0x401b5d
push edi
mov edi, dword [esi + 0x10]
mov eax, ebx
mov esi, dword [esi + 8]
sub esi, edi
inc bl
movzx ebx, bl
mov cl, byte [esp + ebx + 0x14]
movzx edx, cl
add al, dl
movzx eax, al
mov dword [esp + 0x10], eax
mov al, byte [esp + eax + 0x14]
mov byte [esp + ebx + 0x14], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x14], cl
mov al, byte [esp + ebx + 0x14]
add al, dl
movzx eax, al
mov al, byte [esp + eax + 0x14]
xor al, byte [esi + edi]
mov byte [edi], al
inc edi
mov eax, dword [esp + 0x10]
sub ebp, 1
jne 0x401b1b
pop edi
xor eax, eax
inc eax
pop ebp
jmp 0x401b65
xor eax, eax
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x401dd9
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov edi, 0x100
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], edi
push eax
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x401e0b
mov word [esp + 0x28], 0x78
lea eax, [esp + 0x28]
mov edx, str.___u
push eax
mov ecx, ebx
call fcn.00401b6e
mov esi, eax
mov dword [esp + 0x14], edi
pop ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x401e3e
mov word [esp + 0x28], 0x78
lea eax, [esp + 0x28]
mov edx, 0x4045c0
push eax
lea ecx, [ebx + esi*2]
call fcn.00401b6e
pop ecx
lea edx, [esp + 0x14]
add esi, eax
call fcn.00401725
mov ebp, eax
lea ecx, [ebx + esi*2]
test ebp, ebp
je 0x401eaa
push dword [esp + 0x14]
push 0x4045c4
push str._s_u
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor edi, edi
add esp, 0x10
inc edi
add esi, eax
cmp ebp, edi
jbe 0x401ec2
push dword [esp + edi*4 + 0x14]
lea eax, [ebx + esi*2]
push 0x4045d4
push str._s_u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
add esi, eax
inc edi
cmp edi, ebp
jb 0x401e86
jmp 0x401ec2
push 0
push 0x4045c4
push str._s_u
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
add esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret

Function at 0x402395
Capabilities:
Get common file path

Disassembly:
sub esp, 0x120
mov dword [0x403004], ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x134]
and eax, 0x7fffff00
mov ebx, dword [esp + 0x138]
mov dword [section.bss], eax
and dword [ebp], 0
and dword [ebx], 0
jmp 0x4024b3
mov cl, byte [esi + 1]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esi + 2]
call fcn.004022b0
pop ecx
pop ecx
test eax, eax
je 0x402498
cmp dword [ebx], 0
jne 0x402479
and dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
and dword [esp + 0x24], 0
and dword [esp + 0x28], 0
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0x403000
call fcn.004024cf
cmp eax, 1
jne 0x402473
mov eax, dword [esp + 0x24]
mov dword [ebp], eax
mov eax, dword [esp + 0x28]
mov dword [ebx], eax
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [section.bss]
lea ecx, [esp + 0x30]
add eax, ecx
push str._u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov edx, ebx
call fcn.004013e1
add esp, 0x10
jmp 0x40247d
neg eax
sbb eax, eax
and edi, eax
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x402491
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x138]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [esi]
add esi, eax
cmp byte [esi], 0
jne 0x4024b5
cmp dword [ebp], 0
jne 0x4024ca
mov esi, edi
test edi, edi
jne 0x4023d1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
xor eax, eax
inc eax
jmp 0x4024bf
Function at 0x4024cf
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 8
pop esi
mov ebp, dword [edi]
test ebp, ebp
je 0x402534
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x402534
cmp ebx, esi
jb 0x402534
cmp ebx, 0x10
jb 0x402534
mov ecx, dword [esi + ebp]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
lea eax, [edx + 0xc]
add eax, esi
cmp eax, ebx
ja 0x402534
cmp dword [esi + ebp + 4], 0x54414449
je 0x40253f
mov esi, eax
lea eax, [esi + 8]
cmp eax, ebx
jbe 0x4024f1
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [esi + ebp]
cmp edx, 5
jb 0x402534
mov ebp, dword [ecx + 8]
sub edx, 4
add ecx, 0xc
mov al, byte [ecx]
movzx esi, al
cmp esi, edx
ja 0x402534
test al, al
jne 0x402576
mov eax, dword [edi + 8]
test eax, eax
je 0x402534
mov esi, dword [edi + 0xc]
test esi, esi
je 0x402534
mov dword [esp + 0x10], eax
dec edx
mov dword [esp + 0x14], esi
jmp 0x402591
lea eax, [ecx + 1]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
cmp edx, eax
jb 0x402534
or eax, 0xffffffff
sub eax, esi
add edx, eax
add ecx, esi
and dword [esp + 0x20], 0
lea eax, [ecx + 1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.00401aaa
test eax, eax
je 0x402534
mov esi, dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x20]
mov ebx, 0x811c9dc5
test esi, esi
je 0x4025d2
movzx eax, byte [edx + ecx]
xor eax, ebx
imul ebx, eax, 0x1000193
inc edx
cmp edx, esi
jb 0x4025c1
cmp ebx, ebp
je 0x4025f1
test ecx, ecx
je 0x4025ea
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x402537
xor eax, eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], esi
inc eax
jmp 0x402537
Function at 0x413f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413f4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413f4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x66936775
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x600f3a28
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4025e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x438050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4026a0
nop dword [eax]
mov eax, esi
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40265e
test dx, dx
je 0x40265a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40265e
add ecx, 4
add eax, 4
test dx, dx
jne 0x402638
xor eax, eax
jmp 0x402663
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40268e
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402688
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402630
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af0a
mov esp, ebp
pop ebp
ret
Function at 0x403490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x403576
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x403565
jg 0x4034d0
test edx, edx
je 0x403565
nop dword [eax]
call fcn.004056d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x403524
jg 0x4034e7
test esi, esi
je 0x403524
cmp ebx, eax
jg 0x4034f7
jl 0x4034f1
cmp edi, esi
jae 0x4034f7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040c380
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x403549
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40355f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4034d0
jl 0x40355f
test edi, edi
jne 0x4034d0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403598
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40359a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x403618
jg 0x4035ad
test esi, esi
je 0x403618
test eax, eax
jl 0x4035fc
jg 0x4035b7
test ebx, ebx
je 0x4035fc
cmp edi, eax
jg 0x4035c7
jl 0x4035c1
cmp esi, ebx
jae 0x4035c7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040c380
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x403618
jg 0x4035ff
test esi, esi
je 0x403618
jmp 0x4035ff
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x403618
push eax
push esi
push 1
push edx
call fcn.00410da0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc