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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 8], esi
jne 0x40335e
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
test edi, edi
mov ebx, edi
jne 0x40336d
mov ebx, 0x423150
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403382
mov ecx, dword [0x472e18]
add ecx, eax
push ecx
call fcn.00403327
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.004032f5
test eax, eax
jne 0x403399
push 0xfffffffffffffffd
pop eax
jmp 0x4034f8
test dword [ebp + 0x14], 0x80000000
je 0x4034d7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x433158
mov dword [ebp - 0xc], eax
call fcn.00406ed8
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034f5
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4033d9
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41f150
push edi
call fcn.004032f5
test eax, eax
je 0x403391
sub dword [ebp + 0x14], esi
mov dword [0x433170], edi
mov dword [0x433174], esi
mov eax, dword [ebp - 8]
mov ecx, 0x433158
mov dword [0x433178], ebx
mov dword [0x43317c], eax
call fcn.00406ef8
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4034c9
mov esi, dword [0x433178]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x472eb4], 1
mov edi, eax
je 0x40347d
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403444
cmp dword [ebp + 0x14], 0
jne 0x40347d
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404f15
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4034be
cmp dword [ebp + 0x10], eax
jne 0x4034a6
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034d0
cmp dword [ebp - 0x14], esi
jne 0x4034d0
add dword [ebp - 4], esi
jmp 0x4034b2
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x433178]
cmp dword [ebp - 0x10], 1
jne 0x4033f8
jmp 0x4034f5
cmp dword [ebp + 0x14], eax
jg 0x4033cc
jmp 0x4034f5
push 0xfffffffffffffffc
jmp 0x403393
push 0xfffffffffffffffe
jmp 0x403393
test edi, edi
je 0x40353e
cmp dword [ebp + 0x14], esi
jge 0x4034e3
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032f5
test eax, eax
je 0x403391
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40350a
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41f150
push edi
call fcn.004032f5
test eax, eax
je 0x403391
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034d0
cmp esi, dword [ebp + 0x10]
jne 0x4034d0
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4034ff
jmp 0x4034f5
Function at 0x405bd7
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405de4
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
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 0x405e16
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 [0x4095cc]
mov dword [ebp - 8], eax
mov eax, dword [0x4095d0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e66
test edi, edi
jne 0x405e23
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e60

Function at 0x405e6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ede
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ecb
cmp dword [ebp + 0x14], 1
je 0x405ece
cmp dword [ebp + 0x14], 2
je 0x405ece
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x4006], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40607b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4060a0
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406097
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x406118
cmp dword [0x461520], edi
je 0x406118
cmp word [0x46a560], di
je 0x4060e0
cmp dword [0x40b058], 0xffffffff
jne 0x4060e9
push 4
push 0x40000000
push 0x46a560
call fcn.00405de7
cmp eax, 0xffffffff
mov dword [0x40b058], eax
je 0x406118
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x406118
push esi
push 0x4095e8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebp
ret 4
Function at 0x40671c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572c0
push esi
call fcn.00405f9d
push esi
call fcn.00405cf0
mov edi, eax
test edi, edi
jne 0x40673d
xor eax, eax
jmp 0x40679b
push edi
call fcn.00405fcc
test byte [0x472e28], 0x80
je 0x40675a
movzx eax, word [edi]
test ax, ax
je 0x406739
cmp ax, 0x5c
je 0x406739
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40677c
push esi
call fcn.0040627d
test eax, eax
je 0x406776
test byte [eax], 0x10
je 0x4067a0
push esi
call fcn.004066f0
push esi
call ebx
cmp eax, edi
jg 0x406767
push esi
call fcn.004066c1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40679a
Function at 0x406a35
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40984c
mov ebx, 0x45b2c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406a83
push 1
push ebp
push edi
call fcn.00405de7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406bfa
cmp eax, esi
jg 0x406bfa
push esi
mov edi, 0x460920
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406bfa
cmp eax, esi
jg 0x406bfa
push ebp
push ebp
push esi
push 0x45bac8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406bfa
push ebp
push ebp
push esi
mov esi, 0x45c118
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406bfa
push esi
push 0x45bac8
push str._s_s_r_n
push 0x45c518
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x472ddc]
push dword [eax + 0x128]
push edi
call fcn.004067a4
push 4
push 0xc0000000
push edi
call fcn.00405de7
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406bfa
push ebp
push eax
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
cmp esi, ebp
je 0x406bf0
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406bf0
cmp edi, dword [esp + 0x10]
jne 0x406bf0
push str._Rename__r_n
push esi
call fcn.00405d4d
cmp eax, ebp
jne 0x406b87
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406bb8
push 0x409840
add eax, 0xa
push eax
call fcn.00405d4d
mov ebp, eax
test ebp, ebp
je 0x406bb6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406ba9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406ba3
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406bba
xor ebp, ebp
mov eax, edi
push ebx
push 0x45c518
add eax, esi
push eax
call fcn.00405da3
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406e6a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x406ea5
xor ecx, ecx
push esi
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 0x406e7e
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x406e79
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ed2
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406eb3
not eax
pop ebp
ret 0xc
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x119aa460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x119aa860]
xor edx, dword [ebx*4 + 0x119aac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x119aa460]
add ecx, 4
xor edx, dword [eax*4 + 0x119ab060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x119aa860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x119aac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x119aa460]
add ecx, 4
xor eax, dword [edx*4 + 0x119ab060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x119aa860]
xor edx, dword [ebx*4 + 0x119aac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x119aa460]
xor edx, dword [eax*4 + 0x119ab060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x119aa860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x119aac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x119aa460]
xor eax, dword [edx*4 + 0x119ab060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x119aa860]
xor edx, dword [ebx*4 + 0x119aac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x119aa460]
xor edx, dword [eax*4 + 0x119ab060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x119aa860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x119aac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x119aa460]
and edx, 0xff
xor eax, dword [edx*4 + 0x119ab060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x119aa860]
xor edx, dword [ebx*4 + 0x119aac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x119aa460]
add ecx, 4
xor edx, dword [eax*4 + 0x119ab060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x119aa860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x119aac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x119aa460]
and edx, 0xff
xor eax, dword [edx*4 + 0x119ab060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x119aa860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x119aac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x119aa460]
and eax, 0xff
xor edi, dword [eax*4 + 0x119ab060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x119aa460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push ebx
sbb ebx, edi
call fcn.00401020
inc ebx

Function at 0x401020
Capabilities:
Parse pe header

Disassembly:
pop ebx
sbb ebx, edx
sbb ebx, esi
and ebx, edi
sbb ebx, eax
nop
pop ebx
push eax
call 0x401032
inc eax
pop eax
pop eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push edi
add edi, esi
and edi, ebp
xor edi, ecx
add edi, ebp
call 0x401049
dec edi
pop edi
sbb edi, edx
nop
pop edi
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x401065
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
jne 0x40106c
xor al, al
jmp 0x40116f
push ebx
sbb ebx, esi
or ebx, esi
call 0x401077
dec ebx
pop ebx
jmp 0x40107d
or ebx, ebx
pop ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
push edi
call 0x401093
dec edi
pop edi
call 0x40109a
dec edi
pop edi
sbb edi, ecx
sbb edi, esi
pop edi
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4010ba
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x4010c1
xor al, al
jmp 0x40116f
push ebp
or ebp, edx
call 0x4010ca
inc ebp
pop ebp
call 0x4010d1
inc ebp
pop ebp
sbb ebp, edi
pop ebp
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
cmp eax, edx
jl 0x4010eb
xor al, al
jmp 0x40116f
push eax
xor eax, ecx
call 0x4010f4
dec eax
pop eax
xor eax, edi
jmp 0x4010fb
sbb eax, ecx
inc eax
pop eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
lea ecx, [ecx + eax + 0x18]
movzx edx, word [ebp + 0xc]
imul eax, edx, 0x28
add ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 8]
jae 0x401146
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x40114f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov al, 1
jmp 0x40116f
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401032
Capabilities:
Parse pe header

Disassembly:
pop ebx
sbb ebx, edx
sbb ebx, esi
and ebx, edi
sbb ebx, eax
nop
pop ebx
push eax
call 0x401032
inc eax
pop eax
pop eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push edi
add edi, esi
and edi, ebp
xor edi, ecx
add edi, ebp
call 0x401049
dec edi
pop edi
sbb edi, edx
nop
pop edi
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x401065
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
jne 0x40106c
xor al, al
jmp 0x40116f
push ebx
sbb ebx, esi
or ebx, esi
call 0x401077
dec ebx
pop ebx
jmp 0x40107d
or ebx, ebx
pop ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
push edi
call 0x401093
dec edi
pop edi
call 0x40109a
dec edi
pop edi
sbb edi, ecx
sbb edi, esi
pop edi
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4010ba
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x4010c1
xor al, al
jmp 0x40116f
push ebp
or ebp, edx
call 0x4010ca
inc ebp
pop ebp
call 0x4010d1
inc ebp
pop ebp
sbb ebp, edi
pop ebp
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
cmp eax, edx
jl 0x4010eb
xor al, al
jmp 0x40116f
push eax
xor eax, ecx
call 0x4010f4
dec eax
pop eax
xor eax, edi
jmp 0x4010fb
sbb eax, ecx
inc eax
pop eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
lea ecx, [ecx + eax + 0x18]
movzx edx, word [ebp + 0xc]
imul eax, edx, 0x28
add ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 8]
jae 0x401146
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x40114f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov al, 1
jmp 0x40116f
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401049
Capabilities:
Parse pe header

