joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497310
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef1dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
push 0x10000
mov dword [ebp - 0x1c], edx
call fcn.004a63bb
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push 0x8000
push edi
mov dword [ebp - 4], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4973d2
cmp eax, 0x8000
ja 0x4973d2
xorps xmm0, xmm0
mov ecx, esi
push eax
movups xmmword [esi], xmm0
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040ab20
push edi
call fcn.004a6085
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
push ecx
push 0x2d
push str.Unable_to_retrieve_environment_variable__
push eax
lea ecx, [ebp - 0x34]
call fcn.0043bf30
push 0x542628
lea eax, [ebp - 0x34]
push eax
call fcn.004a869b
int3
Function at 0x498d50
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 0x498d64
mov ebx, dword [ebp - 0x28]
mov edx, 0x531e30
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, 0x531f30
jl 0x498de5
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 0x498ec0
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 0x499840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x545100]
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 0x49988d
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a5e3b
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.004a8c90
add esp, 0xc
lea eax, [esp + 0x20]
push 0x100
push eax
push 0x531fcc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0x51fe98
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4998fd
test dx, dx
je 0x4998f9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4998fd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4998d7
xor eax, eax
jmp 0x499902
sbb eax, eax
or eax, 1
mov edi, eax
neg edi
sbb edi, edi
and edi, 9
test eax, eax
jne 0x49995d
push str.DisableOptimization:_lzma_set_to_level
push 0x549ce0
call fcn.0044e050
add esp, 8
push 0x52af60
push ecx
push edi
mov ecx, eax
call fcn.00459d60
add esp, 4
push eax
call fcn.0044e050
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0044e3b0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.004999f0
mov ecx, esi
call fcn.0044fb50
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.004d8170
add dword [ebx], 5
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49a560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef5ac
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x545100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x49a5d4
mov dword [ebx], 0x4f2fa0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 8], esi
call fcn.0049a370
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a5e73
mov esi, eax
add esp, 4
test esi, esi
je 0x49a62e
push 1
mov byte [ebp - 4], 2
call fcn.004a4594
add esp, 4
mov dword [esi + 4], eax
jmp 0x49a630
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49d760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efd20
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x545100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x10], esi
call fcn.0049d8d0
mov dword [esi], vtable.Json::BuiltStyledStreamWriter.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp + 8]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xf
mov byte [esi + 0x14], 0
mov dword [esi + 0x2c], 0x4a
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [esi + 0x40], xmm0
movups xmm0, xmmword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
movups xmmword [esi + 0x4c], xmm0
movq xmm0, qword [ebp + 0x34]
movq qword [esi + 0x5c], xmm0
movups xmm0, xmmword [ebp + 0x3c]
mov dword [esi + 0x64], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
movups xmmword [esi + 0x64], xmm0
movq xmm0, qword [ebp + 0x4c]
movq qword [esi + 0x74], xmm0
movups xmm0, xmmword [ebp + 0x54]
mov dword [esi + 0x7c], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
movups xmmword [esi + 0x7c], xmm0
movq xmm0, qword [ebp + 0x64]
movq qword [esi + 0x8c], xmm0
mov dl, byte [esi + 0x94]
mov al, byte [ebp + 0x6c]
and dl, 0xf8
mov cl, byte [ebp + 0x70]
shl al, 2
or dl, al
shl cl, 3
and dl, 0xf7
mov eax, esi
or dl, cl
mov ecx, dword [ebp + 0x74]
mov dword [esi + 0x98], ecx
mov ecx, dword [ebp + 0x78]
mov byte [esi + 0x94], dl
mov dword [esi + 0x9c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x74

Function at 0x4a1fa0
Capabilities:
Compute adler32 checksum

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

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

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

Function at 0x4a2560
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 + 0x4f4748]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4f4748]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4f4748]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4f4748]
mov eax, edx
pop ebp
ret
Function at 0x4c5cad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a6ad0
mov eax, dword [0x545100]
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.004cbcda
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c5cef
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c5e4b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e50b0
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 + 0x54a758]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004c79ec
mov ecx, dword [esi*4 + 0x54a758]
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 0x4c5e44
cmp eax, dword [edi + ecx + 0x24]
jne 0x4c5e44
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 0x4c5e44
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c79ec
add esp, 0x14
test edx, edx
jl 0x4c5e44
jg 0x4c5dba
test eax, eax
jb 0x4c5e44
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c5e44
jl 0x4c5dd4
cmp dword [ebp - 0x1008], eax
ja 0x4c5e44
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c5df2
test ebx, ebx
je 0x4c5e2b
cmp ecx, edi
jae 0x4c5e2b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c5e0c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c5e18
cmp byte [ecx + 1], 0xa
jne 0x4c5e18
inc ecx
jmp 0x4c5e18
movzx eax, al
movsx eax, byte [eax + 0x5452c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c5df2
cmp edx, ebx
jne 0x4c5df2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c5e49
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a5e3b
leave
ret
Function at 0x4c7a68
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 + 0x54a758]
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 0x4c7aa8
cmp byte [ebx], 0xa
jne 0x4c7aa8
or byte [eax + edi + 0x28], 4
jmp 0x4c7aad
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c7bab
mov al, byte [edx]
cmp al, 0x1a
je 0x4c7b8d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c7adc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c7b01
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c7b0b
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 0x4c7abe
jmp 0x4c7bab
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 0x4c7b88
cmp dword [ebp - 0xc], 0
je 0x4c7b88
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x54a758]
test byte [eax + edi + 0x28], 0x48
je 0x4c7b62
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c7b4d
mov byte [esi], dl
jmp 0x4c7b5e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x54a758]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c7bab
cmp byte [ebp - 1], 0xa
jne 0x4c7b71
cmp esi, ebx
jne 0x4c7b71
mov byte [esi], 0xa
jmp 0x4c7baa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c7a0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c7bab
mov byte [esi], 0xd
jmp 0x4c7baa
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x54a758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c7ba7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c7bab
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c7bb4
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 + 0x54a758]
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 0x4c7bf7
cmp word [esi], dx
jne 0x4c7bf7
or byte [edi + eax + 0x28], 4
jmp 0x4c7bfc
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 0x4c7d4f
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 0x4c7d2f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4c7c3e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c7c74
cmp eax, edx
jae 0x4c7c80
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 0x4c7c16
jmp 0x4c7d4f
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 0x4c7d2b
cmp dword [ebp - 0x14], 0
je 0x4c7d2b
mov eax, dword [ebx*4 + 0x54a758]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4c7d03
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4c7ccc
mov word [esi], cx
jmp 0x4c7cff
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x54a758]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x54a758]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x54a758]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4c7d4f
pop ebx
cmp word [ebp - 4], bx
jne 0x4c7d14
cmp esi, dword [ebp + 0xc]
jne 0x4c7d14
mov word [esi], bx
jmp 0x4c7d4c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c7a0a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4c7d4f
push 0xd
jmp 0x4c7d48
mov ecx, dword [ebx*4 + 0x54a758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c7d46
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c7d4f
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 0x4cb544
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x517a18
push 0x517a10
push str.FlsAlloc
push 0x1e
call fcn.004cb371
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cb578
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f1320]
call esi
jmp 0x4cb57e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4cb5c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x517a28
push 0x517a20
push str.FlsGetValue
push 0x20
call fcn.004cb371
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cb5f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f1320]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ce97a
Capabilities:
Read file on windows

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

Function at 0x4d4624
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x545100]
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 0x4d466f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d47c3
test al, al
jne 0x4d4669
sub edx, 2
cmp edx, edi
jne 0x4d464f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d4691
lea eax, [edi + 2]
cmp edx, eax
je 0x4d4691
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d4570
add esp, 0x10
jmp 0x4d478b
push esi
lea ecx, [ebp - 0x255]
call fcn.004d47c3
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 0x4d46d4
push dword [ebp - 0x25c]
jmp 0x4d4681
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 0x4d4711
cmp word [ebp - 0x226], 0
je 0x4d4732
cmp word [ebp - 0x226], ax
jne 0x4d4711
cmp word [ebp - 0x224], 0
je 0x4d4732
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d4570
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d477e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d46eb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d4766
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d478b
push 0x4d43a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c53d0
add esp, 0x10
jmp 0x4d475b
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.004a5e3b
leave
ret
Function at 0x4d4987
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d4998
pop esi
ret
push ebx
push edi
push esi
call fcn.004d4950
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004cad3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d49c0
push ebx
push esi
push edi
call fcn.004a8710
add esp, 0xc
push 0
call fcn.004cad88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d4d84
Capabilities:
Set environment variable

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