joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022840
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x100ee060], al
inc eax
cmp eax, 0x100
jb 0x10022842
push ebx
push ebp
push esi
push edi
xor esi, esi
lea ecx, [ecx]
movzx ecx, byte [esi + str.cw]
mov edx, ecx
and dl, 0x80
movzx eax, dl
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [ecx + ecx]
xor eax, edx
and eax, 0xff
mov edi, eax
xor edi, ecx
mov edx, edi
shl edx, 8
or edx, ecx
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100ec060], edx
movzx ebp, byte [esi + 0x100ee060]
mov edx, ecx
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, ecx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl eax, 8
or eax, ecx
shl edx, 8
or edx, edi
shl eax, 8
or eax, ecx
shl edx, 8
or edx, ecx
mov dword [esi*4 + 0x100ecc60], eax
shl ebx, 8
or ebx, edi
mov eax, ebp
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
mov dword [esi*4 + 0x100ec860], edx
and eax, 0x1b
lea ecx, [ebp + ebp]
xor eax, ecx
and eax, 0xff
mov edx, eax
and dl, 0x80
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, 0x1b
lea edx, [eax + eax]
xor ecx, edx
and ecx, 0xff
mov edx, ecx
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea edi, [ecx + ecx]
xor edx, edi
and edx, 0xff
mov edi, edx
mov dword [esi*4 + 0x100ec460], ebx
mov ebx, edx
xor edx, ecx
xor edi, eax
mov ecx, edx
xor edi, ebp
xor ebx, ebp
xor ecx, ebp
xor edx, eax
mov eax, edx
mov edx, edi
shl edx, 8
or edx, ecx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x100ed060], edx
mov edx, ecx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, eax
shl edx, 8
or edx, edi
mov dword [esi*4 + 0x100ed460], edx
mov edx, ebx
shl edx, 8
or edx, eax
shl eax, 8
or eax, edi
shl edx, 8
shl eax, 8
or edx, edi
or eax, ecx
shl edx, 8
shl eax, 8
or edx, ecx
or eax, ebx
mov dword [esi*4 + 0x100ed860], edx
mov dword [esi*4 + 0x100edc60], eax
inc esi
cmp esi, 0x100
jb 0x10022860
mov dword [0x100ef8a0], 0x100226a0
mov dword [0x100ef8a8], 0x10022700
mov dword [0x100ef8a4], 0x10022790
call fcn.10023a6a
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x100229fb
mov dword [0x100ef8a0], 0x10021760
mov dword [0x100ef8a8], 0x100217f0
mov dword [0x100ef8a4], 0x10021950
ret
Function at 0x10022dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esi]
xor eax, eax
and ebp, 7
mov dword [esp + 0xc], ecx
cmp edx, 5
jae 0x10022df1
pop esi
pop ebp
add esp, 0xc
ret 0xc
mov esi, dword [esp + 0x18]
add esi, 5
lea edx, [ecx + edx - 4]
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
push edi
mov edi, edi
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x10022e2d
jmp 0x10022e20
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x10022e2d
inc edi
cmp edi, edx
jb 0x10022e20
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x10022f42
cmp ecx, 3
jbe 0x10022e61
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x10], eax
test cl, cl
je 0x10022e9b
cmp cl, 0xff
je 0x10022e9b
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x10022e10
dec ecx
shl ebp, cl
and ebp, 7
je 0x10022e46
movzx ecx, byte [ebp + 0x100bff2c]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x100bff24], 0
mov cl, byte [ebx + 4]
je 0x10022e89
test cl, cl
je 0x10022e89
cmp cl, 0xff
jne 0x10022e46
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
inc eax
jmp 0x10022e10
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x10022ece
lea ebx, [edx + eax]
add ebx, esi
jmp 0x10022ed4
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x10022f14
movzx esi, byte [ebp + 0x100bff2c]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x10022ef9
cmp dl, 0xff
jne 0x10022f10
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x10022ec0
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x18]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x10022e10
pop edi
pop ebx
cmp ecx, 3
jbe 0x10022f59
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
pop esi
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x1c]
pop esi
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
Function at 0x10024180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
xor edx, edx
push esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x20], edx
call fcn.10024160
lea esi, [eax + 0x70]
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 [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x10024196
pop esi
ret

Function at 0x100297a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov ebx, 0x100
push edi
or esi, ebx
mov eax, esi
shr eax, 7
add ebp, ebp
and eax, 1
mov ecx, ebx
and ecx, ebp
mov edx, esi
push eax
mov eax, dword [esp + 0x1c]
shr edx, 8
add ecx, ebx
add edx, ecx
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x18]
call fcn.10029700
add esi, esi
mov ecx, esi
xor ecx, ebp
not ecx
and ebx, ecx
cmp esi, 0x10000
jb 0x100297b1
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10029850
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x10029860
pop edi
pop ebx
ret

