joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101eadf0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101eae04
mov dword [esp + 0x18], fcn.101e95d0
jmp fcn.101e2df0
mov dword [esp + 0x18], fcn.101e8870
jmp fcn.101e2b30
Function at 0x1022ebd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.10046610
mov eax, dword [0x102cc06c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
sub eax, ebx
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], ebx
jae 0x1022ec30
push 0x4d4
push 0x102b290c
push str.assertion_failed:_rec__orig_len___md_size
call fcn.1015f380
add esp, 0xc
cmp ebx, 0x40
jbe 0x1022ec4c
push 0x4d5
push 0x102b290c
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.1015f380
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x34]
neg eax
mov dword [esp + 0x20], ecx
and eax, 0x3f
lea edi, [esp + 0x34]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [esp + 0x2c], edi
cmp ecx, eax
jbe 0x1022ec7a
mov ebp, ecx
sub ebp, ebx
sub ebp, 0x100
push ebx
xor esi, esi
mov dword [esp + 0x18], 0
push esi
push edi
call fcn.100a4c40
add esp, 0xc
mov dword [esp + 0x18], esi
cmp ebp, dword [esp + 0x20]
jae 0x1022ed2d
mov eax, dword [esp + 0xc0]
mov ecx, ebp
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
mov edx, ecx
xor eax, dword [esp + 0x24]
xor edx, dword [esp + 0x10]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, ebp
xor eax, dword [esp + 0x10]
neg edi
or edx, eax
mov eax, dword [esp + 0x28]
xor edx, ebp
shr edx, 0x1f
neg edx
mov cl, byte [eax + ebp]
mov eax, edi
or eax, dword [esp + 0x14]
inc ebp
and eax, edx
mov edx, dword [esp + 0x18]
and edi, edx
mov dword [esp + 0x14], eax
and al, cl
or esi, edi
mov edi, dword [esp + 0x2c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esp + 0x20]
jb 0x1022ecb5
xor edx, edx
test ebx, ebx
je 0x1022ed61
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x1022ed37
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100451cc
add esp, 0xa8
ret
Function at 0x1022f8a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.10046610
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x1022f8ed
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x1022f8dd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x1022f8f2
cmp edi, dword [esi + 8]
ja 0x1022f8d4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.10144d40
push eax
call fcn.10140b00
add esp, 8
test eax, 0x200000
je 0x1022f938
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1022f9c4
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x1022f980
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x10235620
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x1023563b
push eax
push esi
call fcn.10235ce0
add esp, 8
test eax, eax
jle 0x10235683
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.10140760
add esp, 8
test edi, edi
jg 0x10235680
push edi
call fcn.1019b770
add esp, 4
test eax, eax
je 0x10235680
push 0xa
push esi
call fcn.101410e0
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x34e85f19
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x452f4ec9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, reloc.user32.dll_DefWindowProcA
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x1000a950
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000aad8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x1000a97a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000a981
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000a970
mov eax, 1
add ebx, ebx
jne 0x1000a993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000a988
jne 0x1000a9a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000a988
xor ecx, ecx
sub eax, 3
jb 0x1000a9b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000aa2a
mov ebp, eax
add ebx, ebx
jne 0x1000a9c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000a9d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000a9f4
inc ecx
add ebx, ebx
jne 0x1000a9e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000a9d5
jne 0x1000a9f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000a9d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000aa14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000aa05
jmp 0x1000a976
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000aa14
add edi, ecx
jmp 0x1000a976
pop esi
mov edi, esi
mov ecx, 0x109
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000aa32
cmp byte [edi], 4
jne 0x1000aa32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x1000aa37
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x1000aaa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb7f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb8d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000aa64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb8d4]
or eax, eax
je 0x1000aaa0
mov dword [ebx], eax
add ebx, 4
jmp 0x1000aa81
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000aad7
cmp al, 0xef
ja 0x1000aaca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000aaac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000aab9
popal
jmp 0x1000331a
Function at 0x403120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3a71
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ca3b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402fd0
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x30]
call fcn.0042dc30
mov byte [esp + 0x18], 1
lea ecx, [esi + 0x1ef0]
call fcn.00458820
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x20]
mov byte [esi + 0x1eec], bl
mov byte [esi + 0x1eed], bl
mov dword [esi + 0x1ed8], ebx
mov dword [esi + 0x1ee0], ebx
mov dword [esi + 0x1ee4], ebx
mov dword [esi + 0x1ee8], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x1f4c], 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 0x406960
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x4ca3b0]
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.004a4a54
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.00469f10
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4069b7
cmp dword [ebx + 4], 0x50000
jb 0x4069e7
call fcn.0043e920
cmp eax, 0x400
je 0x4069e7
cmp byte [esp + 0x310], 0
jne 0x406a32
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x4069f7
test ebp, ebp
jne 0x406a39
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x406a0b
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 0x406a28
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x406a39
lea ebp, [esp + 0x44]
jmp 0x406a39
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 0x406a77
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.004a3c63
add esp, 0x2e0
ret 0x20
Function at 0x407630
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, dword [esp + 0x2e0]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [esp + 0x2e4]
jne 0x40766a
push str.comctl32.dll
call fcn.00483db0
mov dword [esi + 4], eax
mov eax, dword [esi]
test eax, eax
je 0x407677
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [esi + 8], 0xffffffff
mov eax, dword [0x4d56ac]
push eax
push ebx
push edi
push 0xdc
push 0x3c
push 0
push 0
push 0x44200046
push 0
push str.ComboBoxEx32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
mov dword [esi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x10]
push 0x4209
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x402
push ecx
call edi
mov eax, dword [0x50fc04]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov ecx, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push 1
mov edx, eax
push edx
mov ecx, esi
call fcn.00406960
mov eax, dword [esi]
push 0
push 4
push 0x408
push eax
call edi
mov ecx, dword [esi]
push 0
push 0
push 0x407
push ecx
call edi
test eax, eax
je 0x40773d
push eax
call fcn.00485100
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x407766
push eax
push eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406e10
test al, al
jne 0x4077bd
push ebp
call fcn.004840f0
mov ebp, eax
xor edi, edi
mov ebx, 1
test ebp, ebx
je 0x4077b4
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x2d0]
push 0x4b8858
push edx
mov edx, 0xa
call fcn.0046b810
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [esp + 0x2e8]
push eax
mov ecx, esi
call fcn.00406960
inc edi
rol ebx, 1
cmp edi, 0x20
jl 0x407775
pop ebp
mov ecx, esi
call fcn.00407390
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a3c63
add esp, 0x2d4
ret 8
Function at 0x4077e0
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
sub esp, 0x804
mov eax, dword [0x4ca3b0]
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.00446520
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 0x407888
mov edx, dword [esi]
push 0
push eax
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.00407510
cmp byte [0x4e7b89], 0
mov ecx, esi
je 0x40786c
call fcn.00407160
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004a3c63
add esp, 0x804
ret
call fcn.00406d70
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004a3c63
add esp, 0x804
ret
cmp byte [0x4e7b89], 0
je 0x4078c5
lea eax, [esp + 8]
push eax
call fcn.00452840
test al, al
jne 0x4078c5
lea ecx, [esp + 8]
push ecx
mov ecx, 0x4ee478
call fcn.004441f0
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004a3c63
add esp, 0x804
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4078ff
test al, 0x10
jne 0x4078ff
lea eax, [esp + 8]
push eax
mov ecx, 0x4ee478
call fcn.004447a0
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004a3c63
add esp, 0x804
ret
lea ecx, [esp + 8]
push ecx
call fcn.0048c630
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.004a3c63
add esp, 0x804
ret
Function at 0x407920
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x4ca3b0]
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 0x407a34
mov eax, dword [edi + 8]
cmp eax, 0xfffffcd9
je 0x407991
cmp eax, 0xfffffcda
jne 0x407977
cmp dword [edi + 0x21c], 2
jne 0x407977
mov ecx, 0x4ee468
call fcn.004077e0
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004a3c63
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 0x4079aa
mov ebp, dword [ecx + 4]
jmp 0x4079ad
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 0x4079e9
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 0x4079e9
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], ecx
test byte [esp + 0x10], 6
je 0x407a10
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.004a3c63
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.004a3c63
add esp, 0x2bc
ret 0x10
Function at 0x4096f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x304
mov eax, dword [0x4ca3b0]
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 0x409710
xor ecx, ecx
mov dword [ecx + 0x4cc458], eax
test eax, eax
je 0x40975c
movzx eax, byte [esp + eax + 0xc]
movzx eax, byte [esp + eax + 0x125]
jmp 0x40975e
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x409743
xor edx, edx
test dl, dl
je 0x409782
movzx ecx, dl
movzx eax, byte [esp + ecx + 0xc]
lea ecx, [esp + 0x20b]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x409784
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 0x4097bb
movzx eax, bl
movzx eax, byte [esp + eax + 0xc]
movzx ecx, byte [esp + eax + 0x10d]
movzx esi, byte [esp + eax + 0x125]
jmp 0x4097bf
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 + 0x4cd480], ecx
mov dword [edx*4 + 0x4cd880], esi
mov esi, ecx
rol esi, 0x10
ror ecx, 8
mov dword [edx*4 + 0x4ce080], ecx
mov ecx, eax
rol ecx, 8
mov dword [edx*4 + 0x4cc880], ecx
mov ecx, eax
mov dword [edx*4 + 0x4cc480], eax
rol ecx, 0x10
ror eax, 8
mov dword [edx*4 + 0x4cd080], eax
mov dword [edx*4 + 0x4cdc80], esi
movzx esi, dl
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
mov dword [edx*4 + 0x4ccc80], ecx
add eax, eax
mov ecx, eax
shr ecx, 8
xor cl, al
xor cl, 5
je 0x4098a2
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 0x4098a4
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 0x4098ac
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 + 0x4cb858], esi
mov esi, eax
rol esi, 0x10
mov dword [ecx + 0x4cb458], eax
ror eax, 8
inc edx
mov dword [ecx + 0x4cbc58], esi
mov dword [ecx + 0x4cc058], eax
cmp edx, 0x100
jb 0x409768
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x4ce480], 1
call fcn.004a3c63
add esp, 0x304
ret
Function at 0x411540
Capabilities:
Get common file path
Get disk information
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push edi
mov edi, dword [esp + 0x810]
push 0x400
push 0x4b8a2e
lea eax, [esp + 0x10]
push eax
push str.TempFolder
push str.Paths
mov byte [edi], 0
call fcn.0045b6c0
cmp byte [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
jne 0x4115a4
cmp byte [0x4f5fd4], 0
je 0x411660
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 0x4115e1
cmp eax, 0x400
jae 0x4115e1
push 0x400
lea ecx, [esp + 0x40c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004a55c0
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00431510
test al, al
jne 0x4115fd
lea ecx, [esp + 8]
push ecx
push 0x400
call esi
push 1
push 0x4b89e8
push str.Paths
call fcn.0045b230
test eax, eax
je 0x411643
cmp byte [0x4f5fd4], 0
jne 0x411643
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x41162d
cmp eax, 5
jne 0x41165a
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 0x411637
jmp 0x41165a
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 0x411650
push edi
call fcn.00451a60
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.004a3c63
add esp, 0x804
ret 4

Function at 0x4146e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b44a1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ca3b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
lea ecx, [esi + 0x1ef0]
call fcn.00401ab0
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x30]
call fcn.0042dab0
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.00402970
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret