joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push ebx
push esi
push edi
push 0x27
call fcn.00401f84
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x900]
push eax
call edi
and dword [ebp + 8], 0
add esp, 0x14
cmp dword [esi + 0x10], 0
jbe 0x401070
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x100]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40103b
lea eax, [ebp - 0x900]
push eax
call fcn.00407cd0
pop ecx
call fcn.00403e51
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4014f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00408d4e
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401310
push 0x5c
mov ecx, edi
call fcn.00401410
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401283
push edi
push edi
mov dword [0x417720], esi
mov dword [0x417728], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x417768], 2
mov dword [0x417724], eax
je 0x40154f
call fcn.00407e93
push 0xffffffffffffffff
push dword [0x417724]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x417728]
cmp eax, edi
mov dword [0x4177dc], edi
je 0x40159e
cmp eax, 1
je 0x401592
cmp eax, 2
je 0x40158e
cmp eax, 3
je 0x40158a
cmp eax, 0x67
jle 0x401585
cmp eax, 0x6a
jle 0x401602
push eax
push 0x14
jmp 0x4015d5
push 0x12
jmp 0x401594
push 0x13
jmp 0x401594
push 0x11
push edi
call fcn.00407d9e
pop ecx
pop ecx
jmp 0x401602
cmp dword [0x4177e4], edi
jne 0x401602
lea eax, [ebp + 8]
push eax
push dword [0x417724]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4015c5
cmp ecx, edi
jne 0x4015c5
xor eax, eax
jmp 0x401607
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4015d8
push ecx
push 0x21
push edi
jmp 0x4015fa
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4015ec
cmp dword [0x41776c], 0xffffffff
je 0x401602
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00407d9e
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4019ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401998
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019ae
test al, 0x10
jne 0x4019ae
push esi
jmp 0x40198e
xor eax, eax
inc eax
pop esi
ret
Function at 0x401bc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41772c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401c0a
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401c30
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401c1b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401caa
cmp dword [0x41773c], 0
jne 0x401ca8
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41773c], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41772c]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401c9d
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401ca8
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402236
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 byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402293
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 0x4024a1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4024b1
xor eax, eax
leave
ret
test byte [0x41776c], 2
mov dword [ebp - 0x40], 0x40
jne 0x402506
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402506
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402506
jb 0x4024e2
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402506
push 0x2b
call fcn.00401f84
push eax
call fcn.00407d3f
cmp eax, 1
pop ecx
pop ecx
je 0x4024ff
or dword [0x41776c], 0xffffffff
jmp 0x4024ad
or dword [0x41776c], 2
xor eax, eax
inc eax
leave
ret

Function at 0x40280e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004013f8
cmp dword [ebp - 4], 1
jg 0x40282c
push 1
lea ecx, [ebp - 0xc]
call fcn.00401112
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402850
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402887
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.0040257c
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004010fe
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401349
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402f57
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004013f8
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.0040257c
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0040257c
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40307e
xor eax, eax
jmp 0x4030d7
test al, 0x10
je 0x40308f
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4030d7
mov eax, dword [0x417770]
test eax, eax
jne 0x4030a1
push esi
call fcn.00403034
pop ecx
jmp 0x4030d7
cmp eax, 2
jne 0x4030d4
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403098
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403098
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40339b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402543
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x4033cc
push esi
lea ecx, [ebp - 0x18]
call fcn.00401112
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x4033e0
cmp ax, 0x2f
jne 0x4033e9
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x40340f
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403402
cmp ax, 0x5c
je 0x403402
dec esi
test esi, esi
jg 0x4033ed
test esi, esi
je 0x4034be
and word [edi + esi*2], 0
push edi
call fcn.0040196d
test eax, eax
pop ecx
je 0x4033fe
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403446
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403061
test eax, eax
pop ecx
pop ecx
je 0x403446
xor esi, esi
jmp 0x4034e3
push edi
call fcn.0040196d
test eax, eax
pop ecx
jne 0x403460
push edi
push 0xc
push 1
call fcn.00407d9e
add esp, 0xc
jmp 0x40343f
cmp esi, ebx
jge 0x4034b2
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 0x403498
jmp 0x403497
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x40349e
cmp ax, 0x2f
je 0x40349e
inc esi
cmp word [edi + esi*2], cx
jne 0x403487
push edi
mov word [edi + esi*2], cx
call fcn.0040196d
test eax, eax
pop ecx
je 0x403451
cmp esi, dword [ebp - 4]
jl 0x403464
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403503
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x4034ee
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4034ee
cmp ax, 0x7a
ja 0x4034ee
cmp word [ecx + 2], 0x3a
jne 0x4034ee
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403503
push ecx
push 0xc
push 1
call fcn.00407d9e
push edi
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 0x403fc9
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013f8
push 2
mov ecx, esi
call fcn.0040257c
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x40401c
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040257c
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040257c
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404071
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x40402c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404078
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41738c], esi
jle 0x4040cc
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012de
lea eax, [ebp - 0xc]
push eax
call fcn.00403bc6
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
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
cmp esi, dword [0x41738c]
pop ecx
jl 0x404089
pop esi
leave
ret
Function at 0x404485
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f2e
push 3
call fcn.00401f84
push 0x28
mov dword [0x417764], eax
call fcn.00401f84
push 2
mov dword [0x417760], eax
call fcn.00401f84
push 5
mov dword [0x41775c], eax
call fcn.00401f84
push 0x15
mov dword [0x417758], eax
call fcn.00401f84
push 0x16
mov dword [0x417754], eax
call fcn.00401f84
push 0x17
mov dword [0x417750], eax
call fcn.00401f84
add esp, 0x1c
xor ebx, ebx
mov dword [0x41774c], eax
mov dword [0x417744], ebx
mov dword [0x417748], ebx
mov edi, 0x417384
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4045a9
push ebx
lea eax, [ebp - 0x98]
push 0x414444
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013f8
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402fb3
cmp dword [esi + 0x41735c], ebx
jne 0x404599
push dword [esi + 0x417360]
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402fb3
add esi, 8
cmp esi, 0x28
jb 0x404569
lea ecx, [ebp - 0x18]
call fcn.0040246c
inc ebx
cmp ebx, 0x40
jl 0x404500
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404ac4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea ecx, [ebp - 0x18]
call fcn.004013f8
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404b15
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404b22
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404614
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404b85
test dword [ebp + 0xc], 0x10000
jne 0x404b67
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
xor ebx, ebx
jmp 0x404b70
Function at 0x404f03
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
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4050b5
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x404f2d
cmp ax, 0x2f
jne 0x4050b5
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4050b5
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403fc9
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40507f
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013f8
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401310
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402594
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
mov esi, 0x414504
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402594
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402594
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402594
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402594
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402594
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004027bd
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x405090
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405090
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4050bb
push dword [ebp - 0x28]
call fcn.00402ccd
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4050bc
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x408c9e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408ca6
mov dword [ecx*4 + 0x417920], eax
inc ecx
cmp ecx, 0x100
jb 0x408ca1
mov edx, 0x800
jmp 0x408cf3
mov eax, dword [ecx*4 + 0x417520]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417920]
inc ecx
mov dword [ecx*4 + 0x41791c], eax
cmp ecx, edx
jb 0x408cd2
mov dword [0x417800], 0x4126b0
call fcn.0040de62
test eax, eax
pop esi
jne 0x408d15
mov dword [0x417800], 0x4125d0
ret

Function at 0x40ec2f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
invalid

Function at 0x40ef3e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sar ah, 0xff
dec dword [ecx + 0x4680845]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.0040e0a4
fsub dword [ecx + 0x31]
invalid
invalid
movsd dword es:[edi], dword [esi]
sar ch, 1

Function at 0x40fa4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test cl, bh
push es
add byte [eax], al
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x40fc1f
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
invalid
invalid
Function at 0x411a5a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x411a73
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x411a96
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x411a9b
inc esi
cmp esi, dword [ebp - 4]
jb 0x411a8d
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x411b90
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411aef
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x411ac6
cmp cl, 0xff
jne 0x411b1a
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x411b28
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x411b2f
dec ecx
shl edx, cl
and edx, 7
je 0x411ab7
movzx ecx, byte [edx + 0x414c28]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x414c20], 0
mov cl, byte [ebx + 4]
je 0x411b17
test cl, cl
je 0x411b17
cmp cl, 0xff
jne 0x411ab7
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x411a88
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x411b63
movzx edi, byte [edx + 0x414c28]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x411b4e
cmp al, 0xff
jne 0x411b60
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x411ae1
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x411a88
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret