joyce8/EMBER2024-capa huggingface dataset:
Function at 0x301399e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.301600d0
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x301399ff
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x30139ac9
jb 0x30139a24
test eax, eax
jne 0x30139ac9
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [ebp + 0x16c]
mov dword [ebp + 0x34], ecx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x30], eax
test edi, edi
je 0x30139a75
nop dword [eax]
test esi, esi
je 0x30139a5a
mov al, byte [ebx]
lea ecx, [ebp + 0x40]
xor byte [ecx + edi], al
inc ebx
inc edi
mov dword [esp + 0x18], ecx
dec esi
and edi, 0xf
jne 0x30139a40
jmp 0x30139a62
mov dword [esp + 0x18], ecx
test edi, edi
jne 0x30139abb
lea eax, [ebp + 0x60]
push eax
push ecx
call fcn.3013b0f0
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x30139a79
mov dword [esp + 0x18], ecx
mov eax, esi
lea edx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x30139a9b
push eax
push ebx
push edx
push ecx
call fcn.3013aec0
add ebx, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x30139abb
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x30139abb
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x30139ab0
mov dword [ebp + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x3013ac90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.301600d0
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x3013acfc
mov eax, dword [esp + 0x20]
mov ebx, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x3013ae39
mov dword [esi + 0x40], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], ebx
mov dword [esi + 0x4c], 0
mov dword [esp + 0xc], edx
push ebp
mov ebp, dword [esp + 0x24]
push edi
lea edi, [esi + 0x40]
cmp ebx, 0x10
jb 0x3013ad9f
mov eax, ebx
lea ecx, [esi + 0x41]
shr eax, 4
mov esi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
mov eax, ecx
lea edx, [ebp + 1]
mov edi, 4
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x3013ad50
push dword [esp + 0x14]
push esi
call fcn.3013b0f0
mov ecx, dword [esp + 0x20]
add esp, 8
add ebp, 0x10
sub ebx, 0x10
sub dword [esp + 0x2c], 1
jne 0x3013ad43
mov esi, dword [esp + 0x24]
lea edi, [esi + 0x40]
lea edx, [esi + 0x60]
test ebx, ebx
je 0x3013adc5
xor ecx, ecx
test ebx, ebx
je 0x3013adbb
nop dword [eax]
mov al, byte [ecx + ebp]
xor byte [edi + ecx], al
inc ecx
cmp ecx, ebx
jb 0x3013adb0
push edx
push edi
call fcn.3013b0f0
add esp, 8
mov edx, dword [esp + 0x1c]
xor ebx, ebx
shld ebx, edx, 3
xor byte [esi + 0x4b], bl
mov eax, ebx
shl edx, 3
xor byte [esi + 0x4f], dl
mov ecx, edx
shrd ecx, eax, 0x18
xor byte [esi + 0x4c], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
xor byte [esi + 0x4d], cl
shrd eax, ebx, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
push edi
call fcn.3013b0f0
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop edi
mov dword [esi + 0xc], eax
pop ebp
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x3013f1a0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x88
call fcn.301600d0
mov eax, dword [0x3021be88]
xor eax, esp
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x98]
push edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x48], 0x61707865
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], 0x3320646e
mov dword [esp + 0x50], 0x79622d32
mov eax, dword [ecx]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x54], 0x6b206574
test eax, eax
je 0x3013f377
push ebx
mov ebx, dword [esp + 0x98]
push ebp
push esi
nop
mov esi, 0x40
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.3013f390
add esp, 8
xor eax, eax
test esi, esi
je 0x3013f34a
cmp esi, 0x40
jb 0x3013f311
lea edx, [edi - 1]
lea ecx, [esp + esi + 0x13]
add edx, esi
cmp edi, ecx
ja 0x3013f2a4
lea ecx, [esp + 0x14]
cmp edx, ecx
jae 0x3013f311
lea ecx, [ebx - 1]
add ecx, esi
cmp edi, ecx
ja 0x3013f2b1
cmp edx, ebx
jae 0x3013f311
mov edx, esi
lea ecx, [edi + 0x10]
mov ebp, ebx
and edx, 0xffffffc0
sub ebp, edi
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x14]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ebx + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x24]
movups xmmword [edi + eax], xmm1
movups xmm1, xmmword [ecx + ebp - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x34]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + eax + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x44]
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [ebx + eax + 0x30]
add eax, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp eax, edx
jb 0x3013f2c0
cmp eax, esi
jae 0x3013f34a
mov ebp, ebx
lea ecx, [esp + 0x14]
sub ebp, ecx
lea edx, [esp + 0x14]
mov ecx, edi
sub ecx, edx
mov dword [esp + 0x10], ecx
mov ebx, ecx
nop dword [eax + eax]
lea edx, [esp + 0x14]
add edx, eax
inc eax
mov cl, byte [edx + ebp]
xor cl, byte [edx]
mov byte [ebx + edx], cl
cmp eax, esi
jb 0x3013f330
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
add ebx, esi
inc dword [esp + 0x84]
sub eax, esi
add edi, esi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], eax
test eax, eax
jne 0x3013f260
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
xor ecx, esp
call fcn.3015f3bd
add esp, 0x88
ret
Function at 0x30141ca0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x30141cb4
mov dword [esp + 0x18], fcn.30140480
jmp fcn.30138f90
mov dword [esp + 0x18], fcn.3013f720
jmp fcn.30138cc0
Function at 0x3016d909
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.301600d0
mov eax, dword [0x3021be88]
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.30175e85
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x3016d94b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x3016daa7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.301864c0
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 + 0x302391e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.3017dfa4
mov ecx, dword [esi*4 + 0x302391e0]
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 0x3016daa0
cmp eax, dword [edi + ecx + 0x24]
jne 0x3016daa0
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 0x3016daa0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.3017dfa4
add esp, 0x14
test edx, edx
jl 0x3016daa0
jg 0x3016da16
test eax, eax
jb 0x3016daa0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x3016daa0
jl 0x3016da30
cmp dword [ebp - 0x1008], eax
ja 0x3016daa0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x3016da4e
test ebx, ebx
je 0x3016da87
cmp ecx, edi
jae 0x3016da87
mov al, byte [ecx]
cmp al, 0xd
jne 0x3016da68
lea eax, [edi - 1]
cmp ecx, eax
jae 0x3016da74
cmp byte [ecx + 1], 0xa
jne 0x3016da74
inc ecx
jmp 0x3016da74
movzx eax, al
movsx eax, byte [eax + 0x3021bfe0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x3016da4e
cmp edx, ebx
jne 0x3016da4e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x3016daa5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3015f3bd
leave
ret
Function at 0x30176d7f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x301e0520
push esi
call fcn.3017ff40
pop ecx
pop ecx
test eax, eax
jne 0x30176dad
xor al, al
jmp 0x30176e2a
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.30176ac2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x30176de7
push dword [ebp - 0x210]
call fcn.301698c4
xor al, al
jmp 0x30176e28
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x30176ded
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x30176e0d
push edx
call fcn.30176cb5
pop ecx
test al, al
je 0x30176dd8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x30176e1b
mov bl, 1
push dword [ebp - 0x210]
call fcn.301698c4
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3015f3bd
leave
ret
Function at 0x30178760
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 + 0x302391e0]
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 0x301787a0
cmp byte [ebx], 0xa
jne 0x301787a0
or byte [eax + edi + 0x28], 4
jmp 0x301787a5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x301788a3
mov al, byte [edx]
cmp al, 0x1a
je 0x30178885
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x301787d4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x301787f9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x30178803
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 0x301787b6
jmp 0x301788a3
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 0x30178880
cmp dword [ebp - 0xc], 0
je 0x30178880
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x302391e0]
test byte [eax + edi + 0x28], 0x48
je 0x3017885a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x30178845
mov byte [esi], dl
jmp 0x30178856
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x302391e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x301788a3
cmp byte [ebp - 1], 0xa
jne 0x30178869
cmp esi, ebx
jne 0x30178869
mov byte [esi], 0xa
jmp 0x301788a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.3017dfc2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x301788a3
mov byte [esi], 0xd
jmp 0x301788a2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x302391e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x3017889f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x301788a3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x301788ac
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 + 0x302391e0]
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 0x301788ef
cmp word [esi], dx
jne 0x301788ef
or byte [edi + eax + 0x28], 4
jmp 0x301788f4
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 0x30178a47
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 0x30178a27
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x30178936
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x3017896c
cmp eax, edx
jae 0x30178978
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 0x3017890e
jmp 0x30178a47
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 0x30178a23
cmp dword [ebp - 0x14], 0
je 0x30178a23
mov eax, dword [ebx*4 + 0x302391e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x301789fb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x301789c4
mov word [esi], cx
jmp 0x301789f7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x302391e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x302391e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x302391e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x30178a47
pop ebx
cmp word [ebp - 4], bx
jne 0x30178a0c
cmp esi, dword [ebp + 0xc]
jne 0x30178a0c
mov word [esi], bx
jmp 0x30178a44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.3017dfc2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x30178a47
push 0xd
jmp 0x30178a40
mov ecx, dword [ebx*4 + 0x302391e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x30178a3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x30178a47
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 0x3017b009
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x301e1b40
push 0x301e1b38
push str.FlsAlloc
push 0x1e
call fcn.3017ae49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x3017b03d
push dword [ebp + 8]
mov ecx, esi
call dword [0x30189398]
call esi
jmp 0x3017b043
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x3017b087
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x301e1b50
push 0x301e1b48
push str.FlsGetValue
push 0x20
call fcn.3017ae49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x3017b0be
push dword [ebp + 8]
mov ecx, esi
call dword [0x30189398]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x3017cb39
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.3017cabb
Function at 0x3017e4d8
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.3017e454
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x3017e650
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x3017e650
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x3017e5ff
jg 0x3017e531
test eax, eax
je 0x3017e5f5
push 1
push 0x1000
call fcn.3017ac85
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x3017e557
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x3017e5ec
push 0x8000
push ebx
call fcn.30175fea
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 0x3017e583
jg 0x3017e57e
cmp ecx, 0x1000
jb 0x3017e583
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.3017d66d
add esp, 0x10
cmp eax, 0xffffffff
je 0x3017e5c8
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 0x3017e57e
jl 0x3017e5af
test ecx, ecx
jne 0x3017e570
push dword [ebp - 0xc]
push ebx
call fcn.30175fea
push esi
call fcn.301790d9
add esp, 0xc
xor edi, edi
jmp 0x3017e661
cmp byte [edi + 0x24], 0
je 0x3017e5df
cmp dword [edi + 0x20], 5
jne 0x3017e5df
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x3017e5ea
mov edi, dword [edi + 0x18]
jmp 0x3017e5ec
xor edi, edi
push esi
call fcn.301790d9
pop ecx
jmp 0x3017e661
test ecx, ecx
jg 0x3017e5c1
jl 0x3017e5ff
test eax, eax
jae 0x3017e5c1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.3017dfc2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x3017e622
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x3017e5c1
jmp 0x3017e659
push ebx
call fcn.3017e3ea
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x3017e5c1
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 0x3017e661
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x3017e65e
mov edi, dword [edi + 0x18]
jmp 0x3017e661
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.3017dfc2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x3017e80a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.3017e67b
Function at 0x30181145
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 0x301811e2
push ebx
push esi
call fcn.3018110e
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.30181057
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x3018118f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x301811e1
push edi
push eax
call fcn.30179113
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x301811af
call fcn.301790d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x301811e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.30181057
add esp, 0x20
test eax, eax
jne 0x301811ce
push edi
call fcn.301790d9
jmp 0x301811d6
push ebx
call fcn.301790d9
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 0x301811e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x301811f6
pop esi
ret
push ebx
push edi
push esi
call fcn.3018110e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.30179113
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x3018121e
push ebx
push esi
push edi
call fcn.301619b0
add esp, 0xc
push 0
call fcn.301790d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x3018196a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.30181491

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x11a01bcd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x3c8c2e24
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219