joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404080
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4040be
push str.UnPatchFile._cannnot_open_the_file.
call fcn.00404510
add esp, 4
xor al, al
pop esi
pop ebx
add esp, 0xc
ret
push ebp
lea ecx, [esp + 0x10]
push edi
push ecx
push esi
push esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 1
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4041dc
mov edx, dword [esp + 0x24]
lea esi, [edx + 0x80]
cmp dword [esi], 0
jne 0x404105
mov al, byte [esi - 0x80]
test al, al
je 0x4041dc
mov ebp, dword [esi + 8]
test ebp, ebp
jne 0x404111
mov ebp, 4
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x4041ba
mov eax, dword [esi]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi]
jne 0x4041ce
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push edi
push ebx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4041ce
cmp dword [esp + 0x24], ebp
jne 0x4041ce
mov edx, dword [esp + 0x2c]
lea eax, [esi - 0x80]
push edx
push eax
push edi
call fcn.00404650
mov ecx, dword [esi]
add esp, 0xc
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi]
jne 0x4041ce
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4041ce
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add esp, 4
inc eax
add esi, 0x94
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4040f5
jmp 0x4041dc
push str.UnPatchFile._cannnot_allocate_buffer.
mov byte [esp + 0x24], 0
call fcn.00404510
add esp, 4
jmp 0x4041dc
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x20], 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x404200
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 0x40421a
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 0x404240
push str.SdwPatchProcess._cannnot_allocate_buffer.
call fcn.00404510
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 0x40429f
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.00404510
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.00404650
add esp, 0xc
mov byte [esp + 0x7c], al
test al, al
je 0x404329
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 0x404304
push str.VirtualProtectEx_failed.
jmp 0x40431c
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 0x404329
push str.WriteProcessMemory_failed.
call fcn.00404510
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 0x404350
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x15c
push esi
push edi
lea eax, [esp + 0x5c]
push 0x413be8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push 0x409324
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 [0x413cf8]
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 0x4043fa
xor al, al
add esp, 0x15c
ret
mov edx, dword [esp]
push edx
push 0
push 0x404420
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
add esp, 0x15c
ret

Function at 0x404440
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x413cf0]
push ebx
xor bl, bl
test eax, eax
je 0x40446d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov bl, 1
mov dword [0x413cf0], eax
mov dword [0x413cf4], eax
mov dword [0x413cf8], eax
mov dword [0x413cfc], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403dd0
mov al, bl
pop ebx
ret

Function at 0x4044a0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x4044b0
mov edx, 0x413be8
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 0x404510
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, dword [0x409328]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
push esi
jne 0x404581
lea eax, [esp + 8]
mov dword [0x409328], 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 0x404581
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x409328
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 0x404581
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x409328], ebx
je 0x4045ee
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 0x4045ee
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 0x40932c
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 0x404600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x40460e
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x40461e
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 0x404643
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
add ecx, 0x28
add eax, esi
dec edx
jne 0x404639
pop esi
ret

Function at 0x404750
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 0x404800
cmp dword [esp + 0x10], 0x400
jne 0x404800
push edi
push esi
call fcn.00404810
mov edi, eax
add esp, 4
cmp edi, 0x400
jbe 0x4047e4
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.00404810
add esp, 4
mov edi, eax
push esi
call fcn.00404600
push esi
mov dword [0x414240], 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 0x404810
Capabilities:
Parse pe header

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

Function at 0x404850
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 0x40487f
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 0x4048ae
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 0x4048df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x404966
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4048ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x40495b
cmp word [esi], 0x5a4d
je 0x404910
mov dword [esp + 0x10], 0xb
jmp 0x40495b
mov ecx, dword [esi + 0x3c]
mov ebp, esi
add ebp, ecx
cmp dword [ebp], 0x4550
je 0x40492a
mov dword [esp + 0x10], 0xb
jmp 0x40495b
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.00404eb0
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
add esp, 8
test cl, cl
mov dword [edx], eax
je 0x40495b
mov dword [ebp + 0x58], eax
test esi, esi
je 0x404966
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
je 0x404974
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 0x404eb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4148e0]
test eax, eax
jne 0x404ebe
call fcn.00404f00
mov ecx, dword [esp + 4]
or eax, 0xffffffff
dec ecx
js 0x404efa
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 + 0x4144e0]
xor eax, edx
dec esi
jne 0x404ed1
pop esi
pop ebx
not eax
ret
Function at 0x404f00
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
push ebx
mov ebx, 1
push esi
mov dword [0x4148e0], ebx
xor edx, edx
mov ecx, 0x4144e0
mov eax, edx
mov esi, 8
shl eax, 0x18
test eax, 0x80000000
je 0x404f2f
add eax, eax
xor eax, 0x4c11db7
jmp 0x404f31
shl eax, 1
dec esi
jne 0x404f1f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4148e0
jb 0x404f15
xor ecx, ecx
mov eax, 0x4142e0
mov dword [esp + 8], ecx
mov edx, 8
test byte [esp + 8], bl
je 0x404f6c
mov si, word [esp + 8]
shr si, 1
xor esi, 0x8408
mov dword [esp + 8], esi
jmp 0x404f71
shr word [esp + 8], 1
dec edx
jne 0x404f52
mov dx, word [esp + 8]
inc ecx
mov word [eax], dx
add eax, 2
cmp eax, 0x4144e0
jb 0x404f49
pop esi
pop ebx
pop ecx
ret

Function at 0x404f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4148e0]
test eax, eax
jne 0x404f9e
call fcn.00404f00
mov ecx, dword [esp + 4]
mov eax, 0xffff
dec ecx
js 0x404fda
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 + 0x4142e0]
xor ax, bx
dec esi
jne 0x404fb3
pop esi
pop ebx
not eax
ret

Function at 0x404fe0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4065bb
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.00405c00
mov eax, dword [esp + 0x848]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x83c], esi
call fcn.00405c20
mov ebx, dword [esp + 0x840]
cmp ebx, esi
jle 0x40504a
push edi
mov edi, dword [esp + 0x848]
lea ecx, [esp + 0xc]
call fcn.00405cc0
mov dl, byte [esi + edi]
xor dl, al
mov byte [esi + edi], dl
inc esi
cmp esi, ebx
jl 0x405033
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x838], 0xffffffff
call fcn.00405c10
mov ecx, dword [esp + 0x830]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x834
ret

Function at 0x4050f0
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 0x405123
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
push esi
push 0
lea ecx, [esp + 0xc]
push 0x409384
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405148
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 0x40516a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x108
ret
xor eax, eax
pop esi
add esp, 0x108
ret
Function at 0x4058b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00405810
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 0x405949
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 0x409380
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40592c
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 0x4059f0
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 0x405a5b
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 0x405a50
mov bl, 1
test esi, esi
je 0x405a5b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x405a70
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 0x405aed
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 0x405ae2
mov edx, dword [esp + 0x14]
mov bl, 1
mov byte [edx + esi], al
test edi, edi
je 0x405aed
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
ret
Function at 0x405c20
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 0x405c39
mov dword [edi], ecx
add edi, 4
dec ebx
jne 0x405c34
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 0x405c75
mov ecx, esi
call fcn.00405cf0
mov ecx, esi
call fcn.00405cf0
mov ecx, esi
call fcn.00405cf0
mov dword [esi], 0x208
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x405cf0
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 0x405cfa
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 0x405d17
pop edi
pop esi
ret

Function at 0x405d30
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 0x405da3
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 0x405d98
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 0x405db0
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 0x405e19
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 0x405e0e
cmp dword [esp + 0xc], 4
jne 0x405e0e
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 0x405e20
Capabilities:
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
mov eax, dword [0x40943c]
sub esp, 8
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jge 0x405e5d
push 0x40943c
push str.RETRY_MAX
push str.SoftwarePaltiosoftucharge
push SysStringLen
call fcn.00405db0
add esp, 0x10
cmp eax, 4
je 0x405e5d
mov dword [0x40943c], 0xa
cmp dword [0x409440], ebx
jge 0x405e90
push 0x409440
push str.RETRY_DELAY
push str.SoftwarePaltiosoftucharge
push SysStringLen
call fcn.00405db0
add esp, 0x10
cmp eax, 4
je 0x405e90
mov dword [0x409440], 0xc8
mov eax, dword [0x445af8]
cmp eax, ebx
je 0x405ec6
mov eax, dword [0x445af8]
cmp eax, 0xffffffff
je 0x405ec6
mov eax, dword [esp + 0x1c]
push str._StartMonitor_1_
push 0x1b64
push 1
push eax
call fcn.004056d0
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
push 0x4459f4
call fcn.004062a0
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 [0x445af8], eax
mov eax, dword [0x445af8]
cmp eax, 0xffffffff
jne 0x405f36
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.004056d0
add esp, 0x18
call fcn.00406030
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.004056d0
add esp, 0x18
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ebx
push 0x406110
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x445afc], eax
mov eax, dword [0x445afc]
cmp eax, ebx
je 0x40601e
cmp dword [0x40943c], ebx
jle 0x40601e
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 0x405fd8
mov ecx, dword [0x409440]
push ecx
call ebp
mov eax, dword [0x40943c]
inc ebx
cmp ebx, eax
jl 0x405f99
call fcn.00406030
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 0x4459f4
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406017
cmp dword [esp + 0x10], 0x100
jne 0x406017
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.00406030
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret