joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065f03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1008b008]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10065f43
cmp byte [ebx], 0xa
jne 0x10065f43
or byte [edi + eax + 0x28], 4
jmp 0x10065f48
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10066047
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006602a
inc eax
cmp dl, 0xd
je 0x10065f74
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10065f9a
cmp eax, ecx
jae 0x10065fa8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10065f5c
jmp 0x10066047
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10066025
cmp dword [ebp - 0x10], 0
je 0x10066025
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1008b008]
test byte [eax + edi + 0x28], 0x48
je 0x10065fff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10065fea
mov byte [esi], dl
jmp 0x10065ffb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008b008]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10066047
cmp byte [ebp - 1], 0xa
jne 0x1006600e
cmp esi, ebx
jne 0x1006600e
mov byte [esi], 0xa
jmp 0x10066046
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10065e9f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10066047
mov byte [esi], 0xd
jmp 0x10066046
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1008b008]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10066044
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10066047
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10066050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1008b008]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10066096
cmp word [ebx], dx
jne 0x10066096
or byte [eax + edi + 0x28], 4
jmp 0x1006609b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100661fe
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100661de
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100660dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10066112
cmp eax, edx
jae 0x10066120
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100660b7
jmp 0x100661fe
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100661d9
cmp dword [ebp - 0x18], 0
je 0x100661d9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1008b008]
test byte [eax + edi + 0x28], 0x48
je 0x100661af
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10066173
mov word [esi], cx
jmp 0x100661aa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1008b008]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1008b008]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1008b008]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100661fe
pop eax
cmp word [ebp - 4], ax
jne 0x100661bf
cmp esi, ebx
jne 0x100661bf
mov word [esi], ax
jmp 0x100661fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10065e9f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100661fe
push 0xd
pop eax
jmp 0x100661ba
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1008b008]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100661f8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100661fe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10069e60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10069e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10069e8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1006c551
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006a2d0
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1005a190
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1006c593
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1006c6ef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006a0d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1008b008]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10065e81
mov ecx, dword [esi*4 + 0x1008b008]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1006c6e8
cmp eax, dword [ecx + edi + 0x24]
jne 0x1006c6e8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006c6e8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10065e81
add esp, 0x14
test edx, edx
jl 0x1006c6e8
jg 0x1006c65e
test eax, eax
jb 0x1006c6e8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1006c6e8
jl 0x1006c678
cmp dword [ebp - 0x1008], eax
ja 0x1006c6e8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1006c696
test ebx, ebx
je 0x1006c6cf
cmp ecx, edi
jae 0x1006c6cf
mov al, byte [ecx]
cmp al, 0xd
jne 0x1006c6b0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1006c6bc
cmp byte [ecx + 1], 0xa
jne 0x1006c6bc
inc ecx
jmp 0x1006c6bc
movzx eax, al
movsx eax, byte [eax + 0x100899b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1006c696
cmp edx, ebx
jne 0x1006c696
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1006c6ed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10043277
leave
ret
Function at 0x1006ea19
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006e995
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006eb88
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006eb88
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006eb3d
jg 0x1006ea75
test eax, eax
je 0x1006eb33
push 1
push 0x1000
call fcn.1005a942
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006ea98
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006eb2a
push 0x8000
push ebx
call fcn.1006e8c6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006eac1
jg 0x1006eabc
cmp ecx, 0x1000
jb 0x1006eac1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10064ed9
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006eb06
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006eabc
jl 0x1006eaed
test ecx, ecx
jne 0x1006eaae
push dword [ebp - 0xc]
push ebx
call fcn.1006e8c6
push esi
call fcn.1005921e
add esp, 0xc
xor ebx, ebx
jmp 0x1006eb96
cmp byte [edi + 0x24], 0
je 0x1006eb1d
cmp dword [edi + 0x20], 5
jne 0x1006eb1d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006eb28
mov ebx, dword [edi + 0x18]
jmp 0x1006eb2a
xor ebx, ebx
push esi
call fcn.1005921e
pop ecx
jmp 0x1006eb96
test ecx, ecx
jg 0x1006eaff
jl 0x1006eb3d
test eax, eax
jae 0x1006eaff
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10065e9f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006eb5d
cmp byte [edi + 0x1c], 0
je 0x1006eaff
jmp 0x1006eb8e
push ebx
call fcn.100632e1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006eaff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006eb96
cmp byte [edi + 0x1c], 0
je 0x1006eb93
mov ebx, dword [edi + 0x18]
jmp 0x1006eb96
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10065e9f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006f624
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1006f645
jl 0x1006f63c
test edi, edi
jne 0x1006f645
xor eax, eax
xor edx, edx
jmp 0x1006f706
cmp dword [ebx + 0x38], 0
je 0x1006f65a
push eax
push edi
push dword [ebp + 8]
call fcn.10020d70
jmp 0x1006f706
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1006f6a1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1006f6a1
cmp eax, edi
jb 0x1006f67b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10044e10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1006f6a7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1006f6fb
mov ecx, ebx
call fcn.1006efd6
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1006f6e6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1006cdf2
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1006f6fb
jmp 0x1006f6b9
test edx, edx
je 0x1006f6fb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1006cdf2
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4027d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40403f], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Salmimo
push str.Limoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402818
xor eax, eax
jmp 0x402833
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4242a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4899af
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
call edi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
call fcn.00424240
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
push 0
mov dword [ebx + 0x40], 0
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x44], 0
push 0
mov byte [ebp - 4], 3
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
call fcn.00419800
mov dword [ebx + 0x48], eax
push 0
push 0
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
call fcn.00419800
mov dword [ebx + 0x50], eax
lea ecx, [ebx + 0x58]
mov byte [ebp - 4], 5
call fcn.00424450
push 0
push 0
lea ecx, [ebx + 0x6c]
mov byte [ebp - 4], 6
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
call fcn.00419800
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x74], 0xc8
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
lea esi, [ebx + 0x84]
push esi
call edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], 0
lea esi, [ebx + 0xb0]
push esi
call edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea esi, [ebx + 0xe0]
mov byte [ebp - 4], 0xb
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004197c0
mov dword [esi], eax
push 0
push 0
lea ecx, [esi + 8]
mov byte [ebp - 4], 0xc
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004197c0
mov dword [esi + 8], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42dc50
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42dc76
call fcn.0046b760
mov edi, eax
jmp 0x42dc78
xor edi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x42dc85
call fcn.004062d0
jmp 0x42dc87
xor eax, eax
mov esi, dword [esi + 4]
test eax, eax
je 0x42dca5
push 0
push esi
push esi
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
jne 0x42dcd5
xor eax, eax
cmp esi, 0x10
sete al
or eax, 0x110
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push 0x49ca84
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x42fec0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487b18
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x42ff8c
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42ff8c
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push esi
push eax
call fcn.0042ffa0
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0046b860
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0046b860
lea ecx, [ebp + 8]
lea eax, [eax*2 + 2]
push eax
call fcn.0046b310
push eax
push esi
call fcn.00471f50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42ff8c
call fcn.0046b840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], 0
call fcn.00471730
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x210]
push eax
push 0x12
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x432283
push 0
call fcn.0046b670
push eax
push 0
jmp 0x43230d
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x22c], 0x4a2cbc
mov dword [ebp - 0x228], 0x1000
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x4322e7
mov ecx, dword [ebp - 0x214]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [ebp - 0x20c]
push eax
call fcn.0046b670
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0046b800
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x434670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4346ff
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00434670
add esp, 8
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x4346d0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x437590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ae88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 3
push 0
push 0
push connect
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4376ac
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4376a5
cmp dword [ebp - 0x10], 4
jne 0x4376a5
push dword [ebp - 0x14]
call fcn.0046b770
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x437638
mov ecx, esi
call fcn.0046b760
jmp 0x43763a
xor eax, eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437693
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x437693
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov dword [edi], esi
test esi, esi
je 0x43766e
mov ecx, esi
call fcn.0046b5c0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x437680
mov ecx, esi
call fcn.0046b840
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4376a5
mov ecx, esi
call fcn.0046b840
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x466db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea ebx, [edi + edi]
mov eax, ebx
mov dword [ebp - 0xc], ebx
call fcn.00475290
mov eax, esp
mov dword [ebp - 8], eax
test edi, edi
je 0x466e05
mov ebx, dword [ebp + 0x10]
mov esi, eax
sub ebx, eax
push dword [0x4bd894]
movzx eax, word [ebx + esi]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov word [esi], ax
lea esi, [esi + 2]
dec edi
jne 0x466de3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test edx, edx
je 0x466e20
push ebx
push eax
push 3
push 0
push dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x466e35
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x466e35
push ebx
push eax
push dword [ebp + 0xc]
push ecx
call fcn.00465ae0
add esp, 0x10
mov al, 1
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x469440
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov esi, dword [edi + 0x3d8]
neg eax
mov ecx, dword [edi + 0x3dc]
cdq
and edx, dword [edi + 0x26c]
mov ebx, eax
and ebx, dword [edi + 0x268]
sub esi, ebx
mov dword [ebp - 4], ecx
push esi
push ebx
push edx
push 4
push dword [edi + 0x3d0]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [edi + 0x560], ecx
test ecx, ecx
jne 0x4694a6
mov dword [edi + 0x564], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x268]
sub ecx, ebx
add eax, ecx
lea ecx, [edi + 0x4fc]
push eax
mov dword [edi + 0x564], eax
call fcn.00443430
mov eax, dword [edi + 0x270]
lea ecx, [edi + 0x4c8]
sub eax, dword [edi + 0x268]
add eax, dword [edi + 0x564]