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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 0x2c]
mov ebx, 0x30
push esi
mov edx, dword [eax + 0x34]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
ror edx, 0x12
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x47d274
mov ebx, dword [ebp - 0x28]
mov edx, 0x509bc8
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 8]
mov edi, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x28]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov esi, ebx
mov eax, ebx
ror eax, 0xb
mov ecx, ebx
ror esi, 0x19
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x14]
add esi, ecx
add dword [ebp - 0x14], 4
add esi, dword [eax]
mov eax, edi
add esi, dword [edx]
mov edx, edi
add esi, dword [ebp - 0x20]
ror eax, 0xd
ror edx, 0x16
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x18]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x24]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], edx
cmp edx, str.Failed_to_convert_exception_message:_out_of_memory
jl 0x47d2f5
mov eax, dword [ebp - 0x2c]
add eax, edi
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x28]
pop esi
pop edi
add dword [ebx + 0xc], ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x20]
add dword [ebx + 0x24], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d3d0
Capabilities:
Hash data using sha256

Disassembly:
mov edx, ecx
xor eax, eax
push edi
mov ecx, 0x40
lea edi, [edx + 0x28]
rep stosd dword es:[edi], eax
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx + 8], 0x6a09e667
mov dword [edx + 0xc], 0xbb67ae85
mov dword [edx + 0x10], 0x3c6ef372
mov dword [edx + 0x14], 0xa54ff53a
mov dword [edx + 0x18], 0x510e527f
mov dword [edx + 0x1c], 0x9b05688c
mov dword [edx + 0x20], 0x1f83d9ab
mov dword [edx + 0x24], 0x5be0cd19
pop edi
ret

Function at 0x47e0d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [ebx]
cmp eax, 5
ja 0x47e11d
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret 0x10
add eax, 0xfffffffb
mov dword [esp + 0x10], ecx
push 0x200
mov dword [ebx], eax
add ecx, 5
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 5
push 0
push eax
mov dword [esp + 0x24], ecx
call fcn.00486ef0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x100
push eax
push 0x509df4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0x4fa188
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47e18d
test dx, dx
je 0x47e189
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47e18d
add eax, 4
add ecx, 4
test dx, dx
jne 0x47e167
xor eax, eax
jmp 0x47e192
sbb eax, eax
or eax, 1
mov edi, eax
neg edi
sbb edi, edi
and edi, 9
test eax, eax
jne 0x47e1ed
push str.DisableOptimization:_lzma_set_to_level
push 0x51da98
call fcn.00436fc0
add esp, 8
push 0x502ecc
push ecx
push edi
mov ecx, eax
call fcn.00443130
add esp, 4
push eax
call fcn.00436fc0
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00437320
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0047e280
mov ecx, esi
call fcn.00438bc0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x400000
push edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
push dword [ebp + 0xc]
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x48]
call fcn.004b63f0
add dword [ebx], 5
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x480940
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480950

Function at 0x480bd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480be0

Function at 0x480f00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4cec80]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4cec80]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4cec80]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4cec80]
mov eax, edx
pop ebp
ret
Function at 0x485255
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x485294
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x485294
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x485294
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x485294
cmp dword [ecx + 0x74], 0xe
jbe 0x485294
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4a3ec0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004850d0
mov eax, dword [0x519100]
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.004a961d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a3f02
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a405e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c3330
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 + 0x51e430]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004a5bfc
mov ecx, dword [esi*4 + 0x51e430]
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 0x4a4057
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a4057
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 0x4a4057
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a5bfc
add esp, 0x14
test edx, edx
jl 0x4a4057
jg 0x4a3fcd
test eax, eax
jb 0x4a4057
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a4057
jl 0x4a3fe7
cmp dword [ebp - 0x1008], eax
ja 0x4a4057
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a4005
test ebx, ebx
je 0x4a403e
cmp ecx, edi
jae 0x4a403e
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a401f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a402b
cmp byte [ecx + 1], 0xa
jne 0x4a402b
inc ecx
jmp 0x4a402b
movzx eax, al
movsx eax, byte [eax + 0x5192c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a4005
cmp edx, ebx
jne 0x4a4005
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a405c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048471b
leave
ret
Function at 0x4a5c78
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 + 0x51e430]
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 0x4a5cb8
cmp byte [ebx], 0xa
jne 0x4a5cb8
or byte [eax + edi + 0x28], 4
jmp 0x4a5cbd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a5dbb
mov al, byte [edx]
cmp al, 0x1a
je 0x4a5d9d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a5cec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a5d11
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a5d1b
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 0x4a5cce
jmp 0x4a5dbb
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 0x4a5d98
cmp dword [ebp - 0xc], 0
je 0x4a5d98
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51e430]
test byte [eax + edi + 0x28], 0x48
je 0x4a5d72
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a5d5d
mov byte [esi], dl
jmp 0x4a5d6e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51e430]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a5dbb
cmp byte [ebp - 1], 0xa
jne 0x4a5d81
cmp esi, ebx
jne 0x4a5d81
mov byte [esi], 0xa
jmp 0x4a5dba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a5c1a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a5dbb
mov byte [esi], 0xd
jmp 0x4a5dba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51e430]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5db7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5dbb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a5dc4
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 + 0x51e430]
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 0x4a5e07
cmp word [esi], dx
jne 0x4a5e07
or byte [edi + eax + 0x28], 4
jmp 0x4a5e0c
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 0x4a5f5f
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 0x4a5f3f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a5e4e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a5e84
cmp eax, edx
jae 0x4a5e90
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 0x4a5e26
jmp 0x4a5f5f
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 0x4a5f3b
cmp dword [ebp - 0x14], 0
je 0x4a5f3b
mov eax, dword [ebx*4 + 0x51e430]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a5f13
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a5edc
mov word [esi], cx
jmp 0x4a5f0f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51e430]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51e430]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51e430]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a5f5f
pop ebx
cmp word [ebp - 4], bx
jne 0x4a5f24
cmp esi, dword [ebp + 0xc]
jne 0x4a5f24
mov word [esi], bx
jmp 0x4a5f5c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a5c1a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a5f5f
push 0xd
jmp 0x4a5f58
mov ecx, dword [ebx*4 + 0x51e430]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5f56
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5f5f
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 0x4a9cc4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f1f78
push 0x4f1f70
push str.FlsAlloc
push 0x1e
call fcn.004a9af1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a9cf8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cc2f8]
call esi
jmp 0x4a9cfe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a9d42
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f1f88
push 0x4f1f80
push str.FlsGetValue
push 0x20
call fcn.004a9af1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a9d79
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cc2f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4abf72
Capabilities:
Read file on windows

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

Function at 0x4b28b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b28ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b2a53
test al, al
jne 0x4b28f9
sub edx, 2
cmp edx, edi
jne 0x4b28df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b2921
lea eax, [edi + 2]
cmp edx, eax
je 0x4b2921
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b2800
add esp, 0x10
jmp 0x4b2a1b
push esi
lea ecx, [ebp - 0x255]
call fcn.004b2a53
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b2964
push dword [ebp - 0x25c]
jmp 0x4b2911
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b29a1
cmp word [ebp - 0x226], 0
je 0x4b29c2
cmp word [ebp - 0x226], ax
jne 0x4b29a1
cmp word [ebp - 0x224], 0
je 0x4b29c2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b2800
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b2a0e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b297b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b29f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b2a1b
push 0x4b2630
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a3560
add esp, 0x10
jmp 0x4b29eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048471b
leave
ret
Function at 0x4b2c17
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b2c28
pop esi
ret
push ebx
push edi
push esi
call fcn.004b2be0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004aa819
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b2c50
push ebx
push esi
push edi
call fcn.00486970
add esp, 0xc
push 0
call fcn.004a8fca
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b3014
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b2c65
Function at 0x4b30ba
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.004b3036
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b3232
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b3232
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b31e1
jg 0x4b3113
test eax, eax
je 0x4b31d7
push 1
push 0x1000
call fcn.004a917d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b3139
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4b31ce
push 0x8000
push ebx
call fcn.004a49cd
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 0x4b3165
jg 0x4b3160
cmp ecx, 0x1000
jb 0x4b3165
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a6ede
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b31aa
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 0x4b3160
jl 0x4b3191
test ecx, ecx
jne 0x4b3152
push dword [ebp - 0xc]
push ebx
call fcn.004a49cd
push esi
call fcn.004a8fca
add esp, 0xc
xor edi, edi
jmp 0x4b3243
cmp byte [edi + 0x24], 0
je 0x4b31c1
cmp dword [edi + 0x20], 5
jne 0x4b31c1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b31cc
mov edi, dword [edi + 0x18]
jmp 0x4b31ce
xor edi, edi
push esi
call fcn.004a8fca
pop ecx
jmp 0x4b3243
test ecx, ecx
jg 0x4b31a3
jl 0x4b31e1
test eax, eax
jae 0x4b31a3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a5c1a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b3204
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b31a3
jmp 0x4b323b
push ebx
call fcn.004aa515
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b31a3
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 0x4b3243
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b3240
mov edi, dword [edi + 0x18]
jmp 0x4b3243
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004a5c1a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b8720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx esi, word [edx]
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [ebp - 8], ebx
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [ebp - 4], eax
movzx eax, word [edx + 0x10]
mov esi, dword [ebp - 4]
shr eax, 4
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b87ac
mov esi, edx
mov dword [ebp - 0xc], eax
add ebx, 4
push edi
push ebx
push ecx
push esi
call fcn.004bc490
push edi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
call fcn.004bc490
mov ecx, dword [ebp - 0x18]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
sub dword [ebp - 0xc], 1
jne 0x4b8774
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
cmp ebx, 0x10
jbe 0x4b8889
mov eax, dword [ebp - 8]
add ebx, 0xfffffff1
add eax, 0x44
shr ebx, 1
mov dword [ebp - 0x14], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr eax, 4
add esi, dword [edi + eax*4]
lea eax, [ebx + 0x180]
mov dword [ebp - 4], esi
lea eax, [edx + eax*2]
dec ebx
sub eax, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4b87f3
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movzx ecx, word [eax]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [edx + ebx*8 + 4], eax
mov eax, dword [ebp - 0xc]
test ebx, ebx
jne 0x4b87e0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x4b8889
lea esi, [ecx + 0x484]
lea edi, [eax - 1]
nop dword [eax]
push ebx
push edx
push esi
call fcn.00486970
mov edx, dword [ebp - 0x14]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x4b8870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4baae0
Capabilities:
Encode data using xor

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

Function at 0x4bab20
Capabilities:
Encode data using xor

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