joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40670f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c710
call fcn.004072bc
mov edi, 0x94
mov eax, edi
call fcn.004061d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40f720], ecx
mov eax, dword [esi + 4]
mov dword [0x40f72c], eax
mov edx, dword [esi + 8]
mov dword [0x40f730], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40f724], esi
cmp ecx, 2
je 0x40676f
or esi, 0x8000
mov dword [0x40f724], esi
shl eax, 8
add eax, edx
mov dword [0x40f728], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4067aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4067aa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4067c2
cmp eax, 0x20b
je 0x4067af
mov dword [ebp - 0x1c], esi
jmp 0x4067d6
cmp dword [ecx + 0x84], 0xe
jbe 0x4067aa
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4067d0
cmp dword [ecx + 0x74], 0xe
jbe 0x4067aa
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00408c51
pop ecx
test eax, eax
jne 0x406802
cmp dword [0x40f6f0], 1
jne 0x4067ef
call fcn.00408406
push 0x1c
call fcn.0040828f
push 0xff
call fcn.00407b05
pop ecx
pop ecx
call fcn.00408baf
mov dword [ebp - 4], esi
call fcn.00408a04
test eax, eax
jge 0x40681b
push 0x1b
call fcn.004066ea
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410cd4], eax
call fcn.004088e2
mov dword [0x40f6e8], eax
call fcn.00408840
test eax, eax
jge 0x406841
push 8
call fcn.004066ea
pop ecx
call fcn.0040860d
test eax, eax
jge 0x406852
push 9
call fcn.004066ea
pop ecx
push 1
call fcn.00407b35
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x406868
push eax
call fcn.004066ea
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004085b0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x406889
movzx eax, word [ebp - 0x40]
jmp 0x40688c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401b8a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4068aa
push edi
call fcn.00407c60
call fcn.00407c82
jmp 0x4068dc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004072f7
ret
Function at 0x407b9f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40f760], esi
push edi
jne 0x407bbf
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 [0x40f75c], esi
mov byte [0x40f758], al
jne 0x407c25
mov ecx, dword [0x410cc8]
test ecx, ecx
je 0x407c06
mov eax, dword [0x410cc4]
sub eax, 4
cmp eax, ecx
jmp 0x407bff
mov eax, dword [eax]
test eax, eax
je 0x407bf1
call eax
mov eax, dword [0x410cc4]
sub eax, 4
cmp eax, dword [0x410cc8]
mov dword [0x410cc4], eax
jae 0x407be9
mov eax, 0x40f024
mov esi, 0x40f02c
cmp eax, esi
mov edi, eax
jae 0x407c25
mov eax, dword [edi]
test eax, eax
je 0x407c1e
call eax
add edi, 4
cmp edi, esi
jb 0x407c16
mov eax, 0x40f030
mov esi, 0x40f038
cmp eax, esi
mov edi, eax
jae 0x407c44
mov eax, dword [edi]
test eax, eax
je 0x407c3d
call eax
add edi, 4
cmp edi, esi
jb 0x407c35
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x407c5e
push dword [ebp + 8]
mov dword [0x40f760], 1
call fcn.00407b05
pop ebp
ret

