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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41c7e0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41c7e2], bx
je 0x401027
call eax
mov dword [0x41c7e0], eax
push eax
call fcn.00402173
push eax
call fcn.00408cbc
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402173
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 - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.00408cbc
pop ecx
call fcn.00404499
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4015fd
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.00410a1f
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.0040135c
push 0x5c
mov ecx, edi
call fcn.00401512
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4012cf
push edi
push edi
mov dword [0x41c7e4], esi
mov dword [0x41c7ec], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41c82c], 2
mov dword [0x41c7e8], eax
je 0x40165a
call fcn.00408500
push 0xffffffffffffffff
push dword [0x41c7e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41c7ec]
cmp eax, edi
mov dword [0x41c8c0], edi
je 0x4016a9
cmp eax, 1
je 0x40169d
cmp eax, 2
je 0x401699
cmp eax, 3
je 0x401695
cmp eax, 0x67
jle 0x401690
cmp eax, 0x6a
jle 0x40170d
push eax
push 0x14
jmp 0x4016e0
push 0x12
jmp 0x40169f
push 0x13
jmp 0x40169f
push 0x11
push edi
call fcn.00408da0
pop ecx
pop ecx
jmp 0x40170d
cmp dword [0x41c8c8], edi
jne 0x40170d
lea eax, [ebp + 8]
push eax
push dword [0x41c7e8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4016d0
cmp ecx, edi
jne 0x4016d0
xor eax, eax
jmp 0x401712
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4016e3
push ecx
push 0x21
push edi
jmp 0x401705
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4016f7
cmp dword [0x41c830], 0xffffffff
je 0x40170d
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408da0
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x402173
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41c090], ebx
je 0x4021a6
mov eax, 0x41c090
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4021a6
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41c090]
cmp dword [eax], ebx
jne 0x40218f
shl esi, 4
cmp dword [esi + 0x41c090], ebx
jne 0x4021bb
mov eax, 0x4184c8
jmp 0x40232d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_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 - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40226b
mov eax, dword [ebp - 4]
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 - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402262
call edi
test eax, eax
jne 0x402262
mov eax, dword [esi + 0x41c09c]
test eax, eax
je 0x402257
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402254
push dword [esi + 0x41c09c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41c09c], edi
jmp 0x40226a
push edi
jmp 0x402265
mov eax, dword [ebp - 8]
mov dword [esi + 0x41c09c], eax
jmp 0x40226b
push dword [ebp - 8]
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 + 0x41c09c]
test eax, eax
jne 0x40232c
mov ebx, dword [esi + 0x41c094]
lea edi, [esi + 0x41c098]
cmp dword [edi], eax
je 0x4022a1
call fcn.0040211d
cmp eax, dword [0x4192f4]
jne 0x4022a1
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
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 [0x41c064], 0xffffffff
pop ecx
mov dword [esi + 0x41c09c], eax
jne 0x40230c
and dword [0x41c064], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41c7f0]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40230c
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c064], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41c09c]
push edi
push ebx
push 0
push dword [0x41c064]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41c09c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40243a
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 0x402497
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 0x4026bb
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4026cb
xor eax, eax
leave
ret
test byte [0x41c830], 2
mov dword [ebp - 0x40], 0x40
jne 0x402720
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402720
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402720
jb 0x4026fc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402720
push 0x2b
call fcn.00402173
push eax
call fcn.00408d33
cmp eax, 1
pop ecx
pop ecx
je 0x402719
or dword [0x41c830], 0xffffffff
jmp 0x4026c7
or dword [0x41c830], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402b5d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401444
cmp dword [ebp - 4], 1
jg 0x402b7b
push 1
lea ecx, [ebp - 0xc]
call fcn.0040115e
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 0x402b9f
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402bd6
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402796
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040114a
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401395
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4036dd
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.0040275d
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40370e
push esi
lea ecx, [ebp - 0x18]
call fcn.0040115e
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403722
cmp ax, 0x2f
jne 0x40372b
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403751
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403744
cmp ax, 0x5c
je 0x403744
dec esi
test esi, esi
jg 0x40372f
test esi, esi
je 0x403800
and word [edi + esi*2], 0
push edi
call fcn.00401b61
test eax, eax
pop ecx
je 0x403740
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 0x403788
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403373
test eax, eax
pop ecx
pop ecx
je 0x403788
xor esi, esi
jmp 0x403825
push edi
call fcn.00401b61
test eax, eax
pop ecx
jne 0x4037a2
push edi
push 0xc
push 1
call fcn.00408da0
add esp, 0xc
jmp 0x403781
cmp esi, ebx
jge 0x4037f4
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 0x4037da
jmp 0x4037d9
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037e0
cmp ax, 0x2f
je 0x4037e0
inc esi
cmp word [edi + esi*2], cx
jne 0x4037c9
push edi
mov word [edi + esi*2], cx
call fcn.00401b61
test eax, eax
pop ecx
je 0x403793
cmp esi, dword [ebp - 4]
jl 0x4037a6
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403845
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403830
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403830
cmp ax, 0x7a
ja 0x403830
cmp word [ecx + 2], 0x3a
jne 0x403830
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403845
push ecx
push 0xc
push 1
call fcn.00408da0
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 0x4048ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00416400
call fcn.0040211d
push 3
call fcn.00402173
push 0x28
mov dword [0x41c828], eax
call fcn.00402173
push 2
mov dword [0x41c824], eax
call fcn.00402173
push 5
mov dword [0x41c820], eax
call fcn.00402173
push 0x15
mov dword [0x41c81c], eax
call fcn.00402173
push 0x16
mov dword [0x41c818], eax
call fcn.00402173
push 0x17
mov dword [0x41c814], eax
call fcn.00402173
add esp, 0x1c
xor ebx, ebx
mov dword [0x41c810], eax
mov dword [0x41c808], ebx
mov dword [0x41c80c], ebx
mov edi, 0x41c3ac
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 0x404a1e
push ebx
lea eax, [ebp - 0x98]
push 0x4196b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401444
lea ecx, [ebp - 0xc]
call fcn.00401444
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040135c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040135c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032c5
cmp dword [esi + 0x41c384], ebx
jne 0x404a0e
push dword [esi + 0x41c388]
lea ecx, [ebp - 0x18]
call fcn.0040135c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040135c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032c5
add esi, 8
cmp esi, 0x28
jb 0x4049de
lea ecx, [ebp - 0x18]
call fcn.00402686
inc ebx
cmp ebx, 0x40
jl 0x404975
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052e9
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 0x40549b
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x405313
cmp ax, 0x2f
jne 0x40549b
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 0x40549b
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.0040452e
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 0x405465
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401444
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040135c
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
mov esi, 0x4197b4
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004027ae
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402b0c
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 0x405476
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405476
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 0x4054a1
push dword [ebp - 0x28]
call fcn.00402fdf
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 0x4054a2
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406de6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406d99
add esp, 0x1c
leave
ret
Function at 0x4089fd
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.0040719e
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004071bb
push 1
inc edi
push edi
mov ecx, esi
call fcn.004071bb
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407804
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086cc
mov ecx, esi
mov edi, eax
call fcn.00407b71
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40f92a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f950
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f950
xor al, al
jmp 0x40f970
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00416820
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40a548
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c450]
jne 0x40a552
repz ret
jmp fcn.0040d946

Function at 0x40c86f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80c450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004088e9
and dword [ebp - 0x14], 0
cmp dword [0x80ea24], 0
mov dword [ebp - 0x18], eax
jne 0x40c922
push 0x403e24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c9ca
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e18
push ebx
call edi
test eax, eax
je 0x40c9ca
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e08
push ebx
mov dword [0x80ea24], eax
call edi
push eax
call esi
push 0x403df4
push ebx
mov dword [0x80ea28], eax
call edi
push eax
call esi
push 0x403dd8
push ebx
mov dword [0x80ea2c], eax
call edi
push eax
call esi
mov dword [0x80ea34], eax
test eax, eax
je 0x40c922
push 0x403dc0
push ebx
call edi
push eax
call esi
mov dword [0x80ea30], eax
mov eax, dword [0x80ea30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c97b
cmp dword [0x80ea34], ecx
je 0x40c97b
push eax
call esi
push dword [0x80ea34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c97b
test ebx, ebx
je 0x40c97b
call edi
test eax, eax
je 0x40c972
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c972
test byte [ebp - 8], 1
jne 0x40c97b
or dword [ebp + 0x10], 0x200000
jmp 0x40c9ae
mov eax, dword [0x80ea28]
cmp eax, dword [ebp - 0x18]
je 0x40c9ae
push eax
call esi
test eax, eax
je 0x40c9ae
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c9ae
mov eax, dword [0x80ea2c]
cmp eax, dword [ebp - 0x18]
je 0x40c9ae
push eax
call esi
test eax, eax
je 0x40c9ae
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80ea24]
call esi
test eax, eax
je 0x40c9ca
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c9cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a548
leave
ret
Function at 0x808650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0xb92ab0], ax
mov word [0xb92ab4], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0xb92ab0
mov dword [0xb92abc], 0x320033
mov dword [0xb92ac4], 0x6c006c
mov word [0xb92ab6], cx
mov dword [0xb92ab8], 0x6c0065
mov dword [0xb92ac0], 0x64002e
mov word [0xb92ab2], dx
mov word [0xb92ac8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0xb92aac]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0xb92aa8], eax
mov eax, dword [0x813afc]
push edx
push eax
mov byte [0x80ed73], 0x65
mov dword [0x80ed69], 0x75747269
mov word [0x80ed6d], 0x6c61
mov byte [0x80ed68], 0x56
mov word [0x80ed74], 0x7463
mov byte [0x80ed76], 0
mov dword [0x80ed6f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x808740
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.0040d0c0
cmp dword [0xb92aac], 0x37
jne 0x80880c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046c8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x4046d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x4046e4
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x4046f8
push 0x404708
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x404730
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x40475c
push 0x404778
push 0x404788
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb93aa0]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x813afc]
mov byte [ecx + esi], al
add esp, 0x1050
ret
Function at 0x8089a0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb92aac]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x813afc]
shr eax, 3
push edi
test eax, eax
je 0x808b3b
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x8089d4
mov esi, dword [esp + 0x18]
cmp dword [0xb92aac], 0x1c
jne 0x8089f1
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x80d220]
mov eax, dword [0x80d224]
mov ecx, dword [0x80d228]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x80d22c]
mov ebp, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0xb92a1c], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0xb92aac], 0x1be
jne 0x808a7d
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0xb92aac], 0x979
mov dword [0xb92a20], 0xff6b3619
mov dword [0xb92a24], 0xffffffff
jne 0x808aba
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x808a2a
cmp dword [0xb92aac], 0x8d4
jne 0x808af2
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0xb92aac], 0x17
jne 0x808b2a
push 0
push 0
push 0
push 0x404680
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x8089d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret