joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0ff0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004d10b0
mov eax, dword [0x6bcb58]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4d1014
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x6bcb54], 1
mov byte [0x6bcb50], bl
jne 0x4d106e
mov ecx, dword [0x6c5a8c]
test ecx, ecx
je 0x4d105c
mov esi, dword [0x6c5a88]
sub esi, 4
cmp esi, ecx
jb 0x4d105c
mov eax, dword [esi]
test eax, eax
je 0x4d1055
call eax
mov ecx, dword [0x6c5a8c]
sub esi, 4
cmp esi, ecx
jae 0x4d1047
push 0x4f25a0
push 0x4f2598
call fcn.004d10d0
add esp, 8
push 0x4f25a8
push 0x4f25a4
call fcn.004d10d0
add esp, 8
test ebx, ebx
je 0x4d108d
call fcn.004d10c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x6bcb58], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4d36e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x6bcd58]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4d3722
call edi
mov esi, eax
test esi, esi
je 0x4d370c
mov eax, 1
jmp 0x4d371d
call ebp
mov ebx, eax
test ebx, ebx
je 0x4d382f
mov eax, 2
mov dword [0x6bcd58], eax
cmp eax, 1
jne 0x4d37c2
test esi, esi
jne 0x4d373b
call edi
mov esi, eax
test esi, esi
je 0x4d382f
cmp word [esi], 0
mov eax, esi
je 0x4d3755
add eax, 2
cmp word [eax], 0
jne 0x4d3743
add eax, 2
cmp word [eax], 0
jne 0x4d3743
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4d37b4
push edi
call fcn.004d1310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d37b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4d37a6
push ebx
call fcn.004d13e0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4d382f
test ebx, ebx
jne 0x4d37d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x4d382f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4d37eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d37db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d37db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004d1310
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4d380d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4d3fe0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x5038d8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4d4004
add eax, 8
inc ebp
cmp eax, 0x503968
jb 0x4d3ff5
cmp ecx, dword [ebp*8 + 0x5038d8]
jne 0x4d41ab
mov eax, dword [0x6bca84]
cmp eax, 1
je 0x4d416d
test eax, eax
jne 0x4d4030
cmp dword [0x503094], 1
je 0x4d416d
cmp ecx, 0xfc
je 0x4d41ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d406b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4d40b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4f57e0
add ebx, ecx
push ebx
call fcn.004ce6e0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4faf30
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x5038dc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004d76e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x6c5980]
test eax, eax
je 0x4d417e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4d4188
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x5038dc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4d7110
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4d713c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x6c5980]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4d7177
push 2
push ebp
push ecx
call fcn.004d8760
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4d72d9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4d7221
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4d71d2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4d71bf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4d71a2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d72ca
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4d721d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4d719e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4d72b9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d7275
cmp eax, 5
jne 0x4d725e
call fcn.004d0610
mov dword [eax], 9
call fcn.004d0620
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004d0590
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4d7295
cmp byte [ebp], 0x1a
jne 0x4d7295
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.004d0610
mov dword [eax], 0x1c
call fcn.004d0620
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4d721d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d730a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4d7221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4d7221
Function at 0x4d8900
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004ceaf0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004d8760
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4d8a40
push 2
push ebp
push ebx
call fcn.004d8760
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d8a40
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4d89e1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004d98c0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4d8986
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004d7110
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d89a2
sub esi, eax
test esi, esi
jle 0x4d89ba
jmp 0x4d8977
call fcn.004d0620
cmp dword [eax], 5
jne 0x4d89b7
call fcn.004d0610
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004d98c0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004d8760
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4d8a27
push 0
push ecx
push ebx
call fcn.004d8760
add esp, 0xc
push ebx
call fcn.004d6f00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4d8a27
call fcn.004d0610
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004d0620
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004d8760
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x4d9180
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x6bd034]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4d91c8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d91ac
mov eax, 1
jmp 0x4d91c3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4d92a8
mov eax, 2
mov dword [0x6bd034], eax
cmp eax, 2
jne 0x4d91e8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4d92ba
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d9203
mov ecx, dword [0x6bcb00]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4d9222
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004d1310
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d9239
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d929f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4d9280
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4d929f
push esi
call fcn.004d13e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4d92af
push esi
call fcn.004d13e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004d13e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d95c0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4d977e
push 0x3d
push edi
call fcn.004d9930
mov esi, eax
add esp, 8
test esi, esi
je 0x4d977e
cmp edi, esi
je 0x4d977e
mov dl, byte [esi + 1]
mov ecx, dword [0x6bcb3c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x6bcb38]
cmp eax, ecx
jne 0x4d9617
push eax
call fcn.004d9850
add esp, 4
mov dword [0x6bcb38], eax
test eax, eax
jne 0x4d9692
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d963e
mov eax, dword [0x6bcb40]
test eax, eax
je 0x4d963e
call fcn.004d8880
test eax, eax
je 0x4d968d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4d964a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004d1310
add esp, 4
mov dword [0x6bcb38], eax
test eax, eax
je 0x4d977e
mov dword [eax], 0
mov eax, dword [0x6bcb40]
test eax, eax
jne 0x4d968d
push 4
call fcn.004d1310
add esp, 4
mov dword [0x6bcb40], eax
test eax, eax
je 0x4d977e
mov dword [eax], 0
mov eax, dword [0x6bcb38]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004d97d0
mov esi, eax
add esp, 8
test esi, esi
jl 0x4d978f
cmp dword [ebx], 0
je 0x4d978f
test ebp, ebp
je 0x4d9787
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004d13e0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4d96e9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4d96d8
lea eax, [esi*4]
push eax
push ebx
call fcn.004d10f0
add esp, 8
test eax, eax
je 0x4d9703
mov dword [0x6bcb38], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d9776
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004d1310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d9776
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004d13e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4d9707
test ebp, ebp
jne 0x4d9776
test esi, esi
jge 0x4d9799
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004d10f0
add esp, 8
test eax, eax
je 0x4d977e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x6bcb38], eax
jmp 0x4d9707
Function at 0x4d9a70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x4d9aaa
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5068a8]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4d9a88
pop esi
ret

Function at 0x4dbb00
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
jmp 0x4dbb10
push edx
push ecx
push 0x200
push 0x6bd700
call fcn.004ea380
add esp, 0x10
mov byte [0x6bd8ff], 0
call fcn.004dc180
push 0x6bd700
push 0x4f4a90
call fcn.004dc0b0
add esp, 8
push 0x4f475c
call fcn.004dc0b0
add esp, 4
push 1
call fcn.004dbdb0
add esp, 4
call fcn.004dbab0
mov edx, str.ERROR
mov ecx, 0x6bd700
push 0x10
call fcn.004de3a0
jmp fcn.004dbae0

Function at 0x4dbba0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
test edx, edx
je 0x4dbbc1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4dbbc1
test al, 1
je 0x4dbbc1
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x4dbbd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
test eax, eax
mov ebx, edx
mov esi, ecx
jle 0x4dbc27
mov ebp, dword [esp + 0x14]
push edi
push ebp
push ebx
push esi
call fcn.004dba60
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dbc09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4dbc1b
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x4dbbe6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x4dbdb0
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x6bd910
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6bdbb8]
test eax, eax
je 0x4dbe21
cmp dword [0x507650], 0xffffffff
jne 0x4dbdf6
call fcn.004dbe60
cmp eax, 0xffffffff
mov dword [0x507650], eax
jne 0x4dbde9
mov dword [0x6bdbb8], 0
pop ecx
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x6bdbb8]
mov edx, dword [0x6bdbb4]
lea eax, [esp]
push 0
push eax
mov eax, dword [0x507650]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x6bdbb8], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x4dbe44
mov eax, dword [0x507650]
cmp eax, 0xffffffff
je 0x4dbe44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x507650], 0xffffffff
push 0x6bd910
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
ret
Function at 0x4dbe60
Capabilities:
Clear file content
Get file size
Get session user name

Disassembly:
mov eax, dword [0x50764c]
sub esp, 0x15c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4dbee1
lea ecx, [esp + 0x68]
call fcn.004dc380
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4dbe9c
mov byte [esp + 0x14], al
lea ecx, [esp + 0x34]
call fcn.004dbff0
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x70]
and eax, 0xffff
push eax
push ecx
push edx
push str._s_s_02u_02u_02u.ERR
push 0x104
push 0x6bd928
call fcn.004dba60
add esp, 0x20
mov ecx, dword [0x50764c]
or ebp, 0xffffffff
xor ebx, ebx
test ecx, ecx
sete bl
cmp ebx, 2
jge 0x4dbfca
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x6bd928
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4dbfb3
push 0x5c
push 0x6bd928
call fcn.004ce140
mov edx, eax
add esp, 8
test edx, edx
jne 0x4dbf3c
mov edx, 0x6bd928
mov eax, dword [0x507654]
mov ecx, 0x40
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x6c]
lea esi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6bd928
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, 2
rep movsb byte es:[edi], byte [esi]
jl 0x4dbefa
jmp 0x4dbfca
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
jbe 0x4dbfca
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x50764c], 0
pop ebx
add esp, 0x15c
ret
Function at 0x4dbff0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
xor eax, eax
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xd
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4dc0a4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4dc0a4
push ebx
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea eax, [esp + 0x1c]
push ebx
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4dc095
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x4fac0c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4dc095
mov ecx, dword [esp + 0x14]
cmp ecx, 0x34
jb 0x4dc081
mov ecx, 0x34
mov esi, dword [esp + 0x10]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x110
ret

Function at 0x4dc180
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xd0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp]
lea edx, [esp + 0x50]
push ecx
push edx
mov dword [esp + 8], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4dc1b1
mov byte [esp + 0x50], al
lea eax, [esp + 4]
lea ecx, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4dc1d7
mov byte [esp + 0x90], al
lea ecx, [esp + 0x1c]
call fcn.004dbff0
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x12]
and edx, 0xffff
push 0x6bda30
and eax, 0xffff
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
mov ecx, 0x64
cdq
idiv ecx
mov eax, dword [esp + 0x1e]
lea ecx, [esp + 0x64]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
and edx, 0xffff
push edx
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, eax
lea edx, [esp + 0xb4]
and ecx, 0xffff
push edx
shr eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x5c]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
push str._r_n_______________________________________________________r_nPROGRAM_VERSION:__d._d._d._d_r_nCOMPUTER_NAME:__s_r_nUSER_NAME:_t__s_r_nTIME:__02u__02u__02u__02u:_02u:_02u._3d_r_nINFO:__s_r_n_r_n
call fcn.004dc0b0
add esp, 0x3c
add esp, 0xd0
ret