joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d15
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x412d42
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x412d6f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x412d81
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413bd6
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.00418ba0
push dword [ebp + 8]
push esi
push ebx
call fcn.0041b1f8
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x412e06
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x412dfb
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412df4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412e02
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x412dd1
jmp 0x412e06
mov byte [ebp - 1], 0
push ebx
call fcn.00413bd1
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412e15
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x447b1c
call fcn.00413faa
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x412efc
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.00412d48
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x412efc
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413bd6
push esi
mov ebx, eax
push 0
push ebx
call fcn.00412735
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x412ef5
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041ec62
add esp, 0xc
test eax, eax
je 0x412eea
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x412ed5
movzx eax, word [esi]
test ax, ax
je 0x412ef5
jmp 0x412eb3
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00412d48
push ebx
call fcn.00413bd1
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040bb94
lea ecx, [ebp - 0x40]
call fcn.00405482
lea ecx, [ebp - 0x28]
call fcn.00405482
mov eax, edi
call fcn.00413f54
ret
Function at 0x412f1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x462114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00418ba0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x412f7f
push edi
jmp 0x412f86
lea eax, [ebp - 0x20c]
push eax
call fcn.00408690
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041345a
leave
ret

Function at 0x42fa0b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x407900
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x41c137
call fcn.0040fb99
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4079e1
cmp byte [edi + 0x49], bl
je 0x4079e1
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407935
xor al, al
jmp 0x4079e3
lea esi, [ebp - 0x2c]
call fcn.004077ef
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x407983
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x407988
dec eax
je 0x40798c
dec eax
dec eax
je 0x4079dd
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004015bb
mov al, bl
jmp 0x4079e3
mov edx, dword [ebp - 0x2c]
jmp 0x40794e
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x407998
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x4079be
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4079ab
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040f00b
add esp, 0x10
cmp esi, eax
jne 0x407971
cmp byte [edi + 0x49], 0
je 0x4079dd
test esi, esi
jne 0x407940
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00401567
jmp 0x407940
mov bl, 1
jmp 0x407973
mov al, 1
call fcn.0040fbe3
ret
Function at 0x408a10
Capabilities:
Accept command line arguments

Disassembly:
push 0x2b0
mov eax, 0x41cd2a
call fcn.0040fb99
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2ac], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x238]
call fcn.004014cb
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov word [ebp - 0x21c], ax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x21c], si
je 0x408acb
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e037
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
xor eax, eax
lea ecx, [ebp - 0x238]
call fcn.00401745
cmp eax, 0xffffffff
je 0x408acb
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x270]
call fcn.00408ffd
mov ebx, eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.004015fd
push 1
xor edi, edi
mov byte [ebp - 4], 0
call fcn.004017e3
mov edi, 0x422ac8
push edi
call fcn.0040e037
pop ecx
push eax
push edi
xor eax, eax
lea ecx, [ebp - 0x238]
call fcn.00401745
mov esi, eax
cmp esi, 0xffffffff
je 0x408c79
mov dword [ebp - 0x2b4], 0x3d
jmp 0x408b08
mov esi, dword [ebp - 0x2b0]
mov edi, 0x422ac8
push 1
lea eax, [ebp - 0x2b4]
add esi, 2
push eax
mov eax, esi
lea ecx, [ebp - 0x238]
call fcn.00401745
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408c79
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x270]
call fcn.00408ffd
push edi
inc ebx
call fcn.0040e037
pop ecx
push eax
push edi
mov eax, ebx
lea ecx, [ebp - 0x238]
call fcn.00401745
and dword [ebp - 0x244], 0
xor ecx, ecx
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], cx
mov byte [ebp - 4], 3
lea esi, [ebp - 0x28c]
cmp eax, 0xffffffff
je 0x408b9e
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x238]
push eax
call fcn.00408ffd
mov byte [ebp - 4], 4
jmp 0x408bb1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x238]
push eax
call fcn.00408ffd
mov byte [ebp - 4], 5
mov ebx, eax
lea eax, [ebp - 0x254]
call fcn.004015fd
push 1
xor edi, edi
lea esi, [ebp - 0x28c]
mov byte [ebp - 4], 3
call fcn.004017e3
lea esi, [ebp - 0x254]
call fcn.00408936
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004016ab
lea eax, [ebp - 0x270]
push eax
lea esi, [ebp - 0x2a8]
call fcn.00408f92
lea eax, [ebp - 0x254]
push eax
lea esi, [ebp - 0x28c]
mov byte [ebp - 4], 6
call fcn.00408f92
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 7
call fcn.00409307
push eax
push dword [ebp - 0x2ac]
lea esi, [ebp - 0x2bc]
call fcn.004090fb
xor ebx, ebx
inc ebx
push ebx
lea esi, [ebp - 0x28c]
call fcn.004017e3
push ebx
lea esi, [ebp - 0x2a8]
call fcn.004017e3
push ebx
lea esi, [ebp - 0x254]
call fcn.004017e3
push ebx
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 0
call fcn.004017e3
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x408afd
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.004017e3
call fcn.0040fbe3
ret 4
Function at 0x40bebb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427494]
jne 0x40bec5
repz ret
jmp fcn.00411fa5

Function at 0x41a39c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427494]
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.00412c3a
and dword [ebp - 0x14], 0
cmp dword [0x429224], 0
mov dword [ebp - 0x18], eax
jne 0x41a44f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41a4f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420fcc
push ebx
call edi
test eax, eax
je 0x41a4f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x429224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x429228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42922c], eax
call edi
push eax
call esi
mov dword [0x429234], eax
test eax, eax
je 0x41a44f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429230], eax
mov eax, dword [0x429230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41a4a8
cmp dword [0x429234], ecx
je 0x41a4a8
push eax
call esi
push dword [0x429234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41a4a8
test ebx, ebx
je 0x41a4a8
call edi
test eax, eax
je 0x41a49f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41a49f
test byte [ebp - 8], 1
jne 0x41a4a8
or dword [ebp + 0x10], 0x200000
jmp 0x41a4db
mov eax, dword [0x429228]
cmp eax, dword [ebp - 0x18]
je 0x41a4db
push eax
call esi
test eax, eax
je 0x41a4db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41a4db
mov eax, dword [0x42922c]
cmp eax, dword [ebp - 0x18]
je 0x41a4db
push eax
call esi
test eax, eax
je 0x41a4db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429224]
call esi
test eax, eax
je 0x41a4f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41a4f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bebb
leave
ret
Function at 0x4118e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4118e0
lcall 0x5de5, 0x8b10c483
jmp fcn.007e3078
Function at 0x40105e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x401065
xor eax, eax
ret
push ebx
push esi
or esi, 0xffffffff
cmp eax, 8
mov edx, 0xff
jl 0x40111d
push edi
mov edi, eax
shr edi, 3
mov ebx, edi
imul ebx, ebx, 0xfffffff8
add eax, ebx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
dec edi
jne 0x401085
pop edi
test eax, eax
je 0x401136
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x40aa20]
inc ecx
dec eax
jne 0x401121
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x4016d9
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, eax
xor edi, edi
lea eax, [ebp - 0xc]
push eax
push 0x40af10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.004017c3
cmp eax, 4
jne 0x4017ba
push 0xa
push 0x40af14
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4017ba
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401824
cmp eax, edi
je 0x4017ba
push ebx
mov ebx, dword [ebp - 8]
cmp ebx, edi
je 0x4017b9
mov eax, 0x400
cmp dword [ebp - 4], eax
mov ecx, eax
jae 0x40174f
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, edi
jbe 0x40175e
xor byte [eax + ebx], 0x7b
inc eax
cmp eax, ecx
jb 0x401755
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.0040105e
cmp eax, dword [ebp - 0xc]
jne 0x4017b9
push edi
push 0xa0
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x4017b9
cmp esi, 0xffffffff
je 0x4017b9
push edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017b2
cmp dword [ebp - 0x10], edi
jne 0x4017b2
mov dword [ebp - 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 4
Function at 0x4017c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push 0xa
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401820
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40181f
cmp dword [esp + 0x10], 0
je 0x40181f
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40181d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40181d
cmp ebx, 4
jbe 0x40180f
push 4
pop ebx
push ebx
push eax
push dword [esp + 0x18]
call fcn.00401fd0
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
ret 8

Function at 0x401824
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jne 0x40183e
xor eax, eax
jmp 0x401864
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40183a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
ret 0xc

Function at 0x401867
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SOFTWAREKingsoftTypeEasyTypeeasy2011
mov ebx, 0x80000002
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
jne 0x4018df
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [esi + 4]
push eax
push 3
push 0
push str.PartnerCode
push ebx
call edi
test eax, eax
jne 0x4018cb
push 4
add esi, 8
push esi
push 3
push eax
push str.PartnerCode1
push ebx
call edi
test ebx, ebx
je 0x4018d6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
lea esi, [ebp - 4]
call fcn.00401690
lea eax, [ebp - 8]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SOFTWAREKingsoftTypeEasyTypeeasy2011
push ebx
mov dword [ebp - 8], esi
call edi
cmp eax, esi
jne 0x40191b
xor eax, eax
cmp dword [ebp - 4], esi
je 0x401912
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [ebp - 8]
je 0x40189b
jmp 0x4018cb
mov ebx, dword [ebp - 4]
jmp 0x4018cb
Function at 0x401a41
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x40c064]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x103
push edi
lea eax, [esp + 0x12d]
push ebx
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x134], bl
call fcn.00401e30
add esp, 0xc
push edi
lea eax, [esp + 0x25]
push ebx
push eax
mov byte [esp + 0x2c], bl
call fcn.00401e30
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x40af04
lea esi, [esp + 0x18]
call fcn.004017c3
test eax, eax
jbe 0x401ae3
lea eax, [esp + 0x18]
push eax
push 0x40af08
call fcn.004017c3
test eax, eax
jbe 0x401ae3
lea eax, [esp + 0x1c]
push eax
push 0x40af0c
call fcn.004017c3
cmp eax, 4
je 0x401af3
push ebx
push 0x40af6c
push 0x40af7c
jmp 0x401c20
lea eax, [esp + 0x10]
push eax
call fcn.00401920
test eax, eax
jne 0x401b11
push ebx
push 0x40af6c
push 0x40afe8
jmp 0x401c20
lea eax, [esp + 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401c15
lea eax, [esp + 0x20]
push eax
push ebx
push 0x40af5c
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x401c15
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x20]
push str..EXE
push eax
call fcn.00402360
pop ecx
mov esi, 0x104
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.00402360
pop ecx
lea ecx, [esp + 0x28]
sub ecx, 4
add eax, ecx
push eax
call fcn.00402406
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
call fcn.004016d9
test eax, eax
je 0x401c15
mov eax, dword [esp + 0xc]
add eax, 4
push eax
mov dword [esp + 0x10], eax
call fcn.00402360
test eax, eax
pop ecx
jbe 0x401bf5
lea eax, [esp + 0x20]
push eax
call fcn.00402360
pop ecx
mov ecx, edi
sub ecx, eax
push ecx
push 0x40af68
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004023eb
lea eax, [esp + 0x30]
push eax
call fcn.00402360
add esp, 0x14
sub edi, eax
push edi
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004023eb
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call fcn.00401867
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00401c4d
test eax, eax
jne 0x401c2d
push ebx
push 0x40af6c
push str.CRC_
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401cba
mov esp, ebp
pop ebp
ret
Function at 0x401c4d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00401e30
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401e30
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x44
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401cb5
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop esi
leave
ret 8

Function at 0x401cba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c064]
jne 0x401cc4
repz ret
jmp fcn.004026ff

Function at 0x403e1c
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 + 0x40c310]
je 0x403e37
inc edi
cmp edi, 0x17
jb 0x403e28
cmp edi, 0x17
jae 0x403fb7
push ebp
push 3
call fcn.004069d6
cmp eax, 1
pop ecx
je 0x403f83
push 3
call fcn.004069d6
test eax, eax
pop ecx
jne 0x403e6b
cmp dword [0x40c060], 1
je 0x403f83
cmp ebx, 0xfc
je 0x403fb6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40d270
push ebp
call fcn.00402406
add esp, 0xc
test eax, eax
je 0x403ea1
push esi
push esi
push esi
push esi
push esi
call fcn.004047d4
add esp, 0x14
push 0x104
mov esi, 0x40d289
push esi
push 0
mov byte [0x40d38d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403ee5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00402406
add esp, 0xc
test eax, eax
je 0x403ee5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004047d4
add esp, 0x14
push esi
call fcn.00402360
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403f2a
push esi
call fcn.00402360
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40d584
push 0x4097bc
sub ecx, eax
push ecx
push eax
call fcn.00406923
add esp, 0x14
test eax, eax
je 0x403f2a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004047d4
add esp, 0x14
jmp 0x403f2c
xor esi, esi
push 0x4097b8
push ebx
push ebp
call fcn.004068b2
add esp, 0xc
test eax, eax
je 0x403f4c
push esi
push esi
push esi
push esi
push esi
call fcn.004047d4
add esp, 0x14
push dword [edi*8 + 0x40c314]
push ebx
push ebp
call fcn.004068b2
add esp, 0xc
test eax, eax
je 0x403f6e
push esi
push esi
push esi
push esi
push esi
call fcn.004047d4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004066f5
add esp, 0xc
jmp 0x403fb6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x403fb6
cmp ebp, 0xffffffff
je 0x403fb6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c314]
push dword [esi]
call fcn.00402360
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