joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f138
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x45f1c4
cmp dword [esi + 0x20], 0
je 0x45f1c4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45f1c4
cmp dword [ebp + 8], 0
je 0x45f1c4
xor edi, edi
mov ebx, edi
call fcn.0046718b
push 0x4be948
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x45f1a8
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f1c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004735eb
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45f1c0
mov ecx, esi
call fcn.0045ef12
mov eax, edi
jmp 0x45f1c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46599e
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4659f1
push esi
push dword [ebp + 8]
call fcn.00465b87
mov edi, eax
test edi, edi
je 0x4659ec
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4659ec
mov eax, dword [ebp - 8]
jmp 0x465a03
mov eax, dword [ebp + 0x10]
jmp 0x465a03
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x465a09
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bac86
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00488010
mov eax, dword [0x4f8560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x465b3a
push ebx
push edx
call fcn.00465b87
mov ebx, eax
test ebx, ebx
jne 0x465a71
push esi
jmp 0x465b62
lea ecx, [ebp - 0x2014]
call fcn.0040364a
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x465af9
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.004024ec
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0045b217
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x465b27
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00401fa2
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040259b
jmp 0x465b69
push esi
mov ecx, edi
call fcn.00402306
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x465b20
test esi, esi
jne 0x465b43
mov esi, 0x4c9ff4
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00402306
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487643
leave
ret 0x10

Function at 0x468eda
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00468f33
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x468f22
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045b1f4
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045b217
jmp 0x468f2d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00471d70
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x470ce2
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x470d59
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x470d1f
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x470d1f
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x470d4c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x470d4f
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x470d45
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4bd7d4]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x470d02
test eax, eax
je 0x470da0
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.00470fd1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4bd7d4]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4785fb
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4f8560]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00488da0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00499a0f
push eax
call fcn.004025bd
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x4c02d8]
je 0x478759
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x47876d
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x47876d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4786b7
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4786ab
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00478402
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4786b2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4786b9
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004788ac
test eax, eax
je 0x4786e0
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00478289
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4786e4
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004788ac
test eax, eax
je 0x47870b
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00478289
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x47870f
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004788ac
test eax, eax
je 0x478737
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00478289
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x478739
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x47874b
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x478759
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487643
leave
ret 4
xor eax, eax
jmp 0x47875c
Function at 0x481951
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x481996
call fcn.0046718b
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x481993
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4819dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x4819b9
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4bd7d4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4819da
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x4bd7d4]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x4884af
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00488010
mov eax, dword [0x4f8560]
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.0049a5de
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49b00e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b16a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00488070
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 + 0x4fe1e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004a5124
mov ecx, dword [esi*4 + 0x4fe1e0]
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 0x49b163
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b163
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 0x49b163
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a5124
add esp, 0x14
test edx, edx
jl 0x49b163
jg 0x49b0d9
test eax, eax
jb 0x49b163
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b163
jl 0x49b0f3
cmp dword [ebp - 0x1008], eax
ja 0x49b163
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49b111
test ebx, ebx
je 0x49b14a
cmp ecx, edi
jae 0x49b14a
mov al, byte [ecx]
cmp al, 0xd
jne 0x49b12b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b137
cmp byte [ecx + 1], 0xa
jne 0x49b137
inc ecx
jmp 0x49b137
movzx eax, al
movsx eax, byte [eax + 0x4f8ec0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49b111
cmp edx, ebx
jne 0x49b111
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b168
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00487643
leave
ret

Function at 0x4a22ad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c76d8
push 0x4c76d0
push str.FlsAlloc
push 0x1e
call fcn.004a211a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a22e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bd7d4]
call esi
jmp 0x4a22e7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a232b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c76e8
push 0x4c76e0
push str.FlsGetValue
push 0x20
call fcn.004a211a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2362
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bd7d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4a424e
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 + 0x4fe1e0]
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 0x4a428e
cmp byte [ebx], 0xa
jne 0x4a428e
or byte [eax + edi + 0x28], 4
jmp 0x4a4293
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a4391
mov al, byte [edx]
cmp al, 0x1a
je 0x4a4373
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a42c2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a42e7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a42f1
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 0x4a42a4
jmp 0x4a4391
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 0x4a436e
cmp dword [ebp - 0xc], 0
je 0x4a436e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4fe1e0]
test byte [eax + edi + 0x28], 0x48
je 0x4a4348
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a4333
mov byte [esi], dl
jmp 0x4a4344
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4fe1e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a4391
cmp byte [ebp - 1], 0xa
jne 0x4a4357
cmp esi, ebx
jne 0x4a4357
mov byte [esi], 0xa
jmp 0x4a4390
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a5142
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a4391
mov byte [esi], 0xd
jmp 0x4a4390
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4fe1e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a438d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a4391
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a439a
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 + 0x4fe1e0]
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 0x4a43dd
cmp word [esi], dx
jne 0x4a43dd
or byte [edi + eax + 0x28], 4
jmp 0x4a43e2
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 0x4a4535
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 0x4a4515
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a4424
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a445a
cmp eax, edx
jae 0x4a4466
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 0x4a43fc
jmp 0x4a4535
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 0x4a4511
cmp dword [ebp - 0x14], 0
je 0x4a4511
mov eax, dword [ebx*4 + 0x4fe1e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a44e9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a44b2
mov word [esi], cx
jmp 0x4a44e5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4fe1e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4fe1e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4fe1e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a4535
pop ebx
cmp word [ebp - 4], bx
jne 0x4a44fa
cmp esi, dword [ebp + 0xc]
jne 0x4a44fa
mov word [esi], bx
jmp 0x4a4532
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a5142
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a4535
push 0xd
jmp 0x4a452e
mov ecx, dword [ebx*4 + 0x4fe1e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a452c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a4535
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 0x4a4f25
Capabilities:
Read file on windows

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

Function at 0x4a4f30
Capabilities:
Read file on windows

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

Function at 0x4a5870
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f8560]
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 0x4a58bb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a5a0f
test al, al
jne 0x4a58b5
sub edx, 2
cmp edx, edi
jne 0x4a589b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a58dd
lea eax, [edi + 2]
cmp edx, eax
je 0x4a58dd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a57bc
add esp, 0x10
jmp 0x4a59d7
push esi
lea ecx, [ebp - 0x255]
call fcn.004a5a0f
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 0x4a5920
push dword [ebp - 0x25c]
jmp 0x4a58cd
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 0x4a595d
cmp word [ebp - 0x226], 0
je 0x4a597e
cmp word [ebp - 0x226], ax
jne 0x4a595d
cmp word [ebp - 0x224], 0
je 0x4a597e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a57bc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a59ca
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a5937
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a59b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a59d7
push 0x4a55ec
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00499170
add esp, 0x10
jmp 0x4a59a7
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.00487643
leave
ret

Function at 0x4a5afc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a5b0d
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5ac5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049d894
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a5b35
push ebx
push esi
push edi
call fcn.00488f00
add esp, 0xc
push 0
call fcn.0049d85a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a5ef9
Capabilities:
Set environment variable

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