joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0788
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4d07fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004cffb4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0048f6c8
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4d07e7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0804
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4d080c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4d0881
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004cffb4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4d086b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0888
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4d46d4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x52bbbc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4d46f6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4d46f8
shr eax, 1
dec edx
jne 0x4d46e4
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4d46dd
mov byte [0x52bfbc], 1
pop esi
pop ebx
ret

Function at 0x4d4714
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x52bfbc], 0
jne 0x4d472b
call fcn.004d46d4
mov eax, edi
dec eax
test eax, eax
jl 0x4d4753
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x52bbbc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4d4735
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4d74fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4d7596.0
jmp dword [ecx*4 + 0x4d752f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4d7561
sub dl, 8
je 0x4d7570
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d71a4
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d71fc
jmp case.0x4d7596.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4d7596.0
movzx ecx, byte [ecx + 0x4d759d]
jmp dword [ecx*4 + 0x4d75ae]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d72a8
jmp case.0x4d7596.0
cmp dl, 3
jne 0x4d75db
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d7300
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d72bc
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d7344
jmp case.0x4d7596.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4d7606
sub dl, 8
je 0x4d7612
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d7370
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d73dc
jmp case.0x4d7596.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4d7631
sub dl, 8
je 0x4d763d
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d7498
jmp case.0x4d7596.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4d74c0
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x4d76df
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d66a8
test eax, eax
je 0x4d76df
mov eax, ebx
call fcn.004d76e8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x4d7678
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d76e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4d7719
dec al
je 0x4d7754
dec al
je 0x4d7799
dec al
je 0x4d7802
jmp 0x4d788c
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4d788c
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d7729
jmp 0x4d788c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d788c
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d7764
jmp 0x4d788c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d788c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4d77c8
xor ebp, ebp
jmp 0x4d77d8
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4d77e1
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d77a9
jmp 0x4d788c
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d788c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4d785b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004d475c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d7816
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e25d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec ecx
js 0x4e2621
lea eax, [ebp - 0x30]
cmp word [eax + 0x20], 3
je 0x4e2608
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4e25f8
jmp 0x4e2621
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4e2609
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x509fb4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x509fd0
call fcn.0050b144
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x509fef
test bl, 1
je 0x509fef
call fcn.00510974
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x50d38c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00508d38
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00508de8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00508de8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x524a2d
lea ecx, [ebp - 0x200]
push ecx
call fcn.00508d38
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00508de8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0050e634
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x50d49d
push esi
call fcn.00508de8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00508de8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00507fac
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x50d474
xor eax, eax
jmp 0x50d526
push esi
call fcn.00508de8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00508de8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00508c67
add esp, 0xc
jmp 0x50d4df
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.00508de8
pop ecx
push eax
push esi
call fcn.00508de8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00508de8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00507fcc
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x50d4df
xor eax, eax
jmp 0x50d526
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00508d38
add esp, 8
push 0x524a2f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00508d38
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00508d38
add esp, 8
push 0x524a31
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00508d38
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x510908
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x510935
jmp 0x51096c
call fcn.005108b8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00508de8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00508de8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5109f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x52506c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x510aca
cmp dword [0x525068], 0
jne 0x510aca
cmp dword [0x525268], 0
je 0x510a84
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.005103b8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x510a6a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.005103b8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x510a6a
lea ebx, [ebp - 0x84]
jmp 0x510a6b
inc ebx
call fcn.005109a8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x510b05
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x525070
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00508de8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x525073
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x510b05
cmp dword [0x525068], 0
je 0x510ae4
cmp dword [0x525068], 0xffffffff
je 0x510b05
push esi
call dword [0x525068]
pop ecx
mov eax, dword [0x52506c]
test eax, eax
je 0x510b05
cmp dword [0x52506c], 0xffffffff
je 0x510b05
cmp byte [eax], 0
je 0x510b05
push esi
push eax
call fcn.00510908
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5113a4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x52ccac], 0
jne 0x511425
cmp dword [0x52cccc], 0
jne 0x5113d4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x52cccc], eax
test eax, eax
jne 0x5113d4
push str.GetEnvironmentStrings_failed
call fcn.00510b1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x52cccc]
jmp 0x5113e8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00508de8
pop ecx
mov edi, eax
test eax, eax
jne 0x5113e0
lea edi, [ebp + 1]
push edi
call fcn.00507fac
pop ecx
mov ebx, eax
mov dword [0x52ccb0], ebx
test ebx, ebx
jne 0x511412
xor eax, eax
jmp 0x5114e5
push edi
mov edx, dword [0x52cccc]
push edx
push ebx
call fcn.00508a80
add esp, 0xc
jmp 0x511447
xor esi, esi
mov ebx, dword [0x52ccac]
jmp 0x51143f
push eax
call fcn.00508de8
pop ecx
test eax, eax
jne 0x51143b
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x51142f
lea ebx, [esi + 4]
push 4
mov dword [0x52ccb4], ebx
inc ebx
push ebx
call fcn.00507f10
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x511467
xor eax, eax
jmp 0x5114e5
cmp dword [0x52ccac], 0
jne 0x511496
xor esi, esi
mov ebx, dword [0x52ccb0]
mov ebp, dword [esp]
jmp 0x511487
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00508de8
pop ecx
mov edi, eax
test eax, eax
jne 0x51147d
jmp 0x5114c7
xor esi, esi
mov ebx, dword [0x52ccac]
mov edi, dword [esp]
jmp 0x5114bf
push eax
call fcn.00508de8
pop ecx
test eax, eax
je 0x5114b4
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x5114b8
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x5114a3
mov eax, dword [0x52ccac]
test eax, eax
je 0x5114d7
push eax
call fcn.00507fbc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x52ccac], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x9c48
call fcn.0040a490
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x9c44], eax
push esi
mov esi, dword [esp + 0x9c54]
push edi
mov edi, dword [esp + 0x9c54]
push edi
push 4
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0040a459
add esp, 0x10
cmp dword [esp + 8], 0
je 0x40110a
push ebx
push 0x419278
push esi
call fcn.0040a1a2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4010dd
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4010ba
cmp eax, 0x9c40
push edi
jge 0x401088
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.0040a459
push ebx
mov esi, eax
push esi
push 1
lea edx, [esp + 0x2c]
push edx
jmp 0x4010a4
push 0x9c40
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0040a459
push ebx
mov esi, eax
push esi
push 1
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040a05c
mov eax, dword [esp + 0x2c]
sub eax, esi
add esp, 0x20
mov dword [esp + 0xc], eax
test eax, eax
jg 0x401066
push ebx
call fcn.00409e7e
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x9c44]
xor ecx, esp
call fcn.0040a476
add esp, 0x9c48
ret
mov edx, dword [esp + 0xc]
push 1
push edx
push edi
call fcn.00409d82
add esp, 0xc
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c44]
xor ecx, esp
call fcn.0040a476
add esp, 0x9c48
ret
mov ecx, dword [esp + 0x9c4c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040a476
add esp, 0x9c48
ret

Function at 0x401130
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
mov dword [esi], edi
call fcn.0040a658
mov ebp, dword [esp + 0x20]
mov ecx, dword [esi]
mov dword [esi + 4], eax
push 0
lea eax, [eax + ebp - 0x16]
push eax
push ecx
call fcn.00409d82
push edi
push 0x16
lea ebx, [esi + 8]
push 1
push ebx
call fcn.0040a459
add esp, 0x20
cmp dword [ebx], 0x6054b50
je 0x40117d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esi + 4]
sub edx, dword [esi + 0x14]
mov dword [esi + 0x8c], 0
lea eax, [edx + ebp - 0x16]
mov dword [esi + 0x22], eax
mov eax, dword [esp + 0x20]
lea edx, [esi + 0x90]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011a0
pop edi
mov dword [esi + 0x88], 1
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4011c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, dword [esp + 0x54]
push edi
push esi
call fcn.0040a658
mov ebx, dword [esp + 0x60]
mov edi, eax
push 0
lea eax, [edi + ebx - 0x16]
push eax
push esi
call fcn.00409d82
push esi
push 0x16
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.0040a459
add esp, 0x20
cmp dword [esp + 0xc], 0x6054b50
je 0x40120b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
sub edi, dword [esp + 0x18]
push 0
lea edx, [edi + ebx - 0x16]
push edx
push esi
call fcn.00409d82
xor eax, eax
add esp, 0xc
xor edi, edi
xor ebx, ebx
cmp ax, word [esp + 0x16]
jae 0x40126c
lea esp, [esp]
push esi
push 0x2e
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.0040a459
movzx edx, word [esp + 0x54]
movzx eax, word [esp + 0x52]
movzx ecx, word [esp + 0x50]
add edx, eax
push 1
add edx, ecx
push edx
push esi
call fcn.00409d82
movzx edx, word [esp + 0x32]
add edi, dword [esp + 0x58]
inc ebx
add esp, 0x1c
cmp ebx, edx
jl 0x401230
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x48
ret
Function at 0x401700
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x41c1f0
push 1
push 0
push 0x41c210
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4017da
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x41c200
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4017cf
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push esi
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
je 0x40178c
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
test esi, esi
pop esi
jl 0x4017c3
mov ecx, dword [esp + 0xc]
push 0x400
push 0x420390
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4017c3
mov eax, dword [esp + 4]
mov edx, dword [eax]
push 1
push 0x420390
push eax
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
add esp, 8
ret

Function at 0x4017e0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41f060]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x2001f
push 0
push 0x4192b9
push 0
push esi
push 0x80000000
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x4192b9
push 1
push 0
push str.URL_Protocol
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [esp + 0x18]
push str._s_shellopencommand
push eax
call fcn.0040a6c6
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0x4192b9
push 0
lea edx, [esp + 0x30]
push edx
push 0x80000000
call ebx
mov eax, edi
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401890
sub eax, ecx
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push 0
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a476
add esp, 0x10c
ret
Function at 0x4018d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x42676c]
mov ecx, dword [0x426498]
sub esp, 8
push esi
push 0
push eax
push ecx
call fcn.00409d82
mov edx, dword [0x426498]
push edx
call fcn.0040a80a
add esp, 0x10
test eax, eax
jne 0x40195e
mov esi, dword [esp + 0x10]
nop
mov eax, dword [0x426498]
push eax
push 4
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.0040a459
add esp, 0x10
cmp eax, 4
jne 0x40195e
mov edx, dword [0x426498]
push edx
push eax
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0040a459
add esp, 0x10
cmp dword [esp + 4], esi
je 0x401968
mov ecx, dword [esp + 8]
mov edx, dword [0x426498]
push 1
push ecx
push edx
call fcn.00409d82
mov eax, dword [0x426498]
push eax
call fcn.0040a80a
add esp, 0x10
test eax, eax
je 0x401900
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret