joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422500
cmp edx, dword [eax]
je 0x412107
add eax, 8
inc ecx
cmp eax, 0x422590
jl 0x4120f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422500]
jne 0x412235
mov eax, dword [0x426e28]
cmp eax, 1
je 0x41220f
test eax, eax
jne 0x412138
cmp dword [0x421fb8], 1
je 0x41220f
cmp edx, 0xfc
je 0x412235
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41216f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cc00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4121b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cc00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f5e0
push edi
call fcn.004145f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411620
lea eax, [ebp - 0xa0]
push 0x41f5c0
push eax
call fcn.00411620
push dword [esi + 0x422504]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414f31
add esp, 0x2c
pop edi
jmp 0x412235
lea eax, [ebp + 8]
lea esi, [esi + 0x422504]
push 0
push eax
push dword [esi]
call fcn.0040cc00
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]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x73b05d11
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5807c0c
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0xbbc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xbbc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbbc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbbc06a
add dl, dl
jne 0xbbc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbbc0dc
xor eax, eax
add dl, dl
jne 0xbbc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbbc17d
add dl, dl
jne 0xbbc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbbc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbbc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbbc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbbc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbbc075
mov eax, 1
add dl, dl
jne 0xbbc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbbc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbbc0e1
sub eax, ebx
mov ebx, 1
jne 0xbbc128
mov ecx, 1
add dl, dl
jne 0xbbc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbbc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbbc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbbc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbbc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbbc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbbc136
cmp eax, 0x7d00
jae 0xbbc16d
cmp eax, 0x500
jb 0xbbc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbbc075
cmp eax, 0x7f
ja 0xbbc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbbc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbbc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbbc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x44f92b0e
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x57086365
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x5a9100f2
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x77772b8e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x886ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d3000]
push edi
or ebp, 0xffffffff
jmp 0x886b02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x886b09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x886af8
mov eax, 1
add ebx, ebx
jne 0x886b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x886b2c
jne 0x886b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x886b4b
dec eax
add ebx, ebx
jne 0x886b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x886b10
add ebx, ebx
jne 0x886b47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x886b9d
xor ecx, ecx
sub eax, 3
jb 0x886b63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x886bd2
sar eax, 1
mov ebp, eax
jmp 0x886b6e
add ebx, ebx
jne 0x886b6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x886b3c
inc ecx
add ebx, ebx
jne 0x886b7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x886b3c
add ebx, ebx
jne 0x886b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x886b7e
jne 0x886b9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x886b7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x886bbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x886bae
jmp 0x886afe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x886bbc
add edi, ecx
jmp 0x886afe
pop esi
mov edi, esi
mov ecx, 0x6968
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x886bda
cmp byte [edi], 0xa
jne 0x886bda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x886bdf
lea edi, [esi + 0x47d000]
mov eax, dword [edi]
or eax, eax
je 0x886c57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48ab94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48acd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x886c0c
mov ecx, edi
jns 0x886c3b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x48acd8]
or eax, eax
je 0x886c51
mov dword [ebx], eax
add ebx, 4
jmp 0x886c29
call dword [esi + 0x48ace8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x886c88
cmp al, 0xef
ja 0x886c7b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x886c5d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x886c6a
mov ebp, dword [esi + 0x48acdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x886cbc
sub esp, 0xffffff80
jmp 0x4aedb0
Function at 0x5295d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x92000]
push edi
or ebp, 0xffffffff
jmp 0x5295f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5295f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5295e8
mov eax, 1
add ebx, ebx
jne 0x52960b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x529600
jne 0x52961c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x529600
xor ecx, ecx
sub eax, 3
jb 0x529630
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5296a2
mov ebp, eax
add ebx, ebx
jne 0x52963b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x529648
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x52966c
inc ecx
add ebx, ebx
jne 0x529658
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52964d
jne 0x529669
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52964d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52968c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52967d
jmp 0x5295ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52968c
add edi, ecx
jmp 0x5295ee
pop esi
mov edi, esi
mov ecx, 0x37ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5296aa
cmp byte [edi], 0x13
jne 0x5296aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5296af
lea edi, [esi + 0x126000]
mov eax, dword [edi]
or eax, eax
je 0x529727
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12dce4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12dda8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5296dc
mov ecx, edi
jns 0x52970b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12ddb0]
or eax, eax
je 0x529721
mov dword [ebx], eax
add ebx, 4
jmp 0x5296f9
call dword [esi + 0x12ddac]
mov ebp, dword [esi + 0x12ddb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52975b
sub esp, 0xffffff80
jmp 0x46ef3e
Function at 0x40c6b0
Capabilities:
Set environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x58], eax
mov word [esp + 8], 0
mov al, byte [esi]
test al, al
je 0x40c741
mov edi, 0x28
lea ebx, [esp + 8]
lea ebp, [esp + 2]
mov byte [esp + 6], al
mov byte [esp + 7], 0
push 2
lea eax, [esp + 0xa]
push eax
push ebp
call fcn.00413498
add esp, 0xc
cmp eax, 1
jne 0x40c763
cmp word [ebx], 0
mov ecx, edi
mov eax, ebx
je 0x40c71f
mov edx, ebx
mov ecx, edi
nop dword [eax]
lea eax, [edx + 2]
add ecx, 0xffffffff
cmp word [edx + 2], 0
mov edx, eax
jne 0x40c710
test ecx, ecx
je 0x40c763
movzx ecx, word [esp + 2]
mov word [eax], cx
mov word [eax + 2], 0
add ebx, 2
add edi, 0xffffffff
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x40c6e0
lea eax, [esp + 8]
push dword [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0040eab1
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00413423
int3
Function at 0x40cf60
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x42f8c4]
test eax, eax
je 0x40cfa5
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cf99
push 0
push dword [0x42f8c4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x42f8c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4320dc], 1
jne 0x40d026
movups xmm0, xmmword [0x421fe2]
movups xmmword [esp + 0xe], xmm0
movups xmm0, xmmword [0x421fd4]
movups xmmword [esp], xmm0
mov eax, esp
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
nop word cs:[eax + eax]
nop
push 0x42f8cc
call ebx
cmp eax, 0xffffffff
je 0x40d026
and eax, 0x10
je 0x40d026
push 0x64
call ebp
movups xmm0, xmmword [0x421fe2]
movups xmmword [esp + 0xe], xmm0
movups xmm0, xmmword [0x421fd4]
movups xmmword [esp], xmm0
mov eax, esp
push eax
call esi
add edi, 0xffffffff
jne 0x40cff0
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040eab1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40daf0
Capabilities:
Terminate process

Disassembly:
push ecx
call fcn.00413665
add esp, 4
push 2
call fcn.00412285

Function at 0x40e950
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
mov eax, 0x2004
call fcn.0040eac0
mov esi, ecx
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x2000], eax
mov ecx, dword [0x42f8c8]
test ecx, ecx
je 0x40e97d
test ecx, ecx
jg 0x40e9bd
jmp 0x40e9df
mov edi, esp
push 0x1000
push 0x425c22
push edi
call fcn.0040c8f0
add esp, 0xc
test al, al
je 0x40ea5e
push edi
call fcn.00413247
add esp, 4
mov ecx, dword [0x42f8c8]
mov dword [ecx*4 + 0x4348fc], eax
add ecx, 1
mov dword [0x42f8c8], ecx
test ecx, ecx
jle 0x40e9df
xor edi, edi
nop
push dword [edi*4 + 0x4348fc]
push esi
call fcn.00413b00
add esp, 8
test eax, eax
je 0x40ea42
add edi, 1
cmp edi, dword [0x42f8c8]
jl 0x40e9c0
push esi
call fcn.00413b40
add esp, 4
cmp eax, 2
jne 0x40e9f6
mov bl, 1
cmp word [esi + 2], 0x3a
je 0x40ea44
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x40ea13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x40ea44
cmp dword [0x42f8c8], 0x3ff
jg 0x40ea44
push esi
call fcn.00413247
add esp, 4
mov ecx, dword [0x42f8c8]
mov dword [ecx*4 + 0x4348fc], eax
add ecx, 1
mov dword [0x42f8c8], ecx
mov bl, 1
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0040eab1
mov eax, ebx
add esp, 0x2004
pop esi
pop edi
pop ebx
ret
mov ecx, 0x425c22
call fcn.0040dac0
int3

Function at 0x40ea70
Capabilities:
Terminate process

Disassembly:
push 2
call fcn.004101fd
add esp, 4
push 0x4320de
push str.Error__failed_to_open__ls_for_writing._n
push eax
call fcn.0040cef0
add esp, 0xc
push 2
call fcn.00412285
int3

Function at 0x40eaa0
Capabilities:
Terminate process

Disassembly:
push edx
push ecx
call fcn.0040ce80
add esp, 8
push 2
call fcn.00412285

Function at 0x418cb9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418cc4
Function at 0x418d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420b80], ecx
inc edx
cmp edx, 0x100
jb 0x418d52
cmp edx, 0x800
jae 0x418e29
lea esp, [esp]
mov eax, dword [edx*4 + 0x420780]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420b80]
inc edx
mov dword [edx*4 + 0x420b7c], eax
cmp edx, 0x800
jb 0x418e00
mov eax, 0x419630
mov dword [0x420b74], eax
mov dword [0x422b80], eax
mov dword [0x420b70], 0x419550
call fcn.00419060
test eax, eax
jne 0x418e55
mov dword [0x422b80], 0x419550
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x53c37707
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..7LWLf
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7a372489
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x819370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x81938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x842074
push ecx
mov edi, eax
call fcn.0082d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8193cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0082d02e
push esi
call fcn.0082cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret