joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59d000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x59d131
push esi
call fcn.005a0145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0058f080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x59d131
push 0
push ebp
call fcn.0058f3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0058f260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x59d08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0058f2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x59d121
push 0x5b5918
push edi
call fcn.0059e3f0
push eax
push ebx
push esi
call fcn.0059cf60
push 0x5b58f8
push edi
call fcn.0059e3f0
push eax
push ebx
push esi
call fcn.0059cf60
push 0x5b58d8
push edi
call fcn.0059e3f0
push eax
push ebx
push esi
call fcn.0059cf60
push 0x5b58c0
push edi
call fcn.0059e3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0059cf60
push 0x5b58a0
push edi
call fcn.0059e3f0
push eax
push ebx
push esi
call fcn.0059cf60
push 0x5b5888
push edi
call fcn.0059e3f0
push eax
push ebx
push esi
call fcn.0059cf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x59e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0059e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0059e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0059e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0059e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x59ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x59ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5b087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x59ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x59ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40346f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x418cd3
call fcn.0040aeac
movzx eax, word [ebp + 0xc]
push 0x41a620
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4034ac
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 0xc], esp
call fcn.00401c37
and dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00402e76
push ebx
xor edi, edi
lea esi, [ebp - 0x14]
call fcn.004010d7
cmp dword [ebp - 0x10], edi
jne 0x4034d2
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 0xc], esp
call fcn.00401c37
mov dword [ebp - 4], 1
jmp 0x4034a3
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4034f7
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 0xc], esp
call fcn.00401c37
mov dword [ebp - 4], 2
jmp 0x4034a3
push 0x41a610
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call eax
mov edi, eax
test edi, edi
jne 0x403530
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 0xc], esp
call fcn.00401c37
mov dword [ebp - 4], 3
jmp 0x4034a3
mov esi, dword [ebp + 8]
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004020ef
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push edi
sub ecx, eax
push ecx
push eax
call fcn.0040b403
add esp, 0x10
call fcn.0040af84
ret
Function at 0x40432e
Capabilities:
Check mutex on windows

Disassembly:
push 0x90
mov eax, 0x418fa0
call fcn.0040af4b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
xor ebx, ebx
cmp eax, ebx
je 0x4045b3
cmp dword [ebp + 0xc], ebx
je 0x4045b3
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x78], ebx
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040346f
inc dword [ebp + 0xc]
call fcn.0040108e
push 0x10
call fcn.0040b478
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4043d6
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00402279
mov dword [ebp - 0x6c], eax
jmp 0x4043d9
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00401c9a
mov dword [ebp - 4], 2
mov dword [ebp - 0x70], ebx
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
mov dword [ebp - 0x7c], eax
je 0x4044a4
push ebx
push ebx
push ebx
push 1
call edi
push eax
call esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsChild]
push ebx
push ebx
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call esi
push ebx
push ebx
push 1
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call esi
push ebx
push ebx
push ebx
push 1
call edi
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
push ebx
push ebx
push 1
call edi
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x70]
movzx eax, byte [eax + ecx]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402254
inc dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x7c]
jb 0x40440d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.004021b3
jmp 0x404376
call fcn.00402e76
mov dword [ebp - 4], 2
mov eax, 0x4044e7
ret
sub esp, 0xc
mov dword [ebp - 0x74], esp
mov ecx, esp
call fcn.00401c37
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x4044d5
Function at 0x4048d7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsChild]
push ebx
push ebx
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call edi
push ebx
push ebx
push 1
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call edi
push ebx
push ebx
push ebx
push 1
call esi
push eax
call edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
push ebx
push ebx
push 1
call esi
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 0x14

Function at 0x404b1b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.0040b3b0
mov eax, dword [0x424218]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
or dword [esi + 0xc], 0xffffffff
mov dword [esi], eax
xor edx, edx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov eax, dword [eax]
add eax, 0x78
mov dword [esi + 0x20], eax
cmp dword [eax + 4], edx
jne 0x404b73
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x404c03
mov eax, dword [eax]
add eax, ecx
mov dword [esi + 0x1c], eax
cmp dword [eax + 0x18], edx
je 0x404bfe
cmp dword [eax + 0x14], edx
je 0x404bfe
mov eax, dword [eax + 0x20]
add eax, ecx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x24]
add eax, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x10], edx
cmp dword [eax + 0x18], edx
jbe 0x404bdb
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
add eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.0040ba89
pop ecx
pop ecx
test eax, eax
je 0x404bd2
inc dword [esi + 0x10]
add dword [esi + 0x14], 4
add dword [esi + 0x18], 2
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
cmp ecx, dword [eax + 0x18]
jb 0x404ba2
jmp 0x404bdb
mov eax, dword [esi + 0x18]
movzx eax, word [eax]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x404c03
mov ecx, dword [esi + 0x1c]
cmp eax, dword [ecx + 0x14]
ja 0x404c03
mov ecx, dword [ecx + 0x1c]
mov edx, dword [esi + 8]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [esi + 0x24], eax
jmp 0x404c03
call fcn.00404769
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a5c9
leave
ret 8
Function at 0x404d79
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x41896e
call fcn.0040aeac
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4241e4
mov ecx, esi
mov dword [ebp - 0x10], ebx
call fcn.00401452
mov dword [ebp - 4], ebx
push 0x12
pop edi
push edi
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.004019f8
mov ecx, dword [esi]
cmp dword [ecx - 8], edi
jge 0x404dc2
push 0x80070057
call fcn.00401000
mov dword [ecx - 0xc], edi
mov ecx, dword [esi]
mov byte [ecx + 0x12], bl
mov ecx, str.qSBYRCZSp_ZSxW_Sw
sub ecx, eax
mov edx, edi
mov bl, byte [ecx + eax]
xor bl, 0x36
mov byte [eax], bl
inc eax
dec edx
jne 0x404dd3
push edi
mov ecx, esi
call fcn.004011ca
mov eax, esi
call fcn.0040af84
ret

Function at 0x404def
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x41896e
call fcn.0040aeac
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4241e4
mov ecx, esi
mov dword [ebp - 0x10], ebx
call fcn.00401452
mov dword [ebp - 4], ebx
push 0x12
pop edi
push edi
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.004019f8
mov ecx, dword [esi]
cmp dword [ecx - 8], edi
jge 0x404e38
push 0x80070057
call fcn.00401000
mov dword [ecx - 0xc], edi
mov ecx, dword [esi]
mov byte [ecx + 0x12], bl
mov ecx, str.qSBYRCZSp_ZSxW_Sa
sub ecx, eax
mov edx, edi
mov bl, byte [ecx + eax]
xor bl, 0x36
mov byte [eax], bl
inc eax
dec edx
jne 0x404e49
push edi
mov ecx, esi
call fcn.004011ca
mov eax, esi
call fcn.0040af84
ret
Function at 0x40a5c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424218]
jne 0x40a5d3
repz ret
jmp fcn.0040c2e8

Function at 0x4121bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424218]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d238
and dword [ebp - 0x14], 0
cmp dword [0x425fdc], 0
mov dword [ebp - 0x18], eax
jne 0x41226f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412317
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x412317
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x425fdc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x425fe0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x425fe4], eax
call edi
push eax
call esi
mov dword [0x425fec], eax
test eax, eax
je 0x41226f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x425fe8], eax
mov eax, dword [0x425fe8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122c8
cmp dword [0x425fec], ecx
je 0x4122c8
push eax
call esi
push dword [0x425fec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122c8
test ebx, ebx
je 0x4122c8
call edi
test eax, eax
je 0x4122bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4122bf
test byte [ebp - 8], 1
jne 0x4122c8
or dword [ebp + 0x10], 0x200000
jmp 0x4122fb
mov eax, dword [0x425fe0]
cmp eax, dword [ebp - 0x18]
je 0x4122fb
push eax
call esi
test eax, eax
je 0x4122fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4122fb
mov eax, dword [0x425fe4]
cmp eax, dword [ebp - 0x18]
je 0x4122fb
push eax
call esi
test eax, eax
je 0x4122fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x425fdc]
call esi
test eax, eax
je 0x412317
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412319
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a5c9
leave
ret
Function at 0x414e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
cmp edx, 0
je 0x414fa3
mov al, byte [edi]
mov bl, byte [edi + 4]
add edi, 8
lea ecx, [esi + edx]
sub ebp, esi
mov dword [esp + 0x18], ecx
inc al
cmp dword [edi + 0x100], 0xffffffff
je 0x414f70
mov ecx, dword [edi + eax*4]
and edx, 0xfffffffc
je 0x414f40
lea edx, [esi + edx - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
lea esp, [esp]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov ecx, dword [edi + eax*4]
mov ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [edi + eax*4]
or ebp, dword [edi + edx*4]
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
ror ebp, 8
mov ecx, dword [esp + 0x20]
or ebp, dword [edi + edx*4]
ror ebp, 8
xor ebp, dword [esi]
cmp esi, dword [esp + 0x1c]
mov dword [ecx + esi], ebp
lea esi, [esi + 4]
mov ecx, dword [edi + eax*4]
jb 0x414ea0
cmp esi, dword [esp + 0x18]
je 0x414f9b
mov ebp, dword [esp + 0x20]
lea esp, [esp]
nop
add bl, cl
mov edx, dword [edi + ebx*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add edx, ecx
inc al
and edx, 0xff
mov edx, dword [edi + edx*4]
xor dl, byte [esi]
lea esi, [esi + 1]
mov ecx, dword [edi + eax*4]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0x414f40
jmp 0x414f9b
movzx ecx, byte [edi + eax]
add bl, cl
movzx edx, byte [edi + ebx]
mov byte [edi + ebx], cl
mov byte [edi + eax], dl
add dl, cl
movzx edx, byte [edi + edx]
add al, 1
xor dl, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [edi + eax]
cmp esi, dword [esp + 0x18]
mov byte [ebp + esi - 1], dl
jb 0x414f74
dec al
mov byte [edi - 4], bl
mov byte [edi - 8], al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43c6a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x43c6b1
pop dword [ebp - 0xc]
mov eax, 0x9c682fcb
add eax, 0x63db96e6
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4e14f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xb316b829
add ecx, 0x4ce98739
xor ebx, ebx
add ebx, eax
mov esi, 0x488e00
add esi, dword [ebp - 0xc]
mov edi, 0xce55d521
add edi, 0x40270af6
mov edx, dword [esi]
xor dword [ebp - 4], 0x6b0daf9b
sub edx, edi
xor dword [ebp - 4], 0x2a475edc
mov dword [ebx], edx
xor dword [ebp - 4], 0x86823e77
add ebx, 4
add esi, 0x267d7d7c
sub esi, 0x267d7d78
loop 0x43c707
add eax, 0x19eed2e5
add eax, 0xe6121d76
xor ebx, ebx
add ebx, eax
add eax, 0xc7cec38a
add eax, 0x38313c7b
mov ecx, 0x71d77666
add ecx, 0x8e68899a
add ecx, dword [ebp - 0xc]
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 0x1012def0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1012e0dd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x1012df1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1012df21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1012df10
mov eax, 1
add ebx, ebx
jne 0x1012df33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1012df44
jne 0x1012df63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1012df63
dec eax
add ebx, ebx
jne 0x1012df50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1012df28
add ebx, ebx
jne 0x1012df5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1012dfb5
xor ecx, ecx
sub eax, 3
jb 0x1012df7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1012dfea
sar eax, 1
mov ebp, eax
jmp 0x1012df86
add ebx, ebx
jne 0x1012df86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1012df54
inc ecx
add ebx, ebx
jne 0x1012df94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1012df54
add ebx, ebx
jne 0x1012dfa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1012df96
jne 0x1012dfb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1012df96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1012dfd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1012dfc6
jmp 0x1012df16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1012dfd4
add edi, ecx
jmp 0x1012df16
pop esi
mov edi, esi
mov ecx, 0x34a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1012dff2
cmp byte [edi], 6
jne 0x1012dff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1012dff7
lea edi, [esi + 0x12b000]
mov eax, dword [edi]
or eax, eax
je 0x1012e066
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12e0bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1012e024
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12e0c0]
or eax, eax
je 0x1012e060
mov dword [ebx], eax
add ebx, 4
jmp 0x1012e041
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1012e0a0
cmp al, 0xef
ja 0x1012e08a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1012e06c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x1012e079
mov eax, dword [edi]
add edi, 4
jmp 0x1012e079
mov ebp, dword [esi + 0x12e0c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1012e0d4
sub esp, 0xffffff80
jmp 0x10006d40
Function at 0x402536
Capabilities:
Terminate process

Disassembly:
jmp 0x43dc82
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43dc93
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038d7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025c2
Capabilities:
Query environment variable

Disassembly:
jmp 0x446c2b
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446c3c
pop esi
ret
push ebx
push edi
push esi
call fcn.00446b12
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402abd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x446c64
push ebx
push esi
push edi
call fcn.004037a1
add esp, 0xc
push 0
call fcn.00403daf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40380f
Capabilities:
Parse pe header

Disassembly:
jmp 0x407d5c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407d9b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407d9b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407d9b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407d9b
cmp dword [ecx + 0x74], 0xe
jbe 0x407d9b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43817b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4381ba
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4381ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4381ba
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4381ba
cmp dword [ecx + 0x74], 0xe
jbe 0x4381ba
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret