joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40321f
Capabilities:
Get disk size
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, edx
mov word [ebp - 3], 0x5c3a
mov ebx, ecx
mov al, byte [edi]
mov byte [ebp - 4], al
xor eax, eax
push eax
push eax
mov byte [ebp - 1], al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [ebp - 0xc]
mov ecx, 0x3d08fc00
cmp eax, ecx
jbe 0x403261
mov eax, ecx
cmp eax, dword [0x406960]
jge 0x40326e
push 7
pop eax
jmp 0x4032c2
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
mov edx, esi
call fcn.0040334a
test eax, eax
jne 0x403283
push 4
jmp 0x4032c0
push esi
mov edx, edi
mov ecx, ebx
call fcn.0040358f
movzx ebx, ax
push 0xd
pop eax
cmp bx, ax
je 0x4032a6
mov edx, esi
mov ecx, edi
call fcn.004032ca
mov ax, bx
jmp 0x4032c1
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 3
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [esi], 0x5c
push 0xd
pop eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4032ca
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, ecx
mov dword [ebp - 4], 0x5c3a20
call fcn.00403a60
mov al, byte [esi]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll__chdir]
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ebx, ebx
mov edi, ebx
push esi
call dword [sym.imp.msvcrt.dll__rmdir]
pop ecx
test eax, eax
je 0x40331a
inc edi
cmp edi, 0x4b0
jl 0x403305
mov edi, dword [ebp - 8]
push 0x80
push esi
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.msvcrt.dll__rmdir]
pop ecx
test eax, eax
je 0x403340
inc ebx
cmp ebx, 0x4b0
jl 0x40332b
mov byte [edi], 0x5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40334a
Capabilities:
Create directory
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov edx, 0xa0
mov edi, ecx
call fcn.00402127
mov dword [ebp - 0xac], eax
lea ecx, [edi + eax]
mov dword [ebp - 0xa8], ecx
movsx ecx, byte [edi]
sub ecx, 0x40
push ecx
call dword [sym.imp.msvcrt.dll__chdrive]
push edi
mov byte [esi], bl
call dword [sym.imp.msvcrt.dll__mkdir]
push ebx
push edi
mov byte [esi], 0x5c
call dword [sym.imp.msvcrt.dll__access]
mov esi, dword [ebp - 0xa8]
add esp, 0x10
jmp 0x403430
push edi
call dword [sym.imp.msvcrt.dll__chdir]
pop ecx
test eax, eax
jne 0x403408
push edi
push 0x401244
lea eax, [ebp - 0xa4]
push 0xa0
push eax
call fcn.0040160e
add esp, 0x10
test eax, eax
js 0x40348f
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll__mktemp]
pop ecx
test eax, eax
je 0x403408
lea eax, [ebp - 0xa4]
push 0x401250
push eax
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
test eax, eax
jne 0x403451
inc ebx
cmp ebx, 9
jg 0x403479
push 0xa
mov eax, 0xa0
sub eax, dword [ebp - 0xac]
push eax
push esi
push ebx
call dword [sym.imp.msvcrt.dll__itoa_s]
push 0
push edi
call dword [sym.imp.msvcrt.dll__access]
add esp, 0x18
test eax, eax
je 0x4033b0
push edi
call dword [sym.imp.msvcrt.dll__mkdir]
pop ecx
test eax, eax
jne 0x403479
push edi
call dword [sym.imp.msvcrt.dll__chdir]
xor eax, eax
pop ecx
inc eax
jmp 0x40347e
push eax
call dword [sym.imp.msvcrt.dll_fclose]
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll_remove]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x403470
mov byte [esi], 0
xor eax, eax
test ecx, ecx
sete al
jmp 0x40347e
mov byte [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c50
mov esp, ebp
pop ebp
ret
call fcn.0040215d
int3
Function at 0x403a60
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x406028]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
push 1
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [0x4063f0]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
push dword [0x4063f0]
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
test edi, edi
je 0x403be7
jmp 0x403b78
mov edx, esi
mov ecx, edi
call fcn.00402127
mov ecx, dword [esp + 0xc]
mov edx, 0xa0
mov esi, eax
call fcn.00402127
inc eax
mov ecx, 0xa0
add eax, esi
cmp eax, ecx
jae 0x403be7
push edi
push dword [esp + 0x10]
lea eax, [esp + 0xa8]
push 0x401144
push ecx
push eax
call fcn.0040160e
add esp, 0x14
test eax, eax
js 0x403bfc
push 0x4000
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x403b71
xor esi, esi
lea eax, [esp + 0xa0]
push 0x80
push eax
call dword [sym.imp.msvcrt.dll__chmod]
pop ecx
pop ecx
test eax, eax
je 0x403b4e
call fcn.00404295
inc esi
cmp esi, 0x4b0
jl 0x403b27
xor esi, esi
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.msvcrt.dll_remove]
pop ecx
test eax, eax
je 0x403b71
call fcn.00404295
inc esi
cmp esi, 0x4b0
jl 0x403b50
mov esi, dword [esp + 0x10]
inc ebx
add edi, ebx
mov edx, esi
mov ecx, edi
call fcn.00402127
mov ebx, eax
test ebx, ebx
jne 0x403abc
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [esp + 0xc]
lea eax, [esp + 0xa4]
push 0x401260
push 0xa0
push eax
call fcn.0040160e
add esp, 0x10
test eax, eax
js 0x403bfc
lea eax, [esp + 0xa0]
push 0x80
push eax
call dword [sym.imp.msvcrt.dll__chmod]
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.msvcrt.dll_remove]
add esp, 0xc
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404c50
mov esp, ebp
pop ebp
ret
call fcn.0040215d
int3
Function at 0x403c02
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop edi
mov esi, edx
mov dword [ebp - 0x120], ecx
push 0x180
push esi
call dword [sym.imp.msvcrt.dll__chmod]
pop ecx
pop ecx
push 0xa0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharBuffA]
push 0x1001
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
push esi
mov ebx, eax
push esi
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.USER32.dll_CharToOemA]
cmp ebx, 0xffffffff
je 0x403cde
mov esi, dword [ebp - 0x120]
lea eax, [ebp - 0x118]
push 0
push eax
push esi
call dword [sym.imp.LZ32.dll_LZOpenFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403c9e
push 3
pop edi
push esi
mov edx, 0xa0
mov ecx, 0x406c20
call fcn.00401570
test eax, eax
js 0x403cf2
jmp 0x403cd2
call fcn.00404295
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.LZ32.dll_LZCopy]
push ebx
mov esi, eax
call dword [sym.imp.LZ32.dll_LZClose]
cmp esi, 0xfffffff8
jb 0x403ccf
cmp esi, 0xfffffffb
jne 0x403cc6
push 6
pop edi
cmp esi, 0xfffffffc
jne 0x403cd2
push 7
jmp 0x403cd1
push 0xd
pop edi
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c50
mov esp, ebp
pop ebp
ret
call fcn.0040215d
int3
Function at 0x403f8c
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push ebx
push 2
mov dword [ebp - 0x90], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x40672c], eax
test eax, eax
jne 0x403fc7
push 6
pop eax
jmp 0x404170
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
test edi, edi
jne 0x403fdc
push 6
jmp 0x40416e
push esi
push ebx
push edi
push 0x401140
push 0
push dword [0x40671c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [0x40672c]
mov esi, eax
test esi, esi
jne 0x40401c
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x40672c], eax
push 5
jmp 0x40416e
mov word [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 2
lea eax, [esi + 2]
push eax
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x403fd5
push ebx
push 2
mov dword [0x40672c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4063f0], eax
push dword [0x40672c]
test eax, eax
jne 0x40406b
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x40672c], eax
jmp 0x403fd5
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
test edi, edi
je 0x403fd5
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp - 0x8c], eax
mov esi, eax
test eax, eax
jne 0x404117
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
jmp 0x403fd5
push dword [ebp - 0x90]
lea eax, [ebp - 0x84]
push 0x80
push eax
push 0x401140
push edi
push dword [0x40671c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x404180
lea eax, [ebp - 0x84]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
mov edx, ebx
lea eax, [ebp - 0x84]
sub edx, esi
mov ecx, esi
add edx, dword [ebp - 0x8c]
push eax
call fcn.00401570
test eax, eax
js 0x4041a2
mov eax, dword [ebp - 0x88]
mov edx, ebx
inc eax
mov ecx, esi
add edi, eax
call fcn.00402127
inc eax
add esi, eax
mov edx, ebx
mov ecx, edi
call fcn.00402127
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x4040a8
push dword [0x40672c]
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
sub esi, dword [ebp - 0x8c]
push 2
inc esi
push esi
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x403fd5
mov dword [0x4063f0], eax
push 0xd
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c50
mov esp, ebp
pop ebp
ret
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
call fcn.004041a8
jmp 0x404015
call fcn.0040215d
int3
Function at 0x404345
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
push eax
push 0x20019
xor ebx, ebx
mov esi, 0x401288
push ebx
push esi
mov edi, 0x80000000
mov byte [ebp - 0x108], bl
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4043c8
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4043ea
push ecx
push ebx
push ebx
push 0x10
xor edx, edx
push 0xc
inc edx
pop ecx
call fcn.0040221e
xor eax, eax
cmp dword [0x406724], ebx
je 0x4043d9
mov dword [0x406080], ebx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c50
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
pop ecx
mov dword [0x406080], eax
call fcn.0040444c
xor eax, eax
jmp 0x4043d8

Function at 0x40444c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x401288
xor ebx, ebx
push edi
mov edx, 0xa0
mov dword [ebp - 0x210], ebx
mov ecx, esi
call fcn.00402127
mov edi, 0x104
cmp eax, edi
jge 0x404562
push esi
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00401570
test eax, eax
js 0x404573
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00402127
lea esi, [ebp - 0x108]
add esi, eax
jmp 0x4044cf
cmp byte [esi], 0x5c
je 0x4044de
dec esi
lea eax, [ebp - 0x108]
cmp esi, eax
ja 0x4044c9
cmp byte [esi], 0x5c
jne 0x40454e
lea eax, [ebp - 0x210]
mov byte [esi], bl
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40454e
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40454e
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x210], ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x108]
cmp esi, eax
ja 0x4044b2
cmp dword [ebp - 0x210], ebx
je 0x404562
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c50
mov esp, ebp
pop ebp
ret
call fcn.0040215d
int3
Function at 0x404862
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edi, 0x100
push ecx
push ecx
push edi
push eax
push ecx
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.msvcrt.dll__splitpath_s]
add esp, 0x24
cmp byte [ebp - 0x104], 0
jne 0x4048bb
push ecx
push 0x4012c4
push ecx
mov edx, edi
lea ecx, [ebp - 0x104]
call fcn.00401671
test eax, eax
js 0x4048fc
push 0x4012c8
mov edx, edi
lea ecx, [ebp - 0x104]
call fcn.004015a3
test eax, eax
js 0x4048fc
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.msvcrt.dll_rename]
push esi
call dword [sym.imp.msvcrt.dll_remove]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
xor ecx, ebp
inc eax
pop edi
pop esi
call fcn.00404c50
mov esp, ebp
pop ebp
ret
call fcn.0040215d
int3
Function at 0x404a20
Capabilities:
Terminate process

Disassembly:
call fcn.00405003
jmp 0x404a2a
push 0x5c
push 0x4051b0
call fcn.004050b8
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40673c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x404a7c
cmp eax, esi
jne 0x404a6f
xor esi, esi
inc esi
mov edi, esi
jmp 0x404a7f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404a53
xor esi, esi
inc esi
cmp dword [0x406740], esi
jne 0x404a91
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404acb
cmp dword [0x406740], ebx
jne 0x404ac5
mov dword [0x406740], esi
push 0x4010e8
push 0x4010dc
call fcn.00404bff
pop ecx
pop ecx
test eax, eax
je 0x404acb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404bf9
mov dword [0x4060a4], esi
cmp dword [0x406740], esi
jne 0x404aee
push 0x4010d8
push 0x4010d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x406740], 2
test edi, edi
jne 0x404afb
xor eax, eax
mov ecx, 0x40673c
xchg dword [ecx], eax
cmp dword [0x406744], 0
je 0x404b27
push 0x406744
call fcn.00404f10
pop ecx
test eax, eax
je 0x404b27
push ebx
push 2
push ebx
mov esi, dword [0x406744]
mov ecx, esi
call dword [0x407224]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x404b85
test cl, cl
je 0x404b54
test edi, edi
jne 0x404b85
test cl, cl
je 0x404b54
cmp cl, 0x20
ja 0x404b54
inc esi
mov dword [ebp - 0x20], esi
mov cl, byte [esi]
jmp 0x404b43
test byte [ebp - 0x40], 1
je 0x404b60
movzx eax, word [ebp - 0x3c]
jmp 0x404b63
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4060a0], eax
cmp dword [0x4060b8], 0
jne 0x404bde
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x404b96
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x404ba9
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x404b34
cmp dword [0x4060a4], 0
jne 0x404bf2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4060a0]
mov dword [ebp - 4], 0xfffffffe
call fcn.00405100
ret

Function at 0x404e04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4051d0
call fcn.00405144
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x404e64
cmp eax, 0xffffffff
je 0x404e64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x404e5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x404e5d
cmp edx, 0x10000000
jae 0x404e5d
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 0x404e5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00405189
ret 4
Function at 0x404ec0
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 0x404efe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x404ef6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404f00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x404ee6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404fd0
Capabilities:
Parse pe header

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

Function at 0x40a47d
Capabilities:
Encode data using xor

Disassembly:
call 0x40a3f6
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40a426
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40a442
xor edx, 0
jmp 0x40a44d
xor edx, edx
jmp 0x40a464
jmp 0x40a470
xor eax, eax
push 0x8427d7c0
call 0x40a47d
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40a4b9
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40a492
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40a4d0
add eax, 0
jno 0x40a4d5
add esi, 0
ret 0x10
Function at 0x40b23e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x40b260
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x40b402
cmp edi, dword [ebp + 0x10]
jb 0x40b402
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.0040ad2a
inc edi
jmp 0x40b2e9
jmp 0x40b2f6
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040ad2a
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040ad2a
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x40b34a
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x40b32e
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.0040b378
add dword [eax], 0x39
jle 0x40b354
sub al, 0xf5
mov ch, al
call fcn.0040b38d
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x40d065
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x40d07b
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x40d08c
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.0040d0cd
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx