joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b367
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp + 8]
xor edi, edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x1000b4a2
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov ebx, eax
push ebx
push esi
push 0
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000b495
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000b495
cmp dword [ebp + 0xc], 0
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, 0x10070ee4
je 0x1000b425
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04xFileDescription
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000b425
mov ebx, dword [ebp + 0x10]
push dword [ebp - 4]
lea eax, [ebx - 1]
push edi
push eax
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp + 0xc]
add esp, 0x10
and byte [eax + ebx - 1], 0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1000b492
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04xCompanyName
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1000b47c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.StringFileInfo040904E4CompanyName
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000b492
push dword [ebp - 4]
push edi
mov edi, dword [ebp + 0x18]
lea eax, [edi - 1]
push eax
push ebx
call esi
add esp, 0x10
and byte [ebx + edi - 1], 0
push 1
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1000b4a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov dl, byte [0x10078b14]
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x35f]
mov byte [ebp - 0x360], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
cmp dword [ebp + 0xc], esi
lea eax, [ebp - 0x158]
push eax
je 0x1000b525
push str.regsvr32.exe__s__s
jmp 0x1000b52a
push str.regsvr32.exe__u__s__s
lea eax, [ebp - 0x360]
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x10]
or dword [ebp - 0x28], 1
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x360]
push esi
push eax
push esi
mov word [ebp - 0x24], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x1000b580
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1000b8d5
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x410]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1000badc
lea eax, [ebp - 0x618]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000bac7
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x618]
push 0x10070f60
push eax
lea eax, [ebp - 0x208]
xor ebx, ebx
push eax
mov dword [ebp + 8], ebx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1000b9b9
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x1000b9b9
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1000badc
cmp dword [ebp + 0xc], 2
jl 0x1000b9aa
push 1
pop edi
cmp dword [ebp + 0xc], edi
jle 0x1000b9aa
lea esi, [ebx + 4]
mov eax, dword [esi]
cmp word [eax], 0x2f
je 0x1000b998
push dword [ebp + 0x10]
push 0x10070f54
push eax
call fcn.1000b88b
add esp, 0xc
test eax, eax
jne 0x1000b9a3
inc edi
add esi, 4
cmp edi, dword [ebp + 0xc]
jl 0x1000b97b
jmp 0x1000b9aa
mov dword [ebp + 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
jmp 0x1000bade
lea eax, [ebp - 0x618]
push 0x10070f38
push eax
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x1000ba3d
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x1000ba3d
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x1000badc
cmp dword [ebp + 0xc], 2
jl 0x1000ba2f
mov esi, dword [edi + 4]
push 0x2c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x1000ba17
and word [eax], 0
push dword [ebp + 0x10]
push 0x10070f54
push esi
call fcn.1000b88b
add esp, 0xc
test eax, eax
je 0x1000ba2f
push 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1000bade
and dword [ebp + 8], 0
lea eax, [ebp - 0x618]
push str.cmd.exe
push eax
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x1000bac7
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x1000bac7
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1000badc
push 1
pop edi
cmp dword [ebp + 0xc], edi
jle 0x1000babb
lea esi, [ebx + 4]
mov eax, dword [esi]
cmp word [eax], 0x2f
je 0x1000baa9
push dword [ebp + 0x10]
push 0x10070f1c
push eax
call fcn.1000b88b
add esp, 0xc
test eax, eax
jne 0x1000bab4
inc edi
add esi, 4
cmp edi, dword [ebp + 0xc]
jl 0x1000ba8c
jmp 0x1000babb
mov dword [ebp + 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
jmp 0x1000bade
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 1
pop eax
jmp 0x1000bade
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000be4e
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10053b34
call fcn.10052270
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.1000c730
xor esi, esi
push 0x34
mov dword [ebp - 4], esi
call fcn.1000a2ec
push 0x42
mov edi, eax
call fcn.1000a2ec
push 0x44
mov ebx, eax
call fcn.1000a2ec
add esp, 0xc
cmp edi, esi
mov dword [ebp - 0x18], eax
je 0x1000bed7
cmp ebx, esi
je 0x1000bed7
cmp eax, esi
je 0x1000bed7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call edi
mov edi, eax
cmp edi, esi
jne 0x1000bef1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x10]
mov edi, eax
call dword [ebp - 0x18]
jmp 0x1000bef1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1000c74b
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x1000bfd2
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x10053b5c
call fcn.10052270
sub esp, 0x114
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.1000c730
xor edi, edi
push 0x30
mov dword [ebp - 4], edi
call fcn.1000a2ec
push 0x40
mov esi, eax
call fcn.1000a2ec
push 0x44
mov ebx, eax
call fcn.1000a2ec
add esp, 0xc
cmp esi, edi
mov dword [ebp - 0x18], eax
je 0x1000c136
cmp ebx, edi
je 0x1000c136
cmp eax, edi
je 0x1000c136
cmp dword [ebp + 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0x1c]
je 0x1000c04e
push dword [edi]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1000c04e
push 8
pop esi
jmp 0x1000c150
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x1000c122
mov esi, dword [ebp + 0x14]
push edi
push dword [ebp - 0x10]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call dword [ebp - 0x18]
cmp dword [ebp + 0xc], 0
jne 0x1000c122
cmp dword [ebp - 0x10], 0
je 0x1000c131
cmp dword [esi], 2
jne 0x1000c0be
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrA]
push 0x25
push dword [ebp - 0x10]
call ebx
mov esi, eax
test esi, esi
je 0x1000c0be
inc esi
push 0x25
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x1000c0d0
push dword [edi]
push dword [ebp - 0x10]
push dword [ebp + 0x18]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x1000c122
and byte [ebp - 0x120], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
and byte [ebx], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
inc ebx
and byte [esi - 1], 0
lea eax, [ebp - 0x120]
push ebx
push eax
mov eax, dword [ebp + 0x1c]
push dword [ebp - 0x10]
push 0x10070f7c
push dword [eax]
push dword [ebp + 0x18]
call fcn.10001f81
add esp, 0x18
cmp dword [ebp - 0x10], 0
je 0x1000c131
push dword [ebp - 0x10]
call fcn.10052200
pop ecx
mov esi, dword [ebp + 0xc]
jmp 0x1000c150
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1000c74b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x1000c38e
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x10053b84
call fcn.10052270
sub esp, 0x118
push ebx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1000c730
xor ebx, ebx
push 0x30
mov dword [ebp - 4], ebx
call fcn.1000a2ec
push 0x44
mov dword [ebp - 0x14], eax
call fcn.1000a2ec
push 0x36
mov dword [ebp - 0x18], eax
call fcn.1000a2ec
push 0x3c
mov esi, eax
call fcn.1000a2ec
add esp, 0x10
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
je 0x1000c47b
cmp dword [ebp - 0x18], ebx
je 0x1000c47b
cmp esi, ebx
je 0x1000c47b
cmp eax, ebx
je 0x1000c47b
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push dword [ebp + 0xc]
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
call esi
cmp eax, ebx
pop edi
je 0x1000c487
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp eax, ebx
jne 0x1000c487
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x14], 0x104
push eax
push ebx
push dword [ebp - 0x10]
call dword [ebp - 0x20]
test eax, eax
jne 0x1000c46b
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x10]
call fcn.1000c38e
test eax, eax
je 0x1000c437
push dword [ebp - 0x10]
call dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
jmp 0x1000c487
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.1000c74b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1000c5c2
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x10053bac
call fcn.10052270
sub esp, 0xc
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.1000c730
xor esi, esi
push 0x30
mov dword [ebp - 4], esi
call fcn.1000a2ec
push 0x44
mov edi, eax
call fcn.1000a2ec
push 0x38
mov ebx, eax
call fcn.1000a2ec
add esp, 0xc
cmp edi, esi
mov dword [ebp - 0x14], eax
je 0x1000c632
cmp ebx, esi
je 0x1000c632
cmp eax, esi
je 0x1000c632
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 2
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, esi
jne 0x1000c641
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [ebp - 0x14]
push dword [ebp - 0x10]
mov esi, eax
call ebx
jmp 0x1000c643
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000c74b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1000cf7e
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x1000cf9a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x1000cf91
pop esi
ret

Function at 0x1000d03a
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push 0x30
push 0x100710c4
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.1000cf2e
push 0x30
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push eax
call fcn.1000cf7e
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.1000cfe5
push 0x20
push 0x1005d630
push esi
push esi
call fcn.1000cf2e
add esp, 0x34
pop esi
leave
ret

Function at 0x1000d081
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x40
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.1000ce80
push 0x38
lea eax, [ebp - 0x40]
push str.91__
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1000cf2e
add esp, 0x1c
xor edi, edi
mov ebx, 0x10078f70
movzx eax, byte [edi + 0x1005d6b8]
lea esi, [edi + 0x1005d6b8]
push eax
lea eax, [ebp - 0x40]
push 0x1c
push eax
call fcn.1000cf9c
movzx eax, byte [esi]
push eax
lea eax, [ebp - 0x24]
push 0x1c
push eax
call fcn.1000cf9c
push 0x30
lea eax, [ebp - 0x40]
push 0x1005d688
push eax
push ebx
call fcn.1000cf2e
add esp, 0x28
add ebx, 0x30
inc edi
cmp ebx, 0x10079270
jl 0x1000d0b6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000d103
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
push 0x40
lea eax, [ebp - 0x60]
push dword [ebp + 0xc]
push eax
call fcn.1000ce80
push 0x40
lea eax, [ebp - 0x60]
push 0x1005d5b0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1000cf2e
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x1000d1ad
push 0x20
mov esi, 0x10078f70
pop edi
lea eax, [ebp - 0x40]
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.1000d03a
lea eax, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1000cf7e
add esp, 0x20
cmp esi, 0x10079240
push edi
jge 0x1000d182
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x1000d1a0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
add esi, 0x30
cmp esi, 0x10079270
jl 0x1000d13e
jmp 0x1000d221
push ebx
push 0x20
mov ebx, 0x10079240
mov esi, 0x10078f70
pop edi
lea eax, [ebp - 0x40]
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.1000d03a
lea eax, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1000cf7e
add esp, 0x20
cmp ebx, esi
push edi
jle 0x1000d1fb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x1000d219
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
sub ebx, 0x30
cmp ebx, esi
jge 0x1000d1bb
pop ebx
push 0x40
lea eax, [ebp - 0x60]
push 0x1005d5f0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1000cf2e
lea eax, [ebp - 0x60]
push 0x40
push eax
push dword [ebp + 8]
call fcn.1000cee3
add esp, 0x1c
pop edi
pop esi
leave
ret
Function at 0x1000dc14
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
mov esi, 0x800
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x800]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x800]
push 0x100711ec
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov edi, dword [sym.imp.MSVCRT.dll__mbsnbcat]
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x800]
push eax
call edi
push esi
lea eax, [ebp - 0x800]
push 0x100711c0
push eax
call edi
push esi
lea eax, [ebp - 0x800]
push dword [ebp + 0xc]
push eax
call edi
push esi
lea eax, [ebp - 0x800]
push 0x1007119c
push eax
call edi
add esp, 0x48
lea eax, [ebp - 0x800]
push esi
push dword [ebp + 8]
push eax
call edi
push esi
lea eax, [ebp - 0x800]
push 0x10071184
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x800]
push 0x14
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x1000dcdb
push 5
push ebx
push ebx
push str.http:__down.360safe.com_setup.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebx

Function at 0x1000de24
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000dee1
cmp dword [ebp + 0xc], 0
je 0x1000dee1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000dee1
cmp byte [edi], 0x25
jne 0x1000dec9
inc edi
push 0x25
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x1000dee1
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, ebx
sub eax, edi
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
pop esi
je 0x1000dee1
inc ebx
lea eax, [ebp - 0x208]
push ebx
push eax
push str._s_s
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10001f81
add esp, 0x14
jmp 0x1000dedc
push edi
dec eax
push 0x10070ee4
push eax
push dword [ebp + 0xc]
call fcn.10001f81
add esp, 0x10
push 1
pop eax
jmp 0x1000dee3
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x1000e2d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
push esi
xor eax, eax
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str.E70F1AA0_AB8B_11CF_8CA3_00805F48A192
mov dword [ebp - 0x14], str.9D60A9E0_337A_11D0_BD88_0000C082E69A
mov dword [ebp - 0x10], str.8D5F1830_C273_11CF_95C8_00805F48A192
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor edi, edi
lea esi, [ebp - 0x18]
push dword [esi]
push dword [ebp + 8]
call ebx
pop ecx
test eax, eax
pop ecx
je 0x1000e326
inc edi
add esi, 4
cmp edi, 3
jb 0x1000e30e
jmp 0x1000e32f
push 1
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dl, byte [0x10078b14]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], dl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
mov dword [ebp - 0x1c], str.mswsock.dll
push eax
mov dword [ebp - 0x18], str.rsvpsp.dll
mov dword [ebp - 0x14], str.msafd.dll
mov dword [ebp - 0x10], str.ws2_64.dll
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor edi, edi
lea esi, [ebp - 0x1c]
push dword [esi]
lea eax, [ebp - 0x120]
push eax
push 0x10070058
lea eax, [ebp - 0x224]
push 0x103
push eax
call fcn.10001f81
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call ebx
add esp, 0x1c
test eax, eax
je 0x1000e3d4
inc edi
add esi, 4
cmp edi, 4
jb 0x1000e394
push 1
pop ecx
jmp 0x1000e3dd
push 1
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
xor eax, eax
pop edi
cmp dword [ebp - 0xc], eax
pop esi
pop ebx
je 0x1000e3ee
cmp dword [ebp - 8], eax
je 0x1000e3ee
mov eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x1000f697
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
cmp dword [ecx + 0x18], edi
push edi
je 0x1000f6a9
push 1
jmp 0x1000f6ae
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x1000f6cb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x1000f9c9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
jne 0x1000f9fc
xor eax, eax
jmp 0x1000fab3
push edi
mov edi, dword [ebp + 0x10]
cmp edi, ebx
jne 0x1000fa0e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
jae 0x1000faa6
cmp dword [ebp + 0xc], ebx
je 0x1000fa2b
push ebx
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1000faa6
lea eax, [ebp + 0xc]
push ebx
push eax
push edi
push esi
mov dword [ebp + 0xc], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000fa9e
lea eax, [ebp - 0x7c]
push ebx
push eax
mov byte [esi + edi], bl
call fcn.100105ea
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.10010630
lea eax, [ebp - 0x7c]
push eax
call fcn.10010fac
lea eax, [ebp - 0x24]
push 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push eax
call fcn.10019f77
add esp, 0x30
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret