joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ee0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push edi
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x405f81
call ebp
cmp eax, 0x7a
je 0x405f81
call ebp
mov esi, eax
mov eax, dword [0x44e674]
cmp eax, ebx
je 0x405f39
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
push 0x400
push esi
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [0x550b80]
push eax
push edi
push str.get_sid:_LookupAccountName_for_size_on_name__s_failed._Error_was__s_n
push ecx
mov dword [0x44e674], eax
call fcn.0040d480
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
push edx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call ebx
mov dword [esi], eax
mov eax, dword [esp + 0x10]
push eax
push 0
call ebx
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x406053
test ebx, ebx
je 0x406053
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x40603f
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, eax
mov eax, dword [0x44e674]
test eax, eax
je 0x405fe2
push eax
call edi
push 0
push 0
lea edx, [esp + 0x20]
push edx
push 0x400
push ebp
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebp, dword [esp + 0x18]
mov ecx, dword [0x550b80]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov dword [0x44e674], eax
mov eax, dword [esp + 0x24]
push eax
push str.get_sid:_LookupAccountName_failed_for_name__s._Error_was__s_n
push ecx
call fcn.0040d480
mov edx, dword [esi]
add esp, 0x10
push edx
call edi
push ebx
call edi
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, eax
mov eax, dword [0x44e674]
test eax, eax
je 0x406069
push eax
call edi
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0x400
push ebp
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x550b80]
neg eax
sbb eax, eax
and eax, edx
push eax
push str.get_sid:_LocalAlloc_failed._Error_was__s_n
push ecx
mov dword [0x44e674], eax
call fcn.0040d480
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4060b2
push eax
call edi
test ebx, ebx
je 0x4060b9
push ebx
call edi
pop edi
mov dword [esi], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4077d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
mov edi, dword [esp + 0xa8]
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push edi
mov dword [esp + 0x38], pe_nt_image_headers32
call ebp
mov esi, eax
test esi, esi
jne 0x4078f4
lea eax, [esp + 0x10]
push eax
push 1
push esi
lea ecx, [esp + 0x30]
push ecx
push edi
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407871
push 0x10
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0040f560
add esp, 0xc
test eax, eax
je 0x407859
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00407310
add esp, 8
test eax, eax
jne 0x4078db
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4078f4
jmp 0x4077e9
mov eax, dword [0x44e674]
test eax, eax
je 0x407881
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [0x550b80]
push eax
mov dword [0x44e674], eax
lea eax, [esp + 0x28]
push eax
push str.enumerate_users:_Failed_to_open_key__s_to_read_value._Error_was__s._n
push ecx
call fcn.0040d480
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp esi, 0x103
je 0x407911
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
Function at 0x40dac0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040db80
mov eax, dword [0x44e6d8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40dae4
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 [0x44e6d4], 1
mov byte [0x44e6d0], bl
jne 0x40db3e
mov ecx, dword [0x551cc8]
test ecx, ecx
je 0x40db2c
mov esi, dword [0x551cc4]
sub esi, 4
cmp esi, ecx
jb 0x40db2c
mov eax, dword [esi]
test eax, eax
je 0x40db25
call eax
mov ecx, dword [0x551cc8]
sub esi, 4
cmp esi, ecx
jae 0x40db17
push 0x449094
push 0x449088
call fcn.0040dba0
add esp, 8
push 0x4490a0
push 0x449098
call fcn.0040dba0
add esp, 8
test ebx, ebx
je 0x40db5d
call fcn.0040db90
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x44e6d8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40fe90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440150
push 0x416a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x44e6a8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x44e6a4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x44e6a0], ecx
shr eax, 0x10
mov dword [0x44e69c], eax
call fcn.004135e0
test eax, eax
jne 0x40fefa
push 0x1c
call fcn.00410070
add esp, 4
call fcn.00411da0
test eax, eax
jne 0x40ff0d
push 0x10
call fcn.00410070
add esp, 4
mov dword [ebp - 4], 0
call fcn.00413310
call fcn.00414db0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x550cac], eax
call fcn.004168a0
mov dword [0x44e704], eax
test eax, eax
je 0x40ff40
mov eax, dword [0x550cac]
test eax, eax
jne 0x40ff4a
push 0xffffffffffffffff
call fcn.0040da80
add esp, 4
call fcn.004165f0
call fcn.00416500
call fcn.0040da50
mov esi, dword [0x550cac]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x410029
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40ff91
test al, al
je 0x40ff91
and eax, 0xff
push eax
call fcn.004164a0
add esp, 4
test eax, eax
je 0x40ff6b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ff6b
cmp byte [esi], 0x22
jne 0x40ff9a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40ffaa
cmp al, 0x20
ja 0x40ffaa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ff9a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40ffcb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40ffd0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040da80
jmp 0x41000e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40ff9a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x410029
Function at 0x410070
Capabilities:
Terminate process

Disassembly:
cmp dword [0x44e70c], 1
jne 0x41007e
call fcn.00416ae0
mov eax, dword [esp + 4]
push eax
call fcn.00416b20
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x411da0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004100a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x44aa00], eax
je 0x411df8
push 0x74
push 1
call fcn.0040ef40
mov esi, eax
add esp, 8
test esi, esi
je 0x411df8
mov eax, dword [0x44aa00]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x411df8
push esi
call fcn.00411e00
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x411e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x44aa00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x411e8e
push 0x74
push 1
call fcn.0040ef40
mov esi, eax
add esp, 8
test esi, esi
je 0x411e84
mov ecx, dword [0x44aa00]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x411e84
push esi
call fcn.00411e00
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00410040
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x411ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x44aa00]
cmp eax, 0xffffffff
je 0x411f4f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x411ec4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x411f40
mov eax, dword [esi + 0x24]
test eax, eax
je 0x411ed4
push eax
call fcn.0040e3d0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x411ee4
push eax
call fcn.0040e3d0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x411ef4
push eax
call fcn.0040e3d0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x411f04
push eax
call fcn.0040e3d0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x411f14
push eax
call fcn.0040e3d0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x411f24
push eax
call fcn.0040e3d0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x44cc10
je 0x411f37
push eax
call fcn.0040e3d0
add esp, 4
push esi
call fcn.0040e3d0
add esp, 4
mov eax, dword [0x44aa00]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x414020
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 0x41404c
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 + 0x550ba0]
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 0x414087
push 2
push ebp
push ecx
call fcn.004143f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4141e9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x414131
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4140e2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4140cf
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 0x4140b2
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 0x4141da
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41412d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4140ae
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4141c9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414185
cmp eax, 5
jne 0x41416e
call fcn.0040f650
mov dword [eax], 9
call fcn.0040f660
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040f5d0
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 0x4141a5
cmp byte [ebp], 0x1a
jne 0x4141a5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040f650
mov dword [eax], 0x1c
call fcn.0040f660
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 0x41412d
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 0x41421a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x414131
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x414131
Function at 0x414f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f5d0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x414fa8
test byte [esp + 8], 2
je 0x414fa8
call fcn.0040f650
mov dword [eax], 0xd
call fcn.0040f660
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4168a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44eaf8]
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 0x4168e2
call edi
mov esi, eax
test esi, esi
je 0x4168cc
mov eax, 1
jmp 0x4168dd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4169ef
mov eax, 2
mov dword [0x44eaf8], eax
cmp eax, 1
jne 0x416982
test esi, esi
jne 0x4168fb
call edi
mov esi, eax
test esi, esi
je 0x4169ef
cmp word [esi], 0
mov eax, esi
je 0x416915
add eax, 2
cmp word [eax], 0
jne 0x416903
add eax, 2
cmp word [eax], 0
jne 0x416903
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 0x416974
push edi
call fcn.0040e300
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x416974
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 0x416966
push ebx
call fcn.0040e3d0
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 0x4169ef
test ebx, ebx
jne 0x416993
call ebp
mov ebx, eax
test ebx, ebx
je 0x4169ef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4169ab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41699b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41699b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040e300
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4169cd
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 0x416b20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x44cc98
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x416b44
add eax, 8
inc ebp
cmp eax, 0x44cd28
jb 0x416b35
cmp ecx, dword [ebp*8 + 0x44cc98]
jne 0x416ceb
mov eax, dword [0x44e70c]
cmp eax, 1
je 0x416cad
test eax, eax
jne 0x416b70
cmp dword [0x44a7d4], 1
je 0x416cad
cmp ecx, 0xfc
je 0x416ceb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416bab
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 0x416bf4
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 0x440610
add ebx, ecx
push ebx
call fcn.0040dcf0
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, 0x4405f0
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 + 0x44cc9c]
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.0041b050
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x550ba0]
test eax, eax
je 0x416cbe
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x416cc8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x44cc9c]
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 0x41cb50
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0041dcb0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004143f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41cc90
push 2
push ebp
push ebx
call fcn.004143f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41cc90
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41cc31
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0041dc40
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41cbd6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00414020
add esp, 0xc
cmp eax, 0xffffffff
je 0x41cbf2
sub esi, eax
test esi, esi
jle 0x41cc0a
jmp 0x41cbc7
call fcn.0040f660
cmp dword [eax], 5
jne 0x41cc07
call fcn.0040f650
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0041dc40
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004143f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41cc77
push 0
push ecx
push ebx
call fcn.004143f0
add esp, 0xc
push ebx
call fcn.0041a6b0
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 0x41cc77
call fcn.0040f650
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040f660
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004143f0
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 0x41cfa0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41d15e
push 0x3d
push edi
call fcn.0041d340
mov esi, eax
add esp, 8
test esi, esi
je 0x41d15e
cmp edi, esi
je 0x41d15e
mov dl, byte [esi + 1]
mov ecx, dword [0x44e6bc]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x44e6b8]
cmp eax, ecx
jne 0x41cff7
push eax
call fcn.0041d230
add esp, 4
mov dword [0x44e6b8], eax
test eax, eax
jne 0x41d072
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d01e
mov eax, dword [0x44e6c0]
test eax, eax
je 0x41d01e
call fcn.0041ab80
test eax, eax
je 0x41d06d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41d02a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040e300
add esp, 4
mov dword [0x44e6b8], eax
test eax, eax
je 0x41d15e
mov dword [eax], 0
mov eax, dword [0x44e6c0]
test eax, eax
jne 0x41d06d
push 4
call fcn.0040e300
add esp, 4
mov dword [0x44e6c0], eax
test eax, eax
je 0x41d15e
mov dword [eax], 0
mov eax, dword [0x44e6b8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0041d1b0
mov esi, eax
add esp, 8
test esi, esi
jl 0x41d16f
cmp dword [ebx], 0
je 0x41d16f
test ebp, ebp
je 0x41d167
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040e3d0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41d0c9
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 0x41d0b8
lea eax, [esi*4]
push eax
push ebx
call fcn.00412070
add esp, 8
test eax, eax
je 0x41d0e3
mov dword [0x44e6b8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d156
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040e300
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41d156
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.0040e3d0
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 0x41d0e7
test ebp, ebp
jne 0x41d156
test esi, esi
jge 0x41d179
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00412070
add esp, 8
test eax, eax
je 0x41d15e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x44e6b8], eax
jmp 0x41d0e7