joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441928
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 8], eax
je 0x441983
push esi
mov esi, dword [esp + 8]
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0x10]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x473bb4]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x473bb4]
inc esi
cmp dword [esp + 0x10], 0
movzx eax, ax
jne 0x441936
pop edi
pop esi
ret

Function at 0x441b6a
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x441baf
push dword [esp + 0xc]
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
jne 0x441b8c
xor eax, eax
jmp 0x441bb2
push 0x3fe0
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x441bac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x441b88
mov dword [esi + 4], eax
xor eax, eax
inc eax
pop edi
pop esi
ret 4

Function at 0x441cc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x441cf6
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x441d02
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x441ccd
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x441cfd

Function at 0x441d09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x441d3b
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441d47
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x441d12
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x441d42
Function at 0x444275
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x48644c]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
mov ebx, dword [ebp + 0x2a8]
push esi
push edi
mov edi, dword [ebp + 0x2a4]
xor esi, esi
push 0x206
lea eax, [ebp - 0x6e]
push esi
push eax
mov word [ebp - 0x70], si
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, 0x48678c
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ecx, edi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push 0x473f38
push 0x104
push eax
call fcn.00442640
add esp, 0x14
lea eax, [ebp - 0x74]
push eax
push 0x20219
push esi
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44430e
mov eax, 0xe00c0012
jmp 0x444389
mov edi, 0xfe
push edi
lea eax, [ebp + 0x19a]
push esi
push eax
mov dword [ebp - 0x78], esi
mov word [ebp + 0x198], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push str.Name
push dword [ebp - 0x74]
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x444379
cmp dword [ebp - 0x78], 1
jne 0x444379
push str..Pipe_
mov ecx, ebx
call dword [0x46c2d8]
lea eax, [ebp + 0x198]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x44437e
mov edi, 0xe00c001f
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp + 0x298]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468ec6
add ebp, 0x29c
leave
ret 8
Function at 0x459068
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov esi, ecx
mov dword [ebp - 8], esi
jne 0x45908d
push ebx
push ebx
push ebx
push 2
call fcn.0045a413
xor al, al
jmp 0x4591e2
push edi
call fcn.0045819a
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
call edi
add esp, 0x1c
cmp esi, ebx
jg 0x4590d4
mov ecx, dword [ebp - 8]
push ebx
push ebx
push ebx
push 0xd
call fcn.0045a413
jmp 0x4591c9
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x4867ac
call fcn.00457e0b
lea eax, [esi + 1]
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
mov edi, eax
push 1
push esi
push edi
mov dword [ebp - 0xc], edi
mov byte [edi], bl
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x459122
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 8]
push ebx
push ebx
push ebx
push 2
call fcn.0045a413
jmp 0x4591b7
mov eax, edi
mov ecx, eax
mov byte [ecx + esi], bl
cmp byte [ecx], bl
je 0x459186
mov cl, byte [edi]
cmp cl, 0xa
jne 0x459146
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.00457ed6
inc edi
jmp 0x45917d
cmp cl, 0xd
jne 0x459181
mov ecx, edi
sub ecx, eax
cmp ecx, ebx
jle 0x45915d
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.00457ed6
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
mov byte [ebp + 8], 0xa
call fcn.00457ed6
lea eax, [edi + 1]
cmp byte [eax], 0xa
jne 0x45917b
inc edi
inc edi
jmp 0x45917d
mov edi, eax
mov eax, edi
jmp 0x459182
inc edi
cmp byte [edi], bl
jne 0x45912d
sub edi, eax
je 0x459194
push edi
push eax
lea ecx, [ebp - 4]
call fcn.00457ed6
push dword [ebp - 0xc]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 8]
mov eax, dword [esi]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add ecx, 8
push ebx
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], bl
je 0x4591cd
cmp dword [ebp - 4], 0x4867ac
je 0x4591c9
push dword [ebp - 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
xor al, al
jmp 0x4591e1
cmp dword [ebp - 4], 0x4867ac
je 0x4591df
push dword [ebp - 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x466ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b2f7
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48644c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.Json::StyledWriter.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x4c], 0x4a
mov dword [esi + 0x50], 3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468433
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48644c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00468292
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x468482
cmp dword [ebp - 0x1c], 5
jb 0x46849a
jmp 0x468496
cmp dword [ebp - 0x10], 1
jne 0x46849a
cmp dword [ebp - 0x1c], 4
ja 0x468496
jne 0x46849a
cmp dword [ebp - 0x18], 0
jbe 0x46849a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4789ac
call fcn.00426ffb
test eax, eax
jge 0x4684bb
mov byte [0x486552], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00468ec6
add ebp, 0x78
leave
ret

Function at 0x4686d4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x486840], 0
push esi
jne 0x468642
call fcn.00468560
test eax, eax
je 0x468685
mov eax, dword [0x486840]
cmp eax, 1
jne 0x468663
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x468685
pop esi
ret
push eax
call dword [0x486848]
test eax, eax
jne 0x4686cd
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x468689
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x486840]
call dword [0x486848]
mov edi, eax
test edi, edi
je 0x4686b0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4686cc
lea edi, [esi + 0xff0]
push esi
push dword [0x486840]
call dword [0x486844]
add esi, 0x10
cmp esi, edi
jb 0x4686b6
mov eax, esi
pop edi
pop esi
ret
jmp 0x46862f
Function at 0x46993d
Capabilities:
Encode data using xor

Disassembly:
xchg ebx, ebx
test cl, 0x56
dec dh
movzx esi, cl
add edi, 0x25671ee2
movsx edx, di
mov ch, ch
mov bh, al
mov ebp, eax
mov cl, bh
add dl, bl
mov esi, 0xfff9eeb4
mov ebx, ebx
and edi, 0xe62761a8
xor esi, 0x5a59
mov bh, al
add esi, 0x65283
lea edi, [0xf7bc4487]
xadd eax, esi
test cl, 0xa0
imul ebp, esi
sub eax, 0x76f
mov ecx, 0x98e9bd79
mov dl, 0x1a
dec bh
test bl, 0xc0
add edx, ebp
sub bh, 0xa0
mov ebx, 0x354ffe28
xchg edi, esi
cmp eax, 0x218
jbe 0x46992a
pop ebx
adc esi, ebx
xchg dh, ch
test ebx, esi
mov al, 0xcc
imul ecx, esi
push esi
push 0x23b0d5
inc esi
xchg ebp, eax
and ch, ah
imul ecx, ebp
inc esi
imul ecx, ecx, 0xf6c9f2e4
sub eax, ecx
mov ecx, 0x3fc43eb3
xchg ebp, ebp
inc ebp
mov esi, 0x28cbd
mov ebp, edx
test bh, al
mov ecx, ebx
or cl, dh
mov cl, 0x37
test edx, ecx
lea edx, [esi]
jae 0x4699e0
inc al
lea eax, [0x4d3270fa]
lea eax, [0x4d3270fa]
mov eax, 0x7b3eb106
sub edx, 0xb99
xchg cl, cl
mov cl, dl
inc cl
add ebx, edx
imul eax, ebx
sub ebx, 0x9c0
add al, 0x6d
mov edi, 0x810d70b
imul edx, ebp, 0x9cb64bba
mov cl, 0xfe
add ah, ch
mov dh, dl
lea edx, [0x361c4464]
jne 0x469a27
cmp eax, 0x5afc022e
cmp al, 0x3e
sub eax, 0xb2da2c02
and edx, 0x5254ab1c
inc eax
push ebx
lea ecx, [0xe2ad8815]
test dl, 0x74
ret
Function at 0x420799
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x4207a3
repz ret
jmp fcn.00425328

Function at 0x432991
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
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.004268db
and dword [ebp - 0x14], 0
cmp dword [0x443a44], 0
mov dword [ebp - 0x18], eax
jne 0x432a44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432aec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432aec
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x443a44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443a48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443a4c], eax
call edi
push eax
call esi
mov dword [0x443a54], eax
test eax, eax
je 0x432a44
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443a50], eax
mov eax, dword [0x443a50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432a9d
cmp dword [0x443a54], ecx
je 0x432a9d
push eax
call esi
push dword [0x443a54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432a9d
test ebx, ebx
je 0x432a9d
call edi
test eax, eax
je 0x432a94
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432a94
test byte [ebp - 8], 1
jne 0x432a9d
or dword [ebp + 0x10], 0x200000
jmp 0x432ad0
mov eax, dword [0x443a48]
cmp eax, dword [ebp - 0x18]
je 0x432ad0
push eax
call esi
test eax, eax
je 0x432ad0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432ad0
mov eax, dword [0x443a4c]
cmp eax, dword [ebp - 0x18]
je 0x432ad0
push eax
call esi
test eax, eax
je 0x432ad0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x443a44]
call esi
test eax, eax
je 0x432aec
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432aee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0x68ebd8bb
sub eax, 0x68aba6b8
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x8b281a15
add dword [ebp - 0x40], 0xc32a2b36
mov dword [ebp - 0x3c], 0xeb76ea45
sub dword [ebp - 0x3c], 0xb9439e00
mov dword [ebp - 0x38], 0x74e40039
add dword [ebp - 0x38], 0xd76843f5
mov dword [ebp - 0x34], 0xde17f9ec
sub dword [ebp - 0x34], 0xde17f9ec
lea eax, [ebp - 0x40]
push eax
mov eax, 0xf8f171dc
add eax, 0x74efe88
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x8cb18689
sub dword [ebp - 0x40], 0x183f1d33
mov dword [ebp - 0x3c], 0x97a3ce6d
add dword [ebp - 0x3c], 0xa9c89308
mov dword [ebp - 0x38], 0x4b955db5
sub dword [ebp - 0x38], 0xe825f149
mov dword [ebp - 0x34], 0x4cb5c12a
add dword [ebp - 0x34], 0xb34a3ed6
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x45431c78
sub eax, 0x4502abd0
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x38a81
push 0
call eax
mov ecx, 0x963679a1
add ecx, 0x69c9d69f
mov ebx, eax
mov esi, 0x15b3b31d
sub esi, 0x1572b31d
add esi, dword [ebp - 0x30]
mov edx, 0xdac5d8f
xor dword [ebp - 4], edx
mov edi, dword [esi]
add dword [ebp - 8], eax
add edi, edx
xor dword [ebp - 8], eax
mov dword [ebx], edi
add dword [ebp - 0xc], 0x1e4b4c7
add ebx, 4
add esi, 0x9631d2e1
add esi, 0x69ce2d23
loop 0x40331f
add eax, 0x133d3
xor ebx, ebx
add ebx, eax
add eax, 0x91a62504
sub eax, 0x91a624ff
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40d26b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40d27a
pop dword [ebp - 0x1c]
mov eax, 0xc75ab1c7
add eax, 0x38e620b3
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2e36d3dd
add dword [ebp - 0x2c], 0x201b716e
mov dword [ebp - 0x28], 0x3303a9ff
sub dword [ebp - 0x28], 0xd05dba
mov dword [ebp - 0x24], 0xfcd8dec9
add dword [ebp - 0x24], 0x4f736565
mov dword [ebp - 0x20], 0x439e7d8
add dword [ebp - 0x20], 0xfbc61828
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x2c554a7f
add eax, 0xd3ece5f5
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x4c60ecbd
add dword [ebp - 0x2c], 0x28117c99
mov dword [ebp - 0x28], 0xad82a457
sub dword [ebp - 0x28], 0x6c1642e2
mov dword [ebp - 0x24], 0x540d7227
sub dword [ebp - 0x24], 0xf09e05bb
mov dword [ebp - 0x20], 0xe83703c0
sub dword [ebp - 0x20], 0xe83703c0
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xf5cad28f
sub eax, 0xf588a16b
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ae20
push 0
call eax
mov ecx, 0x765070a6
add ecx, 0x89afcc0c
xor edi, edi
add edi, eax
mov esi, 0x434400
add esi, dword [ebp - 0x1c]
mov ebx, 0xd4c20e8e
add ebx, 0xf7e5e468
xor dword [ebp - 0x14], edx
mov edx, dword [esi]
xor dword [ebp - 4], esi
add edx, ebx
mov dword [ebp - 0x18], 0x6bd0120d
mov dword [edi], edx
xor dword [ebp - 0x14], edi
add edi, 0xecaa1fcf
sub edi, 0xecaa1fcb
add esi, 0x82451ef6
add esi, 0x7dbae10e
loop 0x40d398
add eax, 0x6dd3cf76
add eax, 0x922d1625
xor ebx, ebx
add ebx, eax
add eax, 0xcdd15245
add eax, 0x322eadc0
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.240210090820642641632632
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.240210090820642641632632]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.240210090820642641632632
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.240210090820642641632632]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret