joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fc0
Capabilities:
Persist via path registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42da40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 2
push ebx
push ecx
push 0x80000002
mov byte [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403068
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0x2c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 2
push ebx
push str.PATH
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x4030af
push 0xffffffffffffffff
push ebx
push 0x6d
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
push 0x1388
push 2
push str.Environment
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x403120
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42da60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403185
push 0xffffffffffffffff
push 0
push 0x6c
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [ebp - 0x14]
push edx
jmp 0x4031be
push 0
lea eax, [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4031e6
push 0xffffffffffffffff
push 0
push 0x6c
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push esi
push 0
push 0
inc eax
push str.PATH
push edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403260
push 0xffffffffffffffff
push 0
push 0x6c
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [ebp - 4], 1
je 0x40323e
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0
call fcn.004032f0
mov ecx, eax
call fcn.004021b0
test esi, esi
mov byte [ebp - 4], 4
je 0x40329d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40329d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x404
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebp, dword [esp + 0x420]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x40474c
call fcn.004140f0
test eax, eax
jne 0x40474c
lea ecx, [esp + 0x10]
push 0x200
push ecx
push 0x437fa8
push esi
push str.Oracle
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x437fa8
push ebp
mov ebx, eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40474c
xor ebx, ebx
cmp ebx, edi
jne 0x404774
mov eax, dword [esp + 0x418]
mov dword [eax], 0x5208
mov dword [eax + 4], edi
mov dword [eax + 8], 0x270f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
cmp ebx, 0x1ff
jle 0x4047a0
mov eax, dword [esp + 0x418]
mov dword [eax], 0x5209
mov dword [eax + 4], edi
mov dword [eax + 8], 0x270f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x418]
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [eax], 0
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x4079d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4079e4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor edi, edi
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4079f9
mov edi, 0xffffffff
cmp word [esi], 0
je 0x407a34
test edi, edi
jne 0x407a34
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
mov edi, eax
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
push eax
call ebx
add esp, 4
jmp 0x407a3a
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esi + 4]
test eax, eax
je 0x407a47
push eax
call ebx
add esp, 4
push esi
call ebx
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
sub esp, 4
test eax, eax
push esi
je 0x407aab
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x407aab
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
imul eax, esi
push eax
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407a9f
mov eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
sub edx, edx
div esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x18
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test esi, esi
jne 0x415636
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ebx, [edi + 4]
mov dword [esi + 8], 0
push ebx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov eax, dword [edi]
test eax, eax
je 0x41566d
mov dword [eax + 0x10], esi
push ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x1c], 0
je 0x4156d4
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
push 2
push 0
lea eax, [ebp - 4]
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
mov dword [esi + 8], eax
push 0
push esi
push 0x415590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4156cd
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x417f17
cmp dword [0x435cfc], 0
jne 0x417e19
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
sub esi, 0x10
cmp dword [esi + 4], 0xffffffff
jne 0x417f17
cmp dword [esi], 0xbc614e
jne 0x417f17
mov eax, dword [0x435d00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417f17
cmp eax, esi
ja 0x417e53
mov ecx, dword [eax + 0x14]
add ecx, eax
cmp ecx, esi
ja 0x417e5a
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x417e46
test eax, eax
je 0x417f17
mov edi, eax
mov edx, dword [eax + 4]
test edx, edx
je 0x417e98
cmp eax, edx
ja 0x417f17
mov ecx, dword [eax + 0x14]
add ecx, eax
cmp ecx, edx
jbe 0x417f17
lea ecx, [edi + 0x10]
cmp ecx, edx
jae 0x417f17
cmp esi, edx
jb 0x417e98
mov edi, edx
mov edx, dword [edx + 4]
test edx, edx
jne 0x417e6b
mov dword [esi + 8], 0xfffffffe
mov ebx, dword [edi + 0xc]
mov ecx, edi
sub ecx, esi
add ecx, ebx
cmp ecx, 0xfffffff0
jne 0x417ebc
mov ecx, dword [esi + 0xc]
mov esi, edi
add ecx, ebx
add ecx, 0x10
mov dword [edi + 0xc], ecx
jmp 0x417ec5
mov dword [edi + 4], esi
mov dword [esi], 0x5397fb1
mov edi, dword [esi + 0xc]
mov ecx, esi
sub ecx, edx
add ecx, edi
cmp ecx, 0xfffffff0
jne 0x417ee6
mov ecx, dword [edx + 0xc]
add ecx, edi
add ecx, 0x10
mov dword [esi + 0xc], ecx
mov edx, dword [edx + 4]
mov dword [esi + 4], edx
jmp 0x417eef
mov dword [esi + 4], edx
mov dword [esi], 0x5397fb1
mov ecx, dword [esi + 0xc]
cmp dword [eax + 0x1c], ecx
jae 0x417efa
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 4]
cmp dword [ecx + 4], 0
jne 0x417f17
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0xc]
cmp edx, 0x30
jne 0x417f17
push eax
call fcn.00418430
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x418060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [0x435cfc], 0
push ebx
push esi
push edi
je 0x4181bf
mov esi, dword [ebp + 8]
mov eax, dword [0x435d00]
push eax
test esi, esi
je 0x418196
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4181bf
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x20]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x418184
mov eax, dword [edi + 0x14]
add eax, edi
cmp eax, ebx
jbe 0x418184
cmp dword [ebx + 4], 0xffffffff
jne 0x418175
cmp dword [ebx + 8], esi
jne 0x418175
mov dword [ebx + 8], 0xfffffffe
mov edx, edi
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x418105
cmp edi, ecx
ja 0x4181bf
mov eax, dword [edi + 0x14]
add eax, edi
cmp eax, ecx
jbe 0x4181bf
lea eax, [edx + 0x10]
cmp eax, ecx
jae 0x4181bf
cmp ebx, ecx
jb 0x418105
mov edx, ecx
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4180d8
mov eax, edx
sub eax, ebx
add eax, dword [edx + 0xc]
cmp eax, 0xfffffff0
jne 0x418121
mov eax, dword [ebx + 0xc]
mov ebx, edx
add eax, dword [edx + 0xc]
add eax, 0x10
mov dword [edx + 0xc], eax
jmp 0x41812a
mov dword [edx + 4], ebx
mov dword [ebx], 0x5397fb1
mov eax, dword [ebx + 0xc]
mov edx, ebx
sub edx, ecx
add edx, eax
cmp edx, 0xfffffff0
jne 0x41814b
mov edx, dword [ecx + 0xc]
add edx, eax
add edx, 0x10
mov dword [ebx + 0xc], edx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
jmp 0x418154
mov dword [ebx + 4], ecx
mov dword [ebx], 0x5397fb1
mov eax, dword [edi + 4]
cmp dword [eax + 4], 0
jne 0x418175
mov ecx, dword [edi + 0x14]
sub ecx, dword [eax + 0xc]
cmp ecx, 0x30
jne 0x418175
xor ebx, ebx
push edi
call fcn.00418430
add esp, 4
jmp 0x41817c
mov eax, dword [ebx + 0xc]
lea ebx, [eax + ebx + 0x10]
test ebx, ebx
jne 0x4180a8
mov edi, dword [ebp - 4]
test edi, edi
jne 0x418097
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
test eax, eax
je 0x4181bf
mov eax, dword [0x435d00]
push eax
call edi
push eax
call fcn.00418430
add esp, 4
mov eax, dword [0x435d00]
push eax
call edi
test eax, eax
jne 0x4181a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4181d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 3
and esi, 0xfffffffc
cmp esi, 0xffd0
jbe 0x41823e
add esi, 0x30
push esi
call fcn.00418370
add esp, 4
mov esi, eax
test esi, esi
jne 0x418200
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
cmp dword [ebp + 0xc], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xbc614e
je 0x41821f
mov dword [edi + 8], 0
jmp 0x418228
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 8], eax
mov dword [esi + 4], 0
mov dword [esi + 0x1c], 0
lea eax, [edi + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [0x435d00]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x418265
push 0
call fcn.00418370
add esp, 4
test eax, eax
jne 0x418265
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [0x435d00]
push eax
call edi
mov edi, eax
test edi, edi
je 0x4182bb
cmp dword [edi + 0x1c], esi
jb 0x41829c
mov ecx, edi
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x41829c
lea edx, [esi + 0x10]
mov eax, dword [ebx + 0xc]
cmp eax, edx
ja 0x4182c2
cmp esi, eax
jbe 0x418329
mov ecx, ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x418284
cmp dword [edi + 0x10], 0
jne 0x4182b4
push 0
call fcn.00418370
add esp, 4
test eax, eax
je 0x418365
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x418273
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [ebx + esi + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0xc]
sub edx, esi
sub edx, 0x10
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
mov edx, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [ecx + 4]
mov dword [edx], 0x5397fb1
mov edx, dword [ecx + 4]
cmp dword [ebp + 0xc], 0
mov dword [edx + 8], 0xfffffffe
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0xc], esi
mov dword [ebx], 0xbc614e
je 0x41830f
mov dword [ebx + 8], 0
jmp 0x418318
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
push edi
call fcn.004184b0
add esp, 4
lea eax, [ebx + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xbc614e
je 0x41834b
mov dword [ebx + 8], 0
jmp 0x418354
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
push edi
call fcn.004184b0
add esp, 4
lea eax, [ebx + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x418370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x418381
mov edi, 0x10000
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41839d
xor eax, eax
pop edi
pop esi
pop ebp
ret
lea eax, [esi + 0x20]
xor ecx, ecx
lea edx, [edi - 0x30]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0xbc614e
mov dword [esi + 8], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov dword [eax], 0x5397fb1
mov eax, dword [esi + 4]
mov dword [eax + 8], 0xfffffffe
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x18], 0xabcdef0
mov ecx, dword [0x435d00]
push ecx
call edi
test eax, eax
jne 0x41840d
push esi
mov eax, dword [0x435d00]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop edi
pop esi
pop ebp
ret
mov eax, dword [0x435d00]
push eax
call edi
cmp dword [eax + 0x10], 0
je 0x418425
xor ecx, ecx
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x10], ecx
jne 0x41841d
pop edi
mov dword [eax + 0x10], esi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x41fb90
Capabilities:
Delete file

Disassembly:
push ebp
mov eax, dword [esp + 0xc]
mov ebp, esp
sub esp, 4
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41fbd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 4], eax
push str.slfirf
lea eax, [ebp - 4]
push 0x19
mov ecx, dword [ebp + 8]
push eax
push 8
push 0x5e7
push ecx
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41fbe0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41fc2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 4], eax
push 0x436b08
lea eax, [ebp - 4]
push 0x19
mov esi, dword [ebp + 8]
push eax
push 8
push 0x5e7
push esi
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.0041fcd0
add esp, 8
mov ecx, dword [edi]
mov ebx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x41fc5a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov eax, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.004245c0
add esp, 0x10
mov edi, eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41fcaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 4], eax
push str.slfirn
lea eax, [ebp - 4]
push 0x19
push eax
push 8
push 0x5e7
push esi
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.sflirn
push 0x19
push 0x5dc
push esi
call fcn.0041c220
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x426dfa
push 1
mov edi, dword [ebp + 0xc]
push 0
push 0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
push 2
push 0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
mov eax, dword [edi]
push esi
push eax
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 0xffffffff
pop edi
cmp esi, 1
pop esi
adc eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
push 0
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 8]
lea edx, [ebp - 0x15c]
mov dword [ebp - 8], eax
mov ecx, dword [eax]
push ecx
push edx
call fcn.00405ae0
add esp, 0x10
cmp esi, 2
ja 0x426e30
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [esi - 2]
push ecx
mov ebx, dword [ebp + 0x10]
push ebx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426e5a
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
jne 0x426e6c
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x426ece
movsx edx, byte [ecx]
cmp edx, 0xa
je 0x426e97
cmp edx, 0xd
je 0x426ea8
cmp edx, 0x1a
je 0x426ebf
inc eax
inc ecx
cmp eax, dword [ebp - 4]
jb 0x426e7c
jmp 0x426ece
test eax, eax
je 0x426ebf
cmp byte [ecx - 1], 0xd
jne 0x426ebf
mov byte [ecx + 1], 0
inc ecx
jmp 0x426ece
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x426eb9
mov byte [eax + 1], 0
mov ecx, eax
inc ecx
jmp 0x426ece
inc ecx
mov byte [eax], 0xa
jmp 0x426ece
lea eax, [ecx + 1]
mov byte [ecx], 0xd
mov byte [eax], 0xa
mov byte [ecx + 2], 0
mov ecx, eax
mov eax, ebx
sub eax, ecx
add eax, dword [ebp - 4]
je 0x426f04
push 1
sub ecx, dword [ebp - 4]
push 0
sub ecx, ebx
push ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x426f04
cmp dword [sym.imp.KERNEL32.dll_GetLastError], 0
je 0x426f04
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x15c]
mov ecx, dword [ebp - 8]
push eax
mov edx, dword [ecx + 0x120]
push edx
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
call fcn.00408300
mov ecx, dword [ebp - 0x2c]
add esp, 0x14
mov esi, eax
cmp byte [ecx], 0
je 0x426f6d
mov edi, 0x10
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jb 0x426f42
inc dword [ebp - 0x2c]
jmp 0x426f65
mov eax, dword [ebp - 0x28]
test dword [eax + 0x30], edi
je 0x426f50
inc esi
inc dword [ebp - 0x2c]
jmp 0x426f65
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.00411d90
add esp, 8
add esi, eax
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
jne 0x426f32
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret