joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e59b
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x1000e5d3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x1000e6ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x1000e653
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000e5c1
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*8 + 0x1004fc00]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x1000e684
mov ecx, dword [ebp - 0x18]
or ch, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000e6c8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x1000e6ad
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
jmp 0x1000e6c8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
test ecx, ecx
je 0x1000e6c8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jbe 0x1000e6e7
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000e5c1
mov esp, ebp
pop ebp
ret
Function at 0x100107b2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x10010760
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1001365d
add esp, 0x18
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10010868
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
push 0x128
call fcn.10011f44
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x128
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001090c
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call fcn.10016c80
add esp, 8
test eax, eax
jne 0x100108d6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1001090f
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1001090c
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1001090a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
jmp 0x1001090f
jmp 0x100108d6
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10010913
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027540
push 0x10013050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed0
push ebx
push esi
push edi
push 0x1005010c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
push str.GetThreadDesktop
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x140], eax
push 0x1005015c
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
push 0x1005016c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
push str.GetCurrentThreadId
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
call dword [ebp - 0x1c]
push eax
call dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
push 0x100
lea eax, [ebp - 0x13c]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x100109f0
mov dword [ebp - 0x28], 0
jmp 0x10010a0e
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x140]
test eax, eax
jne 0x10010a07
mov dword [ebp - 0x28], 0
jmp 0x10010a0e
mov eax, dword [ebp - 0x24]
push eax
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10010a1c
jmp 0x10010a3d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010a51
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027550
push 0x10013050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x44], 0x4f
mov byte [ebp - 0x43], 0x70
mov byte [ebp - 0x42], 0x65
mov byte [ebp - 0x41], 0x6e
mov byte [ebp - 0x40], 0x49
mov byte [ebp - 0x3f], 0x6e
mov byte [ebp - 0x3e], 0x70
mov byte [ebp - 0x3d], 0x75
mov byte [ebp - 0x3c], 0x74
mov byte [ebp - 0x3b], 0x44
mov byte [ebp - 0x3a], 0x65
mov byte [ebp - 0x39], 0x73
mov byte [ebp - 0x38], 0x6b
mov byte [ebp - 0x37], 0x74
mov byte [ebp - 0x36], 0x6f
mov byte [ebp - 0x35], 0x70
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.OpenDesktopA
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push str.CloseDesktop
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x10010b24
push 0x1ff
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x10010b33
push 0x1ff
push 0
push 0
call dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10010b42
mov dword [ebp - 0x20], 0
jmp 0x10010b60
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10010913
add esp, 4
test eax, eax
jne 0x10010b60
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10010b6e
jmp 0x10010b7f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010d86
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x20], 1
push 0x10050220
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
push str.OpenProcessToken
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
push str.AdjustTokenPrivileges
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push str.LookupPrivilegeValueA
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x10050274
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
push str.GetCurrentProcess
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x38]
push ecx
push 0x28
call dword [ebp - 0x30]
push eax
call dword [ebp - 0x34]
test eax, eax
jne 0x10010e16
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
and eax, 0xff
jmp 0x10010ea7
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp + 0xc]
neg edx
sbb edx, edx
and edx, 2
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [ebp - 4]
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [ebp - 0x28]
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
push str.GetLastError
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
call dword [ebp - 8]
test eax, eax
je 0x10010e75
mov byte [ebp - 0x20], 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x10010e8f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], 0
je 0x10010e9f
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov esp, ebp
pop ebp
ret
Function at 0x100115dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100115fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100115fe
xor eax, eax
jmp 0x10011603
mov eax, 1
pop ebp
ret

Function at 0x100122a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100122c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100163d1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100122ea
test byte [esp + 8], 2
je 0x100122ea
call fcn.10016444
mov dword [eax], 0xd
call fcn.1001644d
mov dword [eax], 5
jmp 0x100122c3
xor eax, eax
ret
Function at 0x4c04f7
Capabilities:
Encode data using xor

Disassembly:
sub al, 0x4c
fdivp st(1)
scasb al, byte es:[edi]
xchg byte [0x453f430e], dl
mov eax, dword [0x2015b75d]
rcr esp, cl
pop ecx
cmp eax, 0xced0c2d1
mov dl, bh
in al, dx
or eax, dword [edx + ebp*8]
pop eax
popfd
xchg ebx, eax
out dx, al
fisttp dword [esi - 0x33]
imul esp, eax, 0x6a
salc
fbld tbyte [esi - 0x58]
ret 0x1d5a
enter 0x7408, 0xffffffffffffffd3
jnp 0x4c048b
pop ss
pop esp
xchg edx, eax
push ds
cmp byte [eax], ch
pop dword [0xcd9e8a33]
test al, 0xb1
fsqrt
lodsb al, byte [esi]
cli
popal
xor byte [edi], bl
pushfd
lcall 0x8ebe, 0xba433b58
xor byte [ebx + 0x4a], dh
inc edi
les ecx, [edx]
mov eax, dword [edi]
lahf
fdivr qword [ecx + 0x4b7f83f3]
loop 0x4c04ff
dec edi
ret 0xab4b
Function at 0x502df7
Capabilities:
Encode data using xor

Disassembly:
push ecx
jg 0x502e39
jne 0x502e7a
mov bl, 0x97
aaa
retf
fxch st(5)
call 0xd0513d49
sbb eax, 0x9b2d82fd
test dword [ecx], edx
std
mov byte [0x3621794b], al
stosb byte es:[edi], al
pop ecx
xor esp, dword [ecx + 0x51942dfa]
dec esp
dec esp
sub eax, 0x4c4c5194
sub esi, dword [edx]
leave
mov bh, pe_nt_image_headers32
fild qword [ebp + 0xc1ffe3b]
pop ds
adc eax, 0xeb03eece
mov ecx, 0x62eeea98
mov edi, ebp
mov ecx, 0xd5cb497d
and dword [eax + 0x1a], esi
cmc
pushfd
rcr ecx, cl
add bh, byte [0x5ed1eccd]
xchg ebx, eax
mov eax, dword [0xacf5ed99]
dec ebp
jecxz 0x502edf
scasb al, byte es:[edi]
adc ebx, dword [eax + 0x5323cf7]
mov bl, 0x1d
xor ebp, esp
aas
sbb al, 0x43
sbb eax, 0x1c3fec33
inc ebx
mov ebp, 0x52069793
jecxz 0x502e20
sbb dword [edx + 0x35afe525], 0xb57f727a
inc esp
sbb eax, 0xa9ca1463
and byte [ebp + 0x17], cl
push cs
aaa
push edi
fisttp dword [eax - 8]
cmp ebp, ebp
cli
outsb dx, byte [esi]
std
ja 0x502f28
out dx, eax
mov dl, 0x7b
add esp, dword [ebx]
xchg esi, eax
and ebp, dword [ebx + esi - 0x4e]
jmp 0x6cb42029
or byte [esi - 0x1d], 0x1d
inc ecx
cli
or byte [edx - 0xab9db9b], cl
fdiv qword [ebx]
add cl, ah
adc al, 0x5b
fcom st(6)
or eax, 0xcfca84f
sbb byte [ebx], dl
or al, 0x4d
nop
jno 0x502f4f
sal dword es:[ebp - 0x23fecbd3], 0x51
in al, 0xb7
cld
cli
stosd dword es:[edi], eax
mov al, byte [0x72f59f07]
fstp st(3)
out dx, al
mov bh, 0xce
push esp
add byte [ebp + 0x6024ed0b], bl
mov al, byte [0x4c4e99d7]
mov esp, 0x69de85c1
dec ecx
mov al, 0xdd
xchg ecx, eax
movsd dword es:[edi], dword [esi]
pushfd
xor byte [ecx], al
pop ebp
in al, dx
push esp
cld
push esp
xchg esi, eax
outsd dx, dword [esi]
and al, 0x8e
add byte [esi + 0x33], ah
mov edx, 0xc4e13077
xor di, word [edx - 0x3b1ecf89]
add cl, byte [ecx - 0x35]
sar byte [ecx], 0xfc
or ah, byte [ebx + 0x715dbca2]
test dword [ebx], esi
js 0x502fc1
mov ecx, 0x41dad38a
ror byte [ecx + 0xd], 0xcc
dec esp
and edi, dword [0xceb2a132]
add eax, 0xee114a92
xchg edx, eax
dec edx
adc esi, ebp
sal byte [edx + 0x4d], cl
loope 0x502fa2
shr byte [esi + ebp*4], cl
ror dword [edi + 0x1b], 0x23
push ss
dec eax
pop ebp
jbe 0x502f6e
push ebx
pop esp
mov cl, byte [edx]
scasb al, byte es:[edi]
jg 0x502f85
jo 0x502f3a
xchg edx, eax
test al, 3
dec ebp
mov bl, 0x71
movsd dword es:[edi], dword [esi]
pop esp
outsb dx, byte [esi]
mov ah, 0x55
popfd
mov cl, byte [eax + 0x37c166df]
push edi
imul ebp, esp, 0xf01e5381
in al, dx
aaa
das
sub ecx, dword [ebx - 0x66832e5c]
cdq
dec esp
in eax, dx
jecxz 0x502f62
jae 0x503016
test byte [0xd3697ab1], bl
imul ecx, dword [edx + ecx*8 + 0x2d4e8fc3], 0xd10665a7
and edi, dword [ebx - 0x34b96e82]
pushfd
lcall 0x8cef, 0x20d1a697
in eax, dx
xchg edi, eax
cmpsb byte [esi], byte es:[edi]
shl dword [eax], 1
out dx, eax
mov ebp, gs
xor al, 0x98
mov ah, 0xe3
mov edi, 0x5a535dd6
cmp bh, byte [edi + 7]
je 0x502fc3
invalid
mov al, byte [0xfda31f70]
adc ebp, dword [ecx + 0x61]
mov al, 0xbf
or byte [ebx + 0x60d5a2c8], 0xf0
aaa
nop
ret 0x86a9
Function at 0x60b1f8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
arpl di, sp
in eax, 0x12
adc eax, 0xe2069a6
push cs
rcl dword [edi + 0x7641e440]
adc al, 0x7e
in al, 0x56
dec edx
scasb al, byte es:[edi]
add dh, ch
insb byte es:[edi], dx
test dword [ebx + edx*4], eax
pushfd
stosd dword es:[edi], eax
pushfd
inc esp
xor eax, 0xfdd40934
clc
aaa
stc
insd dword es:[edi], dx
outsd dx, dword [esi]
pop edi
fdiv dword [ecx + 0xa]
sub dword [eax + ebp*8], 0x69d8e5e3
je 0x60b200
bound edi, qword [ebx - 0x63]
enter 0x2f81, 0xffffffffffffff95
sbb eax, 0x3e994125
or dl, dh
xor al, 7
pop ebp
mov dh, 0x78
rol dword [edi*4 - 0x57b4caec], 0xa9
int 0x11
test dword [esi - 0x2d], esp
sahf
sub edi, dword [eax - 0x7e872be5]
ret

Function at 0x632f16
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
sub dword [edx], esp
inc edi
cdq
add al, 0x62
test al, 0xf5
add dh, ah
call 0x59881451
invalid

Function at 0x64df8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x658368
cmp edx, dword [eax]
je 0x64dfaf
add eax, 8
inc ecx
cmp eax, 0x6583f8
jl 0x64dfa0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x658368]
jne 0x64e0dd
mov eax, dword [0xa5bcc0]
cmp eax, 1
je 0x64e0b7
test eax, eax
jne 0x64dfe0
cmp dword [0x658294], 1
je 0x64e0b7
cmp edx, 0xfc
je 0x64e0dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64e017
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064e970
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064ee00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64e05a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064ee00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x653e24
push edi
call fcn.00650cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064e970
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064e980
lea eax, [ebp - 0xa0]
push 0x653e04
push eax
call fcn.0064e980
push dword [esi + 0x65836c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064e980
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00650c44
add esp, 0x2c
pop edi
jmp 0x64e0dd
lea eax, [ebp + 8]
lea esi, [esi + 0x65836c]
push 0
push eax
push dword [esi]
call fcn.0064ee00
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]
pop esi
leave
ret
Function at 0x1000b223
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000b232
pop dword [ebp - 0x20]
mov eax, 0x1000b232
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xb1a5c62b
add dword [ebp - 0x30], 0x9cac7f20
mov dword [ebp - 0x2c], 0x96cc44be
add dword [ebp - 0x2c], 0x9b670787
mov dword [ebp - 0x28], 0x1b0904f
sub dword [ebp - 0x28], 0xb5644c21
mov dword [ebp - 0x24], 0xb470f52f
sub dword [ebp - 0x24], 0xb470f52f
lea eax, [ebp - 0x30]
push eax
mov eax, 0x1c46bd87
sub eax, 0xc446d03
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x1a1bde5d
sub dword [ebp - 0x30], 0xa5a97507
mov dword [ebp - 0x2c], 0xfa9c018f
add dword [ebp - 0x2c], 0x46d05fe6
mov dword [ebp - 0x28], 0x886e0080
sub dword [ebp - 0x28], 0x24fe9414
mov dword [ebp - 0x24], 0x1a81af69
sub dword [ebp - 0x24], 0x1a81af69
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xefd490e0
sub eax, 0xdfd24064
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38acb
push 0
call eax
mov ecx, 0x3d067ef5
add ecx, 0xc2f9bcab
xor ebx, ebx
add ebx, eax
mov esi, 0x514c92b
add esi, 0xaee42d5
add esi, dword [ebp - 0x20]
mov edi, 0x58b5295f
mov edx, dword [esi]
sub dword [ebp - 0x10], 0xc19aaf27
xor edx, edi
xor dword [ebp - 0x1c], 0x5a9711ab
mov dword [ebx], edx
add dword [ebp - 0x18], ebx
add ebx, 4
add esi, 4
loop 0x1000b34b
add eax, 0x87c7e2df
add eax, 0x7838fe74
xor ebx, ebx
add ebx, eax
add eax, 0xf8104bd5
add eax, 0x7efb430
mov ecx, 0x38a4c81d
add ecx, 0xd75b37e3
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1000b223
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1000b223
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1000b223
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000b223
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10

Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1000b223
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8