joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085da
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x413c74], esi
push edi
jne 0x4085fa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x413c70], esi
mov byte [0x413c6c], al
jne 0x408660
mov ecx, dword [0x4151c8]
test ecx, ecx
je 0x408641
mov eax, dword [0x4151c4]
sub eax, 4
cmp eax, ecx
jmp 0x40863a
mov eax, dword [eax]
test eax, eax
je 0x40862c
call eax
mov eax, dword [0x4151c4]
sub eax, 4
cmp eax, dword [0x4151c8]
mov dword [0x4151c4], eax
jae 0x408624
mov eax, 0x411024
mov esi, 0x41102c
cmp eax, esi
mov edi, eax
jae 0x408660
mov eax, dword [edi]
test eax, eax
je 0x408659
call eax
add edi, 4
cmp edi, esi
jb 0x408651
mov eax, 0x411030
mov esi, 0x411038
cmp eax, esi
mov edi, eax
jae 0x40867f
mov eax, dword [edi]
test eax, eax
je 0x408678
call eax
add edi, 4
cmp edi, esi
jb 0x408670
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40869a
push dword [ebp + 8]
mov dword [0x413c74], 1
call fcn.00408545
pop ecx
pop ebp
ret
Function at 0x408e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4150a4]
push edi
jae 0x409027
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x4150c0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x409027
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x408f06
test dl, 2
jne 0x408f06
test dl, 0x48
je 0x408ed0
mov al, byte [eax + 5]
cmp al, 0xa
je 0x408ed0
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x408f01
mov dword [0x413c2c], ecx
jmp 0x40902e
cmp eax, 0x6d
jne 0x408f0d
xor eax, eax
jmp 0x40903b
push eax
call fcn.00408bac
pop ecx
jmp 0x409038
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x409022
test edx, edx
je 0x408f3c
cmp byte [edi], 0xa
jne 0x408f3c
or al, 4
jmp 0x408f3e
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40901c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40900c
cmp al, 0xd
je 0x408f72
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x408ffe
dec ecx
cmp dword [ebp - 8], ecx
jae 0x408f8c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x408f87
add dword [ebp - 8], 2
jmp 0x408fe0
mov dword [ebp - 8], eax
jmp 0x408ffa
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408ffa
cmp dword [ebp - 0x10], 0
je 0x408ffa
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x408fd5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x408fe0
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x408ffd
cmp edi, dword [ebp + 0xc]
jne 0x408fe5
cmp byte [ebp - 1], 0xa
jne 0x408fe5
mov byte [edi], 0xa
jmp 0x408ffd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004091eb
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x408ffe
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x408f56
jmp 0x40901c
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40901c
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x40903b
and dword [0x413c2c], 0
mov dword [0x413c28], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4092e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x412768]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4123c0]
je 0x40930d
inc eax
cmp eax, 0x12
jb 0x4092fe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4123c0]
jne 0x409441
mov eax, dword [0x413c1c]
cmp eax, 1
je 0x40941c
cmp eax, edx
jne 0x40933d
cmp dword [0x41220c], 1
je 0x40941c
cmp ecx, 0xfc
je 0x409441
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409376
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040ad00
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00409ff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4093b8
lea eax, [ebp - 0x10c]
push eax
call fcn.00409ff0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f870
push edi
call fcn.0040b240
add esp, 0x10
push edi
call fcn.00409ff0
push dword [esi + 0x4123c4]
mov ebx, eax
call fcn.00409ff0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409b40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ad00
push edi
push ebx
call fcn.0040ad10
push 0x40f850
push ebx
call fcn.0040ad10
push dword [esi + 0x4123c4]
push ebx
call fcn.0040ad10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040b144
add esp, 0x2c
jmp 0x409441
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4123c4]
push dword [esi]
call fcn.00409ff0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040a112
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b144
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413de8], ebx
push esi
push edi
jne 0x40b1c4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b1ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40fd24
push edi
call esi
test eax, eax
mov dword [0x413de8], eax
je 0x40b1ff
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x413dec], eax
call esi
cmp dword [0x413c34], 2
mov dword [0x413df0], eax
jne 0x40b1c4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x413df8], eax
je 0x40b1c4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x413df4], eax
mov eax, dword [0x413df4]
test eax, eax
je 0x40b209
call eax
test eax, eax
je 0x40b1f0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413df8]
test eax, eax
je 0x40b1f0
test byte [ebp - 8], 1
jne 0x40b209
cmp dword [0x413c40], 4
jb 0x40b203
or byte [ebp + 0x12], 0x20
jmp 0x40b228
xor eax, eax
jmp 0x40b238
or byte [ebp + 0x12], 4
jmp 0x40b228
mov eax, dword [0x413dec]
test eax, eax
je 0x40b228
call eax
mov ebx, eax
test ebx, ebx
je 0x40b228
mov eax, dword [0x413df0]
test eax, eax
je 0x40b228
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413de8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba74
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00409b40
mov eax, dword [0x412768]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4150a4]
mov dword [ebp - 4], eax
jae 0x40bbb4
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4150c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40bbb4
push 1
push esi
push ebx
call fcn.004091eb
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40bbbe
push 2
push esi
push ebx
call fcn.004091eb
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bbbe
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40bb61
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00409280
push 0x8000
push ebx
call fcn.0040cd21
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40bb20
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00407edd
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bb3e
sub edi, eax
test edi, edi
jg 0x40bb15
jmp 0x40bb54
cmp dword [0x413c2c], 5
jne 0x40bb51
mov dword [0x413c28], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040cd21
pop ecx
pop ecx
jmp 0x40bba1
jge 0x40bba1
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004091eb
push ebx
call fcn.0040a343
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40bba1
mov dword [0x413c28], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x413c2c], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.004091eb
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40bbc1
mov dword [0x413c28], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040a112
leave
ret
Function at 0x40cfb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409b40
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d045
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x413c34]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40d045
cmp eax, 1
je 0x40d05d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d045
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40d01a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40d041
xor eax, eax
inc eax
jmp 0x40d079
cmp esi, ebx
jae 0x40d049
xor eax, eax
jmp 0x40d079
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x413c34]
jmp 0x40d05f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41208a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b1064
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41210a
arpl word [edx + esi], si
mov cl, 0xa5
cdq
invalid
invalid
Function at 0x401e60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov esi, eax
test esi, esi
jne 0x401e91
push str.calloc
call dword [sym.imp.MSVCRT.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov eax, esi
pop esi
pop ebx
ret

Function at 0x402120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
lea ecx, [esp + 8]
push esi
push edi
push ebp
xor edi, edi
push eax
mov ebx, dword [esp + 0x24]
push edi
mov esi, dword [esp + 0x24]
push ecx
push edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push esi
call ebp
test eax, eax
jne 0x402181
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x402181
mov eax, dword [esp + 0x10]
push eax
call fcn.00401e60
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
je 0x402181
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor edi, edi
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x402350
Capabilities:
Terminate process

Disassembly:
push ebx
call dword [sym.imp.MSVCRT.dll___p__environ]
mov eax, dword [eax]
mov ecx, dword [sym.imp.MSVCRT.dll___initenv]
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll___p___argc]
mov ecx, dword [eax]
push ecx
call section..text
add esp, 8
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
pop ebx
ret 0x10
Function at 0x4023b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402594
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4048d8], 0xffffffff
mov eax, dword [0x4048d8]
mov dword [0x4048dc], eax
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4048bc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4048b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4048e0], eax
call fcn.00402390
cmp dword [0x4048b4], 0
jne 0x402440
push 0x402590
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402570
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov eax, dword [0x4048b0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x4048ac]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4024b4
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x4024ac
cmp al, 0x22
jne 0x4024a1
cmp byte [esi], 0x22
jne 0x4024be
inc esi
jmp 0x4024be
cmp al, 0x20
jbe 0x4024be
inc esi
cmp byte [esi], 0x20
ja 0x4024b8
cmp byte [esi], 0
je 0x4024ce
cmp byte [esi], 0x20
ja 0x4024ce
inc esi
cmp byte [esi], 0
jne 0x4024c3
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x4024f5
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402538
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f360
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [ecx]
mov byte [edi], al
mov al, byte [ecx]
push esi
xor esi, esi
test al, al
je 0x40f387
mov edx, edi
sub edx, ecx
push ebx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc esi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
cmp byte [ecx], 0
jne 0x40f372
pop ebx
mov byte [esi + edi], 0
mov eax, edi
pop esi
ret

Function at 0x40f390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x25
call fcn.0040f070
mov cl, byte [eax]
mov byte [ebx], cl
mov cl, byte [eax]
add esp, 4
xor edi, edi
test cl, cl
je 0x40f3c5
mov esi, ebx
sub esi, eax
mov dl, byte [eax + 1]
mov cl, byte [esi + eax]
inc edi
inc eax
dec dl
xor dl, cl
mov byte [esi + eax], dl
cmp byte [eax], 0
jne 0x40f3b1
mov eax, ebx
mov byte [edi + ebx], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f3d0
sub eax, edx
mov byte [eax + ebx], 0x3a
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f3e2
sub eax, edx
mov byte [eax + ebx], 0x20
mov eax, dword [esp + 0x10]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f3f5
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f401
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f420
sub eax, edx
test ebp, ebp
mov byte [eax + ebx], 0x28
je 0x40f459
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f435
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f441
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebx
pop esi
lea edx, [eax + 1]
pop ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f461
sub eax, edx
mov byte [eax + ebx], 0x29
ret

Function at 0x40f7c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [ecx + 0x3c]
movzx eax, word [edx + ecx + 0x14]
add eax, edx
lea eax, [eax + ecx + 0x18]
movzx ecx, word [edx + ecx + 6]
lea ecx, [ecx + ecx*4]
push esi
lea esi, [eax + ecx*8]
cmp eax, esi
jae 0x40f7fe
mov edi, edi
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40f7ea
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp edx, edi
ja 0x40f7f7
add edx, ecx
cmp edi, edx
jb 0x40f800
add eax, 0x28
cmp eax, esi
jb 0x40f7e0
xor eax, eax
pop esi
ret
Function at 0x40fe60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 0
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebx
push 0
push 0x1300
call dword [esi + 0x7c]
test eax, eax
je 0x40feba
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [esp + 0xc]
push 0x10
push edx
push ecx
push 0
call eax
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [esi + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov esi, ecx
nop
xor edx, edx
mov edi, 0x10
div edi
cmp edx, 9
jbe 0x40fef3
add dl, 0x57
jmp 0x40fef6
add dl, 0x30
mov byte [ecx], dl
inc ecx
test eax, eax
ja 0x40fee0
mov byte [ecx], 0
dec ecx
mov dl, byte [esi]
mov al, byte [ecx]
mov byte [ecx], dl
dec ecx
mov byte [esi], al
inc esi
cmp esi, ecx
jb 0x40ff01
push 0x22
call fcn.0040f070
mov cl, byte [eax]
mov byte [esp + 0x24], cl
mov cl, byte [eax]
add esp, 4
xor esi, esi
test cl, cl
je 0x40ff44
lea ecx, [esp + 0x20]
sub ecx, eax
lea ecx, [ecx]
mov dl, byte [eax + 1]
mov bl, byte [ecx + eax]
inc esi
inc eax
dec dl
xor dl, bl
mov byte [ecx + eax], dl
cmp byte [eax], 0
jne 0x40ff30
lea eax, [esp + 0x20]
mov byte [esp + esi + 0x20], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ff50
sub eax, edx
mov byte [esp + eax + 0x20], 0x28
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ff65
sub eax, edx
mov byte [esp + eax + 0x20], 0x29
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ff80
sub eax, edx
mov bl, 0x20
mov byte [esp + eax + 0x20], bl
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ff96
sub eax, edx
mov byte [esp + eax + 0x20], 0x3d
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x40ffb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ffb0
sub eax, edx
mov byte [esp + eax + 0x20], bl
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ffc4
sub eax, edx
mov byte [esp + eax + 0x20], 0x30
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ffe0
sub eax, edx
mov byte [esp + eax + 0x20], 0x78
lea eax, [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fff4
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410002
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push 0x10
push edx
lea ecx, [esp + 0x28]
push ecx
push 0
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x14
stosb byte es:[edi], al
call fcn.0040f070
mov cl, byte [eax]
add esp, 4
xor edi, edi
test cl, cl
mov byte [esp + 0xc], cl
je 0x410095
lea esi, [esp + 0xc]
sub esi, eax
jmp 0x410080
mov cl, byte [eax + 1]
mov bl, byte [esi + eax]
inc edi
inc eax
mov dl, cl
dec dl
xor dl, bl
test cl, cl
mov byte [esi + eax], dl
jne 0x410080
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ebx, [esp + 0x28]
mov byte [esp + edi + 0x14], 0
call fcn.0040f390
mov eax, dword [ebp + 8]
mov edx, ebx
push edx
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040fe60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4100d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
stosb byte es:[edi], al
call fcn.0040f070
mov cl, byte [eax]
xor ebx, ebx
add esp, 4
xor edi, edi
cmp cl, bl
mov byte [esp + 0xc], cl
je 0x410124
lea esi, [esp + 0xc]
sub esi, eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc edi
inc eax
mov dl, cl
dec dl
xor dl, byte [esi + eax - 1]
cmp cl, bl
mov byte [esi + eax], dl
jne 0x410110
lea eax, [esp + 0xc]
mov byte [esp + edi + 0xc], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410130
sub eax, edx
mov byte [esp + eax + 0xb], bl
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ebx, [esp + 0x28]
call fcn.0040f390
mov eax, dword [ebp + 8]
mov edx, ebx
push edx
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040fe60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
call fcn.0040f070
mov cl, byte [eax]
add esp, 4
xor edi, edi
test cl, cl
mov byte [esp + 0xc], cl
je 0x4101c5
lea esi, [esp + 0xc]
sub esi, eax
jmp 0x4101b0
mov cl, byte [eax + 1]
mov bl, byte [esi + eax]
inc edi
inc eax
mov dl, cl
dec dl
xor dl, bl
test cl, cl
mov byte [esi + eax], dl
jne 0x4101b0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ebx, [esp + 0x28]
mov byte [esp + edi + 0x14], 0
call fcn.0040f390
mov eax, dword [ebp + 8]
mov edx, ebx
push edx
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040fe60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret