joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100886c], ebx
push esi
push edi
jne 0x100433d
push 0x1001548
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004378
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100153c
push edi
call esi
test eax, eax
mov dword [0x100886c], eax
je 0x1004378
push 0x100152c
push edi
call esi
push 0x1001518
push edi
mov dword [0x1008870], eax
call esi
cmp dword [0x10085b8], 2
mov dword [0x1008874], eax
jne 0x100433d
push 0x10014fc
push edi
call esi
test eax, eax
mov dword [0x100887c], eax
je 0x100433d
push 0x10014e4
push edi
call esi
mov dword [0x1008878], eax
mov eax, dword [0x1008878]
test eax, eax
je 0x1004382
call eax
test eax, eax
je 0x1004369
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100887c]
test eax, eax
je 0x1004369
test byte [ebp - 8], 1
jne 0x1004382
cmp dword [0x10085c4], 4
jb 0x100437c
or byte [ebp + 0x12], 0x20
jmp 0x10043a1
xor eax, eax
jmp 0x10043b1
or byte [ebp + 0x12], 4
jmp 0x10043a1
mov eax, dword [0x1008870]
test eax, eax
je 0x10043a1
call eax
mov ebx, eax
test ebx, ebx
je 0x10043a1
mov eax, dword [0x1008874]
test eax, eax
je 0x10043a1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100886c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10051cf
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002f10
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005235
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10085b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1005239
xor eax, eax
jmp 0x1005246
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10061f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x10098e8]
push edi
jae 0x10063d1
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x1009900]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x10063d1
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x10062a5
test dl, 2
jne 0x10062a5
test dl, 0x48
je 0x100626f
cmp byte [eax + 5], 0xa
je 0x100626f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10062b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x10062a0
mov dword [0x10085b0], ecx
jmp 0x10063d8
cmp eax, 0x6d
jne 0x10062ac
xor eax, eax
jmp 0x10063e5
push eax
call fcn.010065de
pop ecx
jmp 0x10063e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x10063cc
test eax, eax
je 0x10062df
cmp byte [ebx], 0xa
jne 0x10062df
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10062e8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x10063c6
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x10063b6
cmp al, 0xd
je 0x100631a
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x10063a8
dec ecx
cmp dword [ebp - 8], ecx
jae 0x1006334
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x100632f
add dword [ebp - 8], 2
jmp 0x1006388
mov dword [ebp - 8], eax
jmp 0x10063a4
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100635c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10063a4
cmp dword [ebp - 0x10], 0
je 0x10063a4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100637d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1006388
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10063a7
cmp ebx, dword [ebp + 0xc]
jne 0x100638d
cmp byte [ebp - 1], 0xa
jne 0x100638d
mov byte [ebx], 0xa
jmp 0x10063a7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01006538
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10063a8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x10062fe
jmp 0x10063c6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10063c6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x10063e5
and dword [0x10085b0], 0
mov dword [0x10085ac], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006902
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x10098e8]
mov eax, dword [0x1008034]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x1006ae8
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1009900]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x1006ae8
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x1006973
xor eax, eax
jmp 0x1006afc
test al, 0x20
je 0x1006986
push 2
push 0
push 0
push ecx
call fcn.01006538
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1006a46
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x1006ac2
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10069f5
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10069e3
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x10069bf
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006a74
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x1006a80
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x10069ab
jmp 0x1006a80
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006a74
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x1006a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x1006ae0
cmp dword [ebp - 0x40c], eax
je 0x1006abc
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x1006aae
mov dword [0x10085ac], 9
mov dword [0x10085b0], eax
jmp 0x1006af9
push dword [ebp - 0x40c]
call fcn.010065de
pop ecx
jmp 0x1006af9
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1006ad4
cmp byte [edi], 0x1a
je 0x100696c
mov dword [0x10085ac], 0x1c
jmp 0x1006af2
sub eax, dword [ebp - 0x420]
jmp 0x1006afc
mov dword [0x10085ac], 9
and dword [0x10085b0], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001d56
leave
ret
Function at 0x40203d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406100
cmp edx, dword [eax]
je 0x40205f
add eax, 8
inc ecx
cmp eax, 0x406190
jl 0x402050
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406100]
jne 0x40218d
mov eax, dword [0x4084e8]
cmp eax, 1
je 0x402167
test eax, eax
jne 0x402090
cmp dword [0x406050], 1
je 0x402167
cmp edx, 0xfc
je 0x40218d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4020c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402620
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004027d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40210a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004027d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053d8
push edi
call fcn.00403e70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402620
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402630
lea eax, [ebp - 0xa0]
push 0x4053b8
push eax
call fcn.00402630
push dword [esi + 0x406104]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402630
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403de4
add esp, 0x2c
pop edi
jmp 0x40218d
lea eax, [ebp + 8]
lea esi, [esi + 0x406104]
push 0
push eax
push dword [esi]
call fcn.004027d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4031b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2a01
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4da8f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00403060
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x30]
call fcn.00431eb0
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x1ef8]
call fcn.0045e160
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x20]
mov byte [esi + 0x1ef4], bl
mov byte [esi + 0x1ef5], bl
mov dword [esi + 0x1ee4], ebx
mov dword [esi + 0x1ee8], ebx
mov dword [esi + 0x1eec], ebx
mov dword [esi + 0x1ef0], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x1ee0], ebx
mov dword [esi + 0x1f54], esi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x406ca0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
mov ebx, ecx
push 0x808
mov dword [esp + 0x38], ebx
call fcn.004b1a60
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.00470640
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x406cf7
cmp dword [ebx + 4], 0x50000
jb 0x406d27
call fcn.00444e60
cmp eax, 0x400
je 0x406d27
cmp byte [esp + 0x310], 0
jne 0x406d72
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x406d37
test ebp, ebp
jne 0x406d79
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x406d4b
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x406d68
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x406d79
lea ebp, [esp + 0x44]
jmp 0x406d79
mov ebx, dword [esp + 0x300]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x406db7
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b102c
add esp, 0x2e0
ret 0x20
Function at 0x407960
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x407a89
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push eax
call esi
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4079ff
mov edx, dword [esp + 0xc]
push 0x4209
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
mov eax, dword [edi]
push 0
push 0x402
push eax
call esi
mov eax, dword [0x53fe04]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
push 0
mov eax, ecx
push 1
push eax
mov ecx, edi
call fcn.00406ca0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x407a28
mov edx, dword [esp + 8]
push eax
push eax
push edx
mov ecx, edi
call fcn.00407140
test al, al
jne 0x407a81
push ebx
push ebp
call fcn.0048be50
mov ebp, eax
xor esi, esi
mov ebx, 1
test ebp, ebx
je 0x407a77
lea eax, [esi + 0x41]
push eax
lea ecx, [esp + 0x2d0]
push 0x4c7888
push ecx
mov edx, 0xa
call fcn.00483770
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x2e8]
push edx
mov ecx, edi
call fcn.00406ca0
inc esi
rol ebx, 1
cmp esi, 0x20
jl 0x407a38
pop ebp
pop ebx
mov ecx, edi
call fcn.004076c0
pop esi
mov ecx, dword [esp + 0x2d4]
pop edi
xor ecx, esp
call fcn.004b102c
add esp, 0x2d4
ret
Function at 0x407aa0
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
sub esp, 0x804
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
push 0x400
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
push edx
call fcn.0044cae0
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push 0x158
push ecx
call edi
cmp eax, 0xffffffff
je 0x407b48
mov edx, dword [esi]
push 0
push eax
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.00407840
cmp byte [0x51b789], 0
mov ecx, esi
je 0x407b2c
call fcn.00407490
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret
call fcn.004070b0
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret
cmp byte [0x51b789], 0
je 0x407b85
lea eax, [esp + 8]
push eax
call fcn.00457b30
test al, al
jne 0x407b85
lea ecx, [esp + 8]
push ecx
mov ecx, 0x5220b8
call fcn.0044a930
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407bbf
test al, 0x10
jne 0x407bbf
lea eax, [esp + 8]
push eax
mov ecx, 0x5220b8
call fcn.0044a780
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret
lea ecx, [esp + 8]
push ecx
call fcn.00494610
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret
Function at 0x407be0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x2b8], eax
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2c0]
push edi
mov edi, dword [esp + 0x2d0]
cmp ecx, 0x4e
jne 0x407cf4
mov eax, dword [edi + 8]
cmp eax, 0xfffffcd9
je 0x407c51
cmp eax, 0xfffffcda
jne 0x407c37
cmp dword [edi + 0x21c], 2
jne 0x407c37
mov ecx, 0x5220a8
call fcn.00407aa0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004b102c
add esp, 0x2bc
ret 0x10
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [edi + 0xc]
push ebx
push ebp
push esi
mov dword [esp + 0x10], edx
cmp eax, 4
jne 0x407c6a
mov ebp, dword [ecx + 4]
jmp 0x407c6d
lea ebp, [ecx + 8]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor ecx, ecx
cmp eax, 4
setne cl
dec ecx
and ecx, 8
mov esi, ecx
test dl, 1
je 0x407ca9
mov edx, esi
or edx, 0x200
push edx
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call ebx
test eax, eax
je 0x407ca9
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], ecx
test byte [esp + 0x10], 6
je 0x407cd0
or esi, 0x4001
push esi
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
call ebx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
or dword [edi + 0xc], 0x10000000
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004b102c
add esp, 0x2bc
ret 0x10
mov edx, dword [esp + 0x2cc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2bc]
pop edi
xor ecx, esp
call fcn.004b102c
add esp, 0x2bc
ret 0x10
Function at 0x409a50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x304
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
xor ecx, ecx
mov eax, 1
push edi
mov edi, edi
mov edx, eax
and dl, 0x80
movzx edx, dl
mov byte [esp + ecx + 0x10c], al
mov byte [esp + ecx + 0x20b], al
mov byte [esp + eax + 0xc], cl
inc ecx
neg edx
sbb edx, edx
and edx, 0x11b
lea esi, [eax + eax]
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x409a70
xor ecx, ecx
mov dword [ecx + 0x4dc978], eax
test eax, eax
je 0x409abc
movzx eax, byte [esp + eax + 0xc]
movzx eax, byte [esp + eax + 0x125]
jmp 0x409abe
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x409aa3
xor edx, edx
test dl, dl
je 0x409ae2
movzx ecx, dl
movzx eax, byte [esp + ecx + 0xc]
lea ecx, [esp + 0x20b]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x409ae4
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ebx, eax
shr ebx, 8
xor bl, al
xor bl, 0x63
je 0x409b1b
movzx eax, bl
movzx eax, byte [esp + eax + 0xc]
movzx ecx, byte [esp + eax + 0x10d]
movzx esi, byte [esp + eax + 0x125]
jmp 0x409b1f
xor ecx, ecx
xor esi, esi
shl ecx, 8
movzx eax, bl
or ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, esi
mov esi, ecx
rol esi, 8
mov dword [edx*4 + 0x4dd9a0], ecx
mov dword [edx*4 + 0x4ddda0], esi
mov esi, ecx
rol esi, 0x10
ror ecx, 8
mov dword [edx*4 + 0x4de5a0], ecx
mov ecx, eax
rol ecx, 8
mov dword [edx*4 + 0x4dcda0], ecx
mov ecx, eax
mov dword [edx*4 + 0x4dc9a0], eax
rol ecx, 0x10
ror eax, 8
mov dword [edx*4 + 0x4dd5a0], eax
mov dword [edx*4 + 0x4de1a0], esi
movzx esi, dl
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
mov dword [edx*4 + 0x4dd1a0], ecx
add eax, eax
mov ecx, eax
shr ecx, 8
xor cl, al
xor cl, 5
je 0x409c02
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
add eax, eax
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor ecx, eax
xor ecx, 5
movzx ecx, byte [esp + ecx + 0xc]
lea eax, [esp + 0x20b]
sub eax, ecx
mov bl, byte [eax]
test bl, bl
je 0x409c04
movzx ecx, bl
movzx ecx, byte [esp + ecx + 0xc]
movzx eax, byte [esp + ecx + 0x174]
movzx edi, byte [esp + ecx + 0x1fa]
movzx esi, byte [esp + ecx + 0x1d3]
movzx ecx, byte [esp + ecx + 0x1eb]
jmp 0x409c0c
xor bl, bl
xor eax, eax
xor edi, edi
xor esi, esi
xor ecx, ecx
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
movzx ecx, bl
add ecx, ecx
add ecx, ecx
mov esi, eax
rol esi, 8
mov dword [ecx + 0x4dbd78], esi
mov esi, eax
rol esi, 0x10
mov dword [ecx + 0x4db978], eax
ror eax, 8
inc edx
mov dword [ecx + 0x4dc178], esi
mov dword [ecx + 0x4dc578], eax
cmp edx, 0x100
jb 0x409ac8
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x4de9a0], 1
call fcn.004b102c
add esp, 0x304
ret
Function at 0x411c30
Capabilities:
Get common file path
Get disk information
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
mov edi, dword [esp + 0x810]
push 0x400
push 0x4c7a6a
lea eax, [esp + 0x10]
push eax
push str.TempFolder
push str.Paths
mov byte [edi], 0
call fcn.00461370
cmp byte [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
jne 0x411c94
cmp byte [0x529c54], 0
je 0x411d50
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 0x400
lea edx, [esp + 0x40c]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x411cd1
cmp eax, 0x400
jae 0x411cd1
push 0x400
lea ecx, [esp + 0x40c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004b26d0
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00435a70
test al, al
jne 0x411ced
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 1
push str.TempRemovableOnly
push str.Paths
call fcn.00460ee0
test eax, eax
je 0x411d33
cmp byte [0x529c54], 0
jne 0x411d33
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x411d1d
cmp eax, 5
jne 0x411d4a
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411d27
jmp 0x411d4a
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411d40
push edi
call fcn.00456ce0
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.004b102c
add esp, 0x804
ret 4