joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488ef0
Capabilities:
Get disk information

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x488ee2
jmp 0x488ef0
cmp al, 4
jae 0x488edd
jmp 0x4890a0
sub esp, 0x24
mov eax, dword [0x4d1ce0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
push 0
lea eax, [esp + 0x18]
push 0x4c9430
push eax
call fcn.0041a780
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
xor esi, esi
lea esp, [esp]
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 3
je 0x488f36
dec byte [esp + 0x14]
inc esi
cmp esi, 3
jl 0x488f20
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00404be0
add esp, 0x24
ret
push ecx
push ebx
push esi
push edi
push str.Kernel32.Dll
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.UTRegister
push edi
call ebx
mov esi, eax
test esi, esi
je 0x489159
push str.UTUnRegister
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x489159
push 0
push 0
lea eax, [esp + 0x14]
push eax
push str.UTProc
push 0
push str.VSN16.DLL
push dword [0x4e5d4c]
call esi
test eax, eax
je 0x489108
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x489129
push 0
push 0
lea eax, [esp + 0x14]
push eax
push str.UTProc
push 0
push str.VSN16.DLL
push dword [0x4e5d4c]
call esi
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x489151
test ecx, ecx
je 0x489151
push 0
push 0
push 0
call ecx
push dword [0x4e5d4c]
mov esi, eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
push dword [0x4e5d4c]
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x48b290
Capabilities:
Check os version

Disassembly:
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
cmp ecx, 6
jb 0x48b2ac
lea eax, [esi + 7]
pop esi
ret
cmp ecx, 5
jne 0x48b2b6
lea eax, [ecx + 1]
pop esi
ret
cmp ecx, 4
jne 0x48b2d2
test eax, eax
jne 0x48b2c3
mov eax, ecx
pop esi
ret
cmp eax, 1
mov ecx, 3
cmove esi, ecx
mov eax, esi
pop esi
ret
cmp ecx, 3
jne 0x48b2de
test eax, eax
lea eax, [ecx + 2]
je 0x48b2e0
mov eax, esi
pop esi
ret
Function at 0x48b2f0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x4d1ce0]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push 0x103
lea eax, [esp + 0x11]
mov dword [esp + 8], 0
push 0
push eax
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
call fcn.004056e0
add esp, 0xc
cmp dword [0x4df098], 0
jne 0x48b490
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
lea eax, [esp + 0x14]
push str._s__d
push eax
call fcn.00427717
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x48b383
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00404be0
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48b399
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4df098], 0
jne 0x48b482
call fcn.0048b290
add eax, 0xfffffffc
cmp eax, 3
ja case.default.0x48b3b7
jmp dword [eax*4 + 0x48b4b4]
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4df0ac], eax
test eax, eax
je 0x48b444
push str.WTSEnumerateSessionsA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4df0a0], eax
test eax, eax
je 0x48b43f
push str.WTSFreeMemory
push dword [0x4df0ac]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4df0a4], eax
test eax, eax
je 0x48b43f
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 1
push 0
push 0
call dword [0x4df0a0]
mov eax, dword [esp + 4]
test eax, eax
je 0x48b438
cmp dword [eax + 8], 0
je 0x48b438
push eax
call dword [0x4df0a4]
mov dword [0x4df09c], 1
jmp 0x48b43f
push eax
call dword [0x4df0a4]
mov eax, dword [0x4df0ac]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4df0ac], 0
jmp case.default.0x48b3b7
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [0x4df09c]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [0x4df09c], ecx
mov dword [0x4df098], 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x110]
xor eax, eax
cmp dword [0x4df09c], eax
pop esi
setne al
xor ecx, esp
call fcn.00404be0
add esp, 0x110
ret
Function at 0x490a90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4d1ce0]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x38]
movzx esi, byte [ecx]
movzx eax, byte [ecx + 1]
shl esi, 8
add esi, eax
mov dword [esp + 0xc], edi
movzx eax, byte [ecx + 2]
shl esi, 8
add esi, eax
je 0x490bcf
push ebx
push ebp
xor ebp, ebp
lea ebx, [ecx + 3]
xor edx, edx
mov dword [esp + 0x18], ebx
test esi, esi
jle 0x490b10
mov edi, 0x100
jmp 0x490af0
movzx ecx, byte [ebx + edx]
movzx eax, byte [ebx + edx + 1]
add edx, 2
imul cx, di
add cx, ax
movzx eax, cx
xor ebp, eax
cmp edx, esi
jl 0x490af0
mov edi, dword [esp + 0x14]
movsx ecx, byte [ebx + edx]
lea edx, [edx + 1]
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x490b31
lea eax, [ebx + edx]
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00405a60
add esp, 0xc
push esi
push edi
call fcn.0043eed0
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x490bcd
mov edx, eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], edx
xor ebx, ebx
mov dword [esp + 0x10], eax
lea edi, [eax + 1]
test esi, esi
jle 0x490ba9
mov edi, edi
cmp ecx, 0xf
jl 0x490b6c
xor ecx, ecx
mov edi, 1
mov eax, edi
and eax, ebp
test ax, ax
je 0x490b9d
mov eax, ebx
cdq
idiv dword [esp + 0x20]
mov al, byte [esp + edx + 0x2c]
mov edx, dword [esp + 0x18]
xor al, byte [edx + ebx]
mov edx, dword [esp + 0x14]
mov byte [edx], al
inc edx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x490ba1
mov eax, dword [esp + 0x10]
inc ebx
inc ecx
add edi, edi
cmp ebx, esi
jl 0x490b60
push 0
sub esi, eax
push esi
push 0
push edx
call fcn.0041a4e0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.00404be0
add esp, 0x2c
ret

Function at 0x490be0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov word [esp + 4], 0x5347
mov byte [esp + 6], 0x49
test edi, edi
jle 0x490c20
push esi
mov esi, dword [esp + 0x10]
lea ecx, [ecx]
mov eax, 0xaaaaaaab
lea esi, [esi + 1]
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ecx
sub edx, eax
inc ecx
mov al, byte [esp + edx + 8]
xor byte [esi - 1], al
cmp ecx, edi
jl 0x490c00
pop esi
pop edi
pop ecx
ret
Function at 0x4917b0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d1ce0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0
push eax
call fcn.004056e0
xor edi, edi
add esp, 0xc
cmp dword [0x4dff0c], edi
jne 0x491895
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.IPHelperMutex
lea eax, [esp + 0x10]
push str._s__d
push eax
call fcn.00427717
add esp, 0x10
lea eax, [esp + 8]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x491835
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00404be0
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x49184b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4dff0c], edi
jne 0x491887
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4dff10], eax
test eax, eax
jne 0x49186c
lea edi, [eax - 2]
jmp 0x49187d
push str.GetAdaptersAddresses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dff08], eax
mov dword [0x4dff0c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00404be0
add esp, 0x108
ret

Function at 0x495420
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0x60
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004056e0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
ret
Function at 0x2983f41f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2983f42e
pop dword [ebp - 0x48]
mov eax, 0x77898214
add eax, 0xb1fa721a
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xa2d4d895
add dword [ebp - 0x58], 0xab7d6cb6
mov dword [ebp - 0x54], 0x45242a4f
add dword [ebp - 0x54], 0xed0f21f6
mov dword [ebp - 0x50], 0x1387fa87
add dword [ebp - 0x50], 0x38c449a7
mov dword [ebp - 0x4c], 0x1072bc9f
sub dword [ebp - 0x4c], 0x1072bc9f
lea eax, [ebp - 0x58]
push eax
mov eax, 0x38581934
sub eax, 0xed2a874
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xbf9d7666
sub dword [ebp - 0x58], 0x4b2b0d10
mov dword [ebp - 0x54], 0x4286e319
sub dword [ebp - 0x54], 0x11a81a4
mov dword [ebp - 0x50], 0x7074ade3
sub dword [ebp - 0x50], 0xd054177
mov dword [ebp - 0x4c], 0xfb1cbf07
add dword [ebp - 0x4c], 0x4e340f9
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4a2ff
push 0
call eax
mov ecx, 0xfa9fd021
add ecx, 0x56080c5
mov edx, eax
mov ebx, 0x29896400
add ebx, dword [ebp - 0x48]
mov edi, 0x32dd2028
add edi, 0xec3bdfce
add dword [ebp - 0x24], 0x5ae5a92c
mov esi, dword [ebx]
sub dword [ebp - 0x30], 0x7595c140
sub esi, edi
xor dword [ebp - 0x44], 0x235a1cc5
mov dword [edx], esi
add dword [ebp - 0x28], 0x750d930b
add edx, 0xc7c81e8a
sub edx, 0xc7c81e86
add ebx, 4
loop 0x2983f545
add eax, 0xa3d228b2
sub eax, 0xa3d0f247
mov ebx, eax
add eax, 0xcc560669
add eax, 0x33a9f99c
mov ecx, 0xc7a16682
sub ecx, 0x9e216682
add ecx, dword [ebp - 0x48]
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 0x44112a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x441139
pop dword [ebp - 0x18]
mov eax, 0x76247bef
sub eax, 0x75e06ab6
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x51816
push 0
mov eax, 0x8daced5d
sub eax, 0x8d683aad
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x498fe301
sub ecx, 0x498f9563
xor edi, edi
add edi, eax
mov ebx, 0x787e24d3
sub ebx, 0x783596d3
add ebx, dword [ebp - 0x18]
mov edx, 0x835c191a
sub edx, 0x77ae826e
mov esi, dword [ebx]
sub dword [ebp - 8], edi
sub esi, edx
add dword [ebp - 8], edi
mov dword [edi], esi
xor dword [ebp - 0x10], edi
add edi, 0xc5c7fa05
sub edi, 0xc5c7fa01
add ebx, 4
loop 0x44119a
add eax, 0x1294b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xced77ca8
sub ecx, 0xce977ca8
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x403cd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0xa
call fcn.00408f80
add esp, 8
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
add eax, 8
mov dword [ebp - 8], eax
push 0
push dword [0x423cc8]
push 0x3e9
push dword [0x423cdc]
push 0x12c
push 0x2bc
push 0
push 0
push 0x50000000
push 0
push str.STATIC
push 0
call ebx
push 0
push dword [0x423cc8]
push 0x3e8
push dword [0x423cdc]
push 0x64
push 0x244
push 0xa
push 0xa
push 0x50000007
push 0
push str.STATIC
push 0
call ebx
push 0x23
lea ecx, [ebp - 8]
call fcn.004024a0
mov esi, dword [ebp - 8]
mov eax, dword [esi - 8]
lea edi, [esi - 8]
lea eax, [eax*2 + 2]
push eax
push str.ARE_YOU_SURE_YOU_WANT_TO_UNINSTALL_
push esi
call fcn.004074d0
add esp, 0xc
push 0
push dword [0x423cc8]
push 0x3ef
push dword [0x423cdc]
push 0x19
push 0x21c
push 0x1e
push 0x1e
push 0x50000001
push 0
push str.STATIC
push 0
call ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xc
push eax
mov dword [0x423cd8], eax
call esi
push 0
push dword [0x423cc8]
push 0x3f3
push dword [0x423cdc]
push 0x19
push 0x21c
push 0x46
push 0x1e
push 0x50000000
push 0
push str.msctls_progress32
push 0
call ebx
push 0x3e80000
push 0
push 0x401
push eax
mov dword [0x423ccc], eax
call esi
push 0
push dword [0x423cc8]
push 0x3f4
push dword [0x423cdc]
push 0x20
push 0x64
push 0x78
push 0x1ea
push 0x50010000
push str.CANCEL
push str.BUTTON
push 0
call ebx
push 0
push dword [0x423cc8]
mov dword [0x423d04], eax
push 0x3f5
push dword [0x423cdc]
push 0x20
push 0x64
push 0x78
push 0x172
push 0x50010001
push str.UNINSTALL
push str.BUTTON
push 0
call ebx
push 5
push dword [0x423cdc]
mov dword [0x423ce0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.00409211
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00405d07
mov esp, ebp
pop ebp
ret
Function at 0x4073c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x4073e6
mov eax, dword [ebp + 8]
xor edx, edx
lea ecx, [esi + eax]
mov eax, esi
div dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor byte [ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x4073cb
pop esi
pop ebp
ret

Function at 0x4074ed
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x407516
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40750e
cmp al, 0x22
jne 0x407502
cmp byte [esi], 0x22
jne 0x407520
inc esi
jmp 0x407520
cmp al, 0x20
jle 0x407520
inc esi
cmp byte [esi], 0x20
jg 0x40751a
mov al, byte [esi]
test al, al
je 0x40752a
cmp al, 0x20
jle 0x407513
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040759a
push 0x401024
push 0x401020
call fcn.00407580
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40755a
movzx eax, word [ebp - 0x14]
jmp 0x40755d
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004075b2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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 0x447efb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x447f0a
pop dword [ebp - 0x48]
mov eax, 0x447f0a
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x54500
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x58e0
mov edx, eax
mov edi, 0x2d39fd95
add edi, 0xd30d606b
add edi, dword [ebp - 0x48]
mov esi, 0x950a79d1
sub dword [ebp - 0x3c], 0x41994ac0
mov ebx, dword [edi]
add dword [ebp - 0x10], edi
add ebx, esi
add dword [ebp - 0xc], 0x4b59bf54
mov dword [edx], ebx
xor dword [ebp - 0x1c], 0x5508b6a6
add edx, 0x215891bc
sub edx, 0x215891b8
add edi, 0x96d73666
add edi, 0x6928c99e
loop 0x447f53
add eax, 0x49ef570c
sub eax, 0x49ee00b9
xor ebx, ebx
add ebx, eax
add eax, 0x224571e8
add eax, 0xddba8e1d
mov ecx, 0x2c6fc20b
add ecx, 0xd3d03df5
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0xa12dc0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0xa12dfd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0xa12e1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00a15030
add esp, 0x210
pop esi
pop ebx
ret

Function at 0xa13098
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0xa130f1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00a12f34
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00a12f34
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0xa130db
inc ebx
jmp 0xa130c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa130f8
lea eax, [ebp - 8]
call fcn.00a14db0
ret

Function at 0xa13100
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00a14db0
test esi, esi
jne 0xa13137
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00a14ea0
jmp 0xa13158
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00a12f34
mov dword [esp], eax
test esi, esi
je 0xa13158
cmp dword [ebx], 0
je 0xa13158
dec esi
jmp 0xa1313f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0xa13784
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xb5e008], 0x8088405
inc edx
mov dword [ebx + 0xb5e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0xa13db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0xb5e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0xa13e48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0xa13e28
xor eax, eax
push ebp
push 0xa13e21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0xa13e64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa13e28
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0xb5e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0xb5e024], ax
mov esp, ebp
pop ebp
ret
Function at 0xa14ba8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xb7404c], 0
je 0xa14c09
cmp word [0xb74220], 0xd7b2
jne 0xa14bd1
cmp dword [0xb74228], 0
jbe 0xa14bd1
mov eax, 0xb7421c
call dword [0xb74238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0xb5e074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0xa14c30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xb5e034], 0
jne 0xa14c25
push 0
push 0xb5e06c
push 0xb5e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0xa14d64
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00a12b88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0xb7404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0xa14d2c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc