joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4333fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
je 0x433410
mov eax, dword [ebp + 0x10]
mov dword [0x553d38], eax
jmp 0x43341a
mov dword [0x553d38], 0xffffffff
mov ecx, dword [ebp + 0x14]
mov dword [0x553d34], ecx
cmp dword [0x4dea40], 0
je 0x43343b
mov edx, dword [0x553d40]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4334ae
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x553d40], eax
cmp dword [0x553d40], 0
jne 0x43345b
xor eax, eax
jmp 0x4334b3
push 4
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x433475
xor eax, eax
jmp 0x4334b3
mov eax, dword [ebp - 4]
mov ecx, dword [0x553d40]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0x433366
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [0x4dea40], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4dea40], 0
jne 0x4334ae
xor eax, eax
jmp 0x4334b3
mov eax, dword [0x4dea40]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [0x4dea38], eax
cmp dword [0x4dea38], 0
je 0x433500
mov eax, dword [0x4dea38]
jmp 0x433579
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push str.SOFTWAREFLEXlm_License_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x433577
mov dword [ebp - 0xc], 0xc7
lea edx, [ebp - 0xc]
push edx
push 0x4de970
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x433569
mov dword [0x4dea38], 0x4de970
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4dea38]
jmp 0x433579
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x433579
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4415d6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x44162b
mov dword [0x48c398], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x4415fe
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jae 0x441626
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ecx + 0x48c360], 0
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [edx + 0x48c364], 0
jmp 0x4415f5
jmp 0x4417d9
cmp dword [ebp + 0x10], 4
jb 0x441647
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4417d9
cmp dword [ebp + 0x10], 0
jl 0x441653
cmp dword [ebp + 0x10], 4
jb 0x441658
jmp 0x4417d9
cmp dword [0x48c398], 0
jge 0x44166a
cmp dword [0x48c398], 4
jae 0x441681
push 0
mov eax, dword [0x48c398]
shl eax, 4
mov ecx, dword [eax + 0x48c360]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x48c398], edx
mov eax, dword [0x48c398]
shl eax, 4
cmp dword [eax + 0x48c364], 0
jne 0x4416ca
mov ecx, dword [0x48c398]
shl ecx, 4
mov edx, dword [ecx + 0x48c360]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004417dd
add esp, 8
mov ecx, dword [0x48c398]
shl ecx, 4
mov dword [ecx + 0x48c364], 1
push 0
push 0
push 0xaec
mov edx, dword [0x48c398]
shl edx, 4
mov eax, dword [edx + 0x48c360]
push eax
mov ecx, dword [0x48c398]
shl ecx, 4
call dword [ecx + 0x48c358]
push 5
mov edx, dword [0x48c398]
shl edx, 4
mov eax, dword [edx + 0x48c360]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 8], 0
jmp 0x44171c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 3
jae 0x4417d9
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x48c3a0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4417d4
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x48c3a4]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x13c]
and edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x48c3a4]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx + 0x13c]
and ecx, 2
test ecx, ecx
je 0x4417d4
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x48c3a4]
imul eax, eax, 0x32
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x13f]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x48c3a4]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + edx + 0x13c]
and cl, 0xfd
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x48c3a4]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax + 0x13c], cl
jmp 0x441713
mov esp, ebp
pop ebp
ret
Function at 0x442e30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
and ecx, 0xff
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0x80000000
jae 0x442e85
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
mov dword [ebp - 0x14], edx
jmp 0x442eaa
cmp dword [ebp - 0x10], 4
jae 0x442ea3
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and ah, 0x7f
mov dword [ebp - 0x14], eax
jmp 0x442eaa
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 5
jne 0x442ebd
cmp dword [ebp - 4], 2
jne 0x442ebd
mov dword [ebp - 0xc], 8
cmp dword [ebp - 0x10], 5
jne 0x442ed0
cmp dword [ebp - 4], 1
jne 0x442ed0
mov dword [ebp - 0xc], 7
cmp dword [ebp - 0x10], 5
jne 0x442ee3
cmp dword [ebp - 4], 0
jne 0x442ee3
mov dword [ebp - 0xc], 6
cmp dword [ebp - 0x10], 4
jne 0x442ef6
cmp dword [ebp - 4], 0
jne 0x442ef6
mov dword [ebp - 0xc], 4
cmp dword [ebp - 0x10], 3
jne 0x442f09
cmp dword [ebp - 4], 0
jne 0x442f09
mov dword [ebp - 0xc], 5
cmp dword [ebp - 0x10], 4
jne 0x442f1c
cmp dword [ebp - 4], 1
jne 0x442f1c
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x442f23
Capabilities:
Check mutex on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
push str.FLEXLM_TS_GATE
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x442fbe
push str.bypass
mov eax, dword [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x442fbe
xor eax, eax
jmp 0x44319f
cmp dword [0x4deed8], 0
jne 0x443193
call sub.MSVCRT.dll__getpid
push eax
push str.TerminalServerFlexlmMutex
push 0x48c97c
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x443012
xor eax, eax
jmp 0x44319f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44302e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4deed8], 0
jne 0x443179
call fcn.00442e30
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
sub edx, 1
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 7
ja case.0x443074.1
mov eax, dword [ebp - 0x124]
jmp dword [eax*4 + 0x4431a4]
jmp case.0x443074.1
push 0x48c984
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4deee8], eax
cmp dword [0x4deee8], 0
je 0x443132
push str.WTSEnumerateSessionsA
mov ecx, dword [0x4deee8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4deee0], eax
cmp dword [0x4deee0], 0
je 0x443132
push str.WTSFreeMemory
mov edx, dword [0x4deee8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4deee4], eax
cmp dword [0x4deee4], 0
je 0x443132
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 1
push 0
push 0
call dword [0x4deee0]
cmp dword [ebp - 0x114], 0
je 0x44310c
mov edx, dword [ebp - 0x114]
cmp dword [edx + 8], 0
jne 0x44311b
mov eax, dword [ebp - 0x114]
push eax
call dword [0x4deee4]
jmp 0x443132
mov ecx, dword [ebp - 0x114]
push ecx
call dword [0x4deee4]
mov dword [0x4deedc], 1
mov edx, dword [0x4deee8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4deee8], 0
jmp case.0x443074.1
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je case.0x443074.1
mov dword [0x4deedc], 1
mov dword [0x4deed8], 1
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x4deedc], 0
setne al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4431d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ecx + 0x3a8]
and edx, 0x40
test edx, edx
jne 0x4431fa
xor eax, eax
jmp 0x4433d3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3fc]
and ecx, 0x80
test ecx, ecx
jne 0x44326b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3fc]
or al, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3fc], eax
push str.BUG_B
push 0x45
push 0x44
push str.FLEXLM__c_c_sADDATE
lea edx, [ebp - 0x2cc]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042d382
add esp, 8
test eax, eax
je 0x44326b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3fc]
or ah, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3fc], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3fc]
and eax, 0x100
test eax, eax
je 0x4432d8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x44329a
xor edx, edx
test edx, edx
je 0x44329a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2d0], ecx
jmp 0x4432a4
mov dword [ebp - 0x2d0], 0xffffffa8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d0]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x138
push 0xffffffffffffffa8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042afe0
add esp, 0x1c
mov eax, 0xffffffa8
jmp 0x4433d3
mov byte [ebp - 0x204], 0x5c
mov byte [ebp - 0x203], 0
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004433d7
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44330c
mov eax, dword [ebp - 4]
jmp 0x4433d3
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004433d7
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x443344
mov eax, dword [ebp - 4]
jmp 0x4433d3
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x202], 0x61
mov byte [ebp - 0x201], 0x72
mov byte [ebp - 0x203], 0x76
mov byte [ebp - 0x200], 0
push 0
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004433d7
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x44338a
mov eax, dword [ebp - 4]
jmp 0x4433d3
mov byte [ebp - 0x204], 0x2f
mov byte [ebp - 0x200], 0
mov byte [ebp - 0x202], 0x6d
mov byte [ebp - 0x203], 0x74
mov byte [ebp - 0x201], 0x70
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004433d7
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4433d0
mov eax, dword [ebp - 4]
jmp 0x4433d3
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44bcc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x14
cmp dword [ebp + 0xc], 0
je 0x44bcef
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
movsx edx, byte [ecx + 0x48]
test edx, edx
je 0x44bcef
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
add ecx, 0x48
mov dword [ebp - 4], ecx
jmp 0x44bd2b
lea edx, [ebp - 8]
push edx
push 0x4df708
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x44bd0b
mov dword [ebp - 4], 0x4df708
jmp 0x44bd2b
push 0x13
push 0x4df708
call fcn.00446320
test eax, eax
jne 0x44bd24
mov dword [ebp - 4], 0x4df708
jmp 0x44bd2b
mov dword [ebp - 4], str.Unknown
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
movsx edx, byte [ecx + 0x48]
test edx, edx
jne 0x44bd5c
push 0x14
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
add edx, 0x48
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov byte [ecx + 0x5c], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x44ce70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x48d30c
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x44ce99
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 3
jge 0x44ceba
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x44ceb0
jmp 0x44ceba
mov al, byte [ebp - 0x14]
add al, 1
mov byte [ebp - 0x14], al
jmp 0x44ce90
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x44db49
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x553d4c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045e010
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0045e219
add esp, 8
push 0x40
push 0x1000
mov edx, dword [ebp - 8]
add edx, 0xa
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44db9d
xor eax, eax
jmp 0x44dbd2
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042b4ab
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4516d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
mov byte [ebp - 0xc], cl
mov edx, dword [ebp + 0x10]
sar edx, 8
and edx, 0xff
mov byte [ebp - 0xb], dl
mov eax, dword [ebp + 0x10]
sar eax, 0x10
and eax, 0xff
mov byte [ebp - 0xa], al
mov ecx, dword [ebp + 0x10]
sar ecx, 0x18
and ecx, 0xff
mov byte [ebp - 9], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
je 0x45175d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov al, byte [ecx]
xor al, byte [ebp + edx - 0xc]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 3
jle 0x451752
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x45171b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4582fe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [ebp + 0x14], 0
je 0x45836b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45836b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 2
jne 0x458361
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
push 0x4dfa00
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x4dfa00
call fcn.00458a12
add esp, 4
test eax, eax
je 0x45835a
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x4dfa00
mov eax, 1
jmp 0x45851d
xor eax, eax
jmp 0x45851d
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x458313
cmp dword [ebp + 0x10], 0
je 0x458432
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x458432
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 1
jne 0x458425
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
push 0x4dfa00
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5c
push 0x4dfa00
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4583df
push 0xff
push 0x4dfa00
call dword [sym.imp.MSVCRT.dll__getcwd]
add esp, 8
test eax, eax
jne 0x4583dd
xor eax, eax
jmp 0x45851d
jmp 0x4583e5
mov edx, dword [ebp - 4]
mov byte [edx], 0
push 0x4dfa00
call fcn.00458a12
add esp, 4
test eax, eax
je 0x45841e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4dfa00
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x4dfa00
mov edx, dword [ebp + 8]
push edx
call fcn.00458b95
add esp, 0xc
mov eax, 1
jmp 0x45851d
xor eax, eax
jmp 0x45851d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
jmp 0x45837b
push 0x48e570
push 0x4dfa00
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5c
push 0x4dfa00
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov byte [edx], 0
push 0x4dfa00
call fcn.00458a12
add esp, 4
test eax, eax
je 0x458496
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4dfa00
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x4dfa00
mov edx, dword [ebp + 8]
push edx
call fcn.00458b95
add esp, 0xc
mov eax, 1
jmp 0x45851d
push str.C:_flexlmlicense.dat
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5c
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4584cb
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x458517
push 0x4dfa00
call fcn.00458a12
add esp, 4
test eax, eax
je 0x458515
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x4dfa00
mov edx, dword [ebp + 0x1c]
push edx
push 0x4dfa00
mov eax, dword [ebp + 8]
push eax
call fcn.00458b95
add esp, 0xc
mov eax, 1
jmp 0x45851d
jmp 0x45851b
xor eax, eax
jmp 0x45851d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x45b360
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0x5c
push eax
call fcn.0045d464
add esp, 4
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
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
pop ebp
ret

Function at 0x45d490
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45d5fb
mov dword [ebp - 0x120], 0x104
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x45d5ec
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45d5d3
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x48e6b4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.ServiceName
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x45d5c6
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x120], 0x104
jmp 0x45d4dc
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45d602
mov eax, 0xffffff01
jmp 0x45d604
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x45d97d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
cmp dword [0x4dfb08], 0
jne 0x45daac
call sub.MSVCRT.dll__getpid
push eax
push str.IPHelperMutex
push str._s__d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x45da08
xor eax, eax
jmp 0x45dab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45da24
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4dfb08], 0
jne 0x45da92
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4dfb0c], eax
cmp dword [0x4dfb0c], 0
jne 0x45da52
mov dword [ebp - 0x108], 0xfffffffe
jmp 0x45da88
push str.GetNetworkParams
mov eax, dword [0x4dfb0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dfb00], eax
cmp dword [0x4dfb00], 0
je 0x45da88
push str.GetAdaptersInfo
mov ecx, dword [0x4dfb0c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dfb04], eax
mov dword [0x4dfb08], 1
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x108]
pop edi
mov esp, ebp
pop ebp
ret