joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
mov ebx, dword [edi + 0x88]
test ebx, ebx
jne 0x4043ca
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4043f0
push str.SdwPatchProcess._cannnot_allocate_buffer.
call fcn.004046c0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov esi, dword [edi + 0x80]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x10]
push eax
add esi, edx
push ebx
push ebp
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40444f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x34]
push str.ReadProcessMemory_failed.__d_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.004046c0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ecx, dword [esp + 0x80]
push ecx
push edi
push ebp
call fcn.00404800
add esp, 0xc
mov byte [esp + 0x7c], al
test al, al
je 0x4044d9
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x74]
lea edx, [esp + 0x14]
push 0x1c
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 0x40
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4044b4
push str.VirtualProtectEx_failed.
jmp 0x4044cc
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4044d9
push str.WriteProcessMemory_failed.
call fcn.004046c0
add esp, 4
mov byte [esp + 0x7c], 0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x80]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x404500
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x15c
push esi
push edi
lea eax, [esp + 0x5c]
push 0x413bf8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push 0x409334
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x5c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x413d08]
push eax
push str._sd__x__x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x4045aa
xor al, al
add esp, 0x15c
ret
mov edx, dword [esp]
push edx
push 0
push 0x4045d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
add esp, 0x15c
ret

Function at 0x4045f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x413d00]
push ebx
xor bl, bl
test eax, eax
je 0x40461d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov bl, 1
mov dword [0x413d00], eax
mov dword [0x413d04], eax
mov dword [0x413d08], eax
mov dword [0x413d0c], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403f80
mov al, bl
pop ebx
ret

Function at 0x404650
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x404660
mov edx, 0x413bf8
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push 0x20
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop edi
add esp, 0x54
ret
Function at 0x4046c0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, dword [0x409338]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
push esi
jne 0x404731
lea eax, [esp + 8]
mov dword [0x409338], ebx
push eax
push 0x20019
push ebx
push str.SoftwarePaltiosoftWrapping
push SysStringLen
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x404731
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x409338
push edx
push ebx
push str.logging
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x404731
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x409338], ebx
je 0x40479e
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push str.launch3.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40479e
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push ebx
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
lea ecx, [esp + 0xc]
push ebx
push ecx
push 2
push 0x40933c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4047b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x4047be
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x4047ce
xor eax, eax
ret
xor eax, eax
xor edx, edx
mov ax, word [ecx + 0x14]
mov dx, word [ecx + 6]
push esi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ecx + 0x54]
test edx, edx
jle 0x4047f3
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
add ecx, 0x28
add eax, esi
dec edx
jne 0x4047e9
pop esi
ret

Function at 0x404900
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push 0x400
push esi
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x4049b0
cmp dword [esp + 0x10], 0x400
jne 0x4049b0
push edi
push esi
call fcn.004049c0
mov edi, eax
add esp, 4
cmp edi, 0x400
jbe 0x404994
push edi
push esi
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov esi, eax
lea ecx, [esp + 0x14]
add edi, 0xfffffc00
push 0
push ecx
lea edx, [esi + 0x400]
push edi
push edx
push ebx
call ebp
push esi
call fcn.004049c0
add esp, 4
mov edi, eax
push esi
call fcn.004047b0
push esi
mov dword [0x414250], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x4049c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x4049ce
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x4049de
xor eax, eax
ret
mov eax, dword [eax + 0x54]
ret

Function at 0x404a00
Capabilities:
Get file size
Parse pe header

Disassembly:
push ecx
mov cl, byte [esp + 0x14]
push ebx
push ebp
push esi
test cl, cl
mov dword [esp + 0xc], 0
mov eax, SysReAllocStringLen
mov esi, 2
mov ebp, 4
je 0x404a2f
mov esi, ebp
mov eax, 0xc0000000
mov ebp, 0xf001f
push 0
push 0x10000000
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x404a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x404a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x404b16
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x404aaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x404b0b
cmp word [esi], 0x5a4d
je 0x404ac0
mov dword [esp + 0x10], 0xb
jmp 0x404b0b
mov ecx, dword [esi + 0x3c]
mov ebp, esi
add ebp, ecx
cmp dword [ebp], 0x4550
je 0x404ada
mov dword [esp + 0x10], 0xb
jmp 0x404b0b
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x58]
mov dword [edx], ecx
mov eax, dword [esi + 0x3c]
add eax, 0xf8
sub edi, eax
lea ecx, [esi + eax]
push ecx
push edi
call fcn.00405060
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
add esp, 8
test cl, cl
mov dword [edx], eax
je 0x404b0b
mov dword [ebp + 0x58], eax
test esi, esi
je 0x404b16
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x404b24
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4148f0]
test eax, eax
jne 0x40506e
call fcn.004050b0
mov ecx, dword [esp + 4]
or eax, 0xffffffff
dec ecx
js 0x4050aa
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov bl, byte [ecx]
mov edx, eax
shr edx, 0x18
xor dl, bl
inc ecx
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
and edx, 0xff
shl eax, 8
mov edx, dword [edx*4 + 0x4144f0]
xor eax, edx
dec esi
jne 0x405081
pop esi
pop ebx
not eax
ret
Function at 0x4050b0
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
push ebx
mov ebx, 1
push esi
mov dword [0x4148f0], ebx
xor edx, edx
mov ecx, 0x4144f0
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x4050df
add eax, eax
xor eax, 0x4c11db7
jmp 0x4050e1
shl eax, 1
dec esi
jne 0x4050cf
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4148f0
jb 0x4050c5
xor ecx, ecx
mov eax, 0x4142f0
mov dword [esp + 8], ecx
mov edx, 8
test byte [esp + 8], bl
je 0x40511c
mov si, word [esp + 8]
shr si, 1
xor esi, 0x8408
mov dword [esp + 8], esi
jmp 0x405121
shr word [esp + 8], 1
dec edx
jne 0x405102
mov dx, word [esp + 8]
inc ecx
mov word [eax], dx
add eax, 2
cmp eax, 0x4144f0
jb 0x4050f9
pop esi
pop ebx
pop ecx
ret

Function at 0x405140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4148f0]
test eax, eax
jne 0x40514e
call fcn.004050b0
mov ecx, dword [esp + 4]
mov eax, pe_overlay
dec ecx
js 0x40518a
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
xor ebx, ebx
xor dl, al
mov bl, ah
mov byte [esp + 0xc], dl
inc ecx
mov edx, dword [esp + 0xc]
and edx, 0xff
mov ax, word [edx*2 + 0x4142f0]
xor ax, bx
dec esi
jne 0x405163
pop esi
pop ebx
not eax
ret

Function at 0x405190
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40676b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00405db0
mov eax, dword [esp + 0x848]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x83c], esi
call fcn.00405dd0
mov ebx, dword [esp + 0x840]
cmp ebx, esi
jle 0x4051fa
push edi
mov edi, dword [esp + 0x848]
lea ecx, [esp + 0xc]
call fcn.00405e70
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jl 0x4051e3
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.00405dc0
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x834
ret

Function at 0x4052a0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
mov esi, dword [esp + 0x110]
push eax
push 0x104
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x4052d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
push esi
push 0
lea ecx, [esp + 0xc]
push 0x409394
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4052f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40531a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
xor eax, eax
pop esi
add esp, 0x108
ret
Function at 0x405a60
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.004059c0
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov ebp, 1
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405af9
push ebx
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x409390
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405adc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x405ba0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405c0b
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [esp + 0x10]
push 1
push 0
push 0x4075a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405c00
mov bl, 1
test esi, esi
je 0x405c0b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x405c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c9d
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
push 0
push 0x4075a0
push edi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c92
mov edx, dword [esp + 0x14]
mov bl, 1
mov byte [edx + esi], al
test edi, edi
je 0x405c9d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
ret
Function at 0x405dd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ecx, ecx
mov ebx, 0x11
lea edi, [esi + 4]
mov edx, 0x20
imul eax, eax, 0x5d588b65
inc eax
mov ebp, eax
shr ecx, 1
and ebp, 0x80000000
or ecx, ebp
dec edx
jne 0x405de9
mov dword [edi], ecx
add edi, 4
dec ebx
jne 0x405de4
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 4]
shl eax, 0x17
shr ecx, 9
xor eax, ecx
mov ecx, dword [esi + 0x40]
xor eax, ecx
mov ecx, 0x1f8
mov dword [esi + 0x44], eax
lea eax, [esi + 8]
mov edx, dword [eax - 4]
mov edi, dword [eax]
mov ebx, dword [eax + 0x3c]
add eax, 4
shl edx, 0x17
shr edi, 9
xor edx, edi
xor edx, ebx
dec ecx
mov dword [eax + 0x3c], edx
jne 0x405e25
mov ecx, esi
call fcn.00405ea0
mov ecx, esi
call fcn.00405ea0
mov ecx, esi
call fcn.00405ea0
mov dword [esi], 0x208
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x405ea0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
lea eax, [ecx + 4]
mov edx, 0x20
mov esi, dword [eax + 0x7a4]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x405eaa
lea eax, [ecx + 0x84]
mov ecx, 0x1e9
mov edx, dword [eax - 0x80]
mov edi, dword [eax]
xor edi, edx
mov dword [eax], edi
add eax, 4
dec ecx
jne 0x405ec7
pop edi
pop esi
ret

Function at 0x405ee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f53
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp]
mov dword [esp], eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405f48
mov dword [esp], 0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret

Function at 0x405f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fc9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fbe
cmp dword [esp + 0xc], 4
jne 0x405fbe
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x405fd0
Capabilities:
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
mov eax, dword [0x40944c]
sub esp, 8
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jge 0x40600d
push 0x40944c
push str.RETRY_MAX
push str.SoftwarePaltiosoftucharge
push SysStringLen
call fcn.00405f60
add esp, 0x10
cmp eax, 4
je 0x40600d
mov dword [0x40944c], 0xa
cmp dword [0x409450], ebx
jge 0x406040
push 0x409450
push str.RETRY_DELAY
push str.SoftwarePaltiosoftucharge
push SysStringLen
call fcn.00405f60
add esp, 0x10
cmp eax, 4
je 0x406040
mov dword [0x409450], 0xc8
mov eax, dword [0x445b08]
cmp eax, ebx
je 0x406076
mov eax, dword [0x445b08]
cmp eax, 0xffffffff
je 0x406076
mov eax, dword [esp + 0x1c]
push str._StartMonitor_1_
push 0x1b64
push 1
push eax
call fcn.00405880
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
push 0x445a04
call fcn.00406450
add esp, 8
mov esi, eax
push ebx
push 0x1f4
push 0x80
push 0x80
push 0xff
push ebx
push 0x40001
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x445b08], eax
mov eax, dword [0x445b08]
cmp eax, 0xffffffff
jne 0x4060e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str._StartMonitor_2__s__d
push 0x1b64
push ebx
push ecx
call fcn.00405880
add esp, 0x18
call fcn.004061e0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
push eax
push esi
push str._StartMonitor_3__s__d
push 0x1b64
push 1
push edx
call fcn.00405880
add esp, 0x18
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ebx
push 0x4062c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x445b0c], eax
mov eax, dword [0x445b0c]
cmp eax, ebx
je 0x4061ce
cmp dword [0x40944c], ebx
jle 0x4061ce
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe_softdenchi_login
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x406188
mov ecx, dword [0x409450]
push ecx
call ebp
mov eax, dword [0x40944c]
inc ebx
cmp ebx, eax
jl 0x406149
call fcn.004061e0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea edx, [esp + 0x10]
push 0
push edx
push 0x100
push 0x445a04
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4061c7
cmp dword [esp + 0x10], 0x100
jne 0x4061c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004061e0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x4061e0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x445b0c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x406260
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x445a04
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00406450
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40624d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x445b0c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x445b08]
cmp eax, edi
je 0x406281
mov eax, dword [0x445b08]
cmp eax, 0xffffffff
je 0x406281
mov eax, dword [0x445b08]
push eax
call ebx
mov dword [0x445b08], edi
mov eax, dword [0x445b0c]
cmp eax, edi
je 0x4062a9
mov eax, dword [0x445b0c]
cmp eax, 0xffffffff
je 0x4062a9
push 0xffffffffffffffff
mov ecx, dword [0x445b0c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x445b0c], edi
call fcn.004063b0
mov dword [0x445b14], edi
pop edi
pop ebx
add esp, 0x14
ret