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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 4
jb 0x1003dc98
mov esi, eax
shr esi, 2
nop
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x1003dc80
mov dword [esp + 0x24], eax
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x1003dd87
cmp eax, 8
jb 0x1003dd68
mov ebx, eax
mov esi, edi
and ebx, 0xfffffff8
xorps xmm4, xmm4
sub esi, edx
xorps xmm3, xmm3
mov dword [esp + 0x14], esi
mov ecx, edx
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
movd xmm2, dword [eax + ecx]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 8]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 4]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [edi + ebp + 4]
add ebp, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ebp, ebx
jb 0x1003dcf0
mov eax, dword [esp + 0x24]
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x1003dd87
sub edi, edx
lea ebx, [edx + ebp]
sub eax, ebp
movzx edx, byte [ebx + edi]
lea ebx, [ebx + 1]
movzx ecx, byte [ebx - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x1003dd73
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x1003dda0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x1003dee6
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
push edi
cmp eax, 4
jb 0x1003dde3
mov edi, eax
shr edi, 2
mov ecx, dword [esi]
sub eax, 4
xor ecx, dword [ebx]
add esi, 4
mov dword [edx], ecx
add ebx, 4
add edx, 4
sub edi, 1
jne 0x1003ddc8
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
test eax, eax
je 0x1003dee2
cmp eax, 0x40
jb 0x1003debf
lea ecx, [ebx - 1]
lea edi, [edx - 1]
add ecx, eax
add edi, eax
cmp edx, ecx
ja 0x1003de15
cmp edi, ebx
jae 0x1003debf
lea ecx, [esi - 1]
add ecx, eax
cmp edx, ecx
ja 0x1003de26
cmp edi, esi
jae 0x1003debf
mov ecx, eax
lea edi, [edx + 0x10]
mov eax, edx
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, esi
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [edx + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [esi + ebp + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [edi - 0x30], xmm1
movups xmm1, xmmword [esi + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x20], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x1003de60
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp ebp, eax
jae 0x1003dee2
sub esi, ebx
lea edi, [ebx + ebp]
sub edx, ebx
sub eax, ebp
nop dword [eax]
mov cl, byte [edi + esi]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + edx - 1], cl
sub eax, 1
jne 0x1003ded0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1003def0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003dfc1
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
cmp eax, 4
jb 0x1003df22
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor dword [esi], ecx
add edx, 4
add esi, 4
sub edi, 1
jne 0x1003df10
push ebx
xor ebx, ebx
test eax, eax
je 0x1003dfbe
cmp eax, 0x40
jb 0x1003df9e
lea ecx, [edx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x1003df44
cmp edi, edx
jae 0x1003df9e
push ebp
mov edi, eax
mov ebp, edx
and edi, 0xffffffc0
mov ecx, esi
sub ebp, esi
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edx + ebx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edx + ebx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm0, xmmword [ecx - 0x10]
movups xmm1, xmmword [edx + ebx + 0x30]
add ebx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp ebx, edi
jb 0x1003df50
pop ebp
cmp ebx, eax
jae 0x1003dfbe
sub edx, esi
lea edi, [ebx + esi]
sub eax, ebx
nop dword [eax]
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x1003dfb0
pop ebx
pop edi
pop esi
ret

Function at 0x10043c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10043dc0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10043ce4
cmp dword [ebp - 4], 0x50000000
jb 0x10043c61
cmp dword [ebp - 4], 0x80000000
ja 0x10043c61
mov dword [ebp - 4], 0x4fff0000
jmp 0x10043c3a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10048ce0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10043c87
jmp 0x10043ce4
cmp dword [ebp - 0x14], 0x10000
jne 0x10043cca
cmp dword [ebp - 0x18], 0x10000
jb 0x10043cca
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10043cbd
mov eax, dword [ebp - 8]
jmp 0x10043ce6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10043cdf
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10043dc0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10043c3a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10043cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10043df0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10043dac
cmp dword [ebp - 4], 0x50000000
jb 0x10043d2c
cmp dword [ebp - 4], 0x80000000
ja 0x10043d2c
mov dword [ebp - 4], 0x80010000
jmp 0x10043d05
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10048ce0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10043d52
jmp 0x10043dac
cmp dword [ebp - 0x14], 0x10000
jne 0x10043d95
cmp dword [ebp - 0x18], 0x10000
jb 0x10043d95
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10043d88
mov eax, dword [ebp - 8]
jmp 0x10043dae
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10043da7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10043df0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10043d05
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10044770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a0a40]
mov dword [ebp - 4], eax
jmp 0x10044789
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100447a6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10044780
mov esp, ebp
pop ebp
ret
Function at 0x1004d8fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10045f00
mov eax, dword [0x1008b880]
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.1005700b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004d93d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004da99
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10046300
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 + 0x100a1168]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10058873
mov ecx, dword [esi*4 + 0x100a1168]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004da92
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004da92
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004da92
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058873
add esp, 0x14
test edx, edx
jl 0x1004da92
jg 0x1004da08
test eax, eax
jb 0x1004da92
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004da92
jl 0x1004da22
cmp dword [ebp - 0x1008], eax
ja 0x1004da92
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004da40
test ebx, ebx
je 0x1004da79
cmp ecx, edi
jae 0x1004da79
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004da5a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004da66
cmp byte [ecx + 1], 0xa
jne 0x1004da66
inc ecx
jmp 0x1004da66
movzx eax, al
movsx eax, byte [eax + 0x1008bb18]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004da40
cmp edx, ebx
jne 0x1004da40
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004da97
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10045eb8
leave
ret

Function at 0x10054421
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10054460
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10054460
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10054460
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10054460
cmp dword [ecx + 0x74], 0xe
jbe 0x10054460
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100579af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x100a1168]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100579ef
cmp byte [ebx], 0xa
jne 0x100579ef
or byte [edi + eax + 0x28], 4
jmp 0x100579f4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10057af3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10057ad6
inc eax
cmp dl, 0xd
je 0x10057a20
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10057a46
cmp eax, ecx
jae 0x10057a54
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10057a08
jmp 0x10057af3
push 0
lea eax, [ebp - 0x10]
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 0x10057ad1
cmp dword [ebp - 0x10], 0
je 0x10057ad1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100a1168]
test byte [eax + edi + 0x28], 0x48
je 0x10057aab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10057a96
mov byte [esi], dl
jmp 0x10057aa7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a1168]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10057af3
cmp byte [ebp - 1], 0xa
jne 0x10057aba
cmp esi, ebx
jne 0x10057aba
mov byte [esi], 0xa
jmp 0x10057af2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10058891
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10057af3
mov byte [esi], 0xd
jmp 0x10057af2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100a1168]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10057af0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10057af3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10057afc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100a1168]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10057b42
cmp word [ebx], dx
jne 0x10057b42
or byte [eax + edi + 0x28], 4
jmp 0x10057b47
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10057caa
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10057c8a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10057b88
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10057bbe
cmp eax, edx
jae 0x10057bcc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10057b63
jmp 0x10057caa
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10057c85
cmp dword [ebp - 0x18], 0
je 0x10057c85
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100a1168]
test byte [eax + edi + 0x28], 0x48
je 0x10057c5b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10057c1f
mov word [esi], cx
jmp 0x10057c56
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100a1168]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100a1168]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100a1168]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10057caa
pop eax
cmp word [ebp - 4], ax
jne 0x10057c6b
cmp esi, ebx
jne 0x10057c6b
mov word [esi], ax
jmp 0x10057ca7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10058891
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10057caa
push 0xd
pop eax
jmp 0x10057c66
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100a1168]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10057ca4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10057caa
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100598e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077c00
push 0x10077bf8
push str.FlsAlloc
push 0x1f
call fcn.100597a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005991b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10067208]
call esi
jmp 0x10059921
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10059965
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077c10
push 0x10077c08
push str.FlsGetValue
push 0x21
call fcn.100597a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005999c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10067208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100599a4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10077c18
push 0x10077c10
push str.FlsSetValue
push 0x22
call fcn.100597a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100599de
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10067208]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005fbda
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 0x1005fc77
push ebx
push esi
call fcn.1005fba3
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.1005cdba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005fc24
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005fc76
push edi
push eax
call fcn.10056109
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005fc44
call fcn.100560cf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005fc75
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005cdba
add esp, 0x20
test eax, eax
jne 0x1005fc63
push edi
call fcn.100560cf
jmp 0x1005fc6b
push ebx
call fcn.100560cf
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 0x1005fc7a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005fc8b
pop esi
ret
push ebx
push edi
push esi
call fcn.1005fba3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10056109
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005fcb3
push ebx
push esi
push edi
call fcn.10048580
add esp, 0xc
push 0
call fcn.100560cf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10060083
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005fcc8
Function at 0x10063741
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100636bd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100638b0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100638b0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10063865
jg 0x1006379d
test eax, eax
je 0x1006385b
push 1
push 0x1000
call fcn.10059c74
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100637c0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10063852
push 0x8000
push ebx
call fcn.100635ee
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100637e9
jg 0x100637e4
cmp ecx, 0x1000
jb 0x100637e9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005a785
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006382e
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 0x100637e4
jl 0x10063815
test ecx, ecx
jne 0x100637d6
push dword [ebp - 0xc]
push ebx
call fcn.100635ee
push esi
call fcn.100560cf
add esp, 0xc
xor ebx, ebx
jmp 0x100638be
cmp byte [edi + 0x24], 0
je 0x10063845
cmp dword [edi + 0x20], 5
jne 0x10063845
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10063850
mov ebx, dword [edi + 0x18]
jmp 0x10063852
xor ebx, ebx
push esi
call fcn.100560cf
pop ecx
jmp 0x100638be
test ecx, ecx
jg 0x10063827
jl 0x10063865
test eax, eax
jae 0x10063827
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058891
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10063885
cmp byte [edi + 0x1c], 0
je 0x10063827
jmp 0x100638b6
push ebx
call fcn.10060dcb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10063827
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100638be
cmp byte [edi + 0x1c], 0
je 0x100638bb
mov ebx, dword [edi + 0x18]
jmp 0x100638be
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10058891
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
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 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xf665e6c
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
mov ecx, 0x5c7a696a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x430000
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
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
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
mov esi, 0x70b63807
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
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
nop
pop eax
nop
nop
mov esi, 0x27f3375f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219