joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f814
Capabilities:
Get system information on windows

Disassembly:
push 0x10c
mov eax, 0x4cc297
call fcn.004a5152
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xf4]
mov edi, dword [ebp + 8]
xor ebx, ebx
push eax
mov byte [esi], bl
mov byte [edi], bl
call fcn.0041f993
pop ecx
test eax, eax
jne 0x41f847
xor eax, eax
jmp 0x41f98d
push 0x4de344
push 0x4dd3b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f86d
lea ecx, [ebp - 0x118]
push ecx
call eax
jmp 0x41f87a
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0xe4], 2
jne 0x41f840
push 0xf
pop eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x58], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x40], bl
cmp byte [ebp - 0x5a], 1
mov byte [ebp - 4], 1
jne 0x41f8f1
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042063a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0041cd73
lea ecx, [ebp - 0x28]
call fcn.0041a26d
cmp dword [ebp - 0xf0], 6
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x28]
push eax
jb 0x41f8ea
call fcn.004201a0
jmp 0x41f936
call fcn.0041fbd0
jmp 0x41f936
lea eax, [ebp - 0x28]
push 0xffffffffffffff9d
push eax
call fcn.004200e6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0041cd73
lea ecx, [ebp - 0x28]
call fcn.0041a26d
cmp dword [ebp - 0xf0], 6
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x28]
push eax
jb 0x41f931
call fcn.0041fd22
jmp 0x41f936
call fcn.0041f9d3
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.0041cd73
lea ecx, [ebp - 0x28]
call fcn.0041a26d
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
jb 0x41f956
mov ecx, dword [ebp - 0x58]
sub edi, ecx
mov al, byte [ecx]
mov byte [edi + ecx], al
inc ecx
test al, al
jne 0x41f958
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
jb 0x41f96e
mov eax, dword [ebp - 0x40]
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x41f970
lea ecx, [ebp - 0x40]
call fcn.0041a26d
lea ecx, [ebp - 0x58]
call fcn.0041a26d
xor eax, eax
inc eax
call fcn.004a50fc
ret

Function at 0x42086b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
call fcn.0041f993
pop ecx
test eax, eax
je 0x4208c9
cmp dword [ebp - 0x9c], 6
jae 0x4208ad
cmp dword [ebp - 0x9c], 5
jne 0x4208c7
cmp dword [ebp - 0x98], 2
jne 0x4208c7
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0xc4], 9
jne 0x4208c7
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a50d6
leave
ret
Function at 0x420af2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x1c]
xor esi, esi
cmp byte [ebp + 0x20], 0
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [edi], esi
push eax
je 0x420b18
push 0x20119
jmp 0x420b1d
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420b79
push dword [edi]
push esi
push dword [ebp + 0x18]
call fcn.004a7f20
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x20]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x420b68
push 0xfffffffffffffffe
pop eax
jmp 0x420b7c
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi], eax
xor eax, eax
jmp 0x420b7c
or eax, 0xffffffff
pop edi
pop esi
leave
ret
Function at 0x422a6d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x422b0b
push ebx
push 0x4e24b4
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x422b08
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x422b08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x422b08
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x422b08
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422b01
cmp dword [ebp - 4], ebx
jne 0x422b01
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x423245
Capabilities:
Create directory

Disassembly:
push 0x64
mov eax, 0x4cc517
call fcn.004a5152
mov ebx, dword [ebp + 8]
mov esi, 0x51afb8
and dword [ebp - 0x18], 0
mov ecx, esi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42326d
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0041a333
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x423290
mov eax, dword [ebp - 0x28]
push 0x5c
push 0
push dword [ebp - 0x18]
push eax
call fcn.00422530
add esp, 0x10
mov esi, eax
jmp 0x42331a
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push esi
push eax
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x28]
push eax
call fcn.0042306e
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
jb 0x4232d1
mov eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4232ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x423321
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x4232fa
mov ecx, dword [ebp - 0x28]
push 0x5c
lea eax, [esi + 1]
push eax
push dword [ebp - 0x18]
push ecx
call fcn.00422530
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0041a26d
cmp esi, 0xffffffff
jne 0x4232a4
jmp 0x42338c
test ebx, ebx
je 0x423384
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push str.Creation_of_directory:
push eax
call fcn.004224cd
add esp, 0xc
push 8
push str._failed.
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041a2b9
push eax
lea ecx, [ebp - 0x58]
call fcn.00419020
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0041a26d
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
jb 0x42336d
mov eax, dword [ebp - 0x58]
push eax
push edi
push 2
push 3
push ebx
call fcn.00429952
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.0041a26d
lea ecx, [ebp - 0x40]
call fcn.0041a26d
lea ecx, [ebp - 0x28]
call fcn.0041a26d
call fcn.004a50fc
ret
Function at 0x42339a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x90
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.004a7f20
add esp, 0xc
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42343f
cmp dword [ebp - 0x98], 2
jne 0x42343f
lea eax, [ebp - 0xac]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x423459
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push edi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42344c
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x423459
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a50d6
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42344c

Function at 0x4234cd
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], ebx
push edi
push 0
push eax
call fcn.004a7f20
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x423589
cmp eax, 0x103
jae 0x423589
cmp byte [ebp - 0x108], 0
je 0x423589
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423536
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
jne 0x423559
dec ecx
cmp ecx, edi
jae 0x4235db
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423589
test al, 0x10
je 0x423589
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423576
mov ax, word [0x4dd400]
mov word [edi], ax
jmp 0x42359b
push edi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004a7f20
add esp, 0xc
and dword [ebx + 0x10], 0
lea ecx, [ebp - 0x108]
mov dword [ebx + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [ebx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4235b2
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, ebx
call fcn.0041a333
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret
call fcn.004a4ffc
int3
Function at 0x4235e1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4236e6
cmp byte [esi], 0
je 0x4236e6
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4236e6
push dword [ebp + 0x10]
push 0
push ebx
call fcn.004a7f20
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp + 8], eax
test eax, eax
jne 0x42362d
inc eax
jmp 0x4236e9
push eax
call fcn.004ac04c
mov edi, eax
pop ecx
test edi, edi
jne 0x423642
push 2
pop eax
jmp 0x4236e9
push dword [ebp + 8]
push 0
push edi
call fcn.004a7f20
add esp, 0xc
push edi
push dword [ebp + 8]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x423664
push 3
jmp 0x4236da
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp + 8], 0
jbe 0x4236d8
test eax, eax
je 0x4236d8
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push ebx
push 0x4e07a0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push edi
call fcn.004236ee
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4236c5
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push ebx
push 0x4e07b0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push edi
call fcn.004236ee
add esp, 0x18
mov esi, eax
push edi
call fcn.004ac047
neg esi
pop ecx
sbb esi, esi
and esi, 2
lea eax, [esi - 2]
jmp 0x4236e9
push 4
pop esi
push edi
call fcn.004ac047
pop ecx
mov eax, esi
jmp 0x4236e9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x423c14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov dword [esi], ecx
cmp dword [ebp + 0xc], ecx
je 0x423ca1
cmp dword [ebp + 0x10], ecx
je 0x423ca1
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x423ca1
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x423ca1
lea eax, [ebp + 0x1c]
push eax
push 0x20019
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423ca4
push dword [esi]
push eax
push ebx
call fcn.004a7f20
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x1c]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x423c93
mov eax, ebx
jmp 0x423ca4
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
xor eax, eax
jmp 0x423ca4
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423cd3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
xor esi, esi
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
pop edi
push edi
push esi
push eax
call fcn.004a7f20
add esp, 0xc
mov dword [ebp - 0x70], edi
mov eax, 0xfffff830
mov dword [ebp - 0x44], 5
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push 7
pop eax
push 0xc
mov word [ebp - 0x40], ax
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], esi
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x423d55
or esi, 0xffffffff
jmp 0x423dbb
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], esi
je 0x423db2
mov edi, esi
mov dword [ebp - 4], 0x103
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x423daf
cmp dword [ebp - 4], 0x103
jne 0x423db2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
inc edi
test eax, eax
jle 0x423d9f
add eax, eax
cmp eax, edi
jl 0x423daa
cmp dword [ebp - 4], 0x103
je 0x423d6c
jmp 0x423db2
push 2
pop esi
jmp 0x423db2
xor esi, esi
inc esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x426b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x426b98
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0xfffffffe
mov eax, esi
jmp 0x426b9b
or eax, 0xffffffff
pop esi
leave
ret

Function at 0x426cee
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
push edi
push str.advapi32.dll
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426e3c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push edi
call esi
push 0x4e24f0
push edi
mov dword [ebp - 0x28], eax
call esi
push str.GetTokenInformation
push edi
mov dword [ebp - 0x10], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x14], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x24], eax
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x426e34
cmp dword [ebp - 0x10], ebx
je 0x426e34
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x426e34
cmp dword [ebp - 0x24], ebx
je 0x426e34
test eax, eax
je 0x426e34
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call ecx
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call fcn.004ac04c
mov esi, eax
pop ecx
test esi, esi
je 0x426e25
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
cmp dword [esi], ebx
jbe 0x426e1e
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
push dword [eax]
push dword [ebp - 0x20]
call dword [ebp - 0x24]
test eax, eax
jne 0x426e1b
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc ecx
add eax, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [esi]
jb 0x426df9
jmp 0x426e1e
xor ebx, ebx
inc ebx
push esi
call fcn.004ac047
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret
Function at 0x4283e5
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1918
call fcn.004a5270
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x190c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x1900
mov dword [ebp - 0x1914], eax
push edi
lea eax, [ebp - 0x1904]
mov dword [ebp - 0x1918], esi
push 0
push eax
call fcn.004a7f20
add esp, 0xc
lea eax, [ebp - 0x190c]
push eax
push esi
push 2
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x428454
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x428541
mov dword [ebp - 0x1910], edi
jmp 0x4284f0
xor edi, edi
cmp dword [ebp - 0x1908], edi
jbe 0x4284e6
lea esi, [ebp - 0x18f8]
mov eax, dword [esi - 4]
test eax, eax
je 0x428485
cmp eax, 1
jbe 0x428480
cmp eax, 3
jbe 0x428485
xor ecx, ecx
inc ecx
jmp 0x428487
xor ecx, ecx
test byte [esi], 2
je 0x4284c3
test ecx, ecx
je 0x4284aa
push ebx
push dword [ebp - 0x1914]
lea eax, [esi - 0xc]
push eax
call fcn.004283e5
add esp, 0xc
cmp byte [ebx], 0
jne 0x4284e6
jmp 0x4284c3
cmp eax, 2
jne 0x4284c3
push dword [ebp - 0x1914]
push dword [esi + 8]
call fcn.004af65f
pop ecx
pop ecx
test eax, eax
je 0x4284d1
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x1908]
jb 0x42846f
jmp 0x4284e6
mov eax, dword [ebp - 0x1918]
mov edx, ebx
mov ecx, dword [eax + 0x14]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4284dc
mov dword [ebp - 0x1910], 0x1900
or dword [ebp - 0x1908], 0xffffffff
lea eax, [ebp - 0x1910]
push eax
lea eax, [ebp - 0x1904]
push eax
lea eax, [ebp - 0x1908]
push eax
push dword [ebp - 0x190c]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
je 0x42845f
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
cmp dword [ebp - 0x190c], 0
je 0x42853f
push dword [ebp - 0x190c]
call sub.MPR.dll_WNetCloseEnum
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret
Function at 0x429179
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x134]
push esi
mov esi, dword [ebp + 8]
push 0x130
push 0
push eax
mov dword [ebp - 0x13c], esi
call fcn.004a7f20
add esp, 0xc
test ebx, ebx
jne 0x4291bc
or eax, 0xffffffff
jmp 0x42933c
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x4291d4
push eax
call fcn.004ac047
and dword [ebx + 0x13c], 0
pop ecx
push edi
push 0xa
pop ecx
xor eax, eax
mov edi, ebx
push 0x108
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x28]
push 0
push eax
call fcn.004a7f20
mov eax, dword [ebx + 0x130]
mov edi, 0x130
add eax, edi
add dword [ebx + 0x134], eax
mov eax, dword [ebx + 0x134]
push 2
neg eax
push eax
push esi
call fcn.004aefc8
push esi
push edi
lea eax, [ebp - 0x134]
push 1
push eax
call fcn.004aeb87
add esp, 0x28
cmp eax, edi
je 0x429237
and dword [ebx + 0x130], 0
push 0xfffffffffffffffe
jmp 0x42930a
push 9
pop ecx
push 0x24
lea eax, [ebp - 0x134]
mov edi, ebx
push eax
lea esi, [ebp - 0x134]
rep movsd dword es:[edi], dword [esi]
push str.Agent_Install_Additional_File___v01
call fcn.004abf19
add esp, 0xc
test eax, eax
je 0x429265
push 0xfffffffffffffffd
jmp 0x42930a
push 4
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00426b9e
lea eax, [ebp - 0x138]
push eax
call fcn.00426cd1
add esp, 0x10
mov dword [ebx + 0x130], eax
lea esi, [ebp - 0x110]
lea edi, [ebx + 0x28]
push 0x41
pop ecx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x28]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4292a0
sub ecx, esi
jmp 0x4292b7
cmp byte [ebx + ecx + 0x28], 0x20
jne 0x4292bc
mov byte [ebx + ecx + 0x28], 0
sub ecx, 1
jns 0x4292ab
mov eax, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x134]
sub eax, ecx
mov edx, dword [ebx + 0x130]
cmp edx, eax
jbe 0x4292d8
push 0xfffffffffffffffc
jmp 0x42930a
mov esi, dword [ebp - 0x13c]
lea eax, [edx + ecx]
push 2
neg eax
push eax
push esi
call fcn.004aefc8
mov eax, dword [ebx + 0x130]
inc eax
push eax
call fcn.004ac04c
mov ecx, eax
add esp, 0x10
mov dword [ebx + 0x13c], ecx
test ecx, ecx
jne 0x42930d
push 0xfffffffffffffffb
pop eax
jmp 0x42933b
mov eax, dword [ebx + 0x130]
push esi
mov byte [ecx + eax], 0
push dword [ebx + 0x130]
push 1
push dword [ebx + 0x13c]
call fcn.004aeb87
sub eax, dword [ebx + 0x130]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xfffffffa
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret
Function at 0x4297cf
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0xc]
push 0x40
push 0
push eax
call fcn.004a7f20
add esp, 0xc
test esi, esi
je 0x429944
push ebx
lea ebx, [esi + 0x135]
push 0x105
test edi, edi
jne 0x429939
push edi
push ebx
call fcn.004a7f20
add esp, 0xc
mov edi, 0x104
push edi
push ebx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x4298e5
cmp eax, edi
jae 0x4298e5
lea edi, [esi + 0x135]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42984a
sub ecx, edx
cmp byte [ecx + esi + 0x134], 0x5c
je 0x42986f
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42985e
mov ax, word [0x4dd400]
mov word [edi], ax
mov edi, 0x104
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429879
sub ecx, edx
sub edi, ecx
push edi
push str.KASetup.log
push ebx
call fcn.004b6f10
push 0x4e3118
push ebx
call fcn.004afdb4
mov esi, eax
add esp, 0x14
test esi, esi
je 0x429943
lea eax, [ebp - 0x48]
push eax
call fcn.004afa22
lea eax, [ebp - 0x48]
push eax
call fcn.004b59d1
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004b7174
lea eax, [ebp - 0x44]
push eax
push str.Installation_start_time:__s_n
push esi
call fcn.00429aae
push esi
call fcn.004ae483
add esp, 0x28
jmp 0x429943
push edi
push ebx
push 0x4e14f8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x42992a
cmp eax, edi
jae 0x42992a
lea edi, [esi + 0x135]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429905
sub ecx, edx
cmp byte [ecx + esi + 0x134], 0x5c
je 0x42986f
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42991d
jmp 0x429866
mov dword [esi + 0x135], 0x5c3a43
jmp 0x429874
push edi
push ebx
call fcn.004af750
add esp, 0xc
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a50d6
leave
ret