joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001951d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
mov ebx, esi
mov dword [ebp - 8], ecx
mov ecx, esi
push edi
mov eax, ecx
mov byte [ebp + ecx - 0x108], cl
and eax, 0x1f
mov al, byte [eax + edx]
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x10019538
mov edi, esi
mov dl, byte [ebp + edi - 0x108]
movzx eax, byte [ebp + edi - 0x208]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x1001957f
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x108]
mov byte [ebp + ebx - 0x108], dl
mov byte [ebp + edi - 0x108], al
inc edi
cmp edi, 0x100
jl 0x10019559
mov edi, esi
cmp dword [ebp - 4], esi
jle 0x10019611
mov ebx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
sub ebx, edx
inc esi
and esi, 0x800000ff
jns 0x100195bd
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + esi - 0x108]
movzx eax, cl
add edi, eax
and edi, 0x800000ff
jns 0x100195d9
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + edi - 0x108], cl
mov byte [ebp + esi - 0x108], al
movzx ecx, byte [ebp + edi - 0x108]
movzx eax, al
add ecx, eax
movzx eax, cl
mov al, byte [ebp + eax - 0x108]
xor al, byte [ebx + edx]
mov byte [edx], al
inc edx
sub dword [ebp - 4], 1
jne 0x100195ac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100196f6
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push 0x2e
pop edx
push 9
mov ecx, str.._AUIBrowserMonitor_Piriform__
pop ebx
lea eax, [edx - 0x30]
cmp ax, bx
ja 0x10019720
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10019704
mov eax, dword [0x1002d7b4]
jmp 0x1001972a
mov eax, dword [0x1002c620]
and eax, 0xc3f8e8ae
or eax, 0x5821fc8b
xor ecx, ecx
mov edx, ecx
inc edx
cmp edx, 0x2be
je 0x10019746
cmp byte [edx + str.songbird.exe], cl
jne 0x10019733
jmp 0x1001974c
imul eax, eax, 0x47f4cc17
and eax, 0x6363ec57
mov edx, ecx
xor eax, 0x6f31561c
inc edx
cmp edx, 0xd78
jl 0x1001976b
cmp byte [edx + str.too_many_arguments_on_function__T], cl
jne 0x10019758
jmp 0x10019770
xor eax, 0xf4e5f3f3
add eax, 0x46ab6ce4
xor eax, 0xfbc86cd4
mov bl, byte [str.schannel:_certificate_format_compatibility_error__for__s]
mov edx, eax
or edx, 0x4304dcfa
mov esi, str.schannel:_certificate_format_compatibility_error__for__s
jmp 0x1001979a
sub bl, 0x30
cmp bl, 9
ja 0x100197a0
inc esi
mov bl, byte [esi]
test bl, bl
jne 0x1001978f
jmp 0x100197a6
lea edx, [eax + 0x1e9d72f]
mov esi, ecx
inc esi
cmp esi, 0xca3
jl 0x100197bb
cmp byte [esi + str.too_many_arguments_on_function__T], cl
jne 0x100197a8
jmp 0x100197c7
lea edx, [eax + 0x548a47a8]
and edx, 0x99e4a3d7
add edx, 0x608939c2
mov esi, edx
mov edi, str.mobile_country_code
push 0x6d
or esi, 0x1a4acf64
pop ebx
lea eax, [ebx - 0x30]
push 9
pop ebx
cmp ax, bx
ja 0x100197f7
add edi, 2
movzx eax, word [edi]
mov ebx, eax
test ax, ax
jne 0x100197dd
jmp 0x100197fd
imul esi, edx, 0x9a38fa91
push 0x2e
imul eax, esi, 0x474affc2
mov edx, 0xdee
mov esi, str.._AUIBrowserMonitor_Piriform__
pop edi
add edx, edi
lea esi, [esi + 2]
cmp edx, 0x24f3
ja 0x10019826
movzx edi, word [esi]
test edi, edi
jne 0x10019810
jmp 0x1001982b
sub eax, 0x30a84a7
inc ecx
cmp ecx, 0x129
je 0x1001983f
cmp byte [ecx + str.songbird.exe], 0
jne 0x1001982b
jmp 0x10019844
sub eax, 0x432efa85
lea edx, [eax + 0x2349d1f]
mov esi, str.too_many_arguments_on_function__T
or edx, 0x8cdd19bc
mov cl, 0x74
mov eax, edx
xor eax, 0xee4df3c
sub cl, 0x30
cmp cl, 9
ja 0x1001986f
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x1001985e
jmp 0x10019875
lea eax, [edx + 0x6f6fbc8b]
movzx ecx, byte [0x1002d8d0]
xor eax, 0xbfe4ebc0
mov edx, 0x4f7
mov esi, 0x1002d8d0
jmp 0x1001989b
add edx, ecx
inc esi
cmp edx, 0x12b
ja 0x100198a1
movzx ecx, byte [esi]
test ecx, ecx
jne 0x1001988d
jmp 0x100198a7
imul eax, eax, 0xfa9ab5f8
or eax, 0x82228820
add eax, 0xde425c02
pop edi
mov dword [0x1002c620], eax
and eax, 0x53d17c33
pop esi
mov dword [0x1002d7b4], eax
pop ebx
ret
Function at 0x1001bdf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x52
mov esi, str.RegKey2HKCUSoftwareAltovaXML_SpyRecent_Project_List
mov eax, 0xd62
pop edi
mov ecx, esi
mov edx, edi
add eax, edx
lea ecx, [ecx + 2]
cmp eax, 0x222d
ja 0x1001be21
movzx edx, word [ecx]
test edx, edx
jne 0x1001be07
mov eax, dword [0x1002d9a4]
jmp 0x1001be2b
mov eax, dword [0x1002da38]
add eax, 0x532a3d3
push ebx
mov ecx, dword [0x1002dc9c]
xor ecx, 0x4cd458f9
and eax, 0x40040a2
movzx edx, byte [0x1002dba0]
mov ebx, 0x1002dba0
mov dword [ebp - 4], 0x126a
jmp 0x1001be62
add dword [ebp - 4], edx
inc ebx
cmp dword [ebp - 4], 0xead
ja 0x1001be68
movzx edx, byte [ebx]
test edx, edx
jne 0x1001be52
jmp 0x1001be6e
imul ecx, ecx, 0x63f55e12
add eax, 0x5ccaa841
add eax, 0x4bf07093
imul edx, eax, 0xfa9e5039
mov eax, 0x207f
pop ebx
add eax, edi
lea esi, [esi + 2]
cmp eax, 0x74
ja 0x1001be97
movzx edi, word [esi]
test edi, edi
jne 0x1001be84
jmp 0x1001be9d
lea ecx, [edx + 0x71d85405]
imul eax, ecx, 0xffbab906
lea ecx, [edx - 0x35423187]
xor edx, edx
mov dword [0x1002dd1c], ecx
pop edi
pop esi
cmp byte [str.SoftwareUpate_Trial_Fallback], dl
je 0x1001bed6
inc edx
cmp edx, 0xa1a
jg 0x1001becf
cmp byte [edx + str.SoftwareUpate_Trial_Fallback], 0
jne 0x1001bebb
jmp 0x1001bed6
mov eax, ecx
and eax, 0x12978fda
and eax, 0xedae8cc0
mov dword [0x1002d9a4], eax
mov eax, ecx
xor ecx, 0x3303d2d9
and eax, 0xb406c9a7
sub ecx, 0x212ec54
mov dword [0x1002da9c], eax
add eax, 0x1ed16db5
mov dword [0x1002dc9c], ecx
mov dword [0x1002da38], eax
leave
ret
Function at 0x1001d2fa
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
ret
Function at 0x99768c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9976b3
call fcn.00939c18
mov dword [eax], esi
call fcn.00939c05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093a85a
mov eax, esi
jmp 0x997708
test dword [ebp + 0xc], 0xfffffff9
jne 0x997699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9976e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00939c2b
pop ecx
call fcn.00939c05
mov eax, dword [eax]
jmp 0x997708
test al, 0x10
jne 0x997706
test al, 1
je 0x997706
test byte [ebp + 0xc], 2
je 0x997706
call fcn.00939c18
mov dword [eax], 5
call fcn.00939c05
mov dword [eax], 0xd
jmp 0x9976d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x20de20bf
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x376b63ec
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403860
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x425014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.aabbcc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40393a
push 0x104
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40393a
test esi, esi
je 0x4038c3
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str._c_del
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004034a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call esi
push str.____NUL
lea eax, [ebp - 0x418]
push eax
call esi
call fcn.004034a0
push 0x104
lea eax, [ebp - 0x210]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40393a
push 0
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a2a3
mov esp, ebp
pop ebp
ret
Function at 0x409520
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409530
Function at 0x40ad2b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ad6a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ad6a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ad6a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ad6a
cmp dword [ecx + 0x74], 0xe
jbe 0x40ad6a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x411ae2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e6f8
push 0x41e6f0
push str.FlsAlloc
push 0x1e
call fcn.00411a00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411b16
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a160]
call esi
jmp 0x411b1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411b60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e708
push 0x41e700
push str.FlsGetValue
push 0x20
call fcn.00411a00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411b97
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x413254
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4132f1
push ebx
push esi
call fcn.0041321d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413166
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41329e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4132f0
push edi
push eax
call fcn.00411899
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4132be
call fcn.0041046d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4132ef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413166
add esp, 0x20
test eax, eax
jne 0x4132dd
push edi
call fcn.0041046d
jmp 0x4132e5
push ebx
call fcn.0041046d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x415c7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x6261c0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415cbe
cmp byte [ebx], 0xa
jne 0x415cbe
or byte [eax + edi + 0x28], 4
jmp 0x415cc3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415dc1
mov al, byte [edx]
cmp al, 0x1a
je 0x415da3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x415cf2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x415d17
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x415d21
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x415cd4
jmp 0x415dc1
push 0
lea eax, [ebp - 0xc]
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 0x415d9e
cmp dword [ebp - 0xc], 0
je 0x415d9e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6261c0]
test byte [eax + edi + 0x28], 0x48
je 0x415d78
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415d63
mov byte [esi], dl
jmp 0x415d74
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6261c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415dc1
cmp byte [ebp - 1], 0xa
jne 0x415d87
cmp esi, ebx
jne 0x415d87
mov byte [esi], 0xa
jmp 0x415dc0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a77
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415dc1
mov byte [esi], 0xd
jmp 0x415dc0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6261c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415dbd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415dc1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415dca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6261c0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415e0d
cmp word [esi], dx
jne 0x415e0d
or byte [edi + eax + 0x28], 4
jmp 0x415e12
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415f4b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415f2b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415e54
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415e8a
cmp eax, edx
jae 0x415e96
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x415e2c
jmp 0x415f4b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415f27
cmp dword [ebp - 0x14], 0
je 0x415f27
mov eax, dword [ebx*4 + 0x6261c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415eff
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x415f45
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6261c0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x6261c0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6261c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x415f48
pop ebx
cmp word [ebp - 4], bx
jne 0x415f10
cmp esi, dword [ebp + 0xc]
jne 0x415f10
mov word [esi], bx
jmp 0x415f48
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415a77
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415f4b
push 0xd
jmp 0x415f44
mov ecx, dword [ebx*4 + 0x6261c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415f42
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415f4b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416f75
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]
push dword [ebp + 0xc]
push ebx
call fcn.00416ef1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4170ed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4170ed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41709c
jg 0x416fce
test eax, eax
je 0x417092
push 1
push 0x1000
call fcn.00411dd5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416ff4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x417089
push 0x8000
push ebx
call fcn.0040ef8f
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x417020
jg 0x41701b
cmp ecx, 0x1000
jb 0x417020
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041131c
add esp, 0x10
cmp eax, 0xffffffff
je 0x417065
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 0x41701b
jl 0x41704c
test ecx, ecx
jne 0x41700d
push dword [ebp - 0xc]
push ebx
call fcn.0040ef8f
push esi
call fcn.0041046d
add esp, 0xc
xor edi, edi
jmp 0x4170fe
cmp byte [edi + 0x24], 0
je 0x41707c
cmp dword [edi + 0x20], 5
jne 0x41707c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x417087
mov edi, dword [edi + 0x18]
jmp 0x417089
xor edi, edi
push esi
call fcn.0041046d
pop ecx
jmp 0x4170fe
test ecx, ecx
jg 0x41705e
jl 0x41709c
test eax, eax
jae 0x41705e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415a77
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4170bf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41705e
jmp 0x4170f6
push ebx
call fcn.00413cd7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41705e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4170fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4170fb
mov edi, dword [edi + 0x18]
jmp 0x4170fe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415a77
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4190f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41911d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41911d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x104f11
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x404980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x42b01c]
push edi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x2ab03c8
nop
push eax
nop
call 0x77f1296e
mov ebx, eax
push 0x434fb0
mov dword [ebp - 4], ebx
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
mov byte [ebx + edi], 0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x404a9a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x6ff643d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x434fb0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x404a26
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x2ab03cd
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret