joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10e80f5d
Capabilities:
Packed with generic packer

Disassembly:
mov dword [esp], ebx
pop word [esp]
pushal
jmp 0x10e80f99
mov word [esp + 0x16], ax
lea esp, [esp + 2]
mov dword [esp + 0x1c], esi
push ebp
mov dword [esp + 0x1c], edi
lea esp, [esp + 0x1c]
jmp 0x10e80f83

Function at 0xd1d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d1d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd1d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd1d06a
add dl, dl
jne 0xd1d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd1d0dc
xor eax, eax
add dl, dl
jne 0xd1d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd1d17d
add dl, dl
jne 0xd1d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd1d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd1d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd1d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd1d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd1d075
mov eax, 1
add dl, dl
jne 0xd1d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd1d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd1d0e1
sub eax, ebx
mov ebx, 1
jne 0xd1d128
mov ecx, 1
add dl, dl
jne 0xd1d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd1d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd1d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd1d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd1d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd1d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd1d136
cmp eax, 0x7d00
jae 0xd1d16d
cmp eax, 0x500
jb 0xd1d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd1d075
cmp eax, 0x7f
ja 0xd1d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd1d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd1d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd1d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x42a2a8], 0
push esi
push edi
jne 0x401117
push 1
xor eax, eax
pop esi
lea edi, [ebp - 0x118]
push 0x46
mov dword [0x42a2a8], esi
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401117
push 2
pop ecx
cmp dword [ebp - 0x10c], ecx
jne 0x401117
mov edx, dword [ebp - 0x118]
cmp edx, 4
jbe 0x401117
push 5
pop edi
cmp edx, edi
jne 0x4010cb
cmp dword [ebp - 0x114], 0
jne 0x401082
mov eax, ecx
jmp 0x401110
cmp dword [ebp - 0x114], esi
jne 0x4010bb
mov ax, word [ebp - 8]
test ax, ax
jne 0x401097
push 3
jmp 0x4010ec
cmp ax, si
jne 0x4010a0
push 4
jmp 0x4010ec
cmp ax, cx
jne 0x4010a9
push 6
jmp 0x4010ec
cmp ax, 3
jne 0x4010fe
mov dword [0x42a2a4], 7
jmp 0x4010fe
cmp dword [ebp - 0x114], ecx
jne 0x4010fe
mov dword [0x42a2a4], edi
jmp 0x4010fe
cmp edx, 6
jne 0x4010fe
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x4010de
push 8
jmp 0x4010ec
cmp eax, esi
jne 0x4010e6
push 9
jmp 0x4010ec
cmp eax, ecx
jne 0x4010ef
push 0xa
pop eax
jmp 0x401110
cmp eax, 3
jne 0x4010fe
mov dword [0x42a2a4], 0xb
mov eax, dword [0x42a2a4]
test eax, eax
jne 0x40111c
cmp edx, edi
sbb eax, eax
and al, 0xf5
add eax, 0xc
mov dword [0x42a2a4], eax
jmp 0x40111c
mov eax, dword [0x42a2a4]
pop edi
pop esi
leave
ret

Function at 0x401120
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0041f6b0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
je 0x4011fb
cmp dword [ebp + 0xc], edi
je 0x4011fb
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4011fb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4011fb
mov word [ebp - 0x4008], di
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4011fb
cmp eax, 0x2000
ja 0x4011fb
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011f6
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x4260b4
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011f6
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
dec esi
push 0x42609c
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
jmp 0x4011fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40135e
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x4013e6
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4013e6
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push 0x4260c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x4013e2
lea eax, [ebp - 0x208]
dec esi
push eax
push 0x4260b8
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
mov eax, ebx
jmp 0x4013e8
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4013ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40140d
push 1
pop eax
jmp 0x4014a0
push edi
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x7e]
mov word [ebp - 0x80], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x426100
lea eax, [ebp - 0x80]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x288]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
je 0x40149e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4014a3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40153d
cmp word [esi], 0
je 0x40153d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x4014d1
push 1
pop eax
jmp 0x40153f
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4260b8
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
pop edi
je 0x40153d
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x401532
lea eax, [ebp - 0x208]
push eax
call fcn.004014a3
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40153f
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x401543
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4016bd
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4016bd
and dword [ebp - 0x254], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
mov ax, word [0x42a2b0]
mov ebx, 0x81
mov word [ebp - 0x86c], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x86a]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x42612c
push dword [ebp + 8]
stosw word es:[edi], ax
lea eax, [ebp - 0x86c]
push eax
call esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4016bd
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x426128
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401683
lea eax, [ebp - 0x228]
push 0x426120
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401683
test byte [ebp - 0x254], 0x10
mov ax, word [0x42a2b0]
je 0x40164e
mov word [ebp - 0x45c], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.00401543
jmp 0x401682
mov word [ebp - 0x664], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
call fcn.00401a3c
pop ecx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015d7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4016bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401828
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
push edi
push 0x426154
xor ebp, ebp
push dword [esp + 0x14]
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, ebp
pop ecx
je 0x4018d2
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push edi
mov ebx, eax
call esi
lea ebp, [ebx + 1]
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4018c8
push ebp
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x42614c
push dword [esp + 0x3c]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x4018c1
push ebp
push ebx
push 1
pop ebx
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov dword [esp + 0x10], ebx
push esi
call fcn.0041f68a
pop ecx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
pop ebx
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
Function at 0x401a3c
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401a5b
push 1
pop eax
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push 0x80
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
jne 0x401af4
and word [ebp - 0x20c], ax
push dword [ebp + 8]
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x42615c
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ad8
lea eax, [ebp - 0x20c]
push 0x80
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call ebx
push 1
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
lea eax, [ebp - 0x20c]
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401afd
jmp 0x401b0d
mov dword [ebp - 4], 1
jmp 0x401b0d
push 4
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c99
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x41fb9c
call fcn.0041f700
sub esp, 0x214
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x421db0
push 1
push ebx
push 0x421dc0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401d9c
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x14], 0xffffffff
je 0x401cfb
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push esi
jmp 0x401d09
cmp dword [ebp + 0x18], ebx
je 0x401d0d
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], ebx
pop edi
pop esi
je 0x401d6e
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x421dd0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401d9c
mov eax, dword [ebp - 0x14]
push 2
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x401d9c
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x401dac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
pop ebx
je 0x401dbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], ecx
leave
ret
Function at 0x402231
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22f0
call fcn.0041f6b0
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402378
push edi
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x22ee]
mov word [ebp - 0x22f0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40229a
cmp word [eax], si
je 0x40229a
push eax
push ebx
push 0x4262e4
lea eax, [ebp - 0x22f0]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4022b5
push ebx
push 0x4262d8
lea eax, [ebp - 0x22f0]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25e]
mov word [ebp - 0x260], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x4260b8
lea eax, [ebp - 0x260]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22f0]
push esi
push eax
push ebx
mov dword [ebp - 0x2c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x402375
cmp dword [ebp + 0x10], esi
je 0x402352
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402359
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x402365
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40237c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.0041f6b0
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp edx, ebx
mov dword [ebp - 4], ebx
je 0x4024e2
cmp word [edx], bx
je 0x4024e2
cmp dword [ebp + 0xc], ebx
je 0x4024e2
cmp dword [ebp + 0x10], ebx
je 0x4024e2
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
mov word [ebp - 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4262f4
lea eax, [ebp - 0x428]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1428]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4024e2
mov edx, dword [ebp - 0x10]
push ebx
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
shr edx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
je 0x4024dd
lea eax, [ebp - 0x1428]
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
jmp 0x402434
xor ebx, ebx
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4024cf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4024c8
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4024c8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edi, edi
mov ebx, eax
cmp dword [ebp + 0x10], edi
jle 0x4024cf
mov esi, dword [ebp + 0xc]
push dword [esi]
push ebx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4024c3
inc edi
add esi, 4
cmp edi, dword [ebp + 0x10]
jl 0x4024a9
jmp 0x4024cf
inc dword [ebp - 4]
jmp 0x4024cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp + 8], 4
dec dword [ebp - 0xc]
jne 0x402432
pop esi
mov eax, dword [ebp - 4]
jmp 0x4024e4
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x402e57
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
mov ebx, 0x4263c0
xor ebp, ebp
push 1
push ebx
push ebp
push esi
mov dword [esp + 0x24], ebp
call edi
cmp dword [esi], ebp
jne 0x402e8a
push 0xf0000048
push 1
push ebx
push ebp
push esi
call edi
mov eax, dword [esi]
cmp eax, ebp
je 0x402eb9
push dword [esp + 0x1c]
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402eb0
mov dword [esp + 0x10], 1
jmp 0x402eb9
push ebp
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x403747
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
push 3
cdq
pop ecx
xor esi, esi
idiv ecx
lea eax, [ebx + 2]
mov dword [ebp - 8], edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 8]
pop ecx
mov ecx, eax
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], eax
jle 0x4037f5
push 3
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x403797
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edi]
shr edx, 2
jmp 0x4037e0
cmp edx, 1
jne 0x4037b9
mov eax, dword [ebp - 4]
mov dl, byte [eax + edi - 1]
movzx ebx, byte [eax + edi]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + 0x426020]
jmp 0x4037e6
mov eax, dword [ebp - 4]
cmp edx, 2
jne 0x4037ea
movzx ebx, byte [eax + edi]
mov dl, byte [eax + edi - 1]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + 0x426020]
mov byte [ecx + esi], dl
mov dl, byte [eax + edi]
inc esi
and edx, 0x3f
mov dl, byte [edx + 0x426020]
mov byte [ecx + esi], dl
inc esi
mov ebx, dword [ebp + 0xc]
inc eax
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x403781
cmp dword [ebp - 8], 1
jne 0x403815
mov al, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x426020]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
jmp 0x40382c
cmp dword [ebp - 8], 2
jne 0x403832
mov al, byte [edi + ebx - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x426020]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
and byte [ecx + esi], 0
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x40383d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x403971
cmp dword [ebp + 0xc], eax
je 0x403971
push ebx
push esi
push edi
mov ecx, 0x81
lea edi, [ebp - 0x29a]
mov word [ebp - 0x29c], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call section..text
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 1
cmp eax, 8
pop ebx
jl 0x4038f1
and word [ebp - 0x94], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x92]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x7e
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x426534
push 0x426498
push SysReAllocString
call esi
test eax, eax
jne 0x40390b
lea eax, [ebp - 0x94]
push eax
push 0x42646c
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x40390b
push 0x42643c
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
and word [ebp - 0x6ac], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x6aa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x29c]
push 0
push eax
push SysReAllocString
mov dword [ebp - 8], 0x40e
call esi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40396c
push dword [ebp + 0xc]
lea eax, [ebp - 0x6ac]
push dword [ebp + 8]
push eax
call fcn.00402930
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
xor eax, eax
leave
ret