joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000efb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.1000f120
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x1000f0cc
mov eax, dword [ebp - 8]
cmp eax, dword [0x10032100]
jb 0x1000f004
mov eax, dword [ebp - 8]
cmp eax, dword [0x10032104]
ja 0x1000f004
mov eax, dword [ebp - 8]
add eax, 0x8000000
mov dword [ebp - 8], eax
jmp 0x1000efca
lea eax, [ebp - 0x24]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
call fcn.1001ab10
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1c
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
cmp eax, 0
jne 0x1000f04d
jmp 0x1000f0cc
cmp dword [ebp - 0x14], 0x10000
jne 0x1000f0b6
cmp dword [ebp - 0x18], 0x10000
jb 0x1000f0b6
mov eax, dword [ebp - 8]
mov dword [esp], eax
mov dword [esp + 4], 0x10000
mov dword [esp + 8], 0x3000
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1000f0a6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
jmp 0x1000f0d3
mov eax, dword [ebp - 8]
add eax, 0x10000
mov dword [ebp - 8], eax
jmp 0x1000f0c7
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.1000f120
mov dword [ebp - 8], eax
jmp 0x1000efca
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x38
pop ebp
ret

Function at 0x1000f160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1c
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1000f1aa
mov byte [ebp - 1], 0
jmp 0x1000f212
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
je 0x1000f1ce
mov byte [ebp - 1], 0
jmp 0x1000f212
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add ecx, dword [edx + 0xd8]
cmp eax, ecx
jb 0x1000f20e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add ecx, dword [edx + 0xd8]
mov edx, dword [ebp - 0x2c]
add ecx, dword [edx + 0xdc]
cmp eax, ecx
jae 0x1000f20e
mov byte [ebp - 1], 1
jmp 0x1000f212
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
and al, 1
movzx eax, al
add esp, 0x38
pop ebp
ret
Function at 0x1000f220
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1000f244
mov dword [ebp - 4], 0
jmp 0x1000f2d5
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x10000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0x38d
jae 0x1000f2ce
mov eax, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x14], 0x48
add eax, ecx
cmp dword [eax + 0x40], 0
je 0x1000f2bb
mov eax, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x14], 0x48
add eax, ecx
mov eax, dword [eax + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1000f2af
mov eax, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x14], 0x48
add eax, ecx
mov eax, dword [eax + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1000f2bb
mov dword [ebp - 4], 0
jmp 0x1000f2d5
jmp 0x1000f2c0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x1000f265
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add esp, 0x14
pop ebp
ret
Function at 0x1000f2e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
movzx eax, byte [edx]
mov byte [ecx], al
movzx eax, byte [edx + 1]
mov byte [ecx + 1], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
movzx eax, byte [edx + 3]
mov byte [ecx + 3], al
movzx eax, byte [edx + 4]
mov byte [ecx + 4], al
movzx eax, byte [edx + 5]
mov byte [ecx + 5], al
movzx eax, byte [edx + 6]
mov byte [ecx + 6], al
movzx eax, byte [edx + 7]
mov byte [ecx + 7], al
movzx eax, byte [edx + 8]
mov byte [ecx + 8], al
movzx eax, byte [edx + 9]
mov byte [ecx + 9], al
movzx eax, byte [edx + 0xa]
mov byte [ecx + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [ecx + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [ecx + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [ecx + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [ecx + 0xe], al
movzx eax, byte [edx + 0xf]
mov byte [ecx + 0xf], al
movzx eax, byte [edx + 0x10]
mov byte [ecx + 0x10], al
movzx eax, byte [edx + 0x11]
mov byte [ecx + 0x11], al
movzx eax, byte [edx + 0x12]
mov byte [ecx + 0x12], al
movzx eax, byte [edx + 0x13]
mov byte [ecx + 0x13], al
movzx eax, byte [edx + 0x14]
mov byte [ecx + 0x14], al
movzx eax, byte [edx + 0x15]
mov byte [ecx + 0x15], al
movzx eax, byte [edx + 0x16]
mov byte [ecx + 0x16], al
movzx eax, byte [edx + 0x17]
mov byte [ecx + 0x17], al
movzx eax, byte [edx + 0x18]
mov byte [ecx + 0x18], al
movzx eax, byte [edx + 0x19]
mov byte [ecx + 0x19], al
movzx eax, byte [edx + 0x1a]
mov byte [ecx + 0x1a], al
movzx eax, byte [edx + 0x1b]
mov byte [ecx + 0x1b], al
movzx eax, byte [edx + 0x1c]
mov byte [ecx + 0x1c], al
movzx eax, byte [edx + 0x1d]
mov byte [ecx + 0x1d], al
movzx eax, byte [edx + 0x1e]
mov byte [ecx + 0x1e], al
movzx eax, byte [edx + 0x1f]
mov byte [ecx + 0x1f], al
mov eax, 8
jmp 0x1000f3fd
test edi, edi
je 0x1000f44f
xor bh, byte [ecx + eax*4 - 0x20]
mov byte [ecx + eax*4], bh
xor dl, byte [ecx + eax*4 - 0x1f]
mov byte [ecx + eax*4 + 1], dl
xor dh, byte [ecx + eax*4 - 0x1e]
mov byte [ecx + eax*4 + 2], dh
xor bl, byte [ecx + eax*4 - 0x1d]
mov byte [ecx + eax*4 + 3], bl
inc eax
cmp eax, 0x3c
je 0x1000f480
mov bh, byte [ecx + eax*4 - 4]
movzx edx, byte [ecx + eax*4 - 3]
movzx esi, bh
mov dword [esp], esi
movzx esi, dl
mov dword [esp + 4], esi
mov dh, byte [ecx + eax*4 - 2]
movzx ebp, dh
mov bl, byte [ecx + eax*4 - 1]
movzx esi, bl
mov edi, eax
and edi, 7
cmp edi, 4
jb 0x1000f3d0
jne 0x1000f3d4
mov edx, dword [esp]
mov bh, byte [edx + str.cw]
mov edx, dword [esp + 4]
movzx edx, byte [edx + str.cw]
mov dh, byte [ebp + str.cw]
mov bl, byte [esi + str.cw]
jmp 0x1000f3d4
movzx edx, byte [ebp + str.cw]
mov dh, byte [esi + str.cw]
mov esi, dword [esp]
movzx ebx, byte [esi + str.cw]
mov esi, eax
shr esi, 3
mov bh, byte [esi + 0x100291d0]
mov esi, dword [esp + 4]
xor bh, byte [esi + str.cw]
jmp 0x1000f3d4
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000fce0
Capabilities:
Accept command line arguments

Disassembly:
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, esp
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp], 2
setge al
pop ecx
ret
Function at 0x100190ba
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10019096
pop esi
leave
ret 8

Function at 0x1001cc54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10017b80
mov eax, dword [0x10032174]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10022001
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001cc96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001cdf2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10017a10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10033868]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10022da8
mov ecx, dword [esi*4 + 0x10033868]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001cdeb
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001cdeb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001cdeb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10022da8
add esp, 0x14
test edx, edx
jl 0x1001cdeb
jg 0x1001cd61
test eax, eax
jb 0x1001cdeb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001cdeb
jl 0x1001cd7b
cmp dword [ebp - 0x1008], eax
ja 0x1001cdeb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001cd99
test ebx, ebx
je 0x1001cdd2
cmp ecx, edi
jae 0x1001cdd2
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001cdb3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001cdbf
cmp byte [ecx + 1], 0xa
jne 0x1001cdbf
inc ecx
jmp 0x1001cdbf
movzx eax, al
movsx eax, byte [eax + 0x10032880]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001cd99
cmp edx, ebx
jne 0x1001cd99
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001cdf0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100194ea
leave
ret
Function at 0x1001e770
Capabilities:
Parse pe header

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

Function at 0x1001f61a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002abcc
push 0x1002abc4
push str.FlsAlloc
push 0x1e
call fcn.1001f9a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f64e
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1001f654
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001f698
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002abdc
push 0x1002abd4
push str.FlsGetValue
push 0x20
call fcn.1001f9a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f6cf
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10021917
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100219b4
push ebx
push esi
call fcn.100219b7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10021860
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10021961
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100219b3
push edi
push eax
call fcn.1002315d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10021981
call fcn.1001ea84
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100219b2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10021860
add esp, 0x20
test eax, eax
jne 0x100219a0
push edi
call fcn.1001ea84
jmp 0x100219a8
push ebx
call fcn.1001ea84
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100228b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10033868]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100228f1
cmp byte [ebx], 0xa
jne 0x100228f1
or byte [eax + edi + 0x28], 4
jmp 0x100228f6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100229f4
mov al, byte [edx]
cmp al, 0x1a
je 0x100229d6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10022925
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1002294a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10022954
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10022907
jmp 0x100229f4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100229d1
cmp dword [ebp - 0xc], 0
je 0x100229d1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10033868]
test byte [eax + edi + 0x28], 0x48
je 0x100229ab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10022996
mov byte [esi], dl
jmp 0x100229a7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10033868]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100229f4
cmp byte [ebp - 1], 0xa
jne 0x100229ba
cmp esi, ebx
jne 0x100229ba
mov byte [esi], 0xa
jmp 0x100229f3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10022d3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100229f4
mov byte [esi], 0xd
jmp 0x100229f3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10033868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100229f0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100229f4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100229fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10033868]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10022a40
cmp word [esi], dx
jne 0x10022a40
or byte [edi + eax + 0x28], 4
jmp 0x10022a45
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10022b98
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10022b78
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10022a87
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10022abd
cmp eax, edx
jae 0x10022ac9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10022a5f
jmp 0x10022b98
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10022b74
cmp dword [ebp - 0x14], 0
je 0x10022b74
mov eax, dword [ebx*4 + 0x10033868]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10022b4c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10022b15
mov word [esi], cx
jmp 0x10022b48
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10033868]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10033868]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10033868]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10022b98
pop ebx
cmp word [ebp - 4], bx
jne 0x10022b5d
cmp esi, dword [ebp + 0xc]
jne 0x10022b5d
mov word [esi], bx
jmp 0x10022b95
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10022d3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10022b98
push 0xd
jmp 0x10022b91
mov ecx, dword [ebx*4 + 0x10033868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10022b8f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10022b98
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10022ba5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10022bb0
Function at 0x10026464
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10026607
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100265dc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100265dc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002658b
jg 0x100264bd
test eax, eax
je 0x10026581
push 1
push 0x1000
call fcn.1001ea27
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100264e3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10026578
push 0x8000
push ebx
call fcn.1002635e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002650f
jg 0x1002650a
cmp ecx, 0x1000
jb 0x1002650f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10024001
add esp, 0x10
cmp eax, 0xffffffff
je 0x10026554
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1002650a
jl 0x1002653b
test ecx, ecx
jne 0x100264fc
push dword [ebp - 0xc]
push ebx
call fcn.1002635e
push esi
call fcn.1001ea84
add esp, 0xc
xor edi, edi
jmp 0x100265ed
cmp byte [edi + 0x24], 0
je 0x1002656b
cmp dword [edi + 0x20], 5
jne 0x1002656b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10026576
mov edi, dword [edi + 0x18]
jmp 0x10026578
xor edi, edi
push esi
call fcn.1001ea84
pop ecx
jmp 0x100265ed
test ecx, ecx
jg 0x1002654d
jl 0x1002658b
test eax, eax
jae 0x1002654d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10022d3f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100265ae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1002654d
jmp 0x100265e5
push ebx
call fcn.10023a68
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002654d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100265ed
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100265ea
mov edi, dword [edi + 0x18]
jmp 0x100265ed
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10022d3f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c004]
jne 0x401010
repz ret
jmp fcn.0040176d

Function at 0x40655b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004032f4
and dword [ebp - 4], 0
cmp dword [0x43e0dc], 0
mov ebx, eax
jne 0x40660c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4066bd
push eax
call fcn.00403282
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43e0dc], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e0e0], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e0e4], eax
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x43e0ec], eax
test eax, eax
je 0x40660c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x43e0e8], eax
mov eax, dword [0x43e0e8]
cmp eax, ebx
je 0x406664
cmp dword [0x43e0ec], ebx
je 0x406664
push eax
call fcn.004032fd
push dword [0x43e0ec]
mov esi, eax
call fcn.004032fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406664
test edi, edi
je 0x406664
call esi
test eax, eax
je 0x40665b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40665b
test byte [ebp - 0xc], 1
jne 0x406664
or dword [ebp + 0x10], 0x200000
jmp 0x40669d
mov eax, dword [0x43e0e0]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40669d
mov eax, dword [0x43e0e4]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e0dc]
call fcn.004032fd
pop ecx
test eax, eax
je 0x4066bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43688b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x44c044]
push dword [0x44bd60]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x43691a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x436944
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0043690f
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x436927
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x43695c
or dword [0x44c054], 0xffffffff
mov dword [0x44c050], 0xa62e7790
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219