joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c080
Capabilities:
Check os version

Disassembly:
mov al, byte [str.GlobalAgentmonUserTaskAppMsgQueueSema]
sub esp, 0x9c
test al, al
jne 0x40c0e6
lea eax, [esp]
push eax
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c0c4
cmp dword [esp + 4], 5
jb 0x40c0c4
mov ecx, dword [str.Global_]
mov edx, dword [0x421d10]
mov dword [str.GlobalAgentmonUserTaskAppMsgQueueSema], ecx
mov dword [0x427f8c], edx
push esi
push edi
mov edi, str.GlobalAgentmonUserTaskAppMsgQueueSema
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c0d0
mov ecx, 8
mov esi, str.AgentmonUserTaskAppMsgQueueSema
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, str.GlobalAgentmonUserTaskAppMsgQueueSema
add esp, 0x9c
ret

Function at 0x40c1d0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
xor ecx, ecx
mov dword [esp + 0xd], ecx
mov dword [esp + 0x11], ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 0x15], ecx
push esi
lea edx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], al
mov dword [esp + 0x1d], ecx
push edx
lea eax, [esp + 8]
mov word [esp + 0x25], cx
push eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x2b], cl
call fcn.0040c9f0
add esp, 8
call fcn.0040c080
push eax
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40c23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x20
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c28b
mov eax, dword [0x427f84]
test eax, eax
je 0x40c284
lea edx, [eax + 4]
push edx
push eax
add eax, 0x10
push 0x20000
push eax
call fcn.0040c9a0
mov eax, dword [0x427f84]
lea ecx, [eax + 0xc]
push ecx
lea edx, [eax + 8]
push edx
add eax, 0x20010
push 0x20000
push eax
call fcn.0040c9a0
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x20
ret
Function at 0x40c7a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x1c0
xor ecx, ecx
mov dword [esp + 0xd], ecx
mov dword [esp + 0x11], ecx
push ebp
mov dword [esp + 0x19], ecx
xor eax, eax
mov dword [esp + 0x1d], ecx
push edi
mov dword [esp + 0xc], eax
lea edx, [esp + 0x12c]
mov word [esp + 0x25], cx
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], al
mov byte [esp + 0x2b], cl
xor ebp, ebp
mov byte [esp + 0x2c], 0
mov dword [esp + 0x130], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c81a
cmp dword [esp + 0x130], 5
jb 0x40c81a
mov eax, dword [str.Global_]
mov ecx, dword [0x421d10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x28]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c820
push esi
mov ecx, 7
mov esi, str.KaseyaAgentUserTaskAppMapObj
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x2c]
push edx
push 0
push 0xf001f
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [0x427f80], eax
pop esi
jne 0x40c889
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040c9f0
add esp, 8
lea edx, [esp + 0x28]
push edx
push 0x40010
push 0
push 4
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x427f80], eax
mov ebp, 1
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
mov dword [0x427f84], edi
jne 0x40c8b0
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x1c0
ret
xor eax, eax
test ebp, ebp
mov ecx, 0x10004
rep stosd dword es:[edi], eax
je 0x40c8c2
call fcn.0040c1d0
pop edi
xor eax, eax
pop ebp
add esp, 0x1c0
ret
Function at 0x40cab0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x28
xor ecx, ecx
mov dword [esp + 0x15], ecx
mov dword [esp + 0x19], ecx
push ebx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x21], ecx
push ebp
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x29], ecx
push edx
lea eax, [esp + 0x14]
xor ebx, ebx
mov word [esp + 0x31], cx
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x37], cl
call fcn.0040c9f0
mov ecx, dword [esp + 0x3c]
add esp, 8
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
cmp ebp, ebx
jne 0x40cb1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cb39
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x44]
mov ebx, dword [esi]
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x4c]
mov edx, dword [edi]
mov ecx, edx
sub ecx, ebx
jns 0x40cb57
add ecx, esi
mov ebx, esi
sub ebx, ecx
dec ebx
lea ecx, [eax + 8]
cmp ecx, ebx
jle 0x40cb7e
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x40]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x14], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x15], cl
mov ecx, eax
mov byte [esp + 0x17], al
lea eax, [esp + 0x10]
push 8
shr ecx, 8
push eax
mov eax, esi
mov byte [esp + 0x18], 0x98
mov byte [esp + 0x19], 0x76
mov byte [esp + 0x1a], 0x43
mov byte [esp + 0x1b], 0x21
mov byte [esp + 0x1e], cl
call fcn.0040c930
mov eax, dword [edi]
add eax, 8
xor edx, edx
div esi
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
push eax
mov eax, esi
call fcn.0040c930
mov ecx, dword [edi]
mov edx, dword [esp + 0x64]
lea eax, [ecx + edx + 8]
xor edx, edx
div esi
add esp, 0x10
push ebp
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x40d900
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
push edi
je 0x40d9b6
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40d9b6
mov esi, dword [esp + 0x18]
cmp esi, 1
jl 0x40d9b6
push 0x25
push ebx
call fcn.00414460
add esp, 8
test eax, eax
je 0x40d982
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jle 0x40d975
cmp eax, esi
jg 0x40d979
push 0x25
push edi
call fcn.00414460
add esp, 8
test eax, eax
je 0x40d96f
push esi
push edi
call fcn.0040d4f0
add esp, 8
xor ecx, ecx
test eax, eax
setge cl
pop edi
pop esi
pop ebx
dec ecx
mov eax, ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp eax, esi
jle 0x40d9b6
pop edi
pop esi
mov eax, 1
pop ebx
ret
lea edx, [esi - 1]
push edx
push ebx
push edi
call fcn.00414960
mov eax, ebx
add esp, 0xc
mov byte [edi + esi - 1], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d9a0
sub eax, edx
xor ecx, ecx
cmp eax, esi
setge cl
pop edi
pop esi
pop ebx
mov eax, ecx
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x40dde0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x25
push ebp
xor ebx, ebx
call fcn.00414460
add esp, 8
test eax, eax
je 0x40de51
mov eax, dword [esp + 0x14]
lea esi, [eax + eax*4]
shl esi, 1
cmp esi, 0x410
jge 0x40de0e
mov esi, 0x410
push esi
call fcn.00414902
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40de24
mov esi, 0x4099
jmp 0x40de8e
push edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esi - 1]
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
pop edi
jle 0x40de51
dec esi
cmp eax, esi
jg 0x40de51
mov ebp, ebx
push ebp
call fcn.0041639d
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x40de8e
call fcn.00416318
cmp dword [eax], 7
je 0x40de89
call fcn.00416318
cmp dword [eax], 2
je 0x40de89
call fcn.00416318
cmp dword [eax], 8
je 0x40de89
call fcn.00416318
cmp dword [eax], 0xc
jne 0x40de8e
mov esi, 0x401d
test ebx, ebx
je 0x40de9b
push ebx
call fcn.004143d6
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x40deb0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
je 0x40df11
cmp byte [esi], 0
je 0x40df11
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40df0a
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40df93
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x20006
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x40df4f
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40df93
push str.shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40df8a
push str.SHDeleteKeyA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40df8a
push edi
push ebx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40df93
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40dfa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push esi
push edi
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x43
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosb byte es:[edi], al
push 0x10e
lea eax, [esp + 0xc]
push eax
push ecx
xor esi, esi
call fcn.0040d900
add esp, 0xc
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40e022
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40e032
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e01d
mov eax, 0x400f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40e02d
mov eax, 0x4010
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x4021
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov esi, 0xffffff9d
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x40e464
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x40e464
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
dec eax
je 0x40e500
dec eax
jne 0x40e538
mov eax, dword [esp + 0xc]
cmp eax, 6
jb 0x40e49b
mov cl, byte [esp + 0xa2]
xor edx, edx
cmp cl, 1
setne dl
add edx, 0xa
mov esi, edx
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x40e4e6
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40e4c3
mov dl, byte [esp + 0xa2]
xor eax, eax
cmp dl, 1
setne al
add eax, 8
mov esi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40e4d5
mov esi, 8
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40e538
mov esi, 3
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x40e538
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40e538
mov esi, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x40e538
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40e51c
mov esi, 7
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x40e52e
mov esi, 6
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x40e538
mov esi, 5
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e8a0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e913
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffe
pop esi
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x40e920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
push ebp
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
jne 0x40e94b
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x8c
ret
push esi
push edi
mov dword [ebx], ebp
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesVxDKaseya
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
lea ecx, [esp + 0x28]
push ecx
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ea06
mov edx, dword [str.NtEventLogProcessTime]
mov eax, dword [0x422e2c]
mov ecx, dword [0x422e30]
mov dword [esp + 0x1c], edx
mov edx, dword [0x422e34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov eax, dword [0x422e38]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x2c], ecx
mov cx, word [0x422e3c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x3c], cx
push ebp
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x40ea09
pop edi
mov ebp, 1
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret
or ebp, 0xffffffff
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x40fd50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
push ebp
push esi
push edi
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesVxDKaseya
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebp, dword [esp + 0x9c]
jne 0x40fe2e
mov eax, dword [0x422edc]
mov ecx, dword [0x422ee0]
mov edx, dword [str.ConfigurationFile]
mov dword [esp + 0x1c], eax
mov ax, word [0x422ee8]
mov dword [esp + 0x20], ecx
mov word [esp + 0x28], ax
mov dword [esp + 0x18], edx
mov edx, dword [0x422ee4]
xor eax, eax
mov ecx, 0x41
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push ebp
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x1c]
push edx
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x28], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40fe2e
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe20
sub eax, edx
cmp eax, 1
jae 0x40fe55
mov ecx, dword [str..kaseyad.ini]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x422ecc]
mov dword [eax + 4], edx
mov ecx, dword [0x422ed0]
mov dword [eax + 8], ecx
mov dx, word [0x422ed4]
mov word [eax + 0xc], dx
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe60
mov ecx, dword [0x426940]
sub eax, edx
test ecx, ecx
jl 0x40ff18
cmp eax, 4
jle 0x40ff18
mov dl, byte [eax + ebp - 4]
cmp dl, 0x2e
lea esi, [eax + ebp - 4]
jne 0x40ff18
mov dl, byte [eax + ebp - 3]
or dl, 0x20
cmp dl, 0x69
jne 0x40ff18
mov dl, byte [eax + ebp - 2]
or dl, 0x20
cmp dl, 0x6e
jne 0x40ff18
mov al, byte [eax + ebp - 1]
or al, 0x20
cmp al, 0x69
jne 0x40ff18
push ecx
lea ecx, [esp + 0x1c]
push str._03d
push ecx
call fcn.004142bd
lea eax, [esp + 0x24]
add esp, 0xc
mov byte [esi], 0
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40fed0
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fee0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ff00
mov edx, dword [str..ini]
mov dword [edi], edx
mov al, byte [0x422ebc]
mov byte [edi + 4], al
pop edi
pop esi
pop ebp
add esp, 0x8c
ret
Function at 0x40ff30
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42085b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
xor ebx, ebx
push edi
lea ecx, [esp + 0x24]
xor edi, edi
mov dword [esp + 0x14], 0xd
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], ebx
call fcn.00413790
push str..pipekaseyaAgent
lea ecx, [esp + 0x28]
mov dword [esp + 0x250], ebx
call fcn.004137b0
test eax, eax
je 0x410085
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.00413890
test eax, eax
je 0x41007c
cmp dword [esp + 0x10], ebx
jne 0x41006b
cmp dword [esp + 0xc], ebx
jbe 0x41006b
lea ecx, [esp + 0x140]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
ja 0x41006b
lea edx, [esp + 0x3c]
push edx
push ebx
push 0x422eec
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, ebx
je 0x41006b
push esi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41006a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410041
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x41006a
mov edx, dword [esp + 0x258]
lea eax, [esp + 0x40]
mov ecx, eax
sub edx, ecx
jmp 0x410060
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x410060
pop esi
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x41007c
push eax
call fcn.004143d6
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004139f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00413df0
mov ecx, dword [esp + 0x244]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x248
ret

Function at 0x410930
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
push ebx
push esi
lea eax, [esp + 8]
push eax
xor esi, esi
call fcn.0040fd50
lea ecx, [esp + 0xc]
push 0x4231e0
push ecx
call fcn.004141fc
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x410996
lea edx, [esp + 8]
push edx
call fcn.0040ff30
add esp, 4
test eax, eax
je 0x41098a
lea eax, [esp + 8]
push 0x4231e0
push eax
mov esi, 1
call fcn.004141fc
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x410996
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
push edi
call fcn.00411b20
call fcn.004100c0
push ebx
mov edi, eax
call fcn.0041414f
add esp, 4
test esi, esi
je 0x4109bb
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffffe
pop ebx
add esp, 0x108
ret
Function at 0x4109d0
Capabilities:
Delete file

Disassembly:
sub esp, 0xb18
push ebx
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x10], 0
call fcn.0040fd50
lea ecx, [esp + 0x14]
push 0x421300
push ecx
call fcn.004141fc
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [esp + 8], ebx
mov edi, 1
jne 0x410a75
lea edx, [esp + 0x10]
push edx
call fcn.0040ff30
add esp, 4
test eax, eax
je 0x410a3a
lea eax, [esp + 0x10]
push 0x421300
push eax
mov dword [esp + 0x14], edi
call fcn.004141fc
add esp, 8
test eax, eax
mov dword [esp + 8], eax
jne 0x410a71
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
push str.ERROR:_Could_not_open__s_in_getConfigValue__n
push edx
call fcn.004142bd
lea eax, [esp + 0x124]
push eax
mov dword [esp + 0x128], edi
call fcn.0040c060
add esp, 0x10
pop edi
pop ebx
add esp, 0xb18
ret
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0xb28]
push esi
push ebx
call fcn.0040fbd0
add esp, 8
test eax, eax
je 0x410ac5
push ebx
call fcn.0041414f
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x12c]
push str.ERROR:_Could_not_find__s_header_in__s_in_getConfigValue__n
push edx
call fcn.004142bd
lea eax, [esp + 0x130]
push eax
mov dword [esp + 0x134], edi
call fcn.0040c060
add esp, 0x18
jmp 0x410be1
mov edi, dword [esp + 0xb2c]
push ebp
mov ebp, dword [esp + 0xb34]
mov byte [ebp], 0
jmp 0x410ae0
push ebx
lea edx, [esp + 0x328]
push 0x800
push edx
call fcn.0041677d
mov esi, eax
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b00
sub eax, edx
push eax
lea eax, [esp + 0x328]
push edi
push eax
call fcn.00414920
add esp, 0xc
test eax, eax
je 0x410b28
test esi, esi
jne 0x410ae0
jmp 0x410bd7
xor esi, esi
mov bl, 9
lea esp, [esp]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b35
sub eax, edx
add eax, esi
cmp byte [esp + eax + 0x324], 0x20
je 0x410b64
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b50
sub eax, edx
add eax, esi
cmp byte [esp + eax + 0x324], bl
jne 0x410b67
inc esi
jmp 0x410b30
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b70
sub eax, edx
add eax, esi
lea eax, [esp + eax + 0x324]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410b86
mov bl, 0xd
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b97
sub eax, edx
cmp byte [eax + ebp - 1], 0xa
je 0x410bbf
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410bb0
sub eax, edx
cmp byte [eax + ebp - 1], bl
jne 0x410bd3
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410bc4
sub eax, edx
mov byte [eax + ebp - 1], cl
jmp 0x410b92
mov ebx, dword [esp + 0x10]
push ebx
call fcn.0041414f
add esp, 4
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410bf4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
pop ebx
add esp, 0xb18
ret