joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4170d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
nop word [eax + eax]
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x204], dl
mov byte [ebp + eax - 0x104], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x4170f0
mov cl, 1
mov edx, 0x450d60
movzx eax, cl
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x450d88
jl 0x417121
mov byte [0x44eb60], 0x63
xor ebx, ebx
mov byte [0x44fcc3], 0
nop dword [eax]
movzx eax, byte [ebp + ebx - 0x103]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x44eb61], al
inc ebx
movzx eax, al
mov byte [eax + 0x44fc60], bl
lea eax, [ebx + 1]
cmp eax, 0x100
jl 0x417150
xor edi, edi
mov dword [ebp - 0x20c], 0xff
nop
mov dl, byte [edi + 0x44eb60]
mov bl, dl
movzx ecx, dl
sar bl, 7
mov al, dl
add al, al
and bl, 0x1b
xor bl, al
movzx eax, dl
movzx esi, bl
xor esi, eax
movzx eax, bl
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, eax
mov al, byte [edi + 0x44fc60]
mov dword [edi*4 + 0x44ec60], esi
rol esi, 8
mov dword [edi*4 + 0x44f060], esi
rol esi, 8
mov dword [edi*4 + 0x44f460], esi
rol esi, 8
mov dword [edi*4 + 0x44f860], esi
test al, al
je 0x41727d
movzx eax, al
xor edx, edx
mov ebx, 0xff
movzx ecx, byte [ebp + eax - 0x104]
mov eax, dword [ebp - 0xf6]
movzx eax, al
add eax, ecx
div ebx
mov eax, dword [ebp - 0xfb]
movzx eax, al
add eax, ecx
movzx esi, byte [ebp + edx - 0x204]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xf7]
movzx eax, al
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
xor edx, edx
div dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
xor edx, edx
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0xf9]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x417289
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x208], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, esi
mov dword [edi*4 + 0x44fd60], eax
rol eax, 8
mov dword [edi*4 + 0x450160], eax
rol eax, 8
mov dword [edi*4 + 0x450560], eax
rol eax, 8
mov dword [edi*4 + 0x450960], eax
inc edi
cmp edi, 0x100
jl 0x4171a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427ab1
mov esp, ebp
pop ebp
ret
Function at 0x423200
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x74], edi
je 0x423236
pop edi
mov eax, 0xffffff8c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ab1
mov esp, ebp
pop ebp
ret
push esi
push 0x6c
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00428f20
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x28], 0x6a09e667
mov dword [ebp - 0x24], 0xbb67ae85
mov dword [ebp - 0x20], 0x3c6ef372
mov dword [ebp - 0x1c], 0xa54ff53a
mov dword [ebp - 0x18], 0x510e527f
mov dword [ebp - 0x14], 0x9b05688c
mov dword [ebp - 0x10], 0x1f83d9ab
mov dword [ebp - 0xc], 0x5be0cd19
test eax, eax
je 0x4232dc
mov dword [ebp - 0x30], eax
cmp eax, 0x40
jb 0x4232ca
nop
mov edi, eax
xor esi, esi
lea eax, [esi + ebx]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00422790
add esp, 8
test eax, eax
jne 0x4232ff
sub edi, 0x40
add esi, 0x40
cmp edi, 0x40
jae 0x423294
cmp esi, 0x40
jb 0x4232ff
mov eax, dword [ebp + 0xc]
add ebx, esi
sub eax, esi
mov dword [ebp + 0xc], eax
cmp eax, 0x40
jae 0x423290
mov edi, dword [ebp - 0x74]
test eax, eax
je 0x4232dc
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004289a0
add esp, 0xc
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x70]
and ecx, 0x3f
mov byte [ebp + ecx - 0x70], pe_nt_image_headers32
inc ecx
add edx, ecx
cmp ecx, 0x38
ja 0x423307
mov eax, 0x38
sub eax, ecx
push eax
push 0
push edx
jmp 0x423335
or esi, 0xffffffff
jmp 0x4233be
mov eax, 0x40
sub eax, ecx
push eax
push 0
push edx
call fcn.00428f20
lea eax, [ebp - 0x70]
push eax
push eax
call fcn.00422790
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4233b0
push 0x38
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00428f20
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
lea edx, [eax*8]
mov eax, ecx
shr eax, 0x1d
or edx, eax
shl ecx, 3
lea eax, [ebp - 0x70]
push eax
bswap edx
bswap ecx
push eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
call fcn.00422790
mov esi, eax
add esp, 8
test esi, esi
jne 0x4233b0
mov eax, dword [ebp - 0x28]
bswap eax
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1c]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
bswap eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
bswap eax
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x10]
bswap eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
bswap eax
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x70]
push 0x6c
push eax
call fcn.00415300
add esp, 8
lea eax, [ebp - 0x70]
push 0x6c
push eax
call fcn.00415300
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00427ab1
mov esp, ebp
pop ebp
ret
Function at 0x424ea0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x424eb1
mov eax, 0xffffff8b
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0xc1059ed8
mov dword [eax + 0x14], 0xcbbb9d5d
mov dword [eax + 0x18], 0x367cd507
mov dword [eax + 0x1c], 0x629a292a
mov dword [eax + 0x20], 0x3070dd17
mov dword [eax + 0x24], 0x9159015a
mov dword [eax + 0x28], 0xf70e5939
mov dword [eax + 0x2c], 0x152fecd8
mov dword [eax + 0x30], 0xffc00b31
mov dword [eax + 0x34], 0x67332667
mov dword [eax + 0x38], 0x68581511
mov dword [eax + 0x3c], 0x8eb44a87
mov dword [eax + 0x40], 0x64f98fa7
mov dword [eax + 0x44], 0xdb0c2e0d
mov dword [eax + 0x48], 0xbefa4fa4
mov dword [eax + 0x4c], 0x47b5481d
mov dword [eax + 0xd0], ecx
xor eax, eax
pop ebp
ret
Function at 0x425d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edi
je 0x425d72
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x425d71
push ebx
mov ebx, dword [ebp + 0x14]
sub edi, eax
nop dword [eax]
mov edx, dword [0x44eb5c]
lea eax, [eax + 4]
mov ecx, dword [edi + eax - 4]
xor edx, ebx
not edx
and ecx, ebx
and edx, dword [eax - 4]
or ecx, edx
mov dword [eax - 4], ecx
sub esi, 1
jne 0x425d50
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x425d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, eax
je 0x425dde
cmp dword [ebp + 0x10], 0
jbe 0x425dde
push esi
push edi
mov edi, dword [ebp + 0x14]
sub ebx, eax
nop dword [eax + eax]
mov edx, dword [0x44eb5c]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, edi
mov esi, dword [ebx + eax - 4]
not edx
and edx, dword [ebx + eax - 4]
and ecx, edi
or ecx, edx
and esi, edi
mov dword [ebx + eax - 4], ecx
mov ecx, dword [0x44eb5c]
mov edx, dword [eax - 4]
xor ecx, edi
not ecx
and edx, ecx
or edx, esi
sub dword [ebp + 0x10], 1
mov dword [eax - 4], edx
jne 0x425da0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x425e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x44eb5c]
mov eax, dword [0x44eb5c]
mov eax, dword [0x44eb5c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test edi, edi
je 0x425f90
mov eax, dword [ebp + 0xc]
lea edx, [edi - 1]
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 8], ecx
lea edx, [eax + edx*4]
mov dword [ebp + 0x10], edx
push esi
nop dword [eax]
mov esi, dword [0x44eb5c]
xor esi, dword [edx]
mov edx, dword [0x44eb5c]
mov eax, dword [ebp + 0x10]
xor edx, dword [ecx + eax]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov esi, dword [0x44eb5c]
mov edx, dword [0x44eb5c]
mov ecx, eax
shr ecx, 1
neg eax
neg ecx
or ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 0x1f
neg ecx
or dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
xor esi, dword [eax + ecx]
xor edx, dword [ecx]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov edx, eax
neg eax
shr edx, 1
neg edx
or edx, eax
mov eax, dword [ebp - 4]
shr edx, 0x1f
mov ecx, eax
neg edx
not ecx
and ecx, edx
or eax, edx
mov edx, dword [ebp + 0x10]
or ebx, ecx
mov ecx, dword [ebp + 8]
sub edx, 4
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], edx
sub edi, 1
jne 0x425eb0
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42eeba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00441530
mov eax, dword [0x44e054]
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.004353e3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42eefc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f058
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428080
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 + 0x451410]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00437472
mov ecx, dword [esi*4 + 0x451410]
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 0x42f051
cmp eax, dword [edi + ecx + 0x24]
jne 0x42f051
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 0x42f051
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00437472
add esp, 0x14
test edx, edx
jl 0x42f051
jg 0x42efc7
test eax, eax
jb 0x42f051
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f051
jl 0x42efe1
cmp dword [ebp - 0x1008], eax
ja 0x42f051
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42efff
test ebx, ebx
je 0x42f038
cmp ecx, edi
jae 0x42f038
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f019
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f025
cmp byte [ecx + 1], 0xa
jne 0x42f025
inc ecx
jmp 0x42f025
movzx eax, al
movsx eax, byte [eax + 0x44e158]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42efff
cmp edx, ebx
jne 0x42efff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f056
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427ab1
leave
ret
Function at 0x431fc5
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 + 0x451410]
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 0x432005
cmp byte [ebx], 0xa
jne 0x432005
or byte [eax + edi + 0x28], 4
jmp 0x43200a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x432108
mov al, byte [edx]
cmp al, 0x1a
je 0x4320ea
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x432039
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43205e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x432068
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 0x43201b
jmp 0x432108
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 0x4320e5
cmp dword [ebp - 0xc], 0
je 0x4320e5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x451410]
test byte [eax + edi + 0x28], 0x48
je 0x4320bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4320aa
mov byte [esi], dl
jmp 0x4320bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451410]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x432108
cmp byte [ebp - 1], 0xa
jne 0x4320ce
cmp esi, ebx
jne 0x4320ce
mov byte [esi], 0xa
jmp 0x432107
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00437490
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x432108
mov byte [esi], 0xd
jmp 0x432107
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x451410]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432104
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x432108
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432111
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 + 0x451410]
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 0x432154
cmp word [esi], dx
jne 0x432154
or byte [edi + eax + 0x28], 4
jmp 0x432159
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 0x432292
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 0x432272
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43219b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4321d1
cmp eax, edx
jae 0x4321dd
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 0x432173
jmp 0x432292
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 0x43226e
cmp dword [ebp - 0x14], 0
je 0x43226e
mov eax, dword [ebx*4 + 0x451410]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x432246
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x43228c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x451410]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x451410]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x451410]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x43228f
pop ebx
cmp word [ebp - 4], bx
jne 0x432257
cmp esi, dword [ebp + 0xc]
jne 0x432257
mov word [esi], bx
jmp 0x43228f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00437490
add esp, 0x10
cmp word [ebp - 4], bx
je 0x432292
push 0xd
jmp 0x43228b
mov ecx, dword [ebx*4 + 0x451410]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432289
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x432292
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 0x433ce2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4474a4
push 0x44749c
push str.FlsAlloc
push 0x1e
call fcn.00433ba3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433d16
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
jmp 0x433d1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x433d60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4474b4
push 0x4474ac
push str.FlsGetValue
push 0x20
call fcn.00433ba3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433d97
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4391b8
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 0x439255
push ebx
push esi
call fcn.00439181
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.004390ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x439202
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x439254
push edi
push eax
call fcn.00434220
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x439222
call fcn.00433a36
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x439253
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004390ca
add esp, 0x20
test eax, eax
jne 0x439241
push edi
call fcn.00433a36
jmp 0x439249
push ebx
call fcn.00433a36
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 0x439258
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x439269
pop esi
ret
push ebx
push edi
push esi
call fcn.00439181
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00434220
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x439291
push ebx
push esi
push edi
call fcn.004289a0
add esp, 0xc
push 0
call fcn.00433a36
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4399dd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439504
Function at 0x43f377
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.0043f2f3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43f4ef
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43f4ef
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43f49e
jg 0x43f3d0
test eax, eax
je 0x43f494
push 1
push 0x1000
call fcn.00433770
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43f3f6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43f48b
push 0x8000
push ebx
call fcn.004317b3
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 0x43f422
jg 0x43f41d
cmp ecx, 0x1000
jb 0x43f422
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00433211
add esp, 0x10
cmp eax, 0xffffffff
je 0x43f467
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 0x43f41d
jl 0x43f44e
test ecx, ecx
jne 0x43f40f
push dword [ebp - 0xc]
push ebx
call fcn.004317b3
push esi
call fcn.00433a36
add esp, 0xc
xor edi, edi
jmp 0x43f500
cmp byte [edi + 0x24], 0
je 0x43f47e
cmp dword [edi + 0x20], 5
jne 0x43f47e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43f489
mov edi, dword [edi + 0x18]
jmp 0x43f48b
xor edi, edi
push esi
call fcn.00433a36
pop ecx
jmp 0x43f500
test ecx, ecx
jg 0x43f460
jl 0x43f49e
test eax, eax
jae 0x43f460
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00437490
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43f4c1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43f460
jmp 0x43f4f8
push ebx
call fcn.004370d2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43f460
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 0x43f500
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43f4fd
mov edi, dword [edi + 0x18]
jmp 0x43f500
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00437490
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10054de9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10054df8
pop dword [ebp - 0x28]
mov eax, 0x10054df8
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x95f39e0d
sub dword [ebp - 0x38], 0x47a158c2
mov dword [ebp - 0x34], 0x5fd02d2c
add dword [ebp - 0x34], 0xd2631f19
mov dword [ebp - 0x30], 0xeaa7ba01
sub dword [ebp - 0x30], 0x9e5b75d3
mov dword [ebp - 0x2c], 0x5218186c
sub dword [ebp - 0x2c], 0x5218186c
lea eax, [ebp - 0x38]
push eax
mov eax, 0xacf25941
add eax, 0x6313a6cf
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xe480d0c3
add dword [ebp - 0x38], 0x8ff19893
mov dword [ebp - 0x34], 0xa9e15728
add dword [ebp - 0x34], 0x978b0a4d
mov dword [ebp - 0x30], 0x68f3a5f2
add dword [ebp - 0x30], 0xfa7bc67a
mov dword [ebp - 0x2c], 0xb03ec2cf
add dword [ebp - 0x2c], 0x4fc13d31
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x19ad7347
sub eax, 0x9a77333
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x5553f
push 0
call eax
mov ecx, 0x592db124
add ecx, 0xa6d294b1
mov ebx, eax
mov edx, 0x1008bc00
add edx, dword [ebp - 0x28]
mov edi, 0x5be84c91
sub edi, 0x4cf4544c
mov dword [ebp - 0x1c], 0x29f28ebb
mov esi, dword [edx]
xor dword [ebp - 0x18], eax
xor esi, edi
sub dword [ebp - 8], 0x9e463d22
mov dword [ebx], esi
sub dword [ebp - 0x24], edx
add ebx, 0xaa224aa7
add ebx, 0x55ddb55d
add edx, 0x1b419b02
add edx, 0xe4be6502
loop 0x10054f0f
add eax, 0xa5a1c2d6
add eax, 0x5a5f4751
xor ebx, ebx
add ebx, eax
add eax, 0x17856cea
add eax, 0xe87a931b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx