joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b802
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005254a6
and dword [ebp - 0x14], 0
cmp dword [0x57b210], 0
mov dword [ebp - 0x18], eax
jne 0x52b8b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52b95d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54ecbc
push ebx
call edi
test eax, eax
je 0x52b95d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54ecac
push ebx
mov dword [0x57b210], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x57b214], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57b218], eax
call edi
push eax
call esi
mov dword [0x57b220], eax
test eax, eax
je 0x52b8b5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57b21c], eax
mov eax, dword [0x57b21c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52b90e
cmp dword [0x57b220], ecx
je 0x52b90e
push eax
call esi
push dword [0x57b220]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52b90e
test ebx, ebx
je 0x52b90e
call edi
test eax, eax
je 0x52b905
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52b905
test byte [ebp - 8], 1
jne 0x52b90e
or dword [ebp + 0x10], 0x200000
jmp 0x52b941
mov eax, dword [0x57b214]
cmp eax, dword [ebp - 0x18]
je 0x52b941
push eax
call esi
test eax, eax
je 0x52b941
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52b941
mov eax, dword [0x57b218]
cmp eax, dword [ebp - 0x18]
je 0x52b941
push eax
call esi
test eax, eax
je 0x52b941
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57b210]
call esi
test eax, eax
je 0x52b95d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52b95f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051eb9c
leave
ret
Function at 0x10001080
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x100010b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100010a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x10001230
Capabilities:
Create thread

Disassembly:
push ecx
push 1
call fcn.10008d20
add esp, 4
call fcn.1000b700
mov eax, dword [0x100388c0]
lea ecx, [esp]
push ecx
push 0
push 0
push 0x10001280
push 0
push 0
mov dword [0x10036fb4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000126f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
ret

Function at 0x10001a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
jne 0x10001aaa
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push edi
mov dword [esp + 0x10], 0
mov ebp, 1
lea ebx, [ecx + 8]
push 3
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001b22
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001b22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001b1e
mov edx, dword [esp + 0x18]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esi], 0x28
jne 0x10001b1e
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x20]
mov dword [ebx - 8], eax
mov eax, dword [esp + 0x10]
mov dword [ebx - 4], ebp
mov dword [ebx], 0
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
jae 0x10001b39
mov esi, dword [esp + 0x18]
inc ebp
cmp ebp, 0xa
jle 0x10001ac1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x10002010
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x220
push ebx
mov ebx, dword [esp + 0x228]
push esi
push edi
test ebx, ebx
je 0x100020c1
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100020c1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Common_AppData
push ecx
mov dword [esp + 0x28], 0x211
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100020c1
cmp dword [esp + 0x14], 1
jne 0x100020c1
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x220
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x220
ret
Function at 0x100020d0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x100020fd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x1003016c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10002287
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 2
push 0xfffffffffffffffc
push esi
mov edi, eax
call ebx
add esp, 0x1c
test eax, eax
push esi
je 0x1000214e
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push 4
lea eax, [esp + 0x1c]
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 4
je 0x1000217b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea edx, [esp + 0x14]
mov ecx, 0x10030164
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
je 0x100021a0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push 0xfffffffffffffff8
push esi
call ebx
push esi
push 4
lea ecx, [esp + 0x2c]
push 1
push ecx
call ebp
add esp, 0x1c
cmp eax, 4
je 0x100021cf
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
cmp eax, edi
jl 0x100021eb
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
sub edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov ebx, eax
push edi
push 1
push ebx
call ebp
add esp, 0x14
cmp eax, edi
je 0x10002224
test ebx, ebx
je 0x10002210
push ebx
call fcn.10010220
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
push esi
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x1f4
call esi
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1f4
call esi
mov eax, dword [esp + 0x20]
push 0x100301c4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10002287
push esi
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call ebp
push ebx
call fcn.10010220
add esp, 0x18
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x100026e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0x7d6
mov dword [esp + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
je 0x1000270d
mov ecx, 0x1f4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x1000270f
xor eax, eax
mov esi, dword [esp + 0x10]
mov ecx, 0x1f5
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x100022a0
push 0
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret
Function at 0x100032c0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10003315
mov eax, dword [esp + 0x24]
push ebx
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x10003310
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x10003470
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1002ae66
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x168
dec eax
push esi
jne 0x1000363e
lea eax, [esp + 0x4c]
push 0x104
push eax
push 0
mov byte [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
mov eax, dword [0x100388c0]
mov edx, dword [esp + 0x180]
add esp, 4
mov dword [0x10037038], edx
test eax, eax
jne 0x100034ec
xor eax, eax
pop esi
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
add esp, 0x174
ret 0xc
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push str.orer.exe
push str.expl
lea eax, [esp + 0x14]
push 0x100303fc
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x2c]
push str.ay.exe
push str.60tr
push str.3_s_s
push ecx
call esi
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x5c]
push edx
push eax
call esi
add esp, 0x18
test eax, eax
jne 0x100035d7
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x4c]
push ecx
push edx
call esi
add esp, 8
test eax, eax
jne 0x100035d7
lea eax, [esp + 0x4c]
push str.wininit.exe
push eax
call esi
add esp, 8
test eax, eax
je 0x1000363e
push str.MANAGE_20090629400351362402
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x1000359a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100035a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000363e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1000363e
lea ecx, [esp + 4]
call fcn.10001040
lea ecx, [esp + 4]
mov dword [esp + 0x174], 1
call fcn.10001080
mov dword [esp + 0x174], 0xffffffff
lea ecx, [esp + 4]
jmp 0x10003639
push str.WORK_20080729400351362402
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x10003602
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000360d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000363e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1000363e
lea ecx, [esp + 8]
call fcn.10001040
lea ecx, [esp + 8]
mov dword [esp + 0x174], 0
call fcn.10001230
mov dword [esp + 0x174], 0xffffffff
lea ecx, [esp + 8]
call fcn.10001070
mov ecx, dword [esp + 0x16c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x174
ret 0xc
Function at 0x10004340
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [edx]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], esi
mov esi, dword [edx + 4]
mov dword [esp + 0xc], esi
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edx
push edi
mov edx, 0xe3779b90
mov esi, 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov edi, ecx
shr edi, 5
add edi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x14]
xor edi, ebx
lea ebx, [edx + ecx]
xor edi, ebx
mov ebx, dword [esp + 0x10]
sub eax, edi
mov edi, eax
shr edi, 5
add edi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor edi, ebx
lea ebx, [edx + eax]
xor edi, ebx
add edx, 0x61c88647
sub ecx, edi
dec esi
jne 0x10004379
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 8
ret

Function at 0x100043e0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [edx]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x18], esi
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
push edi
xor edx, edx
mov esi, 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov edi, ecx
sub edx, 0x61c88647
shr edi, 5
add edi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x14]
xor edi, ebx
lea ebx, [edx + ecx]
xor edi, ebx
mov ebx, dword [esp + 0x10]
add eax, edi
mov edi, eax
shr edi, 5
add edi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor edi, ebx
lea ebx, [edx + eax]
xor edi, ebx
add ecx, edi
dec esi
jne 0x10004416
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 8
ret
Function at 0x10004ab0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0xc0
push ebp
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], ecx
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
call fcn.100049e0
add esp, 8
lea edx, [esp + 0x4c]
push 0x80
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10004c4d
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x10004c4d
mov ecx, dword [eax + 0xc]
mov edi, dword [esp + 0xd0]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
jmp 0x10004b36
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov eax, dword [ecx]
add ecx, 4
test eax, eax
mov dword [esp + 0x24], ecx
je 0x10004bd8
mov eax, dword [eax]
test ebp, ebp
je 0x10004b55
cmp ebp, 0x100007f
jne 0x10004b5b
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp eax, 0x100007f
je 0x10004bbe
test edi, edi
je 0x10004b6a
cmp eax, edi
je 0x10004bd6
xor edx, edx
test ebx, ebx
jle 0x10004bbe
lea ecx, [esp + 0x28]
test esi, esi
jne 0x10004b82
cmp dword [ecx], eax
jne 0x10004b82
test edi, edi
mov esi, eax
je 0x10004bbe
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x10004b96
mov ebp, eax
xor ebp, dword [ecx]
test ebp, 0xffffff
je 0x10004bb4
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x10004baa
mov ebp, eax
xor ebp, dword [ecx]
test ebp, 0xffff
je 0x10004bba
inc edx
add ecx, 4
cmp edx, ebx
jl 0x10004b74
jmp 0x10004bbe
mov dword [esp + 0x10], eax
jmp 0x10004bbe
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
inc edx
cmp edx, 0x14
mov dword [esp + 0x20], edx
jl 0x10004b2e
mov ebp, dword [esp + 0x14]
jmp 0x10004bd8
mov esi, eax
test ebp, ebp
pop ebx
je 0x10004c4d
cmp edx, 1
jne 0x10004bea
cmp ebp, 0x100007f
je 0x10004c4d
test esi, esi
jne 0x10004c00
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x10004c00
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x10004c00
mov esi, ebp
mov al, byte [0x10036f98]
test al, al
jne 0x10004c25
mov dword [0x10036f9c], esi
pop edi
pop esi
mov byte [0x10036f98], 1
mov eax, 1
pop ebp
add esp, 0xc0
ret
cmp al, 1
jne 0x10004c3e
cmp dword [0x10036f9c], esi
je 0x10004c3e
mov dword [0x10036fa8], esi
mov byte [0x10036f98], 3
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc0
ret
pop edi
pop esi
mov byte [0x10036f98], 0
xor eax, eax
pop ebp
add esp, 0xc0
ret
Function at 0x10004cf0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.10010280
mov ecx, dword [esp + 0x1004]
push ebx
push esi
lea eax, [esp + 0x1010]
push edi
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov edi, 0x10030470
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
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 + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1000
ret

Function at 0x10004e20
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x1003703c]
test eax, eax
jne 0x10004e52
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10004e49
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003703c], eax
mov eax, dword [0x1003703c]
test eax, eax
je 0x10004e6c
push esi
mov esi, dword [esp + 8]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
push esi
call dword [0x1003703c]
pop esi
ret

Function at 0x10004ed0
Capabilities:
Delete file

Disassembly:
sub esp, 0x114
push ebx
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x14]
push ecx
xor esi, esi
push edx
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.10004c60
mov ebx, eax
add esp, 0x10
cmp ebx, esi
je 0x10004fd6
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push edi
Function at 0x10004ff0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x34]
push ebx
push esi
push edi
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005151
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [sym.imp.MSVCRT.dll_localtime]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], eax
call edi
add esp, 8
test eax, eax
jne 0x1000504a
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov edx, dword [esp + 0x44]
mov ecx, dword [eax + 8]
add ecx, edx
mov edx, dword [eax + 4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
add edx, ecx
push eax
mov dword [eax + 4], edx
call dword [sym.imp.MSVCRT.dll_mktime]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], eax
push edx
call edi
add esp, 8
test eax, eax
jne 0x10005082
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov cx, word [eax + 0x14]
mov dx, word [eax + 0x10]
add cx, 0x76c
inc dx
mov word [esp + 0x2c], cx
mov cx, word [eax + 0x18]
mov word [esp + 0x2e], dx
mov dx, word [eax + 0xc]
mov word [esp + 0x30], cx
mov cx, word [eax + 8]
mov word [esp + 0x32], dx
mov dx, word [eax + 4]
mov ax, word [eax]
mov word [esp + 0x34], cx
mov word [esp + 0x36], dx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
mov word [esp + 0x40], ax
mov word [esp + 0x42], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1000510a
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
jmp 0x10005134
mov edi, dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [esp + 0x24]
lea eax, [esp + 0xc]
push edx
push eax
call edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x10005160
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
or ebx, 0xffffffff
push esi
push edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x10005226
push eax
push eax
push 3
push eax
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x10005233
cmp edi, ebx
je 0x10005240
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x100051ce
or eax, 0x80000000
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100051e8
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
pop edi
mov eax, ebx
mov dword [edx], esi
pop esi
pop ebx
pop ecx
ret
add eax, 0x400
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x1000521f
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov ebx, 2
add dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
pop edi
mov eax, ebx
mov dword [edx], esi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebx
mov dword [ecx], esi
pop esi
pop ebx
pop ecx
ret

Function at 0x100058e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x108
xor eax, eax
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
push str..FAT32__s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x1c]
push edx
call fcn.10005390
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esi + 4]
add esp, 0x10
test eax, eax
je 0x10005936
push eax
call ebp
mov dword [esi + 4], 0
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test edi, edi
mov dword [esi + 4], eax
jne 0x10005960
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x1000597c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x108
ret 8
push eax
call fcn.100052b0
mov eax, dword [esi + 4]
push 1
push eax
call fcn.10005320
mov eax, dword [esp + 0x128]
add esp, 0xc
test eax, eax
jne 0x100059e5
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100059b2
mov ecx, eax
call fcn.10005440
jmp 0x100059b4
xor eax, eax
mov dword [esi + 0x190], eax
lea ecx, [esp + 0xc]
mov dword [eax + 4], esi
mov edx, dword [esi + 0x190]
push ecx
push 0
push edx
push 0x10005a00
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x108
ret 8