joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40500d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40501c
pop dword [ebp - 0x48]
mov eax, 0x8c2459f2
sub eax, 0x8be409d6
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x7d767a0a
add dword [ebp - 0x58], 0xd0dbcb41
mov dword [ebp - 0x54], 0x7466b0c
sub dword [ebp - 0x54], 0xd5131ec7
mov dword [ebp - 0x50], 0x6d9acb85
add dword [ebp - 0x50], 0xdeb178a9
mov dword [ebp - 0x4c], 0x8042bab6
add dword [ebp - 0x4c], 0x7fbd454a
lea eax, [ebp - 0x58]
push eax
mov eax, 0xbd81bb1d
add eax, 0x42bf152f
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x8edb694c
sub dword [ebp - 0x58], 0x1a68fff6
mov dword [ebp - 0x54], 0xa621d59d
sub dword [ebp - 0x54], 0x64b57428
mov dword [ebp - 0x50], 0xe1f0edfa
add dword [ebp - 0x50], 0x817e7e72
mov dword [ebp - 0x4c], 0x3ddd2047
add dword [ebp - 0x4c], 0xc222dfb9
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x678460
sub eax, 0x26b418
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x37590
push 0
call eax
mov ecx, 0x3f7a
xor edi, edi
add edi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x48]
mov esi, 0x8785040d
mov ebx, dword [edx]
xor dword [ebp - 8], 0x9983cc72
add ebx, esi
add dword [ebp - 0x10], 0x1dda86dc
mov dword [edi], ebx
add edi, 0xcd66dc32
add edi, 0x329923d2
add edx, 0x4cc9e43b
sub edx, 0x4cc9e437
loop 0x40512e
add eax, 0xf0bb
xor ebx, ebx
add ebx, eax
add eax, 0xdf7b2867
add eax, 0x2084d79e
mov ecx, 0x14cac1fd
sub ecx, 0x148ac1fd
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402cec
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
push edi
push 0x4b31c8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00401900
lea eax, [ebp - 0x7c]
push eax
call fcn.00402f56
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004766d0
mov eax, dword [ebp - 0x78]
add esp, 0x10
cmp dword [ebp - 0x64], 8
jae 0x402d49
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4b3058
push eax
lea eax, [ebp - 0x60]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
je 0x402dba
push 0x4b3098
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a3e
mov ecx, dword [ebp - 0x80]
push 0x4b30a0
call fcn.00401987
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a62
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
add ebp, 0x1ac
leave
ret
push ebx
push 0
push eax
call fcn.004766d0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402dd2
lea eax, [ebp - 0x78]
push 0x4b30a4
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x402ded
lea eax, [ebp - 0x60]
jmp 0x402d6e
lea eax, [ebp - 0x7c]
push eax
call fcn.00403c57
mov ecx, eax
call fcn.00403c82
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004766d0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402e18
lea eax, [ebp - 0x78]
push 0x4b3058
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
jne 0x402d6e
push ebx
push 0
push eax
call fcn.004766d0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402e4d
lea eax, [ebp - 0x78]
push 0x4b30a4
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x402ea1
push 0x4b3098
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a3e
mov ecx, dword [ebp - 0x80]
push 0x4b30a0
call fcn.00401987
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a62
mov eax, esi
jmp 0x402da2
xor esi, esi
jmp 0x402e8e
Function at 0x402ea5
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
mov esi, ecx
push 0x4b31c8
lea ecx, [ebp - 0x80]
call fcn.00401900
lea eax, [ebp - 0x80]
push eax
call fcn.00402cec
pop ecx
test eax, eax
je 0x402f52
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.004766d0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], 8
jae 0x402f02
lea eax, [ebp - 0x7c]
push str.download_interface.dll
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402f52
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.00401a3e
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a62
mov ecx, dword [ebp + 0x1a4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047674a
add ebp, 0x1a8
leave
ret
xor esi, esi
jmp 0x402f2e

Function at 0x402f56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.004766d0
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.instdir
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403004
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x402fc6
sub eax, edx
sar eax, 1
je 0x403004
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a3e
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00403108
cmp word [eax], 0x5c
je 0x402fff
push 0x4b30a0
mov ecx, esi
call fcn.00401987
xor eax, eax
inc eax
jmp 0x403006
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0047674a
add ebp, 0x390
leave
ret
Function at 0x40301c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.004766d0
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4030ac
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40308c
sub eax, edx
sar eax, 1
je 0x4030ac
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a3e
xor eax, eax
inc eax
jmp 0x4030ae
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0047674a
add ebp, 0x390
leave
ret

Function at 0x403201
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x40328c
cmp dword [ebp + 0xc], esi
je 0x40328c
cmp ebx, esi
jle 0x40328c
push esi
push 0x80
push 2
push esi
push esi
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40323d
mov eax, 0x80004005
jmp 0x403291
push edi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ebx
add eax, edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403275
cmp dword [ebp + 8], esi
jle 0x403275
sub ebx, dword [ebp + 8]
add edi, dword [ebp + 8]
cmp ebx, esi
jg 0x40324a
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40327e
mov dword [eax], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
jmp 0x403291
mov eax, 0x86180008
pop esi
pop ebx
leave
ret

Function at 0x403295
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push dword [ebp + 8]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4032c5
mov eax, 0x80004005
jmp 0x4032de
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40335c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x403379
mov eax, 0x80004005
jmp 0x4033f4
lea eax, [esi + 4]
push edi
push eax
call fcn.004754de
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4033b5
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4b30a0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4033bc
mov eax, 0x80004005
jmp 0x4033f3
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], eax
call fcn.004763f5
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403765
Capabilities:
Copy file

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x40377d
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi]
sub esp, 0x14
push ebx
test ecx, ecx
je 0x4037fb
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4037fb
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov eax, dword [esi]
push eax
push dword [eax + 0xc]
lea ecx, [ebp - 8]
call fcn.0041656d
jmp 0x4037dd
lea ecx, [ebp - 8]
call fcn.004039ef
cmp dword [eax + 0x18], 8
jb 0x4037c6
mov eax, dword [eax + 4]
jmp 0x4037c9
add eax, 4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40381c
lea ecx, [ebp - 8]
call fcn.00403982
mov eax, dword [esi]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041656d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004039b1
test al, al
je 0x4037b3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x403811
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
push edi
call fcn.00403863
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x40381f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00403a94
add esp, 0xc
test esi, esi
pop esi
je 0x40385f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40385f
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x403863
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 8], 0
je 0x403890
push dword [esp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403890
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
ret
Function at 0x403a94
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x4c3a10]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00401900
mov eax, dword [esp + 0x28]
dec eax
push eax
lea ecx, [esp + 0x18]
call fcn.00403108
cmp word [eax], 0x5c
je 0x403aeb
push 0x4b30a0
lea ecx, [esp + 0x18]
call fcn.00401987
push 0x4b31e4
lea ecx, [esp + 0x18]
call fcn.00401987
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x403b08
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403b43
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00401a62
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0047674a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x284]
push 0
push eax
call fcn.004766d0
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4b31e8
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403bd1
push 0x4b3098
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403bd1
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [esp + 0x30], 0x10
je 0x403bc5
push esi
lea eax, [esp + 0x284]
push ebx
push eax
call fcn.00403a94
add esp, 0xc
cmp dword [ebx], 0
je 0x403bd1
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403bd1
lea edi, [esp + 0x280]
call fcn.0040377d
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403b5a
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x403b1f
Function at 0x4078a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x798]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push edi
mov edi, ecx
push str.HKCT
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x400
call esi
test eax, eax
je 0x407934
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
je 0x407934
push str.HKCU
push edi
call esi
test eax, eax
je 0x40792d
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
je 0x40792d
push str.HKLM
push edi
call esi
test eax, eax
je 0x407926
push 0x4b37c4
push edi
call esi
test eax, eax
jne 0x40792d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x407939
mov eax, connect
jmp 0x407939
mov eax, connect
lea ecx, [ebp - 0x7c]
push ecx
push 1
xor esi, esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40797d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x40797d
cmp dword [ebp - 0x78], esi
jbe 0x40797d
xor eax, eax
inc eax
jmp 0x40797f
xor eax, eax
mov ecx, dword [ebp + 0x78c]
pop edi
xor ecx, ebp
pop esi
call fcn.0047674a
add ebp, 0x790
leave
ret

Function at 0x40b353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
mov esi, dword [ebp + 0x398]
push edi
mov edi, dword [ebp + 0x39c]
push 0x400
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004766d0
or dword [ebp - 0x80], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40b3d5
call fcn.00403893
mov eax, 0x80004005
jmp 0x40b3e0
lea eax, [ebp - 0x74]
push eax
call fcn.00401a3e
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.0047674a
add ebp, 0x390
leave
ret

Function at 0x40b3f5
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x40b407
mov eax, dword [eax + 4]
jmp 0x40b40a
add eax, 4
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x40b42e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004766d0
or dword [ebp - 0x408], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x200
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40b4b0
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, 0x80004005
jmp 0x40b4ba
mov eax, dword [ebp - 0x404]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
leave
ret
Function at 0x40c30b
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x41c]
sub esp, 0x49c
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x418], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x428]
push esi
push edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x42c]
push 0x400
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x18]
push 0
push eax
mov edi, ecx
call fcn.004766d0
add esp, 0xc
mov esi, 0x4b37ba
push esi
lea ecx, [ebp - 0x58]
call fcn.00402406
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c36b
sub eax, ecx
lea ecx, [ebp - 0x58]
push ecx
sar eax, 1
push eax
push edi
call fcn.0040b65e
add esp, 0xc
push esi
lea ecx, [ebp - 0x20]
call fcn.00402406
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c395
sub eax, ecx
lea ecx, [ebp - 0x20]
push ecx
sar eax, 1
push eax
push ebx
call fcn.0040b65e
add esp, 0xc
push esi
lea ecx, [ebp - 4]
call fcn.00402406
mov eax, dword [ebp - 0x7c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c3c0
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x7c]
call fcn.0040b65e
add esp, 0xc
push esi
lea ecx, [ebp - 0x3c]
call fcn.00402406
mov eax, dword [ebp - 0x78]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c3ed
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x78]
call fcn.0040b65e
mov esi, dword [ebp - 0x38]
add esp, 0xc
push 0x10
pop eax
cmp dword [ebp - 0x24], eax
jae 0x40c419
lea esi, [ebp - 0x38]
mov edx, dword [ebp]
cmp dword [ebp + 0x14], eax
jae 0x40c424
lea edx, [ebp]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jae 0x40c42f
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
jae 0x40c43a
lea eax, [ebp - 0x54]
push esi
push 0x3ff
lea esi, [ebp + 0x18]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b31c8
lea ecx, [ebp - 0x74]
call fcn.00401900
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c45f
sub eax, ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0040b5d6
mov ecx, dword [ebp - 0x80]
add esp, 0xc
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.004019ab
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x74]
call fcn.00401a62
push edi
push esi
lea ecx, [ebp - 0x3c]
call fcn.004027d5
push edi
push esi
lea ecx, [ebp - 4]
call fcn.004027d5
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.004027d5
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.004027d5
mov ecx, dword [ebp + 0x418]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0047674a
add ebp, 0x41c
leave
ret
Function at 0x40c67c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
neg eax
mov dword [esi], eax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0047674a
leave
ret
Function at 0x40ed32
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4c3a10]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004766d0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x40ed82
cmp dword [ebp - 0x70], 2
jne 0x40ed82
xor eax, eax
inc eax
jmp 0x40ed84
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0047674a
add ebp, 0x98
leave
ret

Function at 0x40ed99
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40edb1
mov eax, 0x80004005
jmp 0x40ee47
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
jne 0x40edbf
mov esi, 0x4b31c8
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004766d0
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
cmp dword [ebp + 0x14], edi
je 0x40edee
call fcn.0040ed32
mov dword [ebp - 0x30], str.runas
test eax, eax
jne 0x40edf5
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x38], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40ee33
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x40ee2f
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x40ee45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, 0x80004005
pop esi
pop ebx
pop edi
leave
ret