Function at 0x407df0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004061d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407e8b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40f720]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407e8b
cmp eax, 1
je 0x407eac
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407e8b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407e58
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407e87
xor eax, eax
inc eax
jmp 0x407ecb
cmp edi, eax
jae 0x407e8f
xor eax, eax
jmp 0x407ecb
cmp eax, esi
jae 0x407e96
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40f720]
jmp 0x407eaf
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40828f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40f08c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40f0a8]
je 0x4082c4
inc eax
cmp eax, 0x13
jb 0x4082b5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40f0a8]
jne 0x4083ea
mov eax, dword [0x40f6f0]
cmp eax, 1
je 0x4083c2
cmp eax, edx
jne 0x4082f4
cmp dword [0x40f084], 1
je 0x4083c2
cmp ecx, 0xfc
je 0x4083ea
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40832a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004060d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405870
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40835e
mov eax, edi
push eax
call fcn.00405870
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40cbc0
push edi
call fcn.0040b300
add esp, 0x10
push edi
call fcn.00405870
push dword [esi + 0x40f0ac]
mov ebx, eax
call fcn.00405870
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004061d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004060d0
push edi
push ebx
call fcn.004060e0
push 0x40cba0
push ebx
call fcn.004060e0
push dword [esi + 0x40f0ac]
push ebx
call fcn.004060e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040b1ff
add esp, 0x2c
jmp 0x4083ea
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40f0ac]
push dword [esi]
call fcn.00405870
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040b455
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x409b85
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409bb3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409bba
cmp ebx, dword [eax + 4]
jae 0x409bba
xor eax, eax
jmp 0x409daa
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409bcb
xor eax, eax
inc eax
jmp 0x409da9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409be1
cmp ecx, edx
jae 0x409d26
cmp dword [eax + 4], 0
je 0x409bea
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409bd2
cmp dword [ebp + 8], 0
je 0x409c0c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409d26
cmp eax, esi
jae 0x409d26
mov eax, dword [0x40f8a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409c31
cmp dword [esi*4 + 0x40f8b0], edi
je 0x409d2a
inc esi
cmp esi, eax
jl 0x409c1f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409da6
cmp dword [ebp - 8], 0x1000000
jne 0x409da6
test byte [ebp - 0xc], 0xcc
je 0x409caf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x409da6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409da6
cmp word [eax + 0x18], 0x10b
jne 0x409da6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x409da6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409caf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409caf
test byte [ecx + 0x27], 0x80
jne 0x409d26
push 1
push 0x40f8f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409bc3
mov ecx, dword [0x40f8a8]
test ecx, ecx
mov edx, ecx
jle 0x409ce3
lea eax, [ecx*4 + 0x40f8ac]
cmp dword [eax], edi
je 0x409ce3
dec edx
sub eax, 4
test edx, edx
jg 0x409cd7
test edx, edx
jne 0x409d14
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409cf0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409d08
lea eax, [edx*4 + 0x40f8b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409cf6
cmp ecx, 0x10
jge 0x409d14
inc ecx
mov dword [0x40f8a8], ecx
push 0
push 0x40f8f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409bc3
xor eax, eax
jmp 0x409da9
test esi, esi
jle 0x409bc3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f8f0
call ebx
test eax, eax
jne 0x409bc3
cmp dword [esi*4 + 0x40f8b0], edi
je 0x409d80
mov eax, dword [0x40f8a8]
lea esi, [eax - 1]
test esi, esi
jl 0x409d6e
cmp dword [esi*4 + 0x40f8b0], edi
je 0x409d6a
dec esi
jns 0x409d5e
test esi, esi
jge 0x409d7e
cmp eax, 0x10
jge 0x409d79
inc eax
mov dword [0x40f8a8], eax
lea esi, [eax - 1]
jmp 0x409d80
je 0x409d98
xor ecx, ecx
test esi, esi
jl 0x409d98
lea eax, [ecx*4 + 0x40f8b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x409d86
push 0
push 0x40f8f0
call ebx
jmp 0x409bc3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5f7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x410ba4]
mov eax, dword [0x40f08c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40a7bd
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x410bc0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40a7bd
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40a661
xor eax, eax
jmp 0x40a7d1
test al, 0x20
je 0x40a672
push 2
push edi
push edi
push ecx
call fcn.0040b684
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40a747
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40a78e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40a6d4
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40a6c5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40a6a7
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a714
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40a720
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40a69b
jmp 0x40a722
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40a7b8
cmp dword [ebp + 0x3a4], edi
je 0x40a78e
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40a780
mov dword [0x40f718], eax
jmp 0x40a7c4
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a772
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40a722
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40a722
push dword [ebp + 0x3a4]
call fcn.0040a3ce
pop ecx
jmp 0x40a7ce
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40a7a6
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40a65a
mov dword [0x40f714], 0x1c
mov dword [0x40f718], edi
jmp 0x40a7ce
sub eax, dword [ebp - 0x7c]
jmp 0x40a7d1
and dword [0x40f718], 0
mov dword [0x40f714], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040b455
add ebp, 0x39c
leave
ret
Function at 0x40adc1
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 [0x410ba4]
push edi
jae 0x40af96
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x410bc0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40af96
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40ae6c
test dl, 2
jne 0x40ae6c
test dl, 0x48
je 0x40ae36
cmp byte [eax + 5], 0xa
je 0x40ae36
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 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 [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ae7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40ae67
mov dword [0x40f718], ecx
jmp 0x40af9d
cmp eax, 0x6d
jne 0x40ae73
xor eax, eax
jmp 0x40afaa
push eax
call fcn.0040a3ce
pop ecx
jmp 0x40afa7
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40af91
test eax, eax
je 0x40aea6
cmp byte [ebx], 0xa
jne 0x40aea6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40aeaf
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x40af8b
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40af7b
cmp al, 0xd
je 0x40aee1
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40af6d
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40aefb
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40aef6
add dword [ebp - 8], 2
jmp 0x40af4f
mov dword [ebp - 8], eax
jmp 0x40af69
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40af23
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40af69
cmp dword [ebp - 0x10], 0
je 0x40af69
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40af44
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40af4f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40af6c
cmp ebx, dword [ebp + 0xc]
jne 0x40af54
cmp byte [ebp - 1], 0xa
jne 0x40af54
mov byte [ebx], 0xa
jmp 0x40af6c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b77b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40af6d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40aec5
jmp 0x40af8b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40af8b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40afaa
and dword [0x40f718], 0
mov dword [0x40f714], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b1ff
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f904], ebx
push esi
push edi
jne 0x40b27f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b2ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d17c
push edi
call esi
test eax, eax
mov dword [0x40f904], eax
je 0x40b2ba
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f908], eax
call esi
cmp dword [0x40f720], 2
mov dword [0x40f90c], eax
jne 0x40b27f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f914], eax
je 0x40b27f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f910], eax
mov eax, dword [0x40f910]
test eax, eax
je 0x40b2c4
call eax
test eax, eax
je 0x40b2ab
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f914]
test eax, eax
je 0x40b2ab
test byte [ebp - 8], 1
jne 0x40b2c4
cmp dword [0x40f72c], 4
jb 0x40b2be
or byte [ebp + 0x12], 0x20
jmp 0x40b2e3
xor eax, eax
jmp 0x40b2f3
or byte [ebp + 0x12], 4
jmp 0x40b2e3
mov eax, dword [0x40f908]
test eax, eax
je 0x40b2e3
call eax
mov ebx, eax
test ebx, ebx
je 0x40b2e3
mov eax, dword [0x40f90c]
test eax, eax
je 0x40b2e3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f904]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b807
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004061d0
mov eax, dword [0x40f08c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x410ba4]
mov dword [ebp - 4], eax
jae 0x40b94a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x410bc0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40b94a
push 1
push esi
push ebx
call fcn.0040b77b
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40b954
push 2
push esi
push ebx
call fcn.0040b77b
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b954
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40b8f4
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004057f0
push 0x8000
push ebx
call fcn.0040bcab
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40b8b3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040a5f7
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b8d1
sub edi, eax
test edi, edi
jg 0x40b8a8
jmp 0x40b8e7
cmp dword [0x40f718], 5
jne 0x40b8e4
mov dword [0x40f714], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040bcab
pop ecx
pop ecx
jmp 0x40b934
jge 0x40b934
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040b77b
push ebx
call fcn.0040a5bb
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 0x40b934
mov dword [0x40f714], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40f718], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040b77b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40b957
mov dword [0x40f714], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040b455
leave
ret
Function at 0x10007da7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10007db6
pop dword [ebp - 0x38]
mov eax, 0x10007db6
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x2658ddf4
add dword [ebp - 0x48], 0x27f96757
mov dword [ebp - 0x44], 0x898da868
sub dword [ebp - 0x44], 0x575a5c23
mov dword [ebp - 0x40], 0xb380d841
add dword [ebp - 0x40], 0x98cb6bed
mov dword [ebp - 0x3c], 0x34cc549f
add dword [ebp - 0x3c], 0xcb33ab61
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x21268cbc
add dword [ebp - 0x48], 0x534bdc9a
mov dword [ebp - 0x44], 0x3f5442fa
add dword [ebp - 0x44], 0x2181e7b
mov dword [ebp - 0x40], 0x17edd743
sub dword [ebp - 0x40], 0xb47e6ad7
mov dword [ebp - 0x3c], 0x53d12c26
add dword [ebp - 0x3c], 0xac2ed3da
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x749c7777
sub eax, 0x649c671b
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3970b
push 0
call eax
mov ecx, 0xd0c403e7
add ecx, 0x2f3c481b
mov edi, eax
mov edx, 0x45df65ca
sub edx, 0x35de15ca
add edx, dword [ebp - 0x38]
mov esi, 0x7ddf5c56
sub esi, 0x487bb290
sub dword [ebp - 0x1c], 0x7335e31d
mov ebx, dword [edx]
xor ebx, esi
xor dword [ebp - 0x24], ebx
mov dword [edi], ebx
xor dword [ebp - 0x28], 0x33ebf672
add edi, 0xc4b29dea
sub edi, 0xc4b29de6
add edx, 0x2946c311
sub edx, 0x2946c30d
loop 0x10007ece
add eax, 0x122db
xor ebx, ebx
add ebx, eax
add eax, 0x9d28888f
sub eax, 0x9d28888a
mov ecx, 0x7369c3c3
sub ecx, 0x6369c3c3
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10008bf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1000deef
call fcn.1000c808
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x10008dc8
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10007da7
add esp, 0xc
test eax, eax
js 0x10008dc2
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x10008c90
push esi
call fcn.100055f7
pop ecx
test al, al
je 0x10008c90
mov eax, esi
call fcn.1000c873
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10008c9c
push esi
lea ecx, [ebp - 0x428]
call fcn.10007da7
push 3
push esi
push edi
push eax
call fcn.10007da7
test eax, eax
je 0x10008dc2
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x10008cd0
call fcn.10005825
mov esi, eax
jmp 0x10008da7
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10008cf3
call fcn.10005825
jmp 0x10008d9e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10008ce9
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10008d23
mov esi, 0x8007000e
jmp 0x10008da0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10007da7
mov dword [ebp - 4], 1
jmp 0x10008d62
cmp dword [ebp - 0x418], 0
je 0x10008d1c
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.10007da7
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10007da7
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10008de2
lea ecx, [ebp - 0x418]
call fcn.10008e4b
jmp 0x10008de2
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x10008ddd
lea ecx, [ebp - 0x418]
call fcn.10008e4b
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.1000575f
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.1000c861
ret 0x10