joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4114f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x828], 0
push eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x82c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareEasyAntiCheat
push 0x80000002
mov edi, ecx
mov dword [ebp - 0x834], 1
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411705
cmp dword [ebp - 0x82c], 1
jne 0x4115da
push edi
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push 0x440814
push eax
call fcn.00411ad0
lea ecx, [ebp - 0x24]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x4115a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4115a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.GamesInstalled
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
jmp 0x4116f9
push 0x7fe
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push 0
push eax
call fcn.004228a0
add esp, 0xc
mov dword [ebp - 0x830], 0x800
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push str.GamesInstalled
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x411636
cmp eax, 2
jne 0x4116f9
push esi
lea esi, [ebp - 0x824]
lea ecx, [ecx]
cmp word [esi], 0
je 0x411670
push esi
call fcn.0041d229
add esp, 4
cmp eax, edi
je 0x411717
push 0x44083c
push esi
call fcn.0041d2d8
mov esi, eax
add esp, 8
test esi, esi
je 0x411670
add esi, 2
jne 0x411640
xor eax, eax
push edi
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push 0x440814
push eax
call fcn.00411ad0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x824]
push 0x400
push eax
call fcn.0041d0ac
lea ecx, [ebp - 0x824]
add esp, 0x18
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4116c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
push 0
push str.GamesInstalled
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
pop esi
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x4116f8
Function at 0x411720
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.004327e0
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x102c], 0
push eax
push 0xf003f
push 0
push str.SoftwareEasyAntiCheat
push 0x80000002
mov edi, ecx
mov dword [ebp - 0x1030], 1
xor bl, bl
xor bh, bh
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411901
push 0x7fe
push eax
mov word [ebp - 0x1024], ax
lea eax, [ebp - 0x1022]
push eax
call fcn.004228a0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004228a0
add esp, 0x18
mov dword [ebp - 0x1034], 0x800
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1030]
push eax
push 0
push str.GamesInstalled
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4118c8
push esi
lea esi, [ebp - 0x1024]
cmp word [esi], 0
je 0x41186b
push esi
call fcn.0041d229
add esp, 4
test eax, eax
je 0x411852
cmp eax, edi
je 0x411850
xor ecx, ecx
push eax
lea eax, [ebp - 0x24]
mov word [ebp - 0x24], cx
push 0x440814
push eax
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
call fcn.00411ad0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x824]
push 0x400
push eax
call fcn.0041d0ac
add esp, 0x18
jmp 0x411852
mov bl, 1
push 0x44083c
push esi
call fcn.0041d2d8
mov esi, eax
add esp, 8
test esi, esi
je 0x41186b
add esi, 2
jne 0x4117f1
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
pop esi
test bl, bl
je 0x4118b7
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411880
sub ecx, edx
sar ecx, 1
je 0x4118cd
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
push 0
push str.GamesInstalled
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4118cf
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4118b7
sub ecx, edx
sar ecx, 1
jmp 0x4118cb
cmp eax, 2
jne 0x4118cf
mov bh, 1
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bh, bh
je 0x4118ef
push str.SoftwareEasyAntiCheat
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x4118ef
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x411920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push 0x20019
push 0
push str.SoftwareEasyAntiCheat
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x814], 1
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411aa9
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.004228a0
add esp, 0xc
mov dword [ebp - 0x810], 0x800
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push str.GamesInstalled
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411a84
push edi
lea edi, [ebp - 0x804]
cmp word [edi], 0
je 0x411a63
push edi
call fcn.0041d229
mov ebx, eax
add esp, 4
mov dword [ebp - 0x80c], ebx
test ebx, ebx
je 0x411a46
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x80c]
cmp ecx, eax
jae 0x411a2c
mov ecx, dword [esi]
lea edx, [ebp - 0x80c]
cmp ecx, edx
ja 0x411a2c
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [esi + 8]
jne 0x411a1c
push ecx
mov ecx, esi
call fcn.0040b820
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411a42
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
jmp 0x411a42
cmp eax, dword [esi + 8]
jne 0x411a39
push ecx
mov ecx, esi
call fcn.0040b820
mov eax, dword [esi + 4]
test eax, eax
je 0x411a42
mov dword [eax], ebx
add dword [esi + 4], 4
push 0x44083c
push edi
call fcn.0041d2d8
mov edi, eax
add esp, 8
test edi, edi
je 0x411a63
add edi, 2
jne 0x4119d0
pop edi
push dword [ebp - 0x808]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x411a8b
mov bl, 1
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
cmp eax, 2
mov al, 1
je 0x411ab2
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x411af0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0
push 0
mov esi, ecx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x411b6e
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x411b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, 0x424
jne 0x411b6b
mov bl, 1
jmp 0x411b6b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
setne al
test al, al
je 0x411b62
mov bl, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret

Function at 0x411e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
test dl, dl
je 0x411e9e
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x411e9e
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x411e9e
cmp dword [ebp - 4], 0
je 0x411e9e
push esi
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x411eb8
push str._sysnative_
push 0x104
push esi
call fcn.0041d0ac
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x411eb8
push 0x43f3c4
jmp 0x411e88
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411f40
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x411fa3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], eax
setne al
xor ecx, ebp
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x419720
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x440ce0
call fcn.0041f5f8
add eax, 0x40
push eax
call fcn.0041deed
add esp, 0xc
push 2
call fcn.00420439
int3
Function at 0x430dd3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00422a8b
mov dword [ebp - 0x14], eax
cmp dword [0x44aefc], esi
jne 0x430ec6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x430e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x430fa6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x430fa6
push 0x43d834
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430fa6
push eax
call ebx
push 0x43d840
push edi
mov dword [0x44aefc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44af00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44af04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44af0c], eax
test eax, eax
je 0x430ec3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44af08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x430eeb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x430ede
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x430f00
push 4
pop eax
jmp 0x430fa8
cmp dword [ebp - 0x14], esi
je 0x430f00
push dword [0x44aefc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x430ee5
mov eax, dword [0x44af08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x430f5e
cmp dword [0x44af0c], edi
je 0x430f5e
push eax
call ebx
push dword [0x44af0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x430f5e
test eax, eax
je 0x430f5e
call ecx
test eax, eax
je 0x430f53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x430f53
test byte [ebp - 8], 1
jne 0x430f5e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x430f8e
mov eax, dword [0x44af00]
cmp eax, edi
je 0x430f8b
push eax
call ebx
test eax, eax
je 0x430f8b
call eax
mov esi, eax
test esi, esi
je 0x430f8b
mov eax, dword [0x44af04]
cmp eax, edi
je 0x430f8b
push eax
call ebx
test eax, eax
je 0x430f8b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44aefc]
call ebx
test eax, eax
je 0x430fa6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x430fa8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bc45
mov esp, ebp
pop ebp
ret
Function at 0x411c13
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b339
xor ebx, ebx
cmp dword [0x424568], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x411ce9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411dc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414704
push edi
call esi
cmp eax, ebx
je 0x411dc9
push eax
call fcn.0040b2cb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424568], eax
call esi
push eax
call fcn.0040b2cb
mov dword [esp], 0x4146e0
push edi
mov dword [0x42456c], eax
call esi
push eax
call fcn.0040b2cb
mov dword [0x424570], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040cfe0
test eax, eax
pop ecx
pop ecx
je 0x411cb7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a429
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x411ce9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b2cb
cmp eax, ebx
pop ecx
mov dword [0x424578], eax
je 0x411ce9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b2cb
pop ecx
mov dword [0x424574], eax
mov eax, dword [0x424574]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x411d6e
cmp dword [0x424578], ecx
je 0x411d6e
push eax
call fcn.0040b342
push dword [0x424578]
mov esi, eax
call fcn.0040b342
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x411d6e
cmp edi, ebx
je 0x411d6e
call esi
cmp eax, ebx
je 0x411d3b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411d3b
test byte [ebp - 0x18], 1
jne 0x411d6e
lea eax, [ebp - 0x10]
push eax
call fcn.0040d017
test eax, eax
pop ecx
je 0x411d56
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a429
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x411d65
or dword [ebp + 0x10], 0x200000
jmp 0x411da9
or dword [ebp + 0x10], 0x40000
jmp 0x411da9
mov eax, dword [0x42456c]
cmp eax, dword [ebp - 8]
je 0x411da9
push eax
call fcn.0040b342
cmp eax, ebx
pop ecx
je 0x411da9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x411da9
mov eax, dword [0x424570]
cmp eax, dword [ebp - 8]
je 0x411da9
push eax
call fcn.0040b342
cmp eax, ebx
pop ecx
je 0x411da9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424568]
call fcn.0040b342
cmp eax, ebx
pop ecx
je 0x411dc9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411dcb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42a32b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x42a33a
pop dword [ebp - 0x4c]
mov eax, 0x9cbf2b43
sub eax, 0x9c7c8809
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x5263d
push 0
mov eax, 0xfd8e0eab
sub eax, 0xfd495bfb
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x1341f2d1
add ecx, 0xecbe5e40
mov edx, eax
mov esi, 0x475e00
add esi, dword [ebp - 0x4c]
mov ebx, 0x715bfaf9
xor dword [ebp - 0x14], 0x9d21dabe
mov edi, dword [esi]
sub edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x40], ebx
add edx, 0xd8118b62
add edx, 0x27ee74a2
add esi, 0x48271ccb
add esi, 0xb7d8e339
loop 0x42a38d
add eax, 0xb1837a7f
add eax, 0x4e7dbc98
xor ebx, ebx
add ebx, eax
add eax, 0x36f5ab58
add eax, 0xc90a54ad
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4747c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x406396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x7c
call fcn.00406390
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x406048
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [fcn.00401108]
mov dword [ebp - 4], 3
call fcn.00411fb8
mov dword [ebp - 0x7c], eax
call dword [fcn.004010b8]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
push ecx
push 0x28
mov edx, dword [ebp - 0x70]
push edx
call fcn.00411ecc
mov dword [ebp - 0x7c], eax
call dword [fcn.004010b8]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x6c]
push ecx
push 0x411adc
lea edx, [ebp - 0x78]
push edx
call dword [fcn.00401350]
push eax
push 0
call fcn.00411f6c
mov dword [ebp - 0x7c], eax
call dword [fcn.004010b8]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x78]
call dword [fcn.004013dc]
mov dword [ebp - 4], 6
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 7
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 2
jae 0x4748bc
mov dword [ebp - 0x98], 0
jmp 0x4748c8
call dword [0x401184]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x80]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x58]
push eax
push 8
call dword [0x40108c]
mov dword [ebp - 4], 8
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 2
jae 0x4748ff
mov dword [ebp - 0x9c], 0
jmp 0x47490b
call dword [0x401184]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x80]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x50], 2
mov dword [ebp - 4], 9
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0
mov edx, dword [ebp - 0x60]
push edx
call fcn.00411f1c
mov dword [ebp - 0x7c], eax
call dword [fcn.004010b8]
xor eax, eax
cmp dword [ebp - 0x7c], 0
setne al
neg eax
mov word [ebp - 0x74], ax
push 0x474963
jmp 0x474962
ret