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

Disassembly:
sub esp, 0x18
mov dword [esp + 4], 9
call fcn.004610d0
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFont_Information
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4612cc
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.Character_Set
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 8], 1
jne 0x4612cc
lea eax, [esp + 0xc]
push str.JIS78
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, 0x4a029c
je 0x4612d1
mov eax, 0x4a009c
add esp, 0x18
ret
Function at 0x461e00
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x4b5198
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [0x4b51ac]
mov ecx, 1
test cl, al
mov dword [0x4b55c0], 0
mov edx, 0x80
je 0x461e2e
mov dword [0x4b55c0], edx
mov eax, dword [esp + 4]
test eax, eax
je 0x461e45
push ebx
mov bl, byte [0x4b51c5]
test cl, bl
pop ebx
je 0x461e45
mov word [eax], cx
test byte [0x4b5228], cl
je 0x461e59
mov eax, dword [0x4b55c0]
or al, 0x20
mov dword [0x4b55c0], eax
test byte [0x4b5229], cl
je 0x461e6d
mov eax, dword [0x4b55c0]
or al, 0x40
mov dword [0x4b55c0], eax
test byte [0x4b51a8], dl
je 0x461e81
mov eax, dword [0x4b55c0]
or al, 0x10
mov dword [0x4b55c0], eax
test byte [0x4b523a], dl
je 0x461e95
mov eax, dword [0x4b55c0]
or al, 8
mov dword [0x4b55c0], eax
test byte [0x4b523b], dl
je 0x461ea9
mov eax, dword [0x4b55c0]
or al, 4
mov dword [0x4b55c0], eax
test byte [0x4b523c], dl
je 0x461ebd
mov eax, dword [0x4b55c0]
or al, 2
mov dword [0x4b55c0], eax
test byte [0x4b523d], dl
je 0x461ecb
or dword [0x4b55c0], ecx
ret
Function at 0x463870
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x4b55d4]
test eax, eax
je 0x4638ae
mov eax, dword [0x4a0994]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x463890
or eax, 0xffffffff
pop ecx
ret
mov ecx, dword [0x4a09a8]
cmp byte [ecx], 0x1a
jne 0x4638a2
inc ecx
mov dword [0x4a09a8], ecx
mov dword [0x4b55d4], 0
jmp 0x4638b4
mov ecx, dword [0x4a09a8]
cmp ecx, dword [0x4b5578]
jb 0x463956
mov eax, dword [0x4b52b8]
test eax, eax
jne 0x4638ed
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [0x4b52b8], eax
jne 0x4638ed
push 0x69
call fcn.00425880
mov eax, dword [0x4b52b8]
add esp, 4
mov edx, dword [0x4a0994]
lea ecx, [esp]
push 0
push ecx
push 0x1000
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46392c
mov dword [0x4b55d4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x463969
cmp eax, 0x6d
je 0x463969
mov eax, 0xfffffffe
pop ecx
ret
mov eax, dword [esp]
test eax, eax
jne 0x463943
mov dword [0x4b55d4], 1
or eax, 0xffffffff
pop ecx
ret
mov ecx, dword [0x4b52b8]
add eax, ecx
mov dword [0x4a09a8], ecx
mov dword [0x4b5578], eax
xor eax, eax
mov al, byte [ecx]
cmp eax, 0x1a
jne 0x46396e
mov dword [0x4b55d4], 1
or eax, 0xffffffff
pop ecx
ret
mov edx, dword [esp + 8]
test edx, edx
je 0x46397d
inc ecx
mov dword [0x4a09a8], ecx
pop ecx
ret

Function at 0x463dc0
Capabilities:
Get geographical location

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push 6
push eax
push 5
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x463df8
xor ecx, ecx
dec eax
test eax, eax
jle 0x463df8
movsx edx, byte [esp + ecx + 4]
lea esi, [esi + esi*4]
inc ecx
cmp ecx, eax
lea esi, [edx + esi*2 - 0x30]
jl 0x463de7
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x466ac0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
xor ecx, ecx
push esi
mov esi, dword [esp + 0x18]
mov al, byte [esi + 1]
cmp al, 0x20
je 0x466ae3
mov ecx, dword [0x4a2388]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x18], al
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x466b4b
mov ecx, dword [esp + 4]
push edi
imul ecx, dword [esp + 0xc]
mov edx, ecx
xor edi, edi
imul edx, dword [esp + 0x10]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov ax, word [esp + 0x1e]
mov byte [esi], ah
mov byte [esi + 1], al
mov dword [esp + 0x1c], ecx
mov ax, word [esp + 0x1e]
mov byte [esi + 2], dh
mov byte [esi + 3], dl
mov byte [esi + 4], ah
mov byte [esi + 5], al
mov eax, edi
mov byte [esi + 6], ch
mov byte [esi + 7], cl
pop edi
pop esi
add esp, 0x10
ret
mov eax, 3
pop esi
add esp, 0x10
ret
Function at 0x467940
Capabilities:
Create process on windows
Get file size
Read file via mapping
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [0x4b58cc]
sub esp, 0x54
test eax, eax
push esi
push edi
je 0x467a83
push 0
push 0
push 0
push 0
push str.write.exe
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x4679d3
mov eax, dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x44
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
push str.write.exe_mfdebug.log
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x467a8e
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop edi
pop esi
add esp, 0x54
ret
push ebx
mov ebx, dword [esp + 0x64]
push ebp
lea eax, [esp + 0x68]
push 0
push eax
push 1
push 0x4b58d0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x467a78
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x467a75
mov eax, dword [0x49ad1c]
test eax, eax
je 0x467a5a
push 0x10000
push 0x4a2584
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebp
push ebx
call ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x54
ret
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push esi
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebp
push ebx
call ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x54
ret
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x54
ret

Function at 0x467aa0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
lea ecx, [esp + 0xc]
push 0
mov ebx, eax
push ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x46c3c0
Capabilities:
Get disk information

Disassembly:
mov al, byte [0x4b6038]
sub esp, 0xfc
test al, al
push ebx
push esi
push edi
jne 0x46c56b
push 0x4a3634
call fcn.00441140
mov edi, eax
add esp, 4
test edi, edi
je 0x46c4d5
mov dword [0x4b62d8], 1
mov al, byte [edi + 1]
cmp al, 0x3a
jne 0x46c416
mov al, byte [edi]
mov bl, 0x5c
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 0
jmp 0x46c47b
mov cl, byte [edi]
mov bl, 0x5c
cmp cl, bl
jne 0x46c48b
cmp al, bl
jne 0x46c48b
lea eax, [edi + 2]
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], bl
mov edx, 2
mov cl, byte [eax]
test cl, cl
je 0x46c44e
lea esi, [esp + 0xe]
sub esi, eax
cmp cl, bl
je 0x46c44e
mov byte [esi + eax], cl
mov cl, byte [eax + 1]
inc edx
inc eax
test cl, cl
jne 0x46c43e
mov cl, byte [eax]
test cl, cl
je 0x46c472
mov byte [esp + edx + 0xc], cl
mov cl, byte [eax + 1]
inc edx
inc eax
test cl, cl
je 0x46c472
cmp cl, bl
je 0x46c472
mov byte [esp + edx + 0xc], cl
mov cl, byte [eax + 1]
inc edx
inc eax
test cl, cl
jne 0x46c461
mov byte [esp + edx + 0xc], bl
mov byte [esp + edx + 0xd], 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x46c497
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xfc
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4b6038
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b6038
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x4b6037], bl
jne 0x46c56b
jmp 0x46c557
push str.SOFTWAREMicro_FocusASLMF
call fcn.0046c580
add esp, 4
test eax, eax
jne 0x46c508
push 0x4b6038
push str.ASLMFDIR
call fcn.0046c5a0
add esp, 8
test eax, eax
je 0x46c503
mov byte [0x4b6038], 0
call fcn.0046c5e0
mov al, byte [0x4b6038]
test al, al
jne 0x46c53f
mov eax, dword [str.C:mfaslmf]
mov ecx, dword [0x4a366c]
mov dx, word [0x4a3670]
mov dword [0x4b6038], eax
mov al, byte [0x4a3672]
mov dword [0x4b603c], ecx
mov word [0x4b6040], dx
mov byte [0x4b6042], al
mov edi, 0x4b6038
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + 0x4b6037], 0x5c
jne 0x46c56b
mov edi, 0x4b6038
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [ecx + 0x4b6036], al
pop edi
pop esi
mov eax, 0x4b6038
pop ebx
add esp, 0xfc
ret

Function at 0x46c5a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
mov eax, dword [0x4a35e8]
lea ecx, [esp]
mov dword [esp + 4], 1
mov eax, dword [eax]
push ecx
lea ecx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 0xfa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
ret
Function at 0x46ca50
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [sym.imp.MSVCRT.dll__read]
mov eax, dword [0x4b5dfc]
push 0x18e
push 0x4b6140
push eax
call esi
add esp, 0xc
cmp eax, 0x18e
jne 0x46cac5
cmp byte [0x4b6140], 0x4c
jne 0x46ca57
push 0x4b6140
call fcn.0046cae0
mov al, byte [0x4b62ae]
add esp, 4
cmp al, 0x30
jl 0x46ca96
cmp al, 0x33
jle 0x46ca57
call fcn.0046cb40
call fcn.0046cf00
test eax, eax
je 0x46cadc
movsx ecx, byte [0x4b62ae]
push ecx
call fcn.0046cee0
add esp, 4
cmp eax, 0xc
jl 0x46ca57
mov dword [0x4b6edc], 1
jmp 0x46ca57
mov edx, dword [0x4b5dfc]
push edx
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x46d030
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
mov al, 0x41
push ebx
mov byte [esp + 0xb], al
mov byte [esp + 7], al
lea eax, [esp + 4]
xor ebx, ebx
mov cl, 0x53
push eax
mov dword [0x4b64e0], ebx
mov byte [esp + 0xa], 0x51
mov byte [esp + 0x10], cl
mov byte [esp + 0xd], 0x45
mov byte [esp + 0xe], 0x54
mov byte [esp + 9], 0x46
mov byte [esp + 8], 0x4d
mov byte [esp + 0xc], cl
mov byte [esp + 0x11], bl
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x46d0bc
push 0x4b64e0
push str._11ld
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [0x4b64e0]
add esp, 0xc
cmp eax, 0x25980600
jge 0x46d0aa
mov dword [0x4b64e0], ebx
pop ebx
add esp, 0x10
ret
cmp eax, 0x70c81200
jle 0x46d0c1
mov dword [0x4b64e0], ebx
pop ebx
add esp, 0x10
ret
mov eax, dword [0x4b64e0]
cmp eax, ebx
je 0x46d0cf
mov dword [0x4b64dc], 1
pop ebx
add esp, 0x10
ret
Function at 0x46e7a0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push edi
push eax
push 0
push str.ASLMF
push 0x4b6038
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x80
push 2
push 0
push 3
lea ecx, [esp + 0x1c]
push 0x1f03ff
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x110]
push 0
mov edi, eax
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46e7f9
xor esi, esi
jmp 0x46e810
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.failed:_GetLastError_returned__u_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x46f190
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
sub esp, 0x914
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4b6510]
mov dword [esp + 0x1c], ecx
test edi, edi
jne 0x46f1b9
lea eax, [esp + 0x524]
mov edi, 0x400
mov dword [0x4b650c], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x124]
push edx
lea edx, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x1c]
push 0
lea edx, [esp + 0x30]
push eax
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], 0x400
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x46f301
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov al, byte [esp + 0x20]
test al, al
je 0x46f2b6
mov eax, dword [esp + 0x92c]
test eax, eax
je 0x46f233
push 0
lea eax, [esp + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x46f2b6
cmp dword [esp + 0x18], 2
jne 0x46f2a3
mov ecx, dword [0x4b650c]
push edi
lea edx, [esp + 0x128]
push ecx
push edx
call ebx
mov esi, eax
cmp esi, edi
jbe 0x46f28f
mov eax, dword [0x4b6510]
test eax, eax
je 0x46f267
mov eax, dword [0x4b650c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x124]
mov dword [0x4b650c], eax
push esi
push eax
push ecx
mov dword [0x4b6510], esi
mov edi, esi
call ebx
mov esi, eax
cmp esi, edi
ja 0x46f252
mov edx, dword [0x4b650c]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x46f2ba
lea ecx, [esp + 0x124]
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test esi, esi
jne 0x46f301
lea ecx, [esp + 0x14]
lea edx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x30]
mov eax, ebp
push edx
mov edx, dword [esp + 0x30]
push ecx
push eax
push edx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], 0x400
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
je 0x46f205
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x914
ret 8
Function at 0x46f5d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x104
push 0x4b6518
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [ebp + 8]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebx + 0xd]
add eax, 3
and al, 0xfc
call fcn.0048d710
mov eax, esp
test eax, eax
mov dword [ebp - 4], eax
je 0x46f6b7
push str.Micro_Focus_Net_Express_5.0_RTS
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edx, eax
test edx, edx
mov dword [ebp - 8], edx
je 0x46f6b7
mov edi, dword [ebp - 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x4b6518
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
lea eax, [ecx + ebx]
mov cx, word [0x4a3960]
mov word [eax], cx
mov ecx, dword [ebp + 8]
add eax, 2
cmp byte [ecx], 0
je 0x46f68f
mov bl, byte [ecx]
cmp bl, 0xd
jne 0x46f67b
mov byte [eax], bl
mov bl, byte [ecx + 1]
inc eax
inc ecx
cmp bl, 0xa
mov byte [eax], 0xa
je 0x46f688
inc eax
jmp 0x46f68a
cmp bl, 0xa
jne 0x46f686
mov byte [eax], 0xd
mov bl, byte [ecx]
inc eax
mov byte [eax], bl
inc eax
inc ecx
cmp byte [ecx], 0
jne 0x46f662
mov ecx, dword [ebp + 0xc]
mov byte [eax], 0
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x14]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46f760
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x218
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesEventLogApplicationMicro_Focus_Net_Express_5.0_RTS
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46f847
mov eax, dword [0x4b791c]
push esi
push edi
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x124]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, dword [esp + 0x10]
mov edx, dword [str.cob32api.dll]
lea edi, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ecx], edx
mov eax, dword [0x4a39c0]
mov dword [ecx + 4], eax
mov edx, dword [0x4a39c4]
mov dword [ecx + 8], edx
mov al, byte [0x4a39c8]
mov byte [ecx + 0xc], al
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 2
push eax
push str.EventMessageFile
push edx
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.TypesSupported
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x218
ret
Function at 0x4762e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov ecx, 5
lea ebp, [eax + 4]
lea ebx, [edx + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp]
test eax, eax
je 0x47630d
cmp dword [esi], 0
jne 0x476325
mov edx, dword [esi]
add ebp, 4
or edx, eax
add esi, 4
mov dword [ebx], edx
add ebx, 4
dec ecx
je 0x4763d5
jmp 0x476301
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
mov edi, dword [ebp]
mov eax, dword [esi]
add edx, edi
lea ecx, [eax + edx + 0x66666666]
cmp ecx, edx
sbb edx, edx
xor eax, edi
neg edx
xor eax, ecx
mov edi, edx
not eax
shr eax, 3
xor edi, 1
and eax, 0x2222222
shl edi, 0x1d
or eax, edi
add ebp, 4
add esi, 4
add ebx, 4
lea eax, [eax + eax*2]
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [ebx - 4], ecx
dec eax
mov dword [esp + 0x14], eax
jne 0x47632c
test edx, edx
pop edi
je 0x4763d9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov esi, ecx
shr edx, 4
shl esi, 0x1c
or edx, esi
mov dword [eax + 4], edx
mov edx, dword [eax + 0xc]
mov esi, edx
shl esi, 0x1c
shr ecx, 4
or esi, ecx
mov dword [eax + 8], esi
mov esi, dword [eax + 0x10]
mov ecx, esi
shl ecx, 0x1c
shr edx, 4
or ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x14]
mov edx, ecx
shl edx, 0x1c
shr esi, 4
shr ecx, 4
or edx, esi
or ecx, 0x10000000
pop esi
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
pop ebp
mov eax, 1
pop ebx
ret
mov dword [esp + 0x10], ecx
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4763e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ebx
lea ebx, [ecx + 4]
mov ecx, dword [esp + 0x10]
push esi
push edi
lea edi, [ecx + 4]
mov ecx, 5
test eax, eax
lea esi, [edx + 4]
mov dword [esp + 0x1c], ecx
jne 0x476427
cmp dword [ebx], 0
jne 0x476427
mov edx, dword [esi]
add ebx, 4
mov dword [edi], edx
add esi, 4
add edi, 4
dec ecx
je 0x47646d
cmp dword [ebx], 0
je 0x47640e
mov dword [esp + 0x1c], ecx
push ebp
mov ecx, dword [esi]
mov ebp, dword [ebx]
mov edx, ecx
sub edx, ebp
sub edx, eax
cmp ecx, edx
sbb eax, eax
xor ecx, ebp
neg eax
xor ecx, edx
mov ebp, eax
shr ecx, 3
and ecx, 0x2222222
add ebx, 4
shl ebp, 0x1d
or ecx, ebp
add esi, 4
add edi, 4
lea ecx, [ecx + ecx*2]
sub edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [edi - 4], edx
dec ecx
mov dword [esp + 0x20], ecx
jne 0x476428
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov dword [esp + 0x14], ecx
xor eax, eax
pop ebx
ret
Function at 0x48c280
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push esi
cmp ebp, 0x8c
push edi
jl 0x48c2a8
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
pop edi
pop esi
pop ebp
ret
mov esi, dword [esp + 0x14]
xor edi, edi
cmp ebp, 0x1c
jl 0x48c2fa
mov eax, 0x24924925
mov ecx, ebp
mul ebp
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
lea eax, [ecx*8]
sub eax, ecx
neg eax
lea ebp, [ebp + eax*4]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
dec ecx
mov dword [esi + 0x14], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov edx, dword [eax + 8]
mov dword [esi + 0xc], edx
mov eax, dword [eax + 4]
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov eax, esi
jne 0x48c2d8
jmp 0x48c2fe
mov eax, dword [esp + 0x10]
cmp ebp, 0xe
jl 0x48c355
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
shl ecx, 0x10
shr edx, 0x10
or ecx, edx
mov dword [esi + 0x14], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
shr ecx, 0x10
shl edx, 0x10
or ecx, edx
mov dword [esi + 0x10], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
shl ecx, 0x10
shr edx, 0x10
or ecx, edx
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
shl ecx, 0x10
shr edx, 0x10
or ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
shl eax, 0x10
mov dword [esi + 4], eax
mov eax, esi
sub ebp, 0xe
cmp ebp, edi
je 0x48c46b
xor edi, edi
xor ecx, ecx
mov di, word [eax + 0x12]
mov cx, word [eax + 0x10]
shl edi, 0xe
xor edx, edx
or edi, ecx
mov dx, word [eax + 0x16]
xor ecx, ecx
mov cx, word [eax + 0x14]
push ebx
shl edx, 0xe
or edx, ecx
mov ecx, ebp
shl edx, cl
mov ebx, 0x1c
mov ecx, edi
sub ebx, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov ecx, ebx
mov ebx, edi
shr ebx, cl
or edx, ebx
mov ecx, edx
and edx, 0x3fff
and ecx, 0xffffc000
shl ecx, 2
or ecx, edx
xor edx, edx
mov dword [esi + 0x14], ecx
mov dx, word [eax + 0xe]
xor ecx, ecx
mov cx, word [eax + 0xc]
shl edx, 0xe
or edx, ecx
mov ecx, dword [esp + 0x18]
mov ebx, edx
shr ebx, cl
mov ecx, ebp
shl edi, cl
or ebx, edi
xor edi, edi
mov ecx, ebx
and ebx, 0x3fff
and ecx, 0xfffc000
shl ecx, 2
or ecx, ebx
mov dword [esi + 0x10], ecx
mov di, word [eax + 0xa]
xor ecx, ecx
mov cx, word [eax + 8]
shl edi, 0xe
or edi, ecx
mov ecx, dword [esp + 0x18]
mov ebx, edi
shr ebx, cl
mov ecx, ebp
shl edx, cl
xor ecx, ecx
or ebx, edx
mov edx, ebx
and ebx, 0x3fff
and edx, 0xfffc000
shl edx, 2
or edx, ebx
mov dword [esi + 0xc], edx
mov cx, word [eax + 4]
xor edx, edx
mov dx, word [eax + 6]
shl edx, 0xe
or edx, ecx
mov ecx, dword [esp + 0x18]
mov eax, edx
shr eax, cl
mov ecx, ebp
shl edi, cl
or eax, edi
mov ecx, eax
and ecx, 0xfffc000
shl ecx, 2
and eax, 0x3fff
pop ebx
or ecx, eax
mov dword [esi + 8], ecx
mov ecx, ebp
shl edx, cl
mov eax, edx
and edx, 0x3fff
and eax, 0xfffc000
shl eax, 2
or eax, edx
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
ret