joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45558f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4a8a18]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4555c0
xor eax, eax
jmp 0x455749
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x50c020]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4555fc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0045a34b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4556d7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x455715
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x455660
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x455651
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x455631
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4556a0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4556a9
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x455622
jmp 0x4556ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x455744
cmp dword [ebp - 0x6c], edi
je 0x455715
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x45570a
call fcn.0045074d
mov dword [eax], 9
call fcn.00450756
mov dword [eax], esi
jmp 0x45573f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4556ff
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4556ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4556ab
push dword [ebp - 0x6c]
call fcn.0045075f
pop ecx
jmp 0x45573f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45572d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x45572d
xor eax, eax
jmp 0x455747
call fcn.0045074d
mov dword [eax], 0x1c
call fcn.00450756
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x455747
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0045388e
add ebp, 0x3a0
leave
ret
Function at 0x456f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x457114
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x50c020]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x457114
test cl, 0x48
je 0x456fab
cmp byte [eax + 5], 0xa
je 0x456fab
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x456ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x456fe5
call fcn.0045074d
mov dword [eax], 9
call fcn.00450756
mov dword [eax], esi
jmp 0x456ff5
cmp eax, 0x6d
je 0x457114
push eax
call fcn.0045075f
pop ecx
or eax, 0xffffffff
jmp 0x457116
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x45710f
test eax, eax
je 0x457024
cmp byte [ebx], 0xa
jne 0x457024
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45702d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x457109
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4570f9
cmp al, 0xd
je 0x45705f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4570eb
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x457079
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x457074
add dword [ebp + 0x10], 2
jmp 0x4570cd
mov dword [ebp + 0x10], eax
jmp 0x4570e7
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x4570a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4570e7
cmp dword [ebp - 0xc], 0
je 0x4570e7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4570c2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4570cd
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4570ea
cmp ebx, dword [ebp + 0xc]
jne 0x4570d2
cmp byte [ebp - 1], 0xa
jne 0x4570d2
mov byte [ebx], 0xa
jmp 0x4570ea
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045482c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4570eb
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x457043
jmp 0x457109
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x457109
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x457116
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45759d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4a8a18]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4a8be8]
je 0x4575d2
inc eax
cmp eax, 0x13
jb 0x4575c3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4a8be8]
jne 0x4576f8
mov eax, dword [0x50b758]
cmp eax, 1
je 0x4576d0
cmp eax, edx
jne 0x457602
cmp dword [0x4a874c], 1
je 0x4576d0
cmp ecx, 0xfc
je 0x4576f8
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x457638
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00456cb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00453280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45766c
mov eax, edi
push eax
call fcn.00453280
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x48e490
push edi
call fcn.0044f1f0
add esp, 0x10
push edi
call fcn.00453280
push dword [esi + 0x4a8bec]
mov ebx, eax
call fcn.00453280
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044e0a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00456cb0
push edi
push ebx
call fcn.00456cc0
push 0x48e470
push ebx
call fcn.00456cc0
push dword [esi + 0x4a8bec]
push ebx
call fcn.00456cc0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0045a481
add esp, 0x2c
jmp 0x4576f8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4a8bec]
push dword [esi]
call fcn.00453280
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0045388e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45a481
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x50bbc8], ebx
push esi
push edi
jne 0x45a501
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45a53c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48ed5c
push edi
call esi
test eax, eax
mov dword [0x50bbc8], eax
je 0x45a53c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x50bbcc], eax
call esi
cmp dword [0x50b674], 2
mov dword [0x50bbd0], eax
jne 0x45a501
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x50bbd8], eax
je 0x45a501
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x50bbd4], eax
mov eax, dword [0x50bbd4]
test eax, eax
je 0x45a546
call eax
test eax, eax
je 0x45a52d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x50bbd8]
test eax, eax
je 0x45a52d
test byte [ebp - 8], 1
jne 0x45a546
cmp dword [0x50b680], 4
jb 0x45a540
or byte [ebp + 0x12], 0x20
jmp 0x45a565
xor eax, eax
jmp 0x45a575
or byte [ebp + 0x12], 4
jmp 0x45a565
mov eax, dword [0x50bbcc]
test eax, eax
je 0x45a565
call eax
mov ebx, eax
test ebx, ebx
je 0x45a565
mov eax, dword [0x50bbd0]
test eax, eax
je 0x45a565
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x50bbc8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45bb71
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45bb8a
or eax, 0xffffffff
jmp 0x45bbeb
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x45bbe7
push 0x3d
push esi
call fcn.0045c8bc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45bbe7
cmp esi, eax
je 0x45bbe7
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x50b694]
sete cl
cmp eax, dword [0x50b698]
mov dword [ebp - 8], ecx
jne 0x45bbcd
mov edi, eax
call fcn.0045bb10
mov dword [0x50b694], eax
cmp eax, ebx
jne 0x45bc26
cmp dword [ebp + 0xc], ebx
je 0x45bbef
cmp dword [0x50b69c], ebx
je 0x45bbef
call fcn.004590bd
test eax, eax
je 0x45bc26
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x45bbf8
xor eax, eax
jmp 0x45bbea
push 4
call fcn.0044dffd
cmp eax, ebx
pop ecx
mov dword [0x50b694], eax
je 0x45bbe7
mov dword [eax], ebx
cmp dword [0x50b69c], ebx
jne 0x45bc26
push 4
call fcn.0044dffd
cmp eax, ebx
pop ecx
mov dword [0x50b69c], eax
je 0x45bbe7
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x50b694]
call fcn.0045bac3
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45bc87
cmp dword [esi], ebx
je 0x45bc87
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044dee5
cmp dword [ebp - 8], ebx
pop ecx
jne 0x45bc6a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x45bcc8
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x45bc61
mov eax, edi
shl eax, 2
push eax
push dword [0x50b694]
call fcn.00450ce6
cmp eax, ebx
pop ecx
pop ecx
je 0x45bcc8
jmp 0x45bcc3
cmp dword [ebp - 8], ebx
jne 0x45bd33
cmp edi, ebx
jge 0x45bc96
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x50b694]
call fcn.00450ce6
cmp eax, ebx
pop ecx
pop ecx
je 0x45bbe7
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x50b694], eax
cmp dword [ebp + 0xc], ebx
je 0x45bd1d
push dword [ebp - 4]
call fcn.00453280
inc eax
inc eax
push eax
call fcn.0044dffd
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x45bd1d
push dword [ebp - 4]
push esi
call fcn.00456cb0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45bd16
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044dee5
pop ecx
cmp dword [ebp - 8], ebx
je 0x45bd2b
push dword [ebp - 4]
call fcn.0044dee5
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45bbea
push dword [ebp - 4]
call fcn.0044dee5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x45bbf4
Function at 0x45bd46
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044e0a0
mov eax, dword [0x4a8a18]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0045482c
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x45be79
push 2
push esi
push dword [ebp + 8]
call fcn.0045482c
add esp, 0xc
cmp eax, ebx
je 0x45be79
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x45be19
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00456ee0
push 0x8000
push dword [ebp + 8]
call fcn.0045143d
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x45bdcf
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0045558f
add esp, 0xc
cmp eax, 0xffffffff
je 0x45bdef
sub edi, eax
test edi, edi
jg 0x45bdc7
jmp 0x45be07
call fcn.00450756
cmp dword [eax], 5
jne 0x45be04
call fcn.0045074d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0045143d
pop ecx
pop ecx
jmp 0x45be61
jge 0x45be61
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045482c
push dword [ebp + 8]
call fcn.00459248
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x45be61
call fcn.0045074d
mov dword [eax], 0xd
call fcn.00450756
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0045482c
add esp, 0xc
mov eax, esi
pop edi
jmp 0x45be7b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0045388e
leave
ret
Function at 0x463d60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.0044e0a0
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x5c]
xor eax, eax
test esi, esi
push edi
je 0x463d85
mov eax, 1
mov dword [ebx], esi
jmp 0x463d8d
mov ecx, dword [ebx]
mov dword [esp + 0x60], ecx
mov esi, ecx
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x463eca
mov edi, dword [esi + 0x40]
cmp edi, 0x40
jbe 0x463db5
push str.j___sizeof_ctx__key
push 0x54
push str..cryptohmachmac.c
call fcn.004241f0
add esp, 0xc
mov ebp, dword [esp + 0x5c]
cmp edi, ebp
jge 0x463deb
mov edx, dword [esp + 0x64]
push edx
lea edi, [ebx + 4]
push esi
push edi
call fcn.004293b0
mov eax, dword [esp + 0x64]
push ebp
push eax
push edi
call fcn.004294d0
lea esi, [ebx + 0x34]
push esi
lea ecx, [ebx + 0x38]
push ecx
push edi
call fcn.004294e0
add esp, 0x24
jmp 0x463e20
cmp ebp, 0x40
jbe 0x463e04
push str.len___sizeof_ctx__key
push 0x5e
push str..cryptohmachmac.c
call fcn.004241f0
add esp, 0xc
mov esi, dword [esp + 0x58]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x40
je 0x463e42
mov ecx, 0x40
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esi + ebx + 0x38]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x60]
xor eax, eax
jmp 0x463e50
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x40
jl 0x463e50
mov ebp, dword [esp + 0x64]
push ebp
lea edi, [ebx + 0x14]
push esi
push edi
call fcn.004293b0
mov edx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004294d0
add esp, 0x18
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x40
jl 0x463e84
push ebp
lea edi, [ebx + 0x24]
push esi
push edi
call fcn.004293b0
mov edx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004294d0
add esp, 0x18
lea ecx, [ebx + 0x14]
push ecx
add ebx, 4
push ebx
call fcn.004295d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test eax, eax
je 0x463eb2
jmp 0x463e46
Function at 0x468230
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.0044e0a0
push ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jle 0x4683c9
cmp ebx, 0x80
jg 0x4683c9
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
push edi
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.00468d00
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x60]
add esp, 0xc
sar ebp, 3
test eax, eax
je 0x4682c7
test ebp, ebp
jle 0x46830f
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea esi, [esp + 0x2c]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x4682b4
jmp 0x46830b
xor esi, esi
test ebp, ebp
jle 0x46830f
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
mov edx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x44]
mov ebx, edi
sub ebx, edx
sub ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jmp 0x4682f1
mov ebx, dword [esp + 0x14]
lea ecx, [esp + esi + 0x2c]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
xor bl, dl
mov byte [ecx], dl
mov edx, dword [esp + 0x18]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x4682ed
mov ebx, dword [esp + 0x48]
and ebx, 0x80000007
jns 0x46831c
dec ebx
or ebx, 0xfffffff8
inc ebx
mov eax, dword [esp + 0x48]
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x468353
lea eax, [esp + eax + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov cl, 8
sub cl, bl
mov byte [esp + 0x48], cl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
mov al, byte [esi]
mov dl, byte [esi - 1]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
mov cl, byte [esp + 0x48]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
add esi, 4
add edi, 4
or al, bl
mov ebx, dword [esp + 0x14]
mov byte [edi - 4], al
mov al, byte [esi - 2]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov byte [esp + 0x13], al
shr al, cl
or dl, al
mov al, byte [esp + 0x13]
mov byte [edi - 3], dl
mov dl, byte [esi - 1]
shr dl, cl
mov ecx, ebx
shl al, cl
or dl, al
dec ebp
mov byte [edi - 2], dl
jne 0x468365
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4791b3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4791e1
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4791e6
cmp eax, 1
je 0x4791e6
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4791ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4a8a18]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x479262
push ebx
call fcn.004791b3
test eax, eax
pop ecx
jne 0x479231
call fcn.00450756
mov dword [eax], 0xf
call fcn.0045074d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0045388e
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x479274
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x479224
inc eax
cmp eax, 0x104
ja 0x479224
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4792ac
cmp eax, dword [ebp + 0x10]
jg 0x47928f
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044dffd
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4792c1
call fcn.0045074d
mov dword [eax], 0xc
jmp 0x479224
cmp eax, dword [ebp + 0x10]
jle 0x4792c1
call fcn.0045074d
mov dword [eax], 0x22
jmp 0x479224
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00456cb0
pop ecx
pop ecx
jmp 0x479226
Function at 0x403740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476528
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x492afc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], ebx
call fcn.0041e570
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x44], 1
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x481ab8
call fcn.004027e0
push ecx
mov byte [esp + 0x48], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x481ad8
call fcn.004027e0
push ecx
mov byte [esp + 0x4c], 3
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4826e4
call fcn.004027e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
call fcn.0041e6e0
cmp eax, ebx
jne 0x40382f
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], bl
call fcn.0041cd60
mov esi, dword [esp + 0xc]
cmp esi, ebx
je 0x40395b
lea ecx, [esi + 8]
push ecx
call dword [0x47836c]
test eax, eax
jne 0x40395b
cmp esi, ebx
je 0x40395b
mov eax, dword [esi]
cmp eax, ebx
je 0x403811
push eax
call dword [0x4783b8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403821
push eax
call fcn.00422bf7
add esp, 4
push esi
call fcn.00422bf7
add esp, 4
jmp 0x40395b
mov edx, dword [esp + 0xc]
mov esi, dword [0x478368]
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], esp
cmp eax, ebx
je 0x403850
add eax, 8
push eax
call esi
call fcn.004157a0
add esp, 4
push ecx
cmp eax, ebx
jne 0x4038ef
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x481b1c
call fcn.004027e0
push ecx
mov byte [esp + 0x44], 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x481ab8
call fcn.004027e0
push ecx
mov byte [esp + 0x48], 5
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x481ad8
call fcn.004027e0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4826e4
mov byte [esp + 0x50], 6
call fcn.004027e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
call fcn.0041e8a0
cmp eax, 1
jne 0x403945
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x57c]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x108]
push 1
push esi
call edx
cmp eax, ebx
jge 0x403916
push 0x48270c
push esi
push eax
call fcn.00414040
jmp 0x403916
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], esp
cmp eax, ebx
je 0x403909
add eax, 8
push eax
call esi
call fcn.004157a0
add esp, 4
cmp eax, 1
jne 0x403945
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], bl
call fcn.0041cd60
lea ecx, [esp + 0xc]
call fcn.00402910
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], bl
call fcn.0041cd60
lea ecx, [esp + 0xc]
call fcn.00402910
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret 4