joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4932c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x5b24c0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5fec10], 1
jge 0x5b252f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x5b2505
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x5b2505
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5b24e2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5b251b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x5b2522
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x5b261f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x5b25f0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x5b25e5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x5b25d9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x5b25e0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x5b261f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x5b261a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5b2603
mov eax, dword [ebx + 8]
jmp 0x5b261f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x5b2611
xor eax, eax
jmp 0x5b261f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5b254f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x589240
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0048fe3d
mov eax, dword [0x5fc02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x5ffaf8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x589418
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x589367
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x589367
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x589345
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x5892c9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5893d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x589438
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x589413
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x589438
jmp 0x5892a2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004911bb
mov esp, ebp
pop ebp
ret
Function at 0x5894d0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0048fe3d
mov eax, dword [0x5fc02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x5ffaf8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x5896bb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x589606
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x589606
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x5895e2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x589559
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x589674
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x5896db
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x5896b6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x5896db
jmp 0x589532
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004911bb
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x403d90
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push ecx
push ecx
push 0x801a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x403eb0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403dc2
sub ecx, edx
lea eax, [ebp - 0x20c]
push edi
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401470
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x403e03
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x403dfa
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x403e1a
push 0x5c
mov byte [ebp - 0x210], 0
push dword [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.00402a10
push str.EasyAntiCheat
mov ecx, esi
call fcn.00402120
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x403e48
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x403e3f
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x403e5f
push 0x5c
mov byte [ebp - 0x210], 0
push dword [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.00402a10
cmp dword [esi + 0x14], 8
mov eax, esi
pop edi
jb 0x403e6a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403e8b
test al, 0x10
je 0x403e8b
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x403e93
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
Function at 0x405180
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x469738], 0
je 0x4051ac
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
mov edx, 0x4600ec
lea ecx, [ebp - 0x20c]
call fcn.00403f70
push 0x4600f0
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00403ff0
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [ebp - 0x20c]
push str.crypt32.dll
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00403ff0
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test edi, edi
je 0x40536d
test esi, esi
je 0x40536d
push str.WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469728], eax
test eax, eax
je 0x40536d
push str.CryptDecodeObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46972c], eax
test eax, eax
je 0x40536d
push str.CryptQueryObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46973c], eax
test eax, eax
je 0x40536d
push str.CryptMsgGetParam
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469718], eax
test eax, eax
je 0x40536d
push str.CertEnumCertificatesInStore
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469744], eax
test eax, eax
je 0x40536d
push str.CertFindCertificateInStore
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469730], eax
test eax, eax
je 0x40536d
push str.CertGetNameStringW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46971c], eax
test eax, eax
je 0x40536d
push str.CertFreeCertificateContext
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469740], eax
test eax, eax
je 0x40536d
push str.CertOpenSystemStoreW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469734], eax
test eax, eax
je 0x40536d
push str.CertCloseStore
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469720], eax
test eax, eax
je 0x40536d
push str.CryptMsgClose
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, byte [0x469738]
test eax, eax
mov edx, 1
mov dword [0x469724], eax
cmovne ecx, edx
pop edi
mov byte [0x469738], cl
mov al, cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
mov cl, byte [0x469738]
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
Function at 0x405390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00405180
test al, al
jne 0x4053c7
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x405507
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405507
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x405507
lea eax, [ebp - 0x298]
mov dword [ebp - 0x260], pe_nt_image_headers32
mov dword [ebp - 0x270], eax
xorps xmm0, xmm0
mov eax, dword fs:[0x30]
mov edx, 0x1110
mov ecx, dword [ebp - 0x260]
mov esi, dword [0x469728]
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x284], xmm0
movlpd qword [ebp - 0x268], xmm0
mov dword [ebp - 0x298], 0x10
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x288], 0x30
mov dword [ebp - 0x274], 1
mov dword [ebp - 0x27c], 2
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x26c], 1
cmp dword [eax + 0xa4], 5
lea eax, [ebp - 0x288]
push eax
cmovne ecx, edx
push 0x467b08
mov dword [ebp - 0x260], ecx
mov ecx, esi
push 0xffffffffffffffff
call dword [0x452268]
call esi
cmp eax, 0x800b0109
je 0x4054c7
xor ebx, ebx
test eax, eax
setne bl
add ebx, 3
jmp 0x4054cc
mov ebx, 4
mov esi, dword [0x469728]
lea eax, [ebp - 0x288]
push eax
push 0x467b08
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x26c], 2
call dword [0x452268]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f76f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x467074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 7
mov word [ebx + 0x18], ax
lea edi, [ebx + 0x34]
mov byte [ebx + 0x30], al
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov dword [ebp - 0x10], edi
mov byte [edi], al
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], al
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 4
lea esi, [edi + 0x50]
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402850
mov dword [esi], eax
mov dword [edi + 0x58], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0xf
mov byte [ebx + 0x90], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0xf
mov byte [ebx + 0xa8], 0
lea esi, [ebx + 0xc0]
mov dword [esi], 0x460770
mov dword [ebp - 0x18], esi
mov dword [esi + 0x68], 0x45fd00
mov byte [ebp - 4], 8
lea edi, [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x45fd20
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
push ecx
push edi
call fcn.0040b3d0
mov dword [ebp - 4], 0xa
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x45fd9c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call fcn.0040b310
mov dword [edi], 0x45fd24
mov byte [edi + 0x48], 0
mov byte [edi + 0x3e], 0
lea eax, [edi + 4]
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x469770]
mov dword [edi + 0x40], eax
mov eax, dword [0x469774]
mov dword [edi + 0x44], eax
mov eax, ebx
mov dword [edi + 0x4c], 0
mov dword [edi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f928
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00408050
test al, al
je 0x4081f4
push 0x3c
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0042d660
add esp, 0xc
mov dword [ebp - 0x68], 0x3c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], 0x40
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], str.runas
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x48], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4081f4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4081f4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4081e1
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x408232
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408228
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40824e
push edx
push ecx
call fcn.0042b435
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
call fcn.0043012a
int3
Function at 0x409b80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fb48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x467074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x18]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
movups xmmword [ebp - 0x30], xmm0
test ecx, ecx
je 0x409c2f
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00409da0
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
push ecx
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00409da0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], 3
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, 0x614
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x409c65
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409c5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c74
push edx
push ecx
call fcn.0042b435
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call fcn.0043012a
int3
Function at 0x40a610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x40a645
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40a683
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x40a683
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop edi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x40a75a
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x40a6ad
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40a6bd
push dword [edi + 0x4c]
push ebx
jmp 0x40a703
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x452268]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x40a75a
cmp eax, 1
jle 0x40a72d
cmp eax, 3
jne 0x40a75a
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00432f1c
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, bx
jne 0x40a75f
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40a74a
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00433943
add esp, 0x10
cmp esi, eax
jne 0x40a75a
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
jne 0x40a66d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret 4