joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40168d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00434950
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x4016e1
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x4016f1
mov eax, dword [ebp - 0x70]
dec eax
dec eax
jne 0x4016f1
cmp dword [ebp - 0x7c], 6
jb 0x4016f1
inc eax
jmp 0x4016f3
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.00434834
add ebp, 0xa0
leave
ret

Function at 0x401ae2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00434f20
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x5c], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x401b96
test byte [esi + 0x58], 8
je 0x401b96
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.00434950
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
call fcn.00434ab4
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.00434950
lea eax, [ebp - 0x1004]
push eax
push edi
lea eax, [ebp - 0x3004]
push 0x44e850
push eax
call fcn.0040174f
add esp, 0x34
cmp byte [esi + 0x5d], 0
lea eax, [ebp - 0x3004]
push eax
je 0x401b90
mov ecx, esi
call fcn.0040192b
jmp 0x401b96
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00434834
leave
ret

Function at 0x401ef2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f7a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401f5e
push str.UACCheck___RegQueryValueEx__EnableLUA___Fail___
push str._SOM_
push 0x46c390
call fcn.00401ae2
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x401f7a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], esi
je 0x401f7a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x402a12
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call fcn.00434950
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00434950
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004028fc
add esp, 0x20
cmp word [ebp - 0x20c], 0
je 0x402aef
push esi
xor esi, esi
push esi
push str.DXTP
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push str._s_s_03d.tsp
push eax
call fcn.004355aa
lea eax, [ebp - 0xa0c]
push 0x44ea70
push eax
call fcn.00435593
add esp, 0x1c
test eax, eax
je 0x402abf
push eax
call fcn.00435451
inc esi
cmp esi, 0x64
pop ecx
jl 0x402a7c
lea eax, [ebp - 0xa0c]
push 0x44ea68
push eax
call fcn.00435593
pop ecx
pop ecx
pop esi
test eax, eax
je 0x402aef
push eax
call fcn.00435451
pop ecx
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x402af2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434834
leave
ret
Function at 0x4030e7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00434f20
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp + 0xf94], eax
push ebx
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x6b]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x6c], bl
call fcn.00434950
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 8
mov byte [ebp - 0x74], bl
mov byte [ebp - 0x73], bl
mov byte [ebp - 0x72], bl
mov byte [ebp - 0x71], bl
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402c97
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x6c]
push eax
push 2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x402c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_GetTokenInformation_Fail___d_
jmp 0x402ca3
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_AllocateAndInitializeSid_Fail___d_
jmp 0x402ca3
push esi
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jbe 0x402c71
push edi
lea edi, [ebp - 0x68]
push dword [edi]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402c6d
inc esi
add edi, 8
cmp esi, dword [ebp - 0x6c]
jb 0x402c53
jmp 0x402c70
xor ebx, ebx
inc ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_EqualSid___d_
push 0x44e95c
push 0x46ca30
call fcn.00401ae2
add esp, 0x10
mov eax, ebx
pop esi
jmp 0x402cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_OpenProcessToken_Fail___d_
push 0x44e95c
push 0x46ca30
call fcn.00401ae2
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp + 0xf94]
xor ecx, ebp
pop ebx
call fcn.00434834
add ebp, 0xf98
leave
ret
push esi
mov esi, ecx
call fcn.0040259c
mov ecx, esi
test eax, eax
je 0x4030fb
pop esi
jmp 0x402b83
call fcn.00402a12
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x403469
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x403490
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x18]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x403483
pop esi
pop edi
ret 0x10
Function at 0x403d65
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.00434f20
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x5c], bl
jne 0x403e10
test byte [esi + 0x58], 8
je 0x403e10
push 0x7ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.00434950
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x804]
push eax
call fcn.00435c0e
push 0xfff
lea eax, [ebp - 0x1803]
push ebx
push eax
mov byte [ebp - 0x1804], bl
call fcn.00434950
lea eax, [ebp - 0x804]
push eax
push edi
lea eax, [ebp - 0x1804]
push str.__s___s
push eax
call fcn.00435b13
add esp, 0x34
lea eax, [ebp - 0x1804]
push eax
cmp byte [esi + 0x5d], bl
je 0x403e0a
mov ecx, esi
call fcn.004036ab
jmp 0x403e10
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434834
leave
ret
Function at 0x40461f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 7
mov esi, ecx
pop ecx
mov byte [ebp - 0x2c], 0
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [ebp + 8]
stosb byte es:[edi], al
xor eax, eax
push 7
mov byte [ebp - 0x4c], 0
pop ecx
lea edi, [ebp - 0x4b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x44ea70
push ebx
stosb byte es:[edi], al
call fcn.00435593
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40469f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CExtractManager::InitSomInfo:_fopen_error__s___d_
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0x14
xor eax, eax
jmp 0x4047b5
push 0x10
lea ebx, [esi + 0x19ac]
push 0
push ebx
call fcn.00434950
push 0
push 0x3e8
push edi
call fcn.00437599
push edi
push 1
lea eax, [ebp - 0x2c]
push 0x11
push eax
call fcn.004378be
push edi
push 1
lea eax, [ebp - 0x4c]
push 7
push eax
call fcn.004378be
push edi
push 1
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.004378be
add esp, 0x48
push edi
push 1
push 0x10
push ebx
call fcn.004378be
push edi
call fcn.00435451
push 0x11
lea eax, [ebp - 0x2c]
push str.SOMDOCUMENTNORMAL
xor edi, edi
push eax
mov dword [esi + 0x1450], edi
call fcn.00435e8f
add esp, 0x20
mov ebx, 0x46e460
test eax, eax
jne 0x404726
mov dword [esi + 0x1450], edi
jmp 0x40477f
push 0x11
lea eax, [ebp - 0x2c]
push str.SOMDOCUMENTOLESOM
push eax
call fcn.00435e8f
add esp, 0xc
test eax, eax
jne 0x404749
mov dword [esi + 0x1450], 1
jmp 0x40477f
push 0x11
lea eax, [ebp - 0x2c]
push str.SOMDOCUMENTSIMPLE
push eax
call fcn.00435e8f
add esp, 0xc
test eax, eax
jne 0x40476c
mov dword [esi + 0x1450], 2
jmp 0x40477f
push str.CExtractManager::InitSomInfo:_somType_Check_Error__
push 0x44e95c
push ebx
call fcn.00401ae2
add esp, 0xc
add esi, 0x1454
cmp byte [ebp - 0xc], 0x52
mov dword [esi], edi
jne 0x404791
mov dword [esi], edi
jmp 0x4047b2
cmp byte [ebp - 0xc], 0x41
jne 0x40479f
mov dword [esi], 1
jmp 0x4047b2
push str.CExtractManager::InitSomInfo:_somEncType_Check_Error__
push 0x44e95c
push ebx
call fcn.00401ae2
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434834
leave
ret 4
Function at 0x405494
Capabilities:
Get common file path

Disassembly:
push 0x938
mov eax, 0x44ab65
call fcn.004348ac
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00434950
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00403b94
add esp, 0x14
lea eax, [ebp - 0x32c]
push eax
mov dword [ebp - 0x32c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4055c8
cmp dword [ebp - 0x31c], 2
lea eax, [ebp - 0x218]
jne 0x40553b
push esi
push edi
push eax
call fcn.00434950
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push str.SOM_
push eax
call fcn.00435681
lea eax, [ebp - 0x218]
push eax
call fcn.00437abf
add esp, 0xc
jmp 0x4055c8
push ecx
mov ecx, esp
mov dword [ebp - 0x944], esp
push eax
call fcn.00403308
lea ecx, [ebp - 0x93c]
call fcn.00410990
push esi
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00434950
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
lea ecx, [ebp - 0x93c]
call fcn.00410bc0
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call fcn.004356af
pop ecx
pop ecx
mov ecx, dword [ebp - 0x940]
add ecx, 0xfffffff0
call fcn.004026da
lea eax, [ebp - 0x218]
push 0x450150
push eax
call fcn.00435681
lea eax, [ebp - 0x218]
push eax
call fcn.00437abf
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x93c]
call fcn.00410940
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004356af
pop ecx
pop ecx
call fcn.0043492f
ret 4
Function at 0x405d3c
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ebp, [ebx + 0xc20]
push ebp
call fcn.00405494
push 0x45062c
push ebp
call fcn.00435681
push ebp
call fcn.00437abf
add esp, 0xc
mov edi, 0x44e95c
mov esi, 0x46e460
test eax, eax
jne 0x405d80
push ebp
push str.CExtractManager::SetDirectory:_set_TEMP___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push str.image_
push ebp
call fcn.00435681
push ebp
call fcn.00437abf
add esp, 0xc
test eax, eax
jne 0x405da8
push ebp
push str.CExtractManager::SetDirectory:_set_TEMP_image___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push 0x208
push 0
push ebp
call fcn.00434950
add esp, 0xc
push ebp
mov ecx, ebx
call fcn.00405494
push ebp
push str.CExtractManager::SetDirectory:_TEMP___s_
push edi
push esi
call fcn.00401ae2
lea ebp, [ebx + 0x810]
push 0x104
push ebp
call fcn.00403b94
push 0x45062c
push ebp
call fcn.00435681
push ebp
call fcn.00437abf
add esp, 0x24
test eax, eax
jne 0x405e06
push ebp
push str.CExtractManager::SetDirectory:_set_WIN___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push ebp
push str.CExtractManager::SetDirectory:_WIN___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push 0x104
lea ebp, [ebx + 0xa18]
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x45062c
push ebp
call fcn.00435681
push ebp
call fcn.00437abf
add esp, 0xc
test eax, eax
jne 0x405e50
push ebp
push str.CExtractManager::SetDirectory:_set_SYS32___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push ebp
push str.CExtractManager::SetDirectory:_SYS32___s_
push edi
push esi
call fcn.00401ae2
lea ebp, [ebx + 0xe28]
push 0x104
push ebp
call fcn.00403b94
push str.Softcamp
push ebp
call fcn.00435681
push ebp
call fcn.00437abf
add esp, 0x24
test eax, eax
jne 0x405e96
push ebp
push str.CExtractManager::SetDirectory:_set_SDS___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push str._sds_
push ebp
call fcn.00435681
push ebp
call fcn.00437abf
add esp, 0xc
test eax, eax
jne 0x405ebe
push ebp
push str.CExtractManager::SetDirectory:_set_SDS___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
push ebp
push str.CExtractManager::SetDirectory:_SDS___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
lea ebp, [ebx + 0x1030]
push ebp
mov ecx, ebx
call fcn.00404ac2
push ebp
push str.CExtractManager::SetDirectory:_CUR___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407596
Capabilities:
Check if file exists
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0x80
cmp eax, 1
jne 0x4075c3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x407604
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CreateSomFile:_CreateError__FileName:__s___x_
push 0x44e95c
push 0x46e520
call fcn.00401ae2
add esp, 0x14
xor eax, eax
jmp 0x40771a
mov edi, dword [ebp + 0x14]
lea eax, [edi + 0x10]
push eax
call fcn.00416608
mov esi, eax
lea eax, [edi + 0x10]
push eax
push ebx
push esi
mov dword [ebp + 0x14], esi
call fcn.00434950
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00437599
add esp, 0x1c
test eax, eax
je 0x40763e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4075fd
push dword [ebp + 8]
push edi
push 1
push esi
call fcn.004378be
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0xa
push str.SCDSSS02
push dword [ebp - 4]
mov byte [esi + edi], bl
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
test eax, eax
jne 0x407687
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_HEADER_FileName:__s_
push 0x44e95c
push 0x46e520
call fcn.00401ae2
add esp, 0x10
jmp 0x407633
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
push dword [ebp + 0x18]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4076a4
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_HEADER_SIZE_FileName:__s_
jmp 0x407673
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
push dword [ebp + 0x1c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4076c1
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_Key_FileName:__s_
jmp 0x407673
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4076dd
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_Data_FileName:__s_
jmp 0x407673
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
call fcn.004165fd
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
add eax, 4
push eax
call fcn.004356af
push dword [ebp + 0xc]
push 0x451700
push 0x44e95c
push 0x46e520
call fcn.00401ae2
xor eax, eax
add esp, 0x1c
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4091c4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
lea eax, [esi + 0x210]
push 0
push eax
mov dword [ebp - 0x430], eax
call fcn.00434950
mov edi, dword [esi]
add esp, 0xc
test edi, edi
je 0x40929b
and dword [ebp - 0x42c], 0
push 0x424
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00434950
add esp, 0xc
push edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40929b
lea eax, [ebp - 0x42c]
push eax
push edi
mov dword [ebp - 0x42c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x409294
add esi, 8
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00435347
pop ecx
pop ecx
test eax, eax
je 0x409272
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40924c
jmp 0x409294
lea eax, [ebp - 0x20c]
push eax
call fcn.00434d20
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x430]
call fcn.004380ad
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00434834
leave
ret 4

Function at 0x40958b
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push esi
push edi
mov edi, ecx
call fcn.004092f4
xor esi, esi
push 0x228
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00434950
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x4095da
xor eax, eax
jmp 0x40964f
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409644
push ebx
lea ebx, [edi + 4]
push 0x418
call fcn.004165ce
pop ecx
mov esi, eax
push esi
mov ecx, ebx
call fcn.004094e4
mov eax, dword [ebp - 0x74]
mov dword [esi], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 4], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [esi + 8]
push 0x452030
push eax
call fcn.004355aa
add esp, 0xc
push esi
mov ecx, edi
call fcn.004091c4
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4095f3
xor esi, esi
inc esi
pop ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp + 0x1b0]
pop edi
xor ecx, ebp
pop esi
call fcn.00434834
add ebp, 0x1b4
leave
ret
Function at 0x40ae6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
mov edi, 0x20019
call fcn.0040ae34
cmp eax, 1
jne 0x40ae8c
mov edi, 0x20219
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aeca
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], esi
je 0x40aec5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x40aeda
cmp dword [ebp - 4], esi
je 0x40aed8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b6b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x46ca20]
sub esp, 0x10
cmp eax, 3
je 0x40b774
test eax, eax
je 0x40b774
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARESOFTCAMPSoftCamp_Document_SecurityDAT
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b71b
push str.IsAnsiDSClient_:_Reg_Open_Fail.._DSClient_Not_Installed_...
push 0x44e95c
push 0x46e8a8
call fcn.00401ae2
add esp, 0xc
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.UNICL
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b716
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
mov eax, 0x453464
je 0x40b754
mov eax, str.ANSI
push eax
push str.IsAnsiDSClient_:_Key_Value___s_
push 0x44e95c
push 0x46e8a8
call fcn.00401ae2
add esp, 0x10
cmp dword [ebp - 8], 1
je 0x40b78b
jmp 0x40b716
push str.IsAnsiDSClient_:_GetDSInstalledProduct____VERSION_PRODUCT_OS
push 0x44e95c
push 0x46e8a8
call fcn.00401ae2
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x40c5fc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00434950
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 6
jne 0x40c654
cmp dword [ebp - 0x78], 2
jne 0x40c654
cmp byte [ebp + 0x9a], al
jne 0x40c654
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00434834
add ebp, 0xa0
leave
ret

Function at 0x40c688
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00434f20
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x5c], 0
push edi
mov edi, dword [ebp + 0x10]
jne 0x40c785
mov eax, dword [ebp + 0xc]
test dword [esi + 0x58], eax
je 0x40c785
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.00434950
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x1004]
push eax
call fcn.00434ab4
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.00434950
lea eax, [ebp - 0x1004]
push eax
call fcn.00434d20
add esp, 0x28
cmp word [ebp + eax*2 - 0x1006], 0xa
jne 0x40c73e
cmp dword [esi + 0x34], 8
jb 0x40c72b
mov eax, dword [esi + 0x20]
jmp 0x40c72e
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x1004]
push ecx
push edi
push eax
push str.__s___s__s
jmp 0x40c75a
cmp dword [esi + 0x34], 8
jb 0x40c749
mov eax, dword [esi + 0x20]
jmp 0x40c74c
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x1004]
push ecx
push edi
push eax
push 0x453bc4
lea eax, [ebp - 0x3004]
push eax
call fcn.0040174f
add esp, 0x14
cmp byte [esi + 0x5d], 0
lea eax, [ebp - 0x3004]
push eax
je 0x40c77f
mov ecx, esi
call fcn.0040192b
jmp 0x40c785
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00434834
leave
ret