joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047199
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10068618]
je 0x100471b4
inc edi
cmp edi, 0x17
jb 0x100471a5
cmp edi, 0x17
jae 0x10047334
push ebp
push 3
call fcn.1004da7a
cmp eax, 1
pop ecx
je 0x10047300
push 3
call fcn.1004da7a
test eax, eax
pop ecx
jne 0x100471e8
cmp dword [0x1006947c], 1
je 0x10047300
cmp ebx, 0xfc
je 0x10047333
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10069b00
push ebp
call fcn.1003b1ec
add esp, 0xc
test eax, eax
je 0x1004721e
push esi
push esi
push esi
push esi
push esi
call fcn.10039582
add esp, 0x14
push 0x104
mov esi, 0x10069b19
push esi
push 0
mov byte [0x10069c1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10047262
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1003b1ec
add esp, 0xc
test eax, eax
je 0x10047262
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10039582
add esp, 0x14
push esi
call fcn.10038bb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100472a7
push esi
call fcn.10038bb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10069e14
push 0x1005e5f4
sub ecx, eax
push ecx
push eax
call fcn.1003b3ae
add esp, 0x14
test eax, eax
je 0x100472a7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10039582
add esp, 0x14
jmp 0x100472a9
xor esi, esi
push 0x1005e5f0
push ebx
push ebp
call fcn.1003b6df
add esp, 0xc
test eax, eax
je 0x100472c9
push esi
push esi
push esi
push esi
push esi
call fcn.10039582
add esp, 0x14
push dword [edi*8 + 0x1006861c]
push ebx
push ebp
call fcn.1003b6df
add esp, 0xc
test eax, eax
je 0x100472eb
push esi
push esi
push esi
push esi
push esi
call fcn.10039582
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1004d8bd
add esp, 0xc
jmp 0x10047333
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10047333
cmp ebp, 0xffffffff
je 0x10047333
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1006861c]
push dword [esi]
call fcn.10038bb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1004d8bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1004388c
xor ebx, ebx
cmp dword [0x10069f38], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1004d993
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004da73
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1004da73
push eax
call fcn.1004381e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10069f38], eax
call esi
push eax
call fcn.1004381e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10069f3c], eax
call esi
push eax
call fcn.1004381e
mov dword [0x10069f40], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003f49b
test eax, eax
pop ecx
pop ecx
je 0x1004d961
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10039582
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1004d993
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1004381e
cmp eax, ebx
pop ecx
mov dword [0x10069f48], eax
je 0x1004d993
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1004381e
pop ecx
mov dword [0x10069f44], eax
mov eax, dword [0x10069f44]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1004da18
cmp dword [0x10069f48], ecx
je 0x1004da18
push eax
call fcn.10043895
push dword [0x10069f48]
mov esi, eax
call fcn.10043895
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1004da18
cmp edi, ebx
je 0x1004da18
call esi
cmp eax, ebx
je 0x1004d9e5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004d9e5
test byte [ebp - 0x18], 1
jne 0x1004da18
lea eax, [ebp - 0x10]
push eax
call fcn.1003f4d2
test eax, eax
pop ecx
je 0x1004da00
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10039582
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1004da0f
or dword [ebp + 0x10], 0x200000
jmp 0x1004da53
or dword [ebp + 0x10], 0x40000
jmp 0x1004da53
mov eax, dword [0x10069f3c]
cmp eax, dword [ebp - 8]
je 0x1004da53
push eax
call fcn.10043895
cmp eax, ebx
pop ecx
je 0x1004da53
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004da53
mov eax, dword [0x10069f40]
cmp eax, dword [ebp - 8]
je 0x1004da53
push eax
call fcn.10043895
cmp eax, ebx
pop ecx
je 0x1004da53
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10069f38]
call fcn.10043895
cmp eax, ebx
pop ecx
je 0x1004da73
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004da75
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xa170b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa17200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa170d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa170c2
add dl, dl
jne 0xa170e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa17134
xor eax, eax
add dl, dl
jne 0xa170ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa171d5
add dl, dl
jne 0xa170fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa17108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa17113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1711e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa1712a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa170cd
mov eax, 1
add dl, dl
jne 0xa17142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1714d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa17139
sub eax, ebx
mov ebx, 1
jne 0xa17180
mov ecx, 1
add dl, dl
jne 0xa17166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa17171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1715d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa170cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa17197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa171a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1718e
cmp eax, 0x7d00
jae 0xa171c5
cmp eax, 0x500
jb 0xa171c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa170cd
cmp eax, 0x7f
ja 0xa171c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa170cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa171f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa170cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push edx
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100013dc
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100013db
cmp dword [ebp - 8], 1
je 0x100013a5
pop edi
mov eax, 0x70c
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 4]
mov dword [esi], eax
push ecx
push eax
push 0
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x100013d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001a50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
lea ecx, [ebp - 0xc]
push esi
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x10001afa
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x10001af1
push edi
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10001aea
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x100130b8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10001aea
mov eax, dword [ebp - 4]
push 0x30
push 0x40
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10001aea
mov eax, dword [ebp - 8]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
movzx ecx, bx
push ecx
shr ebx, 0x10
push ebx
push 0x100130bc
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002050
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10015664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push edi
push dword [0x100182ac]
push eax
call esi
push str.SystemAppsMicrosoft.MicrosoftEdge_8wekyb3d8bbweAppxManifest.xml
push dword [0x100182ac]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
lea eax, [ecx + eax*2]
push eax
call esi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push ecx
cmove eax, ecx
push eax
push 3
push ecx
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002221
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000221a
mov eax, dword [ebp - 0x210]
inc eax
push eax
push ebx
push esi
call fcn.10007250
add esp, 0xc
mov dword [ebp - 0x218], ebx
lea eax, [ebp - 0x218]
push ebx
push eax
mov eax, dword [ebp - 0x210]
inc eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002212
mov eax, dword [ebp - 0x210]
cmp dword [ebp - 0x218], eax
jne 0x10002212
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc eax
mov dword [ebp - 0x21c], eax
add eax, eax
push eax
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10002212
push dword [ebp - 0x210]
push 0
push ebx
call fcn.10007250
add esp, 0xc
push dword [ebp - 0x21c]
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str._Identity
push ebx
call esi
test eax, eax
je 0x10002221
push str.Version_
push eax
call esi
mov edi, eax
test edi, edi
je 0x10002221
push 0x10012dec
add edi, 0x12
push edi
call esi
mov esi, eax
test esi, esi
je 0x10002221
sub esi, edi
sar esi, 1
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x10002223
lea ecx, [esi + 1]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x214]
jmp 0x10002223
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebx, ebx
je 0x10002234
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006338
mov esp, ebp
pop ebp
ret
Function at 0x10002940
Capabilities:
Check os version
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [0x100182d0], ecx
mov dword [0x100182d4], eax
cmp ecx, 0x400
je 0x1000296a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + 8], 1
pop ebp
ret
push esi
mov esi, dword [ebp + 0x18]
push edi
push 0x10002910
push dword [0x100182b0]
mov eax, dword [esi + 0xc]
call eax
push 0x100182c8
mov dword [0x100182b8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x100182c4], eax
movzx eax, al
mov dword [0x100182b4], eax
mov dword [0x100182cc], 0
mov dword [0x100182c0], 0
mov dword [0x100182ac], 0
cmp eax, 6
jb 0x10002a27
cmp dword [0x100182c8], 0
mov eax, 0x100117b0
mov edi, eax
je 0x100029e7
mov eax, 0x10011790
mov edi, 0x100117a0
mov esi, dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push 0x100182cc
push 0
push 0
push eax
call esi
push 0x100182c0
push 0
push 0
push edi
call esi
push 0x100182ac
push 0
push 0
push 0x10011780
call esi
push 0x100182bc
push 0
push 0
push 0x10011770
call esi
jmp 0x10002a7c
cmp dword [0x100182c8], 0
mov ecx, 0x2a
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, 0x26
push 0
push 0
push 0
cmovne eax, ecx
push eax
push 0
call esi
push dword [0x100182c0]
push 0
push 0
push 0x26
push 0
call esi
push dword [0x100182ac]
push 0
push 0
push 0x24
push 0
call esi
push dword [0x100182bc]
push 0
push 0
push 0x1c
push 0
call esi
cmp dword [0x100182cc], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
jne 0x10002aab
push 0x208
push 0x40
call edi
mov dword [0x100182cc], eax
test eax, eax
je 0x10002aab
push str.C:Program_Files
push eax
call esi
cmp dword [0x100182ac], 0
jne 0x10002ace
push 0x208
push 0x40
call edi
mov dword [0x100182ac], eax
test eax, eax
je 0x10002ace
push str.C:Windows
push eax
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x4095e9
Capabilities:
Terminate process

Disassembly:
pushal
push 0
push 0x41c2c1
call dword [sym.imp.USER32.dll_CharPrevA]
mov eax, dword [esp + 0x40]
cmp eax, 0x7c801079
jne 0x412b91
call dword [sym.imp.USER32.dll_FrameRect]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
sub ecx, 0x61764737
add eax, ecx
inc edi
push ebp
mov ebp, esp
add esp, 0xffffff90
push 0x7054
push 0x4c4b
push dword [ebp - 0x10]
push edx
push 0x4942524a
push 0x505152
push eax
push 0x554b
call fcn.004124d5
leave
ret
popal
mov edx, 0xfffffeff
dec ebx
add eax, 0x3641
add ebx, esi
add ecx, edx
jne 0x411b14
mov esi, ecx
add esi, ebx
dec eax
ret
Function at 0x43eff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c39f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x501320]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x20], 7
push eax
push 0x4d58ec
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.004096f0
lea eax, [esp + 0xc]
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0x38]
push eax
push 0xffffffffffffffff
call fcn.0043d590
cmp dword [esp + 0x20], 8
jb 0x43f06d
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4419b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c39f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x501320]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x20], 7
push eax
push 0x4d58ec
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.004096f0
mov dword [esp + 0x30], 0
lea edx, [esp + 0xc]
mov eax, dword [esi]
push edx
push 0xfffffffffffffffe
push 0xfffffffffffffffe
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esp + 0x20], 8
jb 0x441a31
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45beb0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c75f6
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x501320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.004be332
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
call fcn.004251c0
push 0x4dbb00
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x5154f4
call fcn.00425410
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x45bf81
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x5154f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bdb6c
mov esp, ebp
pop ebp
ret 4

Function at 0x45c050
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c765b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x501320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 0x515510
call fcn.004be332
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x515524], 7
mov dword [0x515520], 0
mov word [0x515510], ax
mov dword [ebp - 4], eax
mov ecx, 0x515510
lea eax, [ebp - 0x21c]
push eax
call fcn.004251c0
mov eax, 0x515510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bdb6c
mov esp, ebp
pop ebp
ret 4
Function at 0x465c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x465cad
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x466610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x465cbf
mov dword [ebp - 8], 1
jmp 0x465cc6
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x46c1a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46c1e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.kill32_h_is_null_pid___d_error___d
push 0x10f
push 0x4d661c
call fcn.00460c60
add esp, 0x14
xor al, al
jmp 0x46c23a
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46c21d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.kill32_progress_failed_pid___d_lasterror___d
push 0x115
push str.utility::process::kill32
call fcn.00460c60
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x46c233
mov byte [ebp - 1], 1
jmp 0x46c237
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x46c390
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46c3df
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 8]
jmp 0x46c3e9
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x2c]
cmp edx, 9
je 0x46c3fb
movzx eax, word [ebp - 0x2c]
cmp eax, 6
jne 0x46c44a
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x46c44a
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4019fc
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401ab2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4565c8
call sub.KERNEL32.DLL_WaitForSingleObject
cmp byte [0x456049], 0
je 0x401a2a
push 0x4565c8
call sub.KERNEL32.DLL_WinExec
mov eax, 0x4565e8
call fcn.004013c0
mov eax, 0x4565f8
call fcn.004013c0
mov eax, 0x456624
call fcn.004013c0
push 0xff8
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x456620], eax
cmp dword [0x456620], 0
je 0x401a91
mov eax, 3
mov edx, dword [0x456620]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401a67
mov eax, 0x456608
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x456614], eax
mov byte [0x4565c0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ab9
cmp byte [0x456049], 0
je 0x401ab1
push 0x4565c8
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x401ac0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4565c0], 0
je 0x401b9d
xor edx, edx
push ebp
push 0x401b96
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x456049], 0
je 0x401af2
push 0x4565c8
call sub.KERNEL32.DLL_WinExec
mov byte [0x4565c0], 0
mov eax, dword [0x456620]
push eax
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [0x456620], eax
mov ebx, dword [0x4565e8]
jmp 0x401b25
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov ebx, dword [ebx]
cmp ebx, 0x4565e8
jne 0x401b13
mov eax, 0x4565e8
call fcn.004013c0
mov eax, 0x4565f8
call fcn.004013c0
mov eax, 0x456624
call fcn.004013c0
mov eax, dword [0x4565e0]
test eax, eax
je 0x401b6b
mov edx, dword [eax]
mov dword [0x4565e0], edx
push eax
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4565e0]
test eax, eax
jne 0x401b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b9d
cmp byte [0x456049], 0
je 0x401b8b
push 0x4565c8
call sub.KERNEL32.DLL_WriteFile
push 0x4565c8
call sub.KERNEL32.DLL_lstrcpyA
ret
pop ebx
pop ebp
ret