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

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
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
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 0x490c74
mov ebx, dword [ebp - 0x28]
mov edx, 0x50b800
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
rol eax, 7
mov ecx, ebx
ror esi, 0xb
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]
rol eax, 0xa
ror edx, 0xd
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, 0x50b900
jl 0x490cf5
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 0x490dd0
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 0x492110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 0xc], 0
jne 0x49212a
mov dword [edi + 0x18], 6
xor al, al
pop edi
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edx, 0x400000
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [edi + 0xd], 0
nop dword [eax]
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ecx
push dword [edi + 0x14]
call fcn.004c336e
add esp, 0xc
test eax, eax
jle 0x49216f
mov ecx, dword [ebp + 8]
add ebx, eax
add ecx, eax
mov edx, 0x400000
mov dword [ebp + 8], ecx
sub esi, eax
jne 0x492140
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x492178
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
pop esi
pop ebx
je 0x492195
call fcn.004bb45c
mov ecx, dword [eax]
call fcn.00492320
mov dword [edi + 0x18], eax
xor al, al
pop edi
pop ebp
ret 0xc
push 1
push 0
push dword [edi + 0x14]
call fcn.004c2db5
add esp, 0xc
mov dword [edi + 4], eax
mov al, 1
pop edi
pop ebp
ret 0xc
Function at 0x492920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x521104]
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 0x49296d
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a389b
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.004a6890
add esp, 0xc
lea eax, [esp + 0x20]
push 0x100
push eax
push str.DisableOptimization
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, str.true
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4929dd
test dx, dx
je 0x4929d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4929dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4929b7
xor eax, eax
jmp 0x4929e2
sbb eax, eax
or eax, 1
mov edi, eax
neg edi
sbb edi, edi
and edi, 9
test eax, eax
jne 0x492a3d
push str.DisableOptimization:_lzma_set_to_level
push 0x525e90
call fcn.0043dde0
add esp, 8
push 0x5069f8
push ecx
push edi
mov ecx, eax
call fcn.0044a230
add esp, 4
push eax
call fcn.0043dde0
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0043e5c0
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00492ad0
mov ecx, esi
call fcn.0043fd70
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.004d35d0
add dword [ebx], 5
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a389b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49c940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
movzx eax, ax
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
shr esi, 8
xor eax, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], eax
jbe 0x49c9ac
mov ecx, dword [ebp + 0xc]
movzx ebx, word [ecx + edi*2]
mov edx, ebx
movzx ecx, bl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x49c9ac
movzx ecx, bl
cmp esi, ecx
jne 0x49c9a4
cmp eax, edx
jge 0x49c9a4
mov ecx, dword [ebp + 8]
movzx esi, cl
nop dword [eax]
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [eax + ecx]
cmp cx, si
je 0x49c9d8
inc eax
cmp eax, edx
jl 0x49c990
mov esi, dword [ebp - 8]
inc edi
mov eax, edx
cmp edi, dword [ebp + 0x10]
jb 0x49c963
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x49c9f0
mov esi, dword [ebp + 0x18]
nop word [eax + eax]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x49c9e1
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x49c9e3
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ecx
sub dword [ebp - 4], edx
js 0x49c9f0
inc eax
xor bl, 1
cmp eax, edi
jb 0x49c9c0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ecb0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049ecc0

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x49ef4c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0049ef60

Function at 0x4a278b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004a2767
pop esi
leave
ret 8

Function at 0x4a3340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4a3361
jl 0x4a3358
test edi, edi
jne 0x4a3361
xor eax, eax
xor edx, edx
jmp 0x4a3422
cmp dword [ebx + 0x38], 0
je 0x4a3376
push eax
push edi
push dword [ebp + 8]
call fcn.0043f640
jmp 0x4a3422
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4a33bd
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a33bd
cmp eax, edi
jb 0x4a3397
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004a6310
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4a33c3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4a3417
mov ecx, ebx
call fcn.004a2c40
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4a3402
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004bff0b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4a3417
jmp 0x4a33d5
test edx, edx
je 0x4a3417
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004bff0b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4a4696
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a4490
mov eax, dword [0x521104]
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.004c0cea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c070b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c0867
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e0970
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 + 0x526858]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004c2e2c
mov ecx, dword [esi*4 + 0x526858]
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 0x4c0860
cmp eax, dword [edi + ecx + 0x24]
jne 0x4c0860
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 0x4c0860
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c2e2c
add esp, 0x14
test edx, edx
jl 0x4c0860
jg 0x4c07d6
test eax, eax
jb 0x4c0860
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c0860
jl 0x4c07f0
cmp dword [ebp - 0x1008], eax
ja 0x4c0860
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c080e
test ebx, ebx
je 0x4c0847
cmp ecx, edi
jae 0x4c0847
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c0828
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c0834
cmp byte [ecx + 1], 0xa
jne 0x4c0834
inc ecx
jmp 0x4c0834
movzx eax, al
movsx eax, byte [eax + 0x521298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c080e
cmp edx, ebx
jne 0x4c080e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c0865
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a389b
leave
ret
Function at 0x4c2ea8
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 + 0x526858]
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 0x4c2ee8
cmp byte [ebx], 0xa
jne 0x4c2ee8
or byte [eax + edi + 0x28], 4
jmp 0x4c2eed
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c2feb
mov al, byte [edx]
cmp al, 0x1a
je 0x4c2fcd
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c2f1c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c2f41
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c2f4b
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 0x4c2efe
jmp 0x4c2feb
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 0x4c2fc8
cmp dword [ebp - 0xc], 0
je 0x4c2fc8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x526858]
test byte [eax + edi + 0x28], 0x48
je 0x4c2fa2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c2f8d
mov byte [esi], dl
jmp 0x4c2f9e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x526858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c2feb
cmp byte [ebp - 1], 0xa
jne 0x4c2fb1
cmp esi, ebx
jne 0x4c2fb1
mov byte [esi], 0xa
jmp 0x4c2fea
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c2e4a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c2feb
mov byte [esi], 0xd
jmp 0x4c2fea
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x526858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c2fe7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c2feb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c2ff4
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 + 0x526858]
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 0x4c3037
cmp word [esi], dx
jne 0x4c3037
or byte [edi + eax + 0x28], 4
jmp 0x4c303c
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 0x4c318f
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 0x4c316f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4c307e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c30b4
cmp eax, edx
jae 0x4c30c0
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 0x4c3056
jmp 0x4c318f
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 0x4c316b
cmp dword [ebp - 0x14], 0
je 0x4c316b
mov eax, dword [ebx*4 + 0x526858]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4c3143
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4c310c
mov word [esi], cx
jmp 0x4c313f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x526858]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x526858]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x526858]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4c318f
pop ebx
cmp word [ebp - 4], bx
jne 0x4c3154
cmp esi, dword [ebp + 0xc]
jne 0x4c3154
mov word [esi], bx
jmp 0x4c318c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c2e4a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4c318f
push 0xd
jmp 0x4c3188
mov ecx, dword [ebx*4 + 0x526858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c3186
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c318f
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 0x4c8524
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f7d70
push 0x4f7d68
push str.FlsAlloc
push 0x1e
call fcn.004c8351
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c8558
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ed33c]
call esi
jmp 0x4c855e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c85a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f7d80
push 0x4f7d78
push str.FlsGetValue
push 0x20
call fcn.004c8351
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c85d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ed33c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4cd9d2
Capabilities:
Read file on windows

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

Function at 0x4cfaa4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x521104]
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 0x4cfaef
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004cfc43
test al, al
jne 0x4cfae9
sub edx, 2
cmp edx, edi
jne 0x4cfacf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4cfb11
lea eax, [edi + 2]
cmp edx, eax
je 0x4cfb11
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004cf9f0
add esp, 0x10
jmp 0x4cfc0b
push esi
lea ecx, [ebp - 0x255]
call fcn.004cfc43
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 0x4cfb54
push dword [ebp - 0x25c]
jmp 0x4cfb01
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 0x4cfb91
cmp word [ebp - 0x226], 0
je 0x4cfbb2
cmp word [ebp - 0x226], ax
jne 0x4cfb91
cmp word [ebp - 0x224], 0
je 0x4cfbb2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004cf9f0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4cfbfe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4cfb6b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4cfbe6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4cfc0b
push 0x4cf820
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004bdfb0
add esp, 0x10
jmp 0x4cfbdb
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.004a389b
leave
ret
Function at 0x4cfe07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4cfe18
pop esi
ret
push ebx
push edi
push esi
call fcn.004cfdd0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c691a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4cfe40
push ebx
push esi
push edi
call fcn.004a6310
add esp, 0xc
push 0
call fcn.004c6968
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d0204
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cfe55
Function at 0x4d02aa
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.004d0226
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d0422
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d0422
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d03d1
jg 0x4d0303
test eax, eax
je 0x4d03c7
push 1
push 0x1000
call fcn.004c8053
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d0329
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4d03be
push 0x8000
push ebx
call fcn.004c19db
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 0x4d0355
jg 0x4d0350
cmp ecx, 0x1000
jb 0x4d0355
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c410e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d039a
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 0x4d0350
jl 0x4d0381
test ecx, ecx
jne 0x4d0342
push dword [ebp - 0xc]
push ebx
call fcn.004c19db
push esi
call fcn.004c6968
add esp, 0xc
xor edi, edi
jmp 0x4d0433
cmp byte [edi + 0x24], 0
je 0x4d03b1
cmp dword [edi + 0x20], 5
jne 0x4d03b1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d03bc
mov edi, dword [edi + 0x18]
jmp 0x4d03be
xor edi, edi
push esi
call fcn.004c6968
pop ecx
jmp 0x4d0433
test ecx, ecx
jg 0x4d0393
jl 0x4d03d1
test eax, eax
jae 0x4d0393
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c2e4a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d03f4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d0393
jmp 0x4d042b
push ebx
call fcn.004c1269
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d0393
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 0x4d0433
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d0430
mov edi, dword [edi + 0x18]
jmp 0x4d0433
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c2e4a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret