joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478eb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x578bd4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x479044
call fcn.004782e0
mov dword [ebp - 0x3c], eax
and eax, edx
mov dword [ebp - 0x38], edx
cmp eax, 0xffffffff
je 0x478f31
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00462c90
add esp, 8
test eax, eax
je 0x478f0b
mov eax, dword [eax + 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9126
mov esp, ebp
pop ebp
ret 4
cmp dword [0x57857c], 0
je 0x47907f
push str.wxLocaltime_r___failed
push str._tm_
push str.wxDateTime::IsDST
push 0x832
jmp 0x479061
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0xffffffff
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00478380
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x2c], edi
call fcn.004770e0
mov ebx, eax
cmp ebx, 5
jne 0x478fd1
push 0
push 0
push 0
push 0
push 0x7b3
push 9
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
push 0x1f
movlpd qword [ebp - 0x34], xmm0
call fcn.00479a90
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00475eb0
test al, al
je 0x478fd1
push 0
push 0
push 0
push 0
push 0x7b0
push 9
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
push 0x1b
movlpd qword [ebp - 0x34], xmm0
call fcn.00479a90
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00475f70
test al, al
je 0x478fd1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9126
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
call fcn.004790a0
add esp, 8
test al, al
je 0x47907f
push ebx
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.004774e0
push ebx
push dword [ebp - 0x2c]
mov edi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.00476d20
mov edx, dword [esi]
add esp, 0x18
mov ecx, dword [esi + 4]
cmp edx, dword [eax]
jne 0x47900e
cmp ecx, dword [eax + 4]
je 0x478fb9
cmp edx, dword [edi]
jne 0x479017
cmp ecx, dword [edi + 4]
je 0x478fb9
push eax
mov ecx, esi
call fcn.00475f70
test al, al
je 0x47902f
push edi
mov ecx, esi
call fcn.00475eb0
test al, al
jne 0x478fb9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c9126
mov esp, ebp
pop ebp
ret 4
cmp dword [0x57857c], 0
je 0x47907f
push str.country_support_not_implemented
push str._country__Country_Default_
push str.wxDateTime::IsDST
push 0x829
push str.D:wxWidgets_3.2.0_srccommondatetime.cpp
call fcn.0045f380
add esp, 0x14
cmp byte [0x57c0ac], 0
je 0x47907f
mov byte [0x57c0ac], 0
int3
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c9126
mov esp, ebp
pop ebp
ret 4
Function at 0x47a6e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dc6e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x578bd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
push 0x104
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call fcn.0044e380
mov eax, dword [eax + 4]
push dword [eax]
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0043d600
cmp esi, 0x80004005
jne 0x47a7a6
push 0x104
push edi
lea ecx, [ebp - 0x18]
call fcn.0044e380
mov ecx, dword [eax + 4]
push dword [ecx]
push 1
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x18]
call fcn.0043d600
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4842d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51eeed
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x578bd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x57c0e0], 0
je 0x48431d
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x57c0e0]
je 0x48431d
push 0
call fcn.00465a30
add esp, 4
mov bl, al
jmp 0x48432a
mov bl, byte [0x5785ac]
mov byte [0x5785ac], 0
mov byte [ebp - 0x11], bl
mov byte [ebp - 0xd], bl
push 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00484550
test al, al
jne 0x484348
xor bh, bh
jmp 0x484373
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x484355
xor eax, eax
jmp 0x48435d
cmp dword [eax + 0x14], 8
jb 0x48435d
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bh
cmp dword [0x57c0e0], 0
mov dword [ebp - 4], 1
je 0x48439d
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x57c0e0]
je 0x48439d
push dword [ebp - 0x11]
call fcn.00465a30
add esp, 4
jmp 0x4843a3
mov byte [0x5785ac], bl
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bdb30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x4bdc44
mov ebx, dword [ebp + 0x14]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp ebx, 3
jb 0x4bdbca
add edi, 4
test eax, eax
je 0x4bdbbf
cmp edi, ecx
ja 0x4bdc7c
movzx ecx, byte [esi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [esi + 2]
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
add eax, 4
mov ecx, dword [ebp + 0xc]
sub ebx, 3
add esi, 3
cmp ebx, 3
jae 0x4bdb51
test ebx, ebx
je 0x4bdc3d
add edi, 4
test eax, eax
je 0x4bdc3d
cmp edi, ecx
ja 0x4bdc7c
cmp ebx, 2
jne 0x4bdbe7
mov dl, byte [esi + 1]
jmp 0x4bdbe9
xor dl, dl
movzx ecx, byte [esi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movzx ecx, dl
movzx edx, byte [esi]
mov esi, ecx
and edx, 3
mov dword [ebp + 0x10], ecx
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp ebx, 2
jne 0x4bdc35
and esi, 0xf
mov cl, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov cl, 0x3d
mov byte [eax + 2], cl
mov byte [eax + 3], cl
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x57857c], 0
je 0x4bdc7c
push str.NULL_input_buffer
push str._src__
push str.wxBase64Encode
push 0x13
push str.D:wxWidgets_3.2.0_srccommon_base64.cpp
call fcn.0045f380
add esp, 0x14
cmp byte [0x57c0ac], 0
je 0x4bdc7c
mov byte [0x57c0ac], 0
int3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4de9fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004c91f0
mov eax, dword [0x578bd4]
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.004e6bd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4dea3e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4deb9a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c9140
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 + 0x57cfc0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004edf79
mov ecx, dword [esi*4 + 0x57cfc0]
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 0x4deb93
cmp eax, dword [edi + ecx + 0x24]
jne 0x4deb93
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 0x4deb93
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004edf79
add esp, 0x14
test edx, edx
jl 0x4deb93
jg 0x4deb09
test eax, eax
jb 0x4deb93
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4deb93
jl 0x4deb23
cmp dword [ebp - 0x1008], eax
ja 0x4deb93
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4deb41
test ebx, ebx
je 0x4deb7a
cmp ecx, edi
jae 0x4deb7a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4deb5b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4deb67
cmp byte [ecx + 1], 0xa
jne 0x4deb67
inc ecx
jmp 0x4deb67
movzx eax, al
movsx eax, byte [eax + 0x578f18]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4deb41
cmp edx, ebx
jne 0x4deb41
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4deb98
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c9126
leave
ret
Function at 0x4e0eda
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x578bd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5554c0
push esi
call fcn.004e6ad9
pop ecx
pop ecx
test eax, eax
jne 0x4e0f08
xor al, al
jmp 0x4e0f85
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004e0c1d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4e0f42
push dword [ebp - 0x210]
call fcn.004e0f9d
xor al, al
jmp 0x4e0f83
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4e0f48
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4e0f68
push edx
call fcn.004e0e10
pop ecx
test al, al
je 0x4e0f33
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4e0f76
mov bl, 1
push dword [ebp - 0x210]
call fcn.004e0f9d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c9126
leave
ret
Function at 0x4ec731
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 + 0x57cfc0]
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 0x4ec771
cmp byte [ebx], 0xa
jne 0x4ec771
or byte [eax + edi + 0x28], 4
jmp 0x4ec776
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ec874
mov al, byte [edx]
cmp al, 0x1a
je 0x4ec856
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ec7a5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ec7ca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ec7d4
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 0x4ec787
jmp 0x4ec874
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 0x4ec851
cmp dword [ebp - 0xc], 0
je 0x4ec851
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x57cfc0]
test byte [eax + edi + 0x28], 0x48
je 0x4ec82b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ec816
mov byte [esi], dl
jmp 0x4ec827
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57cfc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ec874
cmp byte [ebp - 1], 0xa
jne 0x4ec83a
cmp esi, ebx
jne 0x4ec83a
mov byte [esi], 0xa
jmp 0x4ec873
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004edf97
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ec874
mov byte [esi], 0xd
jmp 0x4ec873
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x57cfc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ec870
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ec874
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ec87d
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 + 0x57cfc0]
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 0x4ec8c0
cmp word [esi], dx
jne 0x4ec8c0
or byte [edi + eax + 0x28], 4
jmp 0x4ec8c5
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 0x4eca18
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 0x4ec9f8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ec907
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ec93d
cmp eax, edx
jae 0x4ec949
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 0x4ec8df
jmp 0x4eca18
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 0x4ec9f4
cmp dword [ebp - 0x14], 0
je 0x4ec9f4
mov eax, dword [ebx*4 + 0x57cfc0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ec9cc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ec995
mov word [esi], cx
jmp 0x4ec9c8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x57cfc0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x57cfc0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x57cfc0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4eca18
pop ebx
cmp word [ebp - 4], bx
jne 0x4ec9dd
cmp esi, dword [ebp + 0xc]
jne 0x4ec9dd
mov word [esi], bx
jmp 0x4eca15
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004edf97
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4eca18
push 0xd
jmp 0x4eca11
mov ecx, dword [ebx*4 + 0x57cfc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4eca0f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4eca18
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 0x4f1134
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x556cb8
push 0x556cb0
push str.FlsAlloc
push 0x1e
call fcn.004f0fa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f1168
push dword [ebp + 8]
mov ecx, esi
call dword [0x52734c]
call esi
jmp 0x4f116e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f11b2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x556cc8
push 0x556cc0
push str.FlsGetValue
push 0x20
call fcn.004f0fa1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f11e9
push dword [ebp + 8]
mov ecx, esi
call dword [0x52734c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f2b23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f2994
Function at 0x4f582c
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.004f57a8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f59a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f59a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f5953
jg 0x4f5885
test eax, eax
je 0x4f5949
push 1
push 0x1000
call fcn.004f0c69
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f58ab
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4f5940
push 0x8000
push ebx
call fcn.004efc4a
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 0x4f58d7
jg 0x4f58d2
cmp ecx, 0x1000
jb 0x4f58d7
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004ed997
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f591c
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 0x4f58d2
jl 0x4f5903
test ecx, ecx
jne 0x4f58c4
push dword [ebp - 0xc]
push ebx
call fcn.004efc4a
push esi
call fcn.004f0cc6
add esp, 0xc
xor edi, edi
jmp 0x4f59b5
cmp byte [edi + 0x24], 0
je 0x4f5933
cmp dword [edi + 0x20], 5
jne 0x4f5933
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f593e
mov edi, dword [edi + 0x18]
jmp 0x4f5940
xor edi, edi
push esi
call fcn.004f0cc6
pop ecx
jmp 0x4f59b5
test ecx, ecx
jg 0x4f5915
jl 0x4f5953
test eax, eax
jae 0x4f5915
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004edf97
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f5976
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f5915
jmp 0x4f59ad
push ebx
call fcn.004e6fc1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f5915
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 0x4f59b5
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f59b2
mov edi, dword [edi + 0x18]
jmp 0x4f59b5
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004edf97
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f915b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f8c82
Function at 0x4f9225
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 0x4f92c2
push ebx
push esi
call fcn.004f91ee
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.004f3037
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f926f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f92c1
push edi
push eax
call fcn.004f1ac5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f928f
call fcn.004f0cc6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f92c0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f3037
add esp, 0x20
test eax, eax
jne 0x4f92ae
push edi
call fcn.004f0cc6
jmp 0x4f92b6
push ebx
call fcn.004f0cc6
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 0x4f92c5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f92d6
pop esi
ret
push ebx
push edi
push esi
call fcn.004f91ee
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f1ac5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f92fe
push ebx
push esi
push edi
call fcn.004ca0e0
add esp, 0xc
push 0
call fcn.004f0cc6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4f978b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x578bd4]
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 0x4f97d6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f992a
test al, al
jne 0x4f97d0
sub edx, 2
cmp edx, edi
jne 0x4f97b6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f97f8
lea eax, [edi + 2]
cmp edx, eax
je 0x4f97f8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f96d7
add esp, 0x10
jmp 0x4f98f2
push esi
lea ecx, [ebp - 0x255]
call fcn.004f992a
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 0x4f983b
push dword [ebp - 0x25c]
jmp 0x4f97e8
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 0x4f9878
cmp word [ebp - 0x226], 0
je 0x4f9899
cmp word [ebp - 0x226], ax
jne 0x4f9878
cmp word [ebp - 0x224], 0
je 0x4f9899
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f96d7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f98e5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f9852
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f98cd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f98f2
push 0x4f9507
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ebef0
add esp, 0x10
jmp 0x4f98c2
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.004c9126
leave
ret