Disassembly:
pop ebx
sbb ebx, edx
sbb ebx, esi
and ebx, edi
sbb ebx, eax
nop
pop ebx
push eax
call 0x401032
inc eax
pop eax
pop eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push edi
add edi, esi
and edi, ebp
xor edi, ecx
add edi, ebp
call 0x401049
dec edi
pop edi
sbb edi, edx
nop
pop edi
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x401065
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
jne 0x40106c
xor al, al
jmp 0x40116f
push ebx
sbb ebx, esi
or ebx, esi
call 0x401077
dec ebx
pop ebx
jmp 0x40107d
or ebx, ebx
pop ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
push edi
call 0x401093
dec edi
pop edi
call 0x40109a
dec edi
pop edi
sbb edi, ecx
sbb edi, esi
pop edi
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4010ba
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x4010c1
xor al, al
jmp 0x40116f
push ebp
or ebp, edx
call 0x4010ca
inc ebp
pop ebp
call 0x4010d1
inc ebp
pop ebp
sbb ebp, edi
pop ebp
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
cmp eax, edx
jl 0x4010eb
xor al, al
jmp 0x40116f
push eax
xor eax, ecx
call 0x4010f4
dec eax
pop eax
xor eax, edi
jmp 0x4010fb
sbb eax, ecx
inc eax
pop eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
lea ecx, [ecx + eax + 0x18]
movzx edx, word [ebp + 0xc]
imul eax, edx, 0x28
add ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 8]
jae 0x401146
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x40114f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov al, 1
jmp 0x40116f
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ca3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pop eax
call 0x401caa
dec eax
pop eax
add eax, ebx
xor eax, eax
pop eax
mov al, byte [ebp + 0xc]
lea ebx, [edi + 0xc]
mov esi, dword [ebp + 8]
xor edx, edx
mov byte [edi], al
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp + 0xc], ebx
mov edi, edi
mov al, byte [edx + esi]
mov byte [ebx + edx], al
inc edx
cmp edx, 0x14
jb 0x401cd0
mov eax, dword [esi + 0x14]
push eax
mov dword [edi + 4], eax
call fcn.00401ff0
xor edx, edx
mov dword [edi + 8], eax
add esp, 4
cmp dword [edi + 4], edx
jbe 0x401d05
mov ecx, dword [edi + 8]
mov al, byte [edx + esi + 0x18]
mov byte [edx + ecx], al
inc edx
cmp edx, dword [edi + 4]
jb 0x401cf5
cmp byte [edi], 0
je 0x401e03
mov eax, dword [edi + 4]
xor ecx, ecx
mov edx, dword [edi + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x401e03
lea edi, [eax - 1]
add edi, edx
jmp 0x401d30
movzx esi, byte [0x404001]
xor edx, edx
add esi, 2
movzx ebx, byte [ebx]
mov eax, ecx
div esi
test edx, edx
je 0x401da1
mov eax, dword [ebp + 0xc]
movzx esi, byte [eax + 2]
add esi, 4
je 0x401d80
xor edx, edx
mov eax, ecx
div esi
test edx, edx
je 0x401d80
mov eax, 0xcccccccd
mul ecx
mov eax, ecx
shr edx, 4
lea edx, [edx + edx*4]
shl edx, 2
sub eax, edx
mov edx, ecx
movzx eax, byte [eax + section..data]
sub edx, eax
add ebx, edx
jmp 0x401df0
mov eax, 0xcccccccd
mul ecx
mov eax, ecx
shr edx, 4
lea edx, [edx + edx*4]
shl edx, 2
sub eax, edx
mov edx, dword [ebp + 0xc]
movzx eax, byte [eax + edx]
add eax, ecx
add ebx, eax
jmp 0x401df0
movzx esi, byte [0x404003]
xor edx, edx
add esi, 4
mov eax, ecx
div esi
mov eax, 0xcccccccd
test edx, edx
je 0x401dd6
mul ecx
mov eax, ecx
shr edx, 4
lea edx, [edx + edx*4]
shl edx, 2
sub eax, edx
mov edx, dword [ebp + 0xc]
movzx eax, byte [eax + edx]
sub eax, ecx
add ebx, eax
jmp 0x401df0
mul ecx
mov eax, ecx
shr edx, 4
lea edx, [edx + edx*4]
shl edx, 2
sub eax, edx
movzx eax, byte [eax + section..data]
add eax, ecx
sub ebx, eax
xor byte [edi], bl
inc ecx
mov ebx, dword [ebp + 0xc]
dec edi
cmp ecx, dword [ebp + 8]
jb 0x401d30
mov edi, dword [ebp - 4]
push ebx
call 0x401e0a
dec ebx
pop ebx
call 0x401e11
dec ebx
pop ebx
or ebx, ebp
sbb ebx, ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8