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

Disassembly:
cmp ecx, dword [0x4930e8]
jne 0x4065ea
repz ret
jmp fcn.0040a71e

Function at 0x40a349
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004096d6
and dword [ebp - 4], 0
cmp dword [0x4992b4], 0
mov ebx, eax
jne 0x40a3fa
push 0x402458
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40244c
push edi
call esi
test eax, eax
je 0x40a4ab
push eax
call fcn.00409664
mov dword [esp], 0x40243c
push edi
mov dword [0x4992b4], eax
call esi
push eax
call fcn.00409664
mov dword [esp], 0x402428
push edi
mov dword [0x4992b8], eax
call esi
push eax
call fcn.00409664
mov dword [esp], 0x40240c
push edi
mov dword [0x4992bc], eax
call esi
push eax
call fcn.00409664
pop ecx
mov dword [0x4992c4], eax
test eax, eax
je 0x40a3fa
push 0x4023f4
push edi
call esi
push eax
call fcn.00409664
pop ecx
mov dword [0x4992c0], eax
mov eax, dword [0x4992c0]
cmp eax, ebx
je 0x40a452
cmp dword [0x4992c4], ebx
je 0x40a452
push eax
call fcn.004096df
push dword [0x4992c4]
mov esi, eax
call fcn.004096df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a452
test edi, edi
je 0x40a452
call esi
test eax, eax
je 0x40a449
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a449
test byte [ebp - 0xc], 1
jne 0x40a452
or dword [ebp + 0x10], 0x200000
jmp 0x40a48b
mov eax, dword [0x4992b8]
cmp eax, ebx
je 0x40a48b
push eax
call fcn.004096df
pop ecx
test eax, eax
je 0x40a48b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a48b
mov eax, dword [0x4992bc]
cmp eax, ebx
je 0x40a48b
push eax
call fcn.004096df
pop ecx
test eax, eax
je 0x40a48b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4992b4]
call fcn.004096df
pop ecx
test eax, eax
je 0x40a4ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [0x58e970], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0
call edi
push 0
push esi
push 0
push eax
call fcn.00436df1
test eax, eax
jne 0x402baf
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x58ecec], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x402bdc
push str.IsWow64Process
push str.kernel32
call edi
push eax
call esi
mov dword [0x58ecf0], eax
mov dword [0x58ecec], 1
cmp dword [0x58ece8], 0
jne 0x402c05
push str.IsWow64Process2
push str.kernel32
call edi
push eax
call esi
mov dword [0x58ecf4], eax
mov dword [0x58ece8], 1
jmp 0x402c0a
mov eax, dword [0x58ecf4]
xor edi, edi
mov esi, 0x8664
mov dword [ebp - 4], edi
test eax, eax
je 0x402c79
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [0x58ecf4]
mov edi, dword [ebp - 4]
mov eax, 0x14c
cmp di, ax
je 0x402d00
cmp di, si
je 0x402ca2
mov eax, 0xaa64
cmp di, ax
je 0x402ca2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, edi
mov esi, eax
call fcn.00412fc0
push eax
push str.Unsupported_platform__s
push esi
call fcn.004019f0
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x58ecf0], edi
je 0x402c30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [0x58ecf0]
cmp dword [ebp + 8], 0
mov eax, 0x14c
mov edi, eax
cmovne edi, esi
jmp 0x402c35
lea ecx, [ebp + 8]
call fcn.00404480
mov edx, dword [ebp + 0x14]
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x10]
push eax
push edi
call fcn.00404a50
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
cmp dword [esi - 0xc], 0
je 0x402cdd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push esi
push 0x478c18
push eax
call fcn.004019f0
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402cf5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0x4025a0
push eax
push 0x66
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4039b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4039d9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4039ef
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4039e6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403a22
nop
cmp esi, ecx
jae 0x4039e6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403a10
cmp esi, ecx
jae 0x4039e6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca10
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.00436803
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x403bf0
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403bf0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b48
xor esi, esi
jmp 0x403b89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b89
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403b79
cmp esi, ecx
jae 0x403b7d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403b67
cmp esi, ecx
jb 0x403b81
xor esi, esi
jmp 0x403b89
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x403bf0
mov ebx, dword [ebp - 0x10]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x403bae
push edi
mov ecx, ebx
call fcn.004041a0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.004542e0
push eax
call fcn.00403a40
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x403c06
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404410
int3
Function at 0x403c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ca10
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
xor dl, dl
test eax, eax
je 0x403d44
test eax, 0xffff0000
jne 0x403d44
movzx edi, ax
push edi
mov dword [ebp - 4], 0
call fcn.00436803
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x403d42
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403d42
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403cad
xor esi, esi
jmp 0x403cf2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403cf2
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403ce2
nop dword [eax]
cmp esi, ecx
jae 0x403ce6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403cd0
cmp esi, ecx
jb 0x403cea
xor esi, esi
jmp 0x403cf2
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x403d42
mov ebx, dword [ebp - 0x10]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x403d17
push edi
mov ecx, ebx
call fcn.004041a0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.004542e0
push eax
call fcn.00403a40
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x403d5a
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
mov dl, 1
mov al, dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404410
int3
Function at 0x405970
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x495580]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov eax, edx
mov dword [esp + 0x10], ecx
mov edx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov bl, 1
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
test bl, bl
je 0x405a5f
lea ecx, [esp + 0x18]
push ecx
push dword [eax + esi*4]
call edx
cmp eax, 0xffffffff
je 0x4059f5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x18], 0x10
jne 0x4059f5
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4059f5
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
push str.Couldnt_delete_old_version_of_file__s_r_nMake_sure_you_have_full_write_access_to_the_Windows_System_directory
push edi
call fcn.00403530
add esp, 0xc
xor bl, bl
mov eax, dword [esp + 0xc]
inc esi
mov edx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, 1
jl 0x4059a8
test bl, bl
je 0x405a59
mov esi, dword [esp + 0x14]
xor edi, edi
sub eax, esi
mov dword [esp + 0xc], eax
test bl, bl
je 0x405a55
push dword [eax + esi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x405a44
mov eax, dword [esp + 0xc]
xor bl, bl
push dword [eax + esi]
push dword [esi]
push str.Couldnt_rename_temp_file__s_to__s_r_nMake_sure_you_have_full_write_access_to_the_Windows_System_directory
push dword [esp + 0x1c]
call fcn.00403530
add esp, 0x10
mov eax, dword [esp + 0xc]
inc edi
add esi, 4
cmp edi, 1
jl 0x405a15
test bl, bl
jne 0x405a9b
mov edi, dword [esp + 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push dword [esi]
call edx
cmp eax, 0xffffffff
je 0x405a9b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x18], 0x10
jne 0x405a9b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405a9b
push dword [esi]
push str._r_nWarning:_couldnt_delete_file__s
push edi
call fcn.00406900
add esp, 0xc
mov ecx, dword [esp + 0x26c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae3d
mov esp, ebp
pop ebp
ret
Function at 0x408960
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov edx, dword [edi + 0x9c]
cmp edx, 0xffffffff
jne 0x408981
pop edi
or eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx + ebx]
cmp eax, 0x40
jbe 0x4089f0
push esi
lea esi, [edi + 0x40]
cmp edx, 0x40
ja 0x4089d6
mov dword [esi + 4], 0
mov ecx, edi
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
mov edx, dword [edi + 0x9c]
push esi
call fcn.0040ce10
mov ecx, dword [ebp - 4]
add esp, 4
push esi
mov edx, ebx
call fcn.0040ce10
add dword [edi + 0x9c], ebx
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
lea eax, [edx + edi]
push eax
call fcn.0044ca70
add dword [edi + 0x9c], ebx
add esp, 0xc
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408a10
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x9c]
lea esi, [edi + 0x40]
cmp ecx, 0xffffffff
je 0x408ae7
cmp ecx, 0x40
jbe 0x408a50
mov edx, esi
mov ecx, edi
call fcn.0040d0d0
mov dword [edi + 0x9c], 0x14
mov ecx, 0x14
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.0044cff0
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [str.6666666666666666]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
xorps xmm1, xmm0
movups xmmword [edi + 0x20], xmm1
movups xmm0, xmmword [edi + 0x30]
xorps xmm0, xmm2
movups xmmword [edi + 0x30], xmm0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.0040ce10
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [edi + 0x9c], 0xffffffff
test ebx, ebx
je 0x408af8
push esi
mov edx, ebx
mov ecx, eax
call fcn.0040ce10
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b00
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x495580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x9c], 0xffffffff
je 0x408b30
push edi
xor edx, edx
xor ecx, ecx
call fcn.00408a10
add esp, 4
push esi
lea esi, [edi + 0x40]
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0040d0d0
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [0x48a100]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [edi + 0x20]
xorps xmm0, xmm2
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
xorps xmm2, xmm0
movups xmmword [edi + 0x30], xmm2
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.0040ce10
push esi
mov edx, 0x14
lea ecx, [ebp - 0x18]
call fcn.0040ce10
add esp, 8
lea ecx, [ebp - 0x18]
mov edx, esi
call fcn.0040d0d0
pop esi
test ebx, ebx
je 0x408be2
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.0044ca70
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044ae3d
mov esp, ebp
pop ebp
ret
Function at 0x40cbe0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x495580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x154], edi
lea esi, [edi + 0x1c]
mov eax, dword [esi]
lea esi, [esi + 4]
bswap eax
mov dword [ebp + edx*4 - 0x144], eax
inc edx
cmp edx, 0x10
jb 0x40cc02
lea eax, [ebp - 0x13c]
mov edx, 0x40
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
ror ecx, 0x1f
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x40cc21
mov ecx, dword [ebp - 0x154]
mov eax, dword [edi + 8]
mov esi, eax
mov dword [ebp - 0x158], eax
push ebx
mov eax, dword [ecx + 0x14]
mov ebx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x18]
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], edx
nop dword [eax + eax]
mov ecx, ebx
mov edx, esi
not ecx
ror esi, 0x1b
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x150]
add esi, ecx
add eax, 0x5a827999
mov ecx, dword [ebp - 0x14c]
add esi, dword [ebp + ecx*4 - 0x144]
inc ecx
add esi, eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov ebx, edx
cmp ecx, 0x14
jb 0x40cc70
mov edx, 0x14
nop
xor eax, edi
mov ecx, esi
xor eax, ebx
ror esi, 0x1b
add esi, eax
mov eax, dword [ebp - 0x150]
add esi, dword [ebp + edx*4 - 0x144]
add eax, 0x6ed9eba1
add esi, eax
inc edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov ebx, ecx
cmp edx, 0x28
jb 0x40ccd0
mov dword [ebp - 0x14c], 0x28
nop
mov ecx, edi
mov edx, esi
xor ecx, ebx
ror esi, 0x1b
add esi, dword [ebp - 0x150]
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x148]
add esi, ecx
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
inc ecx
mov eax, edi
mov dword [ebp - 0x14c], ecx
mov edi, ebx
mov dword [ebp - 0x148], eax
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov ebx, edx
cmp ecx, 0x3c
jb 0x40cd20
mov edx, dword [ebp - 0x150]
mov ecx, 0x3c
nop dword [eax]
xor eax, edi
mov dword [ebp - 0x14c], esi
xor eax, ebx
ror esi, 0x1b
add eax, 0xca62c1d6
add esi, edx
add eax, dword [ebp + ecx*4 - 0x144]
inc ecx
mov edx, dword [ebp - 0x148]
add esi, eax
mov eax, edi
mov edi, ebx
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov dword [ebp - 0x148], eax
mov ebx, dword [ebp - 0x14c]
cmp ecx, 0x50
jb 0x40cd90
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, esi
pop ebx
add dword [ecx + 0x10], edi
add dword [ecx + 0x18], edx
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x148]
add dword [ecx + 0x14], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ae3d
mov esp, ebp
pop ebp
ret
Function at 0x40de10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d16e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
mov dword [ebp - 4], 2
call fcn.004363ea
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40defc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea ebx, [esi + 1]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
test ebx, ebx
js 0x40def2
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ebx
or ecx, eax
jge 0x40dea2
push ebx
mov ecx, edi
call fcn.004041a0
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, 0xffffffff
jne 0x40dec8
mov eax, dword [edi]
test eax, eax
jne 0x40deba
xor esi, esi
jmp 0x40dec8
push dword [eax - 8]
push eax
call fcn.004545da
add esp, 8
mov esi, eax
test esi, esi
js 0x40def2
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x40def2
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + esi*2], cx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404410
push 0x80004005
call fcn.00404410
int3

Function at 0x40df10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d1ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 2
call fcn.004363ea
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40e00e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
mov dword [ebp - 0x10], 1
or ecx, eax
jge 0x40df94
push 0x104
mov ecx, esi
call fcn.004041a0
push dword [esi]
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov eax, dword [esi]
js 0x40dfe8
test eax, eax
jne 0x40dfb2
xor ecx, ecx
jmp 0x40dfc4
push dword [eax - 8]
push eax
call fcn.004545da
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40e018
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40e018
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax - 8], 0
jl 0x40e018
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [esi]
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404410
push 0x80070057
call fcn.00404410
int3
Function at 0x40e030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d1dd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
call fcn.004363ea
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40e137
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x208
or ecx, eax
jge 0x40e0af
push 0x208
lea ecx, [ebp - 0x10]
call fcn.004041a0
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0x4821ec
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.004545da
add esp, 8
test eax, eax
js 0x40e12d
cmp eax, dword [esi - 8]
jg 0x40e12d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
jne 0x40e11a
push 0x4792ac
mov ecx, edi
call fcn.004038c0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e106
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
push esi
call fcn.00403700
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x40e0f1
push 0x80070057
call fcn.00404410
push 0x80004005
call fcn.00404410
int3