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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411edd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0
push edi
push dword [esi]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x402f6e
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4030e2
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x402f9f
cmp eax, 7
je 0x402f9f
cmp eax, 2
je 0x402f9f
mov eax, 0x8007000d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404fa3
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jle 0x402fe3
movzx edi, di
or edi, 0x80070000
xor esi, esi
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
test edi, edi
js 0x4030cc
mov eax, dword [ebp - 0x10]
cmp eax, 7
je 0x403000
cmp eax, 1
jne 0x40301a
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
xor edi, edi
test esi, esi
mov eax, 0x8007000e
cmove edi, eax
jmp 0x4030b8
cmp eax, 2
jne 0x4030c7
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4030a3
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404fa3
add esp, 4
mov dword [ebp + 8], eax
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x403081
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 8]
mov esi, eax
xor edi, edi
mov eax, 0x8007000e
test esi, esi
cmove edi, eax
call fcn.00404f9e
add esp, 4
jmp 0x4030b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x403096
movzx edi, di
or edi, 0x80070000
push dword [ebp + 8]
call fcn.00404f9e
add esp, 4
jmp 0x4030b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4030ba
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x4030cc
mov eax, dword [ebp + 0xc]
mov ecx, esi
xor esi, esi
mov dword [eax], ecx
jmp 0x4030cc
mov edi, 0x8007000d
push ebx
call fcn.00404f9e
add esp, 4
test esi, esi
je 0x4030e0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4036a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x458]
mov ebx, ecx
push 0
push eax
call fcn.004064d0
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x403881
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x458]
push str.MediafourMacDriveActiveFileNameMaps.MDMaps
push eax
call edi
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403730
lea edx, [ebp - 0x458]
mov ecx, ebx
call fcn.004038a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404f90
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.004064d0
add esp, 0xc
mov dword [ebp - 0x6b0], 0x104
lea eax, [ebp - 0x48]
push 0x40
push 0
push eax
call fcn.004064d0
add esp, 0xc
mov dword [ebp - 0x6ac], 0x20
lea eax, [ebp - 0x6ac]
push 0
push 0
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push str.FC272D51_7EFA_434E_9DEC_A0660A18EBC3
call dword [sym.imp.msi.dll_MsiEnumFeaturesW]
mov esi, eax
test esi, esi
jle 0x403797
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x403881
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x250]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
push str.FC272D51_7EFA_434E_9DEC_A0660A18EBC3
call dword [sym.imp.msi.dll_MsiQueryProductStateW]
mov esi, eax
test esi, esi
jle 0x4037cd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x403881
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x250]
push eax
call esi
push str..MDMaps
lea eax, [ebp - 0x250]
push eax
call edi
push 0x250
lea eax, [ebp - 0x6a8]
push 0
push eax
call fcn.004064d0
add esp, 0xc
lea eax, [ebp - 0x6a8]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6b4], eax
cmp eax, 0xffffffff
je 0x40386c
lea eax, [ebp - 0x250]
push eax
call esi
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x250]
push eax
call edi
lea edx, [ebp - 0x250]
mov ecx, ebx
call fcn.004038a0
push dword [ebp - 0x6b4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404f90
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x403881
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f90
mov esp, ebp
pop ebp
ret
Function at 0x409247
Capabilities:
Parse pe header

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

Function at 0x40b343
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b38e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b4de
test al, al
jne 0x40b388
sub edx, 2
cmp edx, edi
jne 0x40b36e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b3b0
lea eax, [edi + 2]
cmp edx, eax
je 0x40b3b0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040b28f
add esp, 0x10
jmp 0x40b4aa
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b4de
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b3f3
push dword [ebp - 0x25c]
jmp 0x40b3a0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b430
cmp word [ebp - 0x226], 0
je 0x40b451
cmp word [ebp - 0x226], ax
jne 0x40b430
cmp word [ebp - 0x224], 0
je 0x40b451
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040b28f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b49d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b40a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b485
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b4aa
push 0x40b0bf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040de00
add esp, 0x10
jmp 0x40b47a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f90
leave
ret

Function at 0x40c27e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41537c
push 0x415374
push str.FlsAlloc
push 0x1f
call fcn.0040c1b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c2b2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4131f0]
call esi
jmp 0x40c2b8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40c2fc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41538c
push 0x415384
push str.FlsGetValue
push 0x21
call fcn.0040c1b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c333
push dword [ebp + 8]
mov ecx, esi
call dword [0x4131f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c33b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415394
push 0x41538c
push str.FlsSetValue
push 0x22
call fcn.0040c1b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c375
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4131f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4029b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4029d4
xor eax, eax
jmp 0x402a54
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4029eb
xor eax, eax
jmp 0x402a54
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x402a37
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x402a37
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x402a0e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x402a43
xor eax, eax
jmp 0x402a54
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x402a51
xor eax, eax
jmp 0x402a54
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40b90f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42daa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040754e
mov dword [ebp - 0x14], eax
cmp dword [0x42fb44], edi
jne 0x40ba00
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40b98d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bae0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40bae0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bae0
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42fb44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42fb48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42fb4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42fb54], eax
test eax, eax
je 0x40b9fd
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42fb50], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ba25
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ba18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40ba3a
push 4
pop eax
jmp 0x40bae2
cmp dword [ebp - 0x14], edi
je 0x40ba3a
push dword [0x42fb44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ba1f
mov eax, dword [0x42fb50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40ba98
cmp dword [0x42fb54], esi
je 0x40ba98
push eax
call ebx
push dword [0x42fb54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ba98
test eax, eax
je 0x40ba98
call ecx
test eax, eax
je 0x40ba8d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ba8d
test byte [ebp - 8], 1
jne 0x40ba98
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40bac8
mov eax, dword [0x42fb48]
cmp eax, esi
je 0x40bac5
push eax
call ebx
test eax, eax
je 0x40bac5
call eax
mov edi, eax
test edi, edi
je 0x40bac5
mov eax, dword [0x42fb4c]
cmp eax, esi
je 0x40bac5
push eax
call ebx
test eax, eax
je 0x40bac5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42fb44]
call ebx
test eax, eax
je 0x40bae0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40bae2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405736
leave
ret
Function at 0x41b595
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00406250
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b5cd
xor eax, eax
jmp 0x41b5f9
cmp esi, dword [ebp - 4]
je 0x41b5f6
cmp dword [ebp + 0xc], 0
je 0x41b5f6
push dword [edi + 0x9c]
call fcn.0041b1a3
push dword [edi + 0x9c]
mov esi, eax
call fcn.00405464
pop ecx
pop ecx
cmp esi, eax
je 0x41b5c9
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10002620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov ebx, eax
call fcn.10002c70
test eax, eax
jne 0x100026ee
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call fcn.10002fa0
push eax
push edi
lea eax, [esi + 0xcac]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100026d3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push str.ErrLog
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100026c2
cmp dword [ebp - 8], 1
jne 0x100026c2
cmp dword [esi + 0xca4], edi
jne 0x100026bb
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10002d40
mov dword [esi + 0xca4], 1
mov edi, 1
jmp 0x100026ca
mov dword [esi + 0xca4], edi
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0xeb4], 1
jne 0x100026e9
push ecx
lea eax, [esi + 0x218]
push eax
call fcn.10002e50
test edi, edi
pop edi
je 0x10002701
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
push dword [ebp + 0xc]
push str._ERROR_
call fcn.10002720
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret
Function at 0x10002720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [ebp - 0x210], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebx + 0x218]
xor ecx, ecx
mov dword [ebp - 0x218], esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
cmp cx, word [eax]
je 0x10002778
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002858
test al, 0x10
je 0x10002858
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0
push 0
push esi
push 0
push 0
call fcn.100011b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.1001eb66
mov esi, eax
add esp, 0x1c
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
add esi, 0x43
test edi, edi
je 0x100027bf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
cmp esi, 0x104
jbe 0x100027ec
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001855d
add esp, 4
mov dword [ebp - 0x214], eax
mov edi, eax
jmp 0x100027f7
lea edi, [ebp - 0x20c]
mov esi, 0x104
push esi
push edi
lea eax, [ebx + 0xa18]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call fcn.10002a50
mov eax, dword [ebx + 0xca8]
test eax, eax
jne 0x1000282e
mov ecx, ebx
call fcn.10002870
mov eax, dword [ebx + 0xca8]
cmp eax, 1
jne 0x10002845
test edi, edi
je 0x10002845
push edi
push 0x10035bcc
call fcn.10004cc0
add esp, 8
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x10002858
push eax
call fcn.10018566
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xca8], 1
jne 0x100028a3
mov eax, 0x4df
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp cx, word [edi + 0xa98]
jne 0x100028c0
lea eax, [ecx + 0xd]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], ecx
push eax
call fcn.10002fa0
push eax
push 0
lea eax, [edi + 0xcac]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100029d9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x808]
push esi
push eax
lea esi, [edi + 8]
mov dword [ebp - 0x808], 4
push esi
push 0
push 0
push str.DebugLogDelPolicy
push dword [ebp - 0x80c]
call ebx
test eax, eax
je 0x10002927
mov dword [esi], 3
lea esi, [edi + 0x218]
xor eax, eax
cmp ax, word [esi]
jne 0x100029cb
cmp dword [edi + 0xeb4], 1
jne 0x1000294d
push ecx
push esi
call fcn.10002e50
jmp 0x100029cb
push 0x800
push 0
push esi
mov dword [ebp - 0x808], 0x208
call fcn.10019d00
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push esi
push 0
push 0
push 0x10035b90
push dword [ebp - 0x80c]
call ebx
test eax, eax
jne 0x1000298f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x100029cb
mov edx, 0x10035bac
mov ecx, 0x400
sub edx, esi
nop dword [eax + eax]
lea eax, [ecx + 0x7ffffbfe]
test eax, eax
je 0x100029be
movzx eax, word [edx + esi]
test ax, ax
je 0x100029be
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x100029a0
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10019d00
lea eax, [edi + 0x10]
push eax
lea eax, [edi + 0x218]
push eax
push str._s_s.logs
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.100023f0
add esp, 0x18
lea edx, [edi + 0xa98]
push dword [edi + 8]
push dword [edi + 4]
push ecx
lea ecx, [ebp - 0x804]
call fcn.100049e0
add esp, 0x14
test eax, eax
jne 0x10002a39
mov dword [edi + 0xca8], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100184e9
mov esp, ebp
pop ebp
ret