Function at 0x10029890
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
or ecx, edx
mov edi, edi
add esi, esi
mov ebx, edx
and ebx, esi
add ebx, edx
mov ebp, ecx
shr ebp, 8
add ebp, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + ebp*2]
mov ebp, ecx
shr ebp, 7
and ebp, 1
neg ebp
shr ebx, 4
sar ebp, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [edi + ebx*4]
add ecx, ecx
mov ebx, ecx
xor ebx, esi
not ebx
and edx, ebx
cmp ecx, 0x10000
jb 0x100298a0
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10029970
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, 1
shl ebx, cl
xor eax, eax
or edx, ebx
cmp edx, 1
je 0x100299a3
mov ecx, edx
and edx, 1
shr ecx, 1
movzx ebx, word [edi + ecx*2]
neg edx
sar edx, 4
and edx, 0x7f
shr ebx, 4
xor ebx, edx
add eax, dword [esi + ebx*4]
mov edx, ecx
cmp edx, 1
jne 0x10029981
pop ebx
ret
Function at 0x100299b0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, ecx
xor eax, eax
lea edx, [eax + 1]
test edi, edi
je 0x100299f2
push ebx
push ebp
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + edx*2]
mov ecx, esi
and ecx, 1
mov ebp, ecx
neg ebp
sar ebp, 4
and ebp, 0x7f
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x18]
add eax, dword [ebp + ebx*4]
add edx, edx
shr esi, 1
or edx, ecx
sub edi, 1
jne 0x100299c1
pop ebp
pop ebx
pop edi
pop esi
ret 8
Function at 0x10030390
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret
Function at 0x100309cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
mov esi, ecx
push edx
push eax
push eax
call fcn.1009ca43
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.10030989
pop esi
pop ebp
ret 4

Function at 0x10030b57
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], edx
dec edx
je 0x10030b77
sub edx, 3
je 0x10030b6e
sub edx, 6
jne 0x10030b7b
add ecx, 0x10
jmp fcn.10030390
or dword [ecx + 8], 0xffffffff
or dword [ecx + 0xc], 0xffffffff
ret
or dword [ecx + 4], 0xffffffff
ret

Function at 0x10030d80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test edx, edx
jbe 0x10030dbd
push esi
push edi
mov edi, dword [esp + 0x10]
mov edi, edi
movzx esi, byte [ecx]
xor esi, eax
shrd eax, edi, 8
and esi, 0xff
xor eax, dword [esi*8 + 0x100ef0a0]
shr edi, 8
xor edi, dword [esi*8 + 0x100ef0a4]
dec edx
inc ecx
test edx, edx
ja 0x10030d90
mov edx, edi
pop edi
pop esi
ret 8
mov edx, dword [esp + 8]
ret 8

Function at 0x10032063
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
add ecx, 0x10
jmp fcn.10030b57
Function at 0x10038385
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x68]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x100383c0
push 0x18
call fcn.100031b8
pop ecx
cmp eax, ebx
je 0x100383b3
mov dword [eax + 4], ebx
mov dword [eax], vtable.NCompress::NZlib::CDecoder.0
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], ebx
jmp 0x100383b5
xor eax, eax
push eax
mov ecx, edi
mov dword [esi + 0x64], eax
call fcn.10014dfa
lea edi, [esi + 0x70]
cmp dword [edi], ebx
jne 0x100383ee
push 0x20
call fcn.100031b8
pop ecx
cmp eax, ebx
je 0x100383e1
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBufInStream.0
mov dword [eax + 0x1c], ebx
jmp 0x100383e3
xor eax, eax
push eax
mov ecx, edi
mov dword [esi + 0x6c], eax
call fcn.10006f60
lea edi, [esi + 0x78]
cmp dword [edi], ebx
jne 0x10038419
push 0x14
call fcn.100031b8
pop ecx
cmp eax, ebx
je 0x1003840c
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBufPtrSeqOutStream.0
jmp 0x1003840e
xor eax, eax
push eax
mov ecx, edi
mov dword [esi + 0x74], eax
call fcn.10009d80
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x7c]
mov al, byte [esi + 0x3c]
lea ecx, [ecx + edx*4]
add ecx, edi
or edx, dword [ebp + 0xc]
jne 0x1003843a
mov edx, dword [esi + 0x80]
lea edx, [edi + edx*4]
jmp 0x10038462
cmp al, bl
je 0x1003845f
movzx edx, byte [ecx - 4]
movzx edi, byte [ecx - 3]
shl edx, 8
or edx, edi
movzx edi, byte [ecx - 2]
shl edx, 8
or edx, edi
movzx edi, byte [ecx - 1]
shl edx, 8
or edx, edi
jmp 0x10038462
mov edx, dword [ecx - 4]
cmp al, bl
je 0x10038486
movzx eax, byte [ecx]
movzx edi, byte [ecx + 1]
shl eax, 8
or eax, edi
movzx edi, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edi
shl eax, 8
or eax, ecx
jmp 0x10038488
mov eax, dword [ecx]
cmp eax, edx
jb 0x100384fd
cmp eax, dword [esi + 0x28]
ja 0x100384fd
mov ecx, dword [esi + 0x6c]
sub eax, edx
push ebx
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x24]
add eax, edx
push eax
call fcn.10037968
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
push ebx
push ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x68]
mov edi, dword [eax]
push ebx
push ecx
push edx
push eax
call dword [edi + 0xc]
cmp eax, ebx
jne 0x10038500
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 0x10]
add ecx, 0x40
call fcn.100111e3
add eax, 2
adc edx, ebx
xor ecx, ecx
cmp eax, dword [ebp + 0xc]
jne 0x100384fd
cmp edx, ecx
jne 0x100384fd
mov eax, dword [esi + 0x74]
mov ecx, dword [ebp + 0x14]
cmp dword [eax + 0x10], ecx
jne 0x100384fd
xor eax, eax
jmp 0x10038500
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x10041ca7
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
movzx eax, word [ecx]
mov edx, dword [esp + 4]
jbe 0x10041cdc
push esi
push edi
movzx esi, byte [edx]
movzx edi, al
shr ax, 8
xor esi, edi
xor ax, word [esi*2 + 0x100ee170]
dec dword [esp + 0x10]
inc edx
cmp dword [esp + 0x10], 0
movzx eax, ax
ja 0x10041cb7
pop edi
pop esi
mov word [ecx], ax
ret 8
Function at 0x10051d72
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push 0x14
pop eax
cmp edx, eax
jae 0x10051d86
xor eax, eax
jmp 0x10051f4e
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov di, word [esi]
mov word [ecx], di
mov di, word [esi + 2]
movzx ebx, word [ecx]
mov word [ecx + 2], di
mov di, word [esi + 4]
mov word [ecx + 4], di
mov di, word [esi + 6]
mov word [ecx + 6], di
xor edi, edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x1c], edi
cmp bx, 2
je 0x10051ed3
cmp bx, 9
je 0x10051efa
cmp bx, 1
jne 0x10051e01
cmp edx, 0x20
jb case.0x10051e80.8
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
movzx eax, word [esi + 0x18]
cdq
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
movzx eax, word [esi + 0x1a]
push 0x20
mov dword [ecx + 0xc], eax
pop eax
jmp 0x10051f4b
cmp bx, 8
jne 0x10051e6a
push 0x28
pop eax
cmp edx, eax
jb case.0x10051e80.8
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edi
mov edx, dword [esi + 0x18]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edi
movzx edx, word [esi + 0x20]
movzx ebx, word [esi + 0x22]
mov dword [ecx + 0xc], ebx
cmp edx, edi
jbe 0x10051f4b
lea ecx, [eax + 0xc]
cmp ecx, dword [ebp + 0xc]
ja case.0x10051e80.8
mov ecx, dword [eax + esi + 8]
lea eax, [eax + ecx + 0xd]
cmp eax, dword [ebp + 0xc]
ja case.0x10051e80.8
cmp ecx, 0x400
ja case.0x10051e80.8
inc edi
cmp edi, edx
jb 0x10051e37
jmp 0x10051f4b
movzx edx, bx
add edx, 0xfffffffd
cmp edx, 0xb
ja case.0x10051e80.8
movzx edx, byte [edx + 0x10051f62]
jmp dword [edx*4 + 0x10051f52]
cmp dword [ebp + 0xc], 0x18
jb case.0x10051e80.8
mov esi, dword [esi + 0x14]
lea eax, [esi + 0x18]
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], edi
cmp dword [ebp + 0xc], eax
jb case.0x10051e80.8
cmp esi, 0x40000000
jbe case.0x10051e80.6
jmp case.0x10051e80.8
push 0x18
pop eax
cmp dword [ebp + 0xc], eax
jb case.0x10051e80.8
cmp bx, 8
jb 0x10051f4b
add eax, 4
cmp dword [ebp + 0xc], eax
jb case.0x10051e80.8
jmp 0x10051f4b
cmp edx, 0x20
jb case.0x10051e80.8
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
mov eax, dword [esi + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edi
push 0x20
jmp 0x10051f25
cmp edx, 0x38
jb case.0x10051e80.8
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0xc], eax
push 0x38
pop esi
push dword [ebp + 0x10]
call fcn.10051638
push edi
push 4
push edx
push eax
call fcn.1009c340
xor ecx, ecx
add eax, esi
adc edx, ecx
cmp edx, ecx
ja case.0x10051e80.8
jb 0x10051f4b
cmp eax, dword [ebp + 0xc]
jbe 0x10051f4b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1006cd08
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push esi
mov esi, dword [eax + 4]
xor edx, edx
test esi, esi
jle 0x1006cd2f
push edi
movzx edi, byte [eax + edx + 8]
mov ecx, esi
sub ecx, edx
lea ecx, [ecx*8 - 8]
shl edi, cl
xor dword [eax], edi
inc edx
cmp edx, esi
jl 0x1006cd15
pop edi
pop esi
ret

Function at 0x1006cd3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, ecx
push edi
mov edi, dword [eax]
jmp 0x1006cd86
mov esi, dword [eax + 4]
test esi, esi
je 0x1006cd8c
mov cl, byte [edx]
mov byte [esi + eax + 8], cl
mov ecx, dword [eax + 4]
inc edx
inc ecx
and ecx, 3
dec dword [ebp + 0xc]
mov dword [eax + 4], ecx
test ecx, ecx
jne 0x1006cd86
and dword [ebp + 8], ecx
lea esi, [eax + 8]
movzx ebx, byte [esi]
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 8
shl ebx, cl
xor edi, ebx
inc esi
cmp dword [ebp + 8], 0x20
jl 0x1006cd71
cmp dword [ebp + 0xc], 0
jne 0x1006cd4c
mov esi, dword [ebp + 0xc]
shr esi, 2
jmp 0x1006cdb6
movzx ecx, byte [edx]
dec esi
inc edx
movzx ebx, byte [edx]
shl ebx, 8
or ecx, ebx
inc edx
movzx ebx, byte [edx]
shl ebx, 0x10
or ecx, ebx
inc edx
movzx ebx, byte [edx]
shl ebx, 0x18
or ecx, ebx
inc edx
xor edi, ecx
test esi, esi
jne 0x1006cd94
and dword [ebp + 0xc], 3
mov dword [eax], edi
je 0x1006cddb
mov ecx, dword [eax + 4]
mov bl, byte [edx]
mov byte [ecx + eax + 8], bl
mov ecx, dword [eax + 4]
inc edx
inc ecx
and ecx, 3
dec dword [ebp + 0xc]
mov dword [eax + 4], ecx
jne 0x1006cdc2
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10092d1a
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x10092d4e
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shr esi, 8
xor esi, edi
shl eax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x100ee3a8]
dec edx
inc ecx
movzx eax, ax
test edx, edx
ja 0x10092d28
pop edi
pop esi
ret 4

Function at 0x10095346
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x10095695
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100eb5ec], 0
push esi
mov esi, edx
jne 0x100956cd
push ebx
push ecx
lea eax, [ebp - 0xc]
push eax
call fcn.100954d1
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.10095346
push dword [ebp - 0xc]
mov bl, al
call fcn.100031e3
pop ecx
mov al, bl
pop ebx
jmp 0x100956da
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x100956dd
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100eb5ec], 0
jne 0x1009570e
push ebx
push ecx
lea eax, [ebp - 0xc]
push eax
call fcn.100954d1
mov ecx, dword [eax]
call fcn.10095354
push dword [ebp - 0xc]
mov bl, al
call fcn.100031e3
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret
Function at 0x10095782
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100eb5ec], 0
jne 0x100957b3
push ebx
push ecx
lea eax, [ebp - 0xc]
push eax
call fcn.100954d1
mov ecx, dword [eax]
call fcn.1009536f
push dword [ebp - 0xc]
mov bl, al
call fcn.100031e3
pop ecx
mov al, bl
pop ebx
leave
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x100957e1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x100eb5ec], 0
push esi
mov esi, ecx
jne 0x10095815
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.100954d1
mov ecx, dword [eax]
call fcn.1009537e
push dword [ebp - 0xc]
mov bl, al
call fcn.100031e3
pop ecx
mov al, bl
pop ebx
jmp 0x1009582c
xor edx, edx
call fcn.10095695
test al, al
je 0x1009582c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x10095b03
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
push 0x105
mov esi, edx
call fcn.10003284
push eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.1000329c
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x10095b34
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x100bc8eb
call fcn.10098b5e
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [0x100eb5ec], bl
je 0x10095b77
mov ecx, dword [ebp + 8]
push 0x104
call fcn.1000326c
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.10003795
jmp 0x10095c1c
lea ecx, [ebp - 0x1c]
call fcn.100024c1
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x10095b9f
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.100954d1
mov esi, dword [eax]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
jmp 0x10095ba1
xor esi, esi
push 2
pop ebx
test edi, edi
je 0x10095bbc
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.100954d1
or dword [ebp - 0x10], ebx
mov ecx, dword [eax]
mov dword [ebp - 4], ebx
jmp 0x10095bbe
xor ecx, ecx
lea eax, [ebp - 0x1c]
push eax
mov edx, esi
call fcn.10095b03
mov esi, eax
test byte [ebp - 0x10], bl
je 0x10095bdd
push dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffd
call fcn.100031e3
pop ecx
and dword [ebp - 4], 0
test byte [ebp - 0x10], 1
je 0x10095bf0
push dword [ebp - 0x34]
call fcn.100031e3
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100953a5
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.10003af3
push dword [ebp - 0x34]
call fcn.100031e3
push dword [ebp - 0x1c]
call fcn.100031e3
pop ecx
pop ecx
mov eax, esi
call fcn.10098c36
ret 4

Function at 0x10098b4f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ea814]
jne 0x10098b59
repz ret
jmp fcn.1009ea4c
Function at 0x100a97e4
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.1009e389
and dword [ebp - 4], 0
cmp dword [0x100eefa0], 0
mov ebx, eax
jne 0x100a9895
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100a9946
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100a9946
push eax
call fcn.1009e317
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100eefa0], eax
call esi
push eax
call fcn.1009e317
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100eefa4], eax
call esi
push eax
call fcn.1009e317
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100eefa8], eax
call esi
push eax
call fcn.1009e317
pop ecx
mov dword [0x100eefb0], eax
test eax, eax
je 0x100a9895
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1009e317
pop ecx
mov dword [0x100eefac], eax
mov eax, dword [0x100eefac]
cmp eax, ebx
je 0x100a98ed
cmp dword [0x100eefb0], ebx
je 0x100a98ed
push eax
call fcn.1009e392
push dword [0x100eefb0]
mov esi, eax
call fcn.1009e392
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100a98ed
test edi, edi
je 0x100a98ed
call esi
test eax, eax
je 0x100a98e4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100a98e4
test byte [ebp - 0xc], 1
jne 0x100a98ed
or dword [ebp + 0x10], 0x200000
jmp 0x100a9926
mov eax, dword [0x100eefa4]
cmp eax, ebx
je 0x100a9926
push eax
call fcn.1009e392
pop ecx
test eax, eax
je 0x100a9926
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100a9926
mov eax, dword [0x100eefa8]
cmp eax, ebx
je 0x100a9926
push eax
call fcn.1009e392
pop ecx
test eax, eax
je 0x100a9926
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100eefa0]
call fcn.1009e392
pop ecx
test eax, eax
je 0x100a9946
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100a9948
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret