joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300cb5e1
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
push esi
push edi
call fcn.300cb4e5
pop ecx
pop ecx
add eax, edi
pop edi
pop esi
ret

Function at 0x300d002a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x14], 2
jne 0x300d009a
cmp dword [ebp - 0x20], 5
ja 0x300d005a
jne 0x300d009a
cmp dword [ebp - 0x1c], 1
jb 0x300d009a
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp + 0x70]
push eax
push 0
push 0x4a
call esi
test eax, eax
je 0x300d0095
cmp dword [ebp + 0x70], 1
jne 0x300d0095
push 0
lea eax, [ebp + 0x74]
push eax
push 0
push 0x200a
call esi
test eax, eax
je 0x300d0095
cmp dword [ebp + 0x74], 2
jne 0x300d0095
xor eax, eax
inc eax
jmp 0x300d0097
xor eax, eax
pop esi
jmp 0x300d009c
xor al, al
add ebp, 0x78
leave
ret

Function at 0x300d1bb3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xcc
push ebx
push edi
mov ebx, ecx
push 0xe4
mov dword [0x302a765c], ebx
call fcn.300367dc
test eax, eax
pop ecx
je 0x300d1be4
push 0
mov ecx, eax
call fcn.300cf1ab
mov edi, eax
jmp 0x300d1be6
xor edi, edi
test edi, edi
je 0x300d1cd4
push edi
call fcn.300fd303
pop ecx
lea ecx, [ebp + 0x48]
call fcn.30031759
lea eax, [ebp + 0x48]
push eax
mov ecx, edi
call fcn.300fd303
test al, al
je 0x300d1c75
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x58]
call fcn.30031643
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x68]
call fcn.30031643
push str.Macromed
lea ecx, [ebp + 0x68]
call fcn.300fd303
push 0x3023b70c
lea ecx, [ebp + 0x68]
call fcn.300fd303
lea eax, [ebp + 0x68]
push eax
push edi
mov ecx, ebx
call fcn.300fd303
test al, al
jne 0x300d1c5a
lea eax, [ebp + 0x58]
push eax
push edi
mov ecx, ebx
call fcn.300fd303
lea eax, [ebp + 0x68]
push eax
mov ecx, ebx
call fcn.3001a779
lea ecx, [ebp + 0x68]
call fcn.300315be
lea ecx, [ebp + 0x58]
call fcn.300315be
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.3022b3a0
add esp, 0xc
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], esi
mov esi, dword [sym.imp.kernel32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x300d1cae
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x94
call esi
test eax, eax
je 0x300d1cc3
cmp dword [ebp - 0x44], 2
jb 0x300d1cc3
jne 0x300d1cbc
cmp dword [ebp - 0x50], 5
jb 0x300d1cc3
mov byte [ebx + 0x8f5], 1
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [ebp + 0x48]
call fcn.300315be
pop esi
pop edi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x300d2c1b
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
je 0x300d2c3a
mov dword [esi], 0x3023c880
mov dword [esi + 0x20], 0x30234df4
push ebp
push ebx
mov ecx, esi
call fcn.300fd303
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], str.C_r0K_r0S_r0__r0c_r0n_r0y_r0
mov eax, dword [esi]
mov eax, dword [eax + 4]
push str.MacromediaMutexOmega
lea ecx, [eax - 0x20]
mov dword [eax + esi - 4], ecx
push 1
push ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.kernel32.dll_CreateMutexA]
cmp eax, ebx
mov ebp, dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x14], eax
je 0x300d2c8f
call ebp
cmp eax, 0xb7
jne 0x300d2c8f
mov cl, 1
jmp 0x300d2c91
xor cl, cl
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x300d2d16
cmp cl, bl
je 0x300d2ca9
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x300d2d16
push 0x3023c854
mov edi, 0xfc10
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
call ebp
mov ebp, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x300d2d0d
push edi
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x300d2d0d
cmp ebp, 0xb7
setne cl
push ecx
push eax
mov ecx, esi
call fcn.300395e8
mov ecx, esi
call fcn.30039620
test al, al
jne 0x300d2d0d
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [esi + 8], ebx
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp dword [esi + 8], ebx
pop ebp
jne 0x300d2d3c
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
je 0x300d2d2f
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x300d2d3c
push eax
call edi
mov dword [esi + 0x14], ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x300d497b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x300d49ad
xor eax, eax
inc eax
cmp dword [ebp - 0x18], 5
ja 0x300d49af
jne 0x300d49ad
cmp dword [ebp - 0x14], eax
jae 0x300d49af
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x300d829f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
mov dword [esi], 0x3023cd18
je 0x300d82b3
call fcn.300fd303
lea eax, [esi + 0xc8]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
lea ecx, [esi + 0xbc]
call fcn.300046b5
lea ecx, [esi + 0xb0]
call fcn.300046b5
lea ecx, [esi + 0x10]
pop esi
jmp fcn.300d4e5e

Function at 0x300d835a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x300d83b6
push dword [esi]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x300d83b0
push dword [esi]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x300d83b0
push edi
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edi, eax
push edi
call fcn.3022ba80
inc eax
push eax
call fcn.300367dc
mov ebx, eax
push edi
push ebx
call fcn.3022bdd0
add esp, 0x10
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x300d865f
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push edi
xor edi, edi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x300d8699
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 1
call esi
test eax, eax
jne 0x300d868f
push 0xd
call esi
test eax, eax
jne 0x300d868f
push dword [ebx]
call esi
test eax, eax
je 0x300d8692
xor edi, edi
inc edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x300d89d1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push 8
push dword [esp + 0x14]
mov edi, ecx
call fcn.300d8511
push dword [esp + 0xc]
call fcn.3022ba80
pop ecx
inc eax
push eax
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x300d8a38
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
push dword [esp + 0xc]
push eax
call fcn.3022bdd0
pop ecx
pop ecx
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x300d8a38
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.kernel32.dll_GetLastError]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret 8
Function at 0x300ddee6
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x1c], 0xca
jne 0x300ddf1c
push esi
call fcn.300fd303
test eax, eax
pop ecx
jl 0x300ddf91
cmp byte [esi + 0x48], 0
je 0x300ddf15
xor eax, eax
mov dword [esi + 0x1c], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x1c], 0xcb
mov eax, dword [esi + 0x1c]
cmp eax, 0xcb
jne 0x300ddf93
mov eax, dword [esi + 0x198]
cmp byte [eax + 0x10], 0
je 0x300ddf80
mov eax, dword [esi + 8]
test eax, eax
je 0x300ddf3d
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x198]
push esi
call dword [eax]
test eax, eax
pop ecx
jl 0x300ddf91
je 0x300ddf7c
cmp eax, 2
je 0x300ddf80
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x300ddf32
cmp eax, 3
je 0x300ddf63
cmp eax, 1
jne 0x300ddf32
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x300ddf32
mov ecx, dword [esi + 0x124]
add dword [eax + 8], ecx
jmp 0x300ddf32
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x84]
mov dword [esi + 0x8c], eax
call fcn.300dddfc
pop esi
ret
cmp eax, 0xcc
je 0x300ddf8c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x1c]
push 0xffffffffffffffec
mov dword [eax + 0x18], ecx
pop eax
pop esi
ret

Function at 0x300ef521
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x14]
jmp 0x300ef542
cmp dword [eax + 0x20], 0
je 0x300ef532
cmp dword [eax + 0x24], 5
je 0x300ef538
cmp dword [eax + 0x24], 4
jne 0x300ef53f
mov dword [eax + 0x24], 6
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x300ef526
jmp fcn.300ef0c4

Function at 0x300fd303
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x300fd312
pop dword [ebp - 0x2c]
mov eax, 0x300fd312
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x699e4
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4c74e3a8
add ecx, 0xb38b5cea
xor edi, edi
add edi, eax
mov ebx, 0x30396000
add ebx, dword [ebp - 0x2c]
mov edx, 0xaebc64b7
sub edx, 0x68acad8c
mov dword [ebp - 8], 0x8c5becb2
mov esi, dword [ebx]
add dword [ebp - 0x18], 0x3182b681
xor esi, edx
add dword [ebp - 0x1c], edi
mov dword [edi], esi
add dword [ebp - 0x20], 0x393dbf16
add edi, 0xbe0544c5
add edi, 0x41fabb3f
add ebx, 0x5356f264
sub ebx, 0x5356f260
loop 0x300fd363
add eax, 0x91e8071e
add eax, 0x6e18edfd
xor ebx, ebx
add ebx, eax
add eax, 0x7c9311d5
add eax, 0x836cee30
mov ecx, 0x54ecdbf9
sub ecx, 0x24ecdbf9
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x30103130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push edi
mov dword [esi], 1
call ebx
mov ebp, dword [sym.imp.kernel32.dll_GetTickCount]
and dword [esp + 0x10], 0
call ebp
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
push edi
je 0x30103188
call ebx
push 0x14
call dword [sym.imp.kernel32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jb 0x30103162
jmp 0x30103192
mov dword [esp + 0x14], 1
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x3011852b
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x30243b90
mov dword [esi + 0x1c], 0x30243b78
call fcn.30118385
lea ecx, [esi + 0x120]
call fcn.3013409e
mov ecx, esi
pop esi
jmp fcn.300c2bed

Function at 0x3012b8ce
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
test eax, eax
mov dword [esi], 0x30246288
mov dword [esi + 0x1c], 0x30246270
je 0x3012b8ee
and dword [eax + 0x34], 0
mov byte [esi + 0x21], 1
call fcn.3013409e
mov ecx, esi
pop esi
jmp fcn.300c2bed

Function at 0x3013460f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x118]
mov eax, dword [edi]
test eax, eax
mov dword [esi], 0x30247ec8
mov dword [esi + 0x1c], 0x30247eac
je 0x30134636
push eax
call fcn.300367ec
and dword [edi], 0
pop ecx
mov ecx, esi
call fcn.30134163
lea ecx, [esi + 0x120]
call fcn.3013409e
pop edi
mov ecx, esi
pop esi
jmp fcn.300c2bed
Function at 0x30150340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x2c]
add edx, edx
add esi, esi
test ecx, ecx
mov dword [esp + 0xc], edx
jle 0x301504d9
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
push ebp
mov eax, ebx
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x28]
lea edx, [edx + eax*4]
mov ebp, edi
sub ebp, esi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
add eax, ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jmp 0x301503b1
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [edx*4 + 0x302497f0]
lea eax, [edi + esi*2]
push eax
lea edx, [esi + edi]
push edx
push edi
push ebp
mov dword [esp + 0x30], ecx
call fcn.300fd303
lea eax, [edi + esi*2 + 0x10]
push eax
lea ecx, [esi + edi + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [edi + 0x10]
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.300fd303
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
lea eax, [ebx + esi*2]
push eax
add ebp, 0x20
lea ecx, [esi + ebx]
push ecx
mov dword [esp + 0x48], ebp
mov ebp, dword [edx*4 + 0x302497f0]
mov edx, dword [esp + 0x60]
push ebx
push edx
mov ecx, ebp
add edi, 0x20
call fcn.300fd303
lea eax, [ebx + esi*2 + 0x10]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esi + ebx + 0x10]
push ecx
lea edx, [ebx + 0x10]
push edx
add eax, 0x10
push eax
mov ecx, ebp
call fcn.300fd303
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x58]
add eax, 0x20
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x70]
lea edx, [eax + ecx*2]
add esp, 0x40
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x48]
push eax
mov ecx, ebp
add ebx, 0x20
call fcn.300fd303
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx*2]
push edx
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ecx, ebp
call fcn.300fd303
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov eax, 0x10
add ebp, eax
add esp, 0x20
mov dword [esp + 0x30], ebp
add edx, eax
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x50]
add ecx, eax
add ebp, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x301503ad
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x301ae930
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
push edi
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x30], eax
mov byte [esi + 0x110], 0
mov byte [esi + 0x119], 1
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
lea edi, [esi + 0x150]
mov ebx, 0x28
mov ecx, dword [edi + 0xa0]
call fcn.301af9e0
mov ecx, dword [edi]
call fcn.301af9e0
mov ecx, dword [edi + 0x140]
call fcn.301af9e0
add edi, 4
dec ebx
jne 0x301ae963
mov edi, dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
push 0
push 1
lea ebx, [esi + 0x348]
push ebx
call edi
test eax, eax
je 0x301ae9b2
mov ebp, dword [sym.imp.kernel32.dll_Sleep]
push 0
call ebp
push 0
push 1
push ebx
call edi
test eax, eax
jne 0x301ae9a3
mov edi, dword [esi + 0x34c]
test edi, edi
je 0x301ae9e4
lea ebp, [esi + 0x11c]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
push ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.301ade60
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x301ae9c2
push 0
push ebx
call dword [sym.imp.kernel32.dll_InterlockedExchange]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edi, dword [esi + 0x28]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esi + 0x2c]
sub eax, ebp
sbb ecx, ebx
add edi, eax
adc edx, ecx
push 0xa
mov ecx, esi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edx
call fcn.300fd303
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x301aef80
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x301af000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0xc]
neg cl
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0
sbb ecx, ecx
and ecx, 0xffffffe0
add ecx, 0x40
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
pop ecx
ret 0xc
Function at 0x3022dab7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x3026ff80
call fcn.3022c09c
push 8
call fcn.300fd303
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x30378c84], esi
jne 0x3022daeb
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x30378c80], esi
mov al, byte [ebp + 0x10]
mov byte [0x30378c7c], al
cmp dword [ebp + 0xc], edi
jne 0x3022db35
cmp dword [0x3037a2f0], edi
je 0x3022db25
mov eax, dword [0x3037a2ec]
sub eax, 4
mov dword [0x3037a2ec], eax
cmp eax, dword [0x3037a2f0]
jb 0x3022db25
mov eax, dword [eax]
cmp eax, edi
je 0x3022db06
call eax
jmp 0x3022db06
push 0x30274034
mov eax, 0x3027402c
call fcn.3022da9f
pop ecx
push 0x3027403c
mov eax, 0x30274038
call fcn.3022da9f
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.3022db66
cmp dword [ebp + 0x10], edi
jne 0x3022db74
mov dword [0x30378c84], esi
push dword [ebp + 8]
call fcn.3022da5d
xor edi, edi
xor esi, esi
inc esi
call fcn.3022c0d7
ret
Function at 0x3022f681
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x302a3bc0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x3022f6b2
xor eax, eax
jmp 0x3022f83b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x30379fa0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x3022f6ee
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.300fd303
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x3022f7c9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x3022f807
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x3022f752
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x3022f743
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x3022f723
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x3022f792
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x3022f79b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x3022f714
jmp 0x3022f79d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x3022f836
cmp dword [ebp - 0x6c], edi
je 0x3022f807
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x3022f7fc
call fcn.3022dc1c
mov dword [eax], 9
call fcn.3022dc25
mov dword [eax], esi
jmp 0x3022f831
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x3022f7f1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x3022f79d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x3022f79d
push dword [ebp - 0x6c]
call fcn.3022dc2e
pop ecx
jmp 0x3022f831
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x3022f81f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x3022f81f
xor eax, eax
jmp 0x3022f839
call fcn.3022dc1c
mov dword [eax], 0x1c
call fcn.3022dc25
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x3022f839
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.3022c9c7
add ebp, 0x3a0
leave
ret
Function at 0x3022fc49
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x302a3bc0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x302a4570]
je 0x3022fc7e
inc eax
cmp eax, 0x13
jb 0x3022fc6f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x302a4570]
jne 0x3022fda4
mov eax, dword [0x30378cbc]
cmp eax, 1
je 0x3022fd7c
cmp eax, edx
jne 0x3022fcae
cmp dword [0x302a400c], 1
je 0x3022fd7c
cmp ecx, 0xfc
je 0x3022fda4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x3022fce4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.3022bdd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.3022ba80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x3022fd18
mov eax, edi
push eax
call fcn.3022ba80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x30235540
push edi
call fcn.3022bbe0
add esp, 0x10
push edi
call fcn.3022ba80
push dword [esi + 0x302a4574]
mov ebx, eax
call fcn.3022ba80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.3022bf60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.3022bdd0
push edi
push ebx
call fcn.3022bde0
push 0x302706d8
push ebx
call fcn.3022bde0
push dword [esi + 0x302a4574]
push ebx
call fcn.3022bde0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.300fd303
add esp, 0x2c
jmp 0x3022fda4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x302a4574]
push dword [esi]
call fcn.3022ba80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.3022c9c7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x30230c10
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x302a3bc0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.30230be0
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.3022b3a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x30230c72
cmp dword [ebp - 0x1c], 5
jb 0x30230c8a
jmp 0x30230c86
cmp dword [ebp - 0x10], 1
jne 0x30230c8a
cmp dword [ebp - 0x1c], 4
ja 0x30230c86
jne 0x30230c8a
cmp dword [ebp - 0x18], 0
jbe 0x30230c8a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x30270f4c
call fcn.3007819c
test eax, eax
jge 0x30230cab
mov byte [0x302a5508], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.3022c9c7
add ebp, 0x78
leave
ret