joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402735
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.00402330
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40263c
push edi
push edi
mov dword [0x41b704], esi
mov dword [0x41b708], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41b700], eax
cmp eax, edi
je 0x402790
cmp dword [0x41b750], 2
je 0x402782
call fcn.00408bfd
mov eax, dword [0x41b700]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41b700]
mov ecx, dword [0x41b708]
mov dword [0x41b8a4], edi
cmp ecx, edi
je 0x4027d6
cmp ecx, 1
je 0x4027ca
cmp ecx, 2
je 0x4027c6
cmp ecx, 3
je 0x4027c2
cmp ecx, 0x67
jle 0x4027bd
cmp ecx, 0x6b
jle 0x40283f
push ecx
push 0x14
jmp 0x402810
push 0x12
jmp 0x4027cc
push 0x13
jmp 0x4027cc
push 0x11
push edi
call fcn.00409653
pop ecx
pop ecx
jmp 0x40283f
mov dword [ebp + 8], edi
cmp dword [0x41b8ac], edi
jne 0x40283f
cmp eax, edi
je 0x4027fd
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4027fd
cmp dword [ebp + 8], edi
jne 0x4027fd
xor eax, eax
jmp 0x402844
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402813
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402837
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402829
cmp dword [0x41b754], 0xffffffff
je 0x40283f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409653
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x403061
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40309f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40308c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4030a2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40309f
test al, 0x10
jne 0x40309f
push esi
jmp 0x403082
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x4032f6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040e844
push 0x417bac
lea ecx, [ebp - 0xc]
call fcn.0040e963
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4033d4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040e8a5
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004014f2
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e963
test byte [ebp - 0x260], 0x10
je 0x40339b
push 0x417ba8
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033b3
push 0x417ba0
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033b3
mov ecx, dword [ebp - 0xc]
call fcn.004032f6
jmp 0x4033af
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403401
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403401
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403342
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41b774]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x403401
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403401
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40340b
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403411
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41b8b8], 0
push esi
mov esi, ecx
je 0x40342b
xor eax, eax
inc eax
jmp 0x40346f
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403426
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403468
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403464
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40346f
xor eax, eax
jmp 0x40346f
mov ecx, esi
call fcn.004032f6
pop esi
leave
ret
Function at 0x4038d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x41b710]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x403925
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x40394f
mov esi, dword [ebp + 8]
test esi, esi
je 0x403938
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40394f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4039b9
cmp dword [0x41b714], 0
jne 0x4039b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41b73c]
mov dword [0x41b714], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41b710]
push edi
push 0
push eax
lea eax, [ebp - 0x4c]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x4039ad
push str.SetThreadPreferredUILanguages
push dword [0x41b73c]
call esi
mov ebx, eax
test ebx, ebx
je 0x4039b7
push 0
lea eax, [ebp - 0x4c]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403caf
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ecx
cmp dword [0x41b138], ebx
je 0x403ce2
mov eax, 0x41b138
cmp dword [eax], ecx
je 0x403ce2
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41b138]
cmp dword [eax], ebx
jne 0x403cce
shl esi, 4
cmp dword [esi + 0x41b138], ebx
jne 0x403cf7
mov eax, 0x417a1c
jmp 0x403e6b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x403da7
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 8]
ja 0x403d9e
call edi
test eax, eax
jne 0x403d9e
mov eax, dword [esi + 0x41b144]
test eax, eax
je 0x403d93
mov edi, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403d90
push dword [esi + 0x41b144]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41b144], edi
jmp 0x403da6
push edi
jmp 0x403da1
mov eax, dword [ebp - 4]
mov dword [esi + 0x41b144], eax
jmp 0x403da7
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41b144]
test eax, eax
jne 0x403e6a
mov ebx, dword [esi + 0x41b13c]
cmp dword [esi + 0x41b140], eax
je 0x403ddf
call fcn.00403c54
cmp eax, dword [0x4189f8]
jne 0x403ddf
mov ebx, dword [esi + 0x41b140]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41b0fc], 0xffffffff
pop ecx
mov dword [esi + 0x41b144], eax
jne 0x403e4a
and dword [0x41b0fc], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41b710]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403e4a
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41b0fc], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41b144]
push edi
push ebx
push 0
push dword [0x41b0fc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41b144]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ed9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403f2c
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x404284
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], edx
mov esi, ecx
call fcn.0040e820
push 2
mov ecx, esi
call fcn.004041da
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor ebp, ebp
xor edx, edx
mov dword [esi + 4], ebp
mov word [ecx], dx
cmp eax, ebp
jbe 0x4042ce
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004041da
push eax
push ebx
call edi
mov ecx, esi
call fcn.004041bf
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.004041da
push ebp
push dword [esp + 0x14]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.004041bf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40430d
inc ebp
cmp ebp, 0xfff
jl 0x4042d7
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404659
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.0040e844
push 0
lea ecx, [ebp - 0x1c]
call fcn.004041da
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x404697
cmp eax, 0x2f
jne 0x4046c5
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x4046c5
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4046b7
cmp eax, 0x5c
je 0x4046b7
dec esi
test esi, esi
jg 0x4046a4
test esi, esi
je 0x404767
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.00403061
test eax, eax
je 0x4046b3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4046fa
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.004043d1
test eax, eax
je 0x4046fa
xor esi, esi
jmp 0x40478a
mov ecx, edi
call fcn.00403061
test eax, eax
jne 0x404754
push edi
push 0xc
push 1
call fcn.00409653
add esp, 0xc
jmp 0x4046f3
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x404746
jmp 0x404745
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x40474c
cmp eax, 0x2f
je 0x40474c
inc esi
cmp word [edi + esi*2], cx
jne 0x404737
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4046fa
cmp esi, dword [ebp - 4]
jl 0x404714
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4047ae
cmp dword [ebp - 4], 2
jne 0x404797
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x404797
cmp ax, 0x7a
ja 0x404797
cmp word [ebx + 2], 0x3a
jne 0x404797
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4047ae
push ebx
push 0xc
push 1
call fcn.00409653
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cb4
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
push edi
push 1
lea eax, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x1c], edx
mov esi, ecx
call ebx
mov ecx, esi
mov edi, eax
call fcn.0040e820
lea ebp, [edi + 2]
push ebp
mov ecx, esi
call fcn.004041da
inc edi
push edi
push ebp
mov ecx, esi
call fcn.004041da
push eax
push dword [esp + 0x18]
call ebx
mov ecx, esi
call fcn.004041bf
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4053e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41b73c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00415d70
call fcn.00403c54
push 3
pop ecx
call fcn.00403caf
push 0x28
pop ecx
mov dword [0x41b740], eax
call fcn.00403caf
push 2
pop ecx
mov dword [0x41b72c], eax
call fcn.00403caf
push 5
pop ecx
mov dword [0x41b718], eax
call fcn.00403caf
push 0x15
pop ecx
mov dword [0x41b71c], eax
call fcn.00403caf
push 0x16
pop ecx
mov dword [0x41b734], eax
call fcn.00403caf
push 0x17
pop ecx
mov dword [0x41b728], eax
call fcn.00403caf
xor ebx, ebx
mov dword [0x41b724], eax
mov dword [0x41b738], ebx
mov dword [0x41b730], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4054db
push edi
lea eax, [ebp - 0x5c]
push 0x418a84
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x5c]
call fcn.00404f38
xor esi, esi
cmp dword [esi + 0x41b44c], edi
jne 0x4054d3
mov ecx, dword [esi + 0x41b450]
push ebx
lea edx, [ebp - 0x268]
call fcn.00404f38
add esi, 8
cmp esi, 0x28
jb 0x4054b9
inc edi
cmp edi, 0x40
jl 0x405480
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a49
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [0x41b720], 0
jne 0x405a5d
mov ecx, dword [0x41b87c]
jmp fcn.00403411
ret
Function at 0x405a75
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push ebx
push edi
jne 0x405c21
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405a9d
cmp ecx, 0x2f
jne 0x405c21
mov ax, word [eax]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405acf
push dword [ebp + 8]
jmp 0x405c22
mov edx, str.7ZSfx_03x.cmd
lea ecx, [ebp - 0x24]
call fcn.00404284
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405be9
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e820
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040e8a5
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.0040e963
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e9a3
mov esi, 0x418b50
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e963
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0040e963
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e9a3
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040e963
push edi
lea ecx, [ebp - 0x18]
call fcn.0040e963
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e9a3
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e963
mov esi, dword [ebp - 0x14]
push 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040435a
mov eax, dword [eax]
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop esi
je 0x405bfc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405bfc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x24]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405c27
mov ecx, dword [ebp - 0x24]
call fcn.00403411
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x405c28
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret 0xc
Function at 0x405d61
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41b76c], esi
jle 0x405db3
mov eax, dword [0x41b768]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e87a
lea ecx, [ebp - 0xc]
call fcn.00405515
mov eax, dword [0x41b768]
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
pop ecx
cmp esi, dword [0x41b76c]
jl 0x405d72
pop esi
leave
ret
Function at 0x40706e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
mov esi, ecx
push edx
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.00407029
pop esi
pop ebp
ret 4

Function at 0x408c62
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00407566
test eax, eax
jne 0x408c80
push eax
push eax
push esi
push 0x4082a5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x41b718]
mov ecx, esi
push dword [esi + 4]
call fcn.004078da
push 0x2d
pop ecx
call fcn.00403caf
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.004078da
pop esi
ret
Function at 0x40915f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004078f4
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407986
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407986
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40805b
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e26
mov ecx, esi
mov edi, eax
call fcn.00408570
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40b0d0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret

Function at 0x40b5d0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x40b605
jmp 0x40b5f0
and edi, 0x3f
jne 0x40b5fb
push esi
call fcn.0040b110
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x40b5f0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0040b110
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x40b627
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret