joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dcf3
Capabilities:
Create directory
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d2796
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517490]
xor eax, esp
push eax
lea eax, [esp + 0x57c]
mov dword fs:[0], eax
mov bx, word [esp + 0x58c]
movzx eax, bl
mov edi, dword [eax*4 + 0x529a6c]
test edi, edi
je 0x40df02
lea ecx, [esp + 0x15c]
call fcn.0040d960
push 0
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + 0x15c]
push 0x5c
lea ecx, [esp + 0x20]
lea esi, [esi + eax*2]
pop eax
mov word [esi], ax
add esi, 2
call fcn.0041e421
and dword [esp + 0x584], 0
mov edx, 0xb53926bd
movzx eax, bx
mov ecx, 0x8b9f4609
push eax
push 0xd7e35916
call fcn.00401557
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x168]
push eax
call fcn.0041fa4a
add esp, 0x10
test al, al
je 0x40def1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x160]
push eax
call fcn.0041fd60
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x40def1
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x9f7bf44b
mov ecx, 0xa1dd94ef
push ebp
push 0xfda18bef
call fcn.00401536
pop ecx
push eax
lea ecx, [esp + 0x30]
call fcn.0041e6a9
push ebp
call fcn.00404d44
pop ecx
lea eax, [edi + 0x94]
mov edx, 0xb2fb64a7
push eax
movsx eax, bl
mov ecx, 0x8c5d047d
push eax
push 0x4ee590
push 0x4ee5d0
push 0xd0211b1b
call fcn.00401557
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x364]
xor ebx, ebx
push ebx
push ebx
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x170]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x364]
push eax
lea ecx, [esp + 0x20]
call fcn.0041f127
lea eax, [esp + 0x364]
mov edx, 0x3b632b99
push eax
push 0x59b95439
mov ecx, 0x5c54b61
call fcn.00401536
pop ecx
push eax
lea eax, [esp + 0x474]
push eax
call fcn.004ba78c
add esp, 0xc
lea eax, [esp + 0x46c]
mov edx, 0x267fde95
mov ecx, 0x18d9be77
push 1
push ebx
push eax
push 0x44a5a130
call fcn.00401536
pop ecx
push eax
push 0xf4ddbda2
mov edx, 0x9607c20b
mov ecx, 0xa8a1a2e1
call fcn.00401536
pop ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [esp + 0x584], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041e51d
mov ecx, dword [esp + 0x57c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.004b94b6
add esp, 0x574
ret 4
Function at 0x40df2c
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push esi
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ebp
test eax, eax
jle 0x40df59
cmp word [esi + eax*2 - 2], bp
je 0x40df59
mov word [esi + eax*2], bp
inc eax
mov ebx, 0x4ee5d0
lea esi, [esi + eax*2]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [eax], bp
add eax, 2
pop esi
pop ebp
pop ebx
mov word [eax], cx
ret
Function at 0x40e559
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push dword [0x529b30]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e5cf
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 3
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0xc
push eax
push 0
push 0xc00902bf
mov edx, 0xa2d37d1b
mov ecx, 0x9c751ce7
call fcn.00401557
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
xor ecx, ecx
test esi, esi
pop esi
cmovne eax, ecx
jmp 0x40e5d2
mov eax, dword [ebp - 4]
shr eax, 2
mov esp, ebp
pop ebp
ret 8

Function at 0x40e5db
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x529b30]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e653
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40e620
push 0x8ea50920
mov edx, 0xec7f7684
mov ecx, 0xd2d9176e
call fcn.00401557
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40e64a
shl eax, 2
mov edx, 0xf3843155
push eax
push dword [ebp + 8]
mov ecx, 0xcd22574d
push 3
push 0
push 0x915e4ef1
call fcn.00401557
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e659
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push dword [0x529b30]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e6cf
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 3
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x15
push eax
push 0
push 0xc4a3f4b3
mov edx, 0xa6798b11
mov ecx, 0x98dfed17
call fcn.00401557
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
xor ecx, ecx
test esi, esi
pop esi
cmovne eax, ecx
jmp 0x40e6d2
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40e6d8
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [0x529b30]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e74d
cmp dword [ebp + 0xc], eax
jne 0x40e71b
push 0x7807e449
mov edx, 0x1add9beb
mov ecx, 0x247bfdc3
call fcn.00401557
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40e744
push dword [ebp + 0xc]
mov edx, 0xb6b16df
mov ecx, 0x35cd7095
push dword [ebp + 8]
push 3
push 0
push 0x69b1697d
call fcn.00401557
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e753
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edx, edx
lea ecx, [ebp - 4]
call fcn.0040d8e5
mov esi, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x40e7a4
push ebx
push 0x104
push esi
push 0x8006d284
mov edx, 0xe2dcad2f
mov ecx, 0xdc7acb43
call fcn.00401557
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0040d220
pop ecx
pop ecx
push dword [ebp - 4]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
jne 0x40e7b0
push esi
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40e7b5
sub ecx, edx
sar ecx, 1
push 0x5c
lea eax, [esi + ecx*2]
pop ecx
pop edi
pop esi
cmp word [eax - 2], cx
je 0x40e7dd
mov word [eax], cx
add eax, 2
xor ecx, ecx
mov word [eax], cx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fa8f
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4b8]
lea eax, [esp + 0x1d]
push edi
mov edi, ecx
xor ebx, ebx
push 0x3f
push ebx
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [ebp + 4], 8
mov byte [esp + 0x2c], bl
call fcn.004bea90
add esp, 0xc
lea edx, [esp + 0xa0]
push 0x23
pop ecx
call fcn.0040fa27
lea eax, [esp + 0xa0]
mov edx, 0x41e118a8
push eax
push 0x1d1c417f
mov ecx, 0x8813b520
call fcn.0040160e
pop ecx
push eax
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2a8]
push ebx
push 2
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fb62
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00410370
mov ecx, dword [edi]
mov al, 1
sub ecx, 9
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x4b4]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x4ac
ret 4
Function at 0x410066
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0x20219
push 0
push 0xc09374f9
mov edx, 0x9c6e2d2e
mov ecx, 0x559c81ce
call fcn.0040160e
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410102
push edi
mov byte [ebp - 0x14], al
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
mov edx, 0xb1e87c7d
mov ecx, 0x781ad0e3
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0xed1525b5
call fcn.0040160e
pop ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410101
push esi
mov edi, ebx
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b94b6
mov esp, ebp
pop ebp
ret 4
Function at 0x410662
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push esi
xor esi, esi
mov dword [esp + 8], eax
mov ecx, esi
sub edx, 0x51d410
mov al, byte [edx + ecx + 0x51d410]
xor al, byte [ecx + 0x51d410]
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x18
jl 0x410687
push ebx
push ebp
push edi
push 3
pop ebx
lea edi, [esp + 0x29]
mov dword [esp + 0x10], 5
lea ebp, [esp + 0x20]
mov dword [esp + 0x18], 8
cmp ebx, 8
jge 0x4106d2
mov dl, byte [edi + 1]
mov cl, bl
mov al, byte [edi]
shr dl, cl
mov ecx, dword [esp + 0x10]
shl al, cl
jmp 0x4106f1
mov eax, ebx
and eax, 0x80000007
jns 0x4106e0
dec eax
or eax, 0xfffffff8
inc eax
mov dl, byte [edi - 1]
push 8
pop ecx
sub ecx, eax
mov al, byte [edi]
shl dl, cl
lea ecx, [ebx - 8]
shr al, cl
add dl, al
add edi, 3
dec dword [esp + 0x10]
mov byte [ebx + ebp - 3], dl
inc ebx
dec dword [esp + 0x18]
jne 0x4106bc
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004105f1
pop edi
pop ebp
pop ebx
mov al, byte [esi + 0x4eea58]
xor byte [esp + esi + 0xc], al
inc esi
cmp esi, 8
jl 0x410718
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b94b6
add esp, 0x34
ret 8

Function at 0x41074b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp], eax
push esi
mov eax, dword [ecx]
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0xc], eax
mov al, byte [ecx + 0x4eea58]
xor byte [esp + ecx + 8], al
inc ecx
cmp ecx, 8
jl 0x410776
push ebx
push ebp
push edi
push 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004105f1
push 3
pop edx
lea ebp, [esp + 0x25]
mov dword [esp + 0x14], 8
lea edi, [esp + 0x1c]
cmp edx, 8
jge 0x4107b6
mov eax, esi
jmp 0x4107d0
mov eax, edx
and eax, 0x80000007
jns 0x4107c4
dec eax
or eax, 0xfffffff8
inc eax
push 8
pop ecx
sub cl, al
movzx eax, byte [edi + edx - 3]
shr eax, cl
mov byte [ebp - 1], al
mov al, byte [edi + edx - 3]
movzx ebx, al
cmp edx, 8
jge 0x4107e8
push 8
pop ecx
sub cl, dl
shr ebx, cl
jmp 0x4107ed
lea ecx, [edx - 8]
shl ebx, cl
mov ecx, edx
mov byte [ebp], bl
shl al, cl
inc edx
mov byte [ebp + 1], al
add ebp, 3
dec dword [esp + 0x14]
jne 0x4107ad
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
mov al, byte [esi + 0x51d410]
xor al, byte [esp + esi + 0x18]
mov byte [ecx + esi], al
inc esi
cmp esi, 0x18
jl 0x410808
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.004b94b6
add esp, 0x30
ret 8
Function at 0x41082d
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x66c], 0
lea eax, [ebp - 0x668]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x24c
push 0
push eax
call fcn.004bea90
add esp, 0xc
mov edx, 0x15b97e8e
mov ecx, 0xdc4bd234
push esi
push 0x4944274b
call fcn.0040160e
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x41c]
mov edx, 0x1f16c181
mov ecx, 0xd6e46dd5
push eax
push 0x43eb9844
call fcn.0040160e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410925
lea eax, [ebp - 0x640]
mov edx, 0xa24bd0ff
push eax
lea eax, [ebp - 0x41c]
mov ecx, 0x6bb97c99
push eax
push 0xfeb68937
call fcn.0040160e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x66c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4108cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004b94b6
mov esp, ebp
pop ebp
ret 4
Function at 0x410937
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
mov dword [ebx + 4], 7
call fcn.00410d59
and dword [esp + 0xc], 0
lea edx, [esp + 0x1c]
push 0x23
pop ecx
call fcn.0040fa27
push 0x1e49ad6
mov edx, 0x5d19c303
mov ecx, 0x94eb6f69
mov esi, eax
call fcn.0040160e
pop ecx
push eax
lea eax, [esp + 0x20]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
push eax
push 0x80
push 3
pop ebp
push ebp
push eax
push 1
push 0x80000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410a69
push edi
xor eax, eax
lea edi, [esp + 0x19]
xor ecx, ecx
mov byte [esp + 0x18], cl
stosd dword es:[edi], eax
push ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 8
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 8
pop edi
jne 0x410a62
mov al, byte [esp + 0x14]
push 2
pop ecx
cmp al, 0x88
jne 0x410a03
mov dword [ebx + 8], 1
jmp 0x410a13
cmp al, 0x8b
jne 0x410a0c
mov dword [ebx + 8], ecx
jmp 0x410a13
cmp al, 0x8d
jne 0x410a13
mov dword [ebx + 8], ebp
mov al, byte [esp + 0x18]
cmp al, 0x8f
je 0x410a56
cmp al, 0x8c
je 0x410a56
cmp al, 0x8d
jne 0x410a2c
mov dword [ebx + 0xc], 4
jmp 0x410a5d
cmp al, 0x8b
jne 0x410a35
mov dword [ebx + 0xc], ecx
jmp 0x410a5d
cmp al, 0x8a
jne 0x410a3e
mov dword [ebx + 0xc], ebp
jmp 0x410a5d
cmp al, 0x88
jne 0x410a4b
mov dword [ebx + 0xc], 1
jmp 0x410a5d
cmp al, 0x89
jne 0x410a5d
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x410a5d
mov dword [ebx + 0xc], 5
mov byte [esp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x21c
ret 4
Function at 0x410bf7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x218
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
push edi
call fcn.00410d59
push 0x23
lea edx, [ebp - 0x70]
pop ecx
call fcn.0040fa27
push 0x92712c39
mov edx, 0xce8c75ec
mov ecx, 0x77eda7e
mov esi, eax
call fcn.0040160e
pop ecx
push eax
lea eax, [ebp - 0x70]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push 0x80
push 3
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410ccb
mov ecx, dword [ebp + 0x1a4]
mov word [ebp - 0x77], bx
mov byte [ebp - 0x75], bl
mov word [ebp - 0x74], 0x8b88
lea eax, [ecx - 1]
mov byte [ebp - 0x72], 0x8d
cmp eax, 2
ja 0x410c92
mov al, byte [ebp + ecx - 0x75]
jmp 0x410c94
mov al, 1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x78]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x7c]
mov word [ebp - 0x73], bx
push eax
push 4
lea eax, [ebp - 0x74]
mov byte [ebp - 0x71], bl
push eax
push edi
mov byte [ebp - 0x74], 0x8c
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b94b6
lea esp, [ebp + 0x19c]
pop ebp
ret 4

Function at 0x410d59
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x410ce5
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x410d8f
push 0
push 0
push 2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor eax, eax
test ecx, ecx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x410d9a
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x11c], eax
push edi
mov edi, dword [esp + 0x128]
xor eax, eax
push 0x10c
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
mov dword [edi + 4], 6
mov dword [esp + 0x18], 0x114
call fcn.004bea90
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 5
jne 0x410e80
push ebx
push ebp
push 4
pop ebp
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
lea eax, [edi + 0xc]
mov edx, 0xdf7f4006
push eax
push 0x838219e6
mov ecx, 0x168def4a
call fcn.0040160e
pop ecx
push eax
mov ebx, 0x80000000
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
lea eax, [esp + 0x14]
mov edx, 0x6841ec31
push eax
push 0x34bcb5d1
mov ecx, 0xa1b34311
call fcn.0040160e
pop ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
dec eax
je 0x410e79
dec eax
je 0x410e70
dec eax
dec eax
jne 0x410e80
mov dword [edi + 8], 3
jmp 0x410e80
mov dword [edi + 8], 2
jmp 0x410e80
mov dword [edi + 8], 1
mov ecx, dword [esp + 0x120]
mov al, 1
pop edi
xor ecx, esp
call fcn.004b94b6
add esp, 0x120
ret 4
Function at 0x410e9a
Capabilities:
Delete file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2b4]
sub esp, 0x334
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp + 0x2b0], eax
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x70]
push ebx
push esi
push 0x10c
push 0
push eax
mov dword [ebp - 0x78], 0x114
call fcn.004bea90
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 5
pop eax
cmp dword [ebp - 0x74], eax
jne 0x410fdb
push 0xe21f22b2
mov edx, 0xbee27b7e
mov dword [ebp - 0x80], eax
mov ecx, 0x7710d2b8
call fcn.0040160e
push 0xfae9e1ac
mov edx, 0xa614b84c
mov ecx, 0x6fe6162e
mov ebx, eax
call fcn.0040160e
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x410f4d
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push 0
push ebx
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x2bc]
xor ecx, ecx
push 2
pop ebx
inc ecx
mov dword [ebp + 0xa0], ebx
lea eax, [edx - 1]
mov dword [ebp + 0x9c], ecx
mov dword [ebp + 0xa4], 4
cmp eax, ebx
ja 0x410f7d
mov ecx, dword [ebp + edx*4 + 0x98]
mov dword [ebp - 0x80], ecx
mov edx, 0x84f0f407
push 0xd80dadcb
mov ecx, 0x4d025da1
call fcn.0040160e
push 0x95d1932f
mov edx, 0xc92ccacf
mov ecx, 0xde630d
mov ebx, eax
call fcn.0040160e
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41101e
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push 0
push ebx
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41101e
push 0x23
lea edx, [ebp + 0xa8]
pop ecx
call fcn.0040fa27
push 0x7cbdc32b
mov edx, 0x20409ac6
mov ecx, 0xe9b23364
mov esi, eax
call fcn.0040160e
pop ecx
push eax
lea eax, [ebp + 0xa8]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x2b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b94b6
lea esp, [ebp + 0x2b4]
pop ebp
ret 4
Function at 0x411055
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x428]
lea edx, [esp + 0x218]
push 0x1a
pop ecx
call fcn.0040fa27
push dword [esp + 0x42c]
mov esi, eax
mov edx, 0x53c3f50f
xor eax, eax
mov ecx, 0x9a315c63
push 0xf3eace4
xor ebp, ebp
mov word [esp + 0x18], ax
xor ebx, ebx
call fcn.0040160e
pop ecx
push eax
lea eax, [esp + 0x220]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
xor esi, esi
mov edx, 0x7b862cfc
inc esi
mov ecx, 0xb27485ce
push ebx
push eax
push 0x411037
push esi
push 0x277b753d
call fcn.0040160e
pop ecx
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0041f7f0
add esp, 0x18
cmp word [esp + 0x10], bx
je 0x411181
lea eax, [esp + 0x10]
push eax
call fcn.0041fa4a
pop ecx
test al, al
je 0x411181
cmp dword [esp + 0x42c], 6
jne 0x411123
mov dword [edi + 4], 3
jmp 0x411143
cmp dword [esp + 0x42c], 5
jne 0x411136
mov dword [edi + 4], 2
jmp 0x411143
cmp dword [esp + 0x42c], 3
jne 0x411143
mov dword [edi + 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x4eea14
mov ebx, str.General
push ebx
call esi
mov ebp, eax
mov edx, 0xa764f469
lea eax, [esp + 0x10]
mov ecx, 0x6e965cbd
push eax
push 0
push 0xfb99ada8
call fcn.0040160e
pop ecx
push eax
push ebx
call esi
mov ebx, eax
dec ebp
je 0x41119d
dec ebp
je 0x411194
dec ebp
dec ebp
jne 0x4111a4
mov dword [edi + 8], 3
jmp 0x4111a4
mov dword [edi + 8], 2
jmp 0x4111a4
mov dword [edi + 8], 1
cmp ebx, 0xaf01cec2
je 0x4111f9
cmp ebx, 0xbc110012
je 0x4111f0
cmp ebx, 0xd3a535fb
je 0x4111e7
cmp ebx, 0xdcab1f36
je 0x4111de
cmp ebx, 0xf0cc1274
je 0x4111d5
test ebx, ebx
jne 0x411200
and dword [edi + 0xc], ebx
jmp 0x411200
mov dword [edi + 0xc], 3
jmp 0x411200
mov dword [edi + 0xc], 4
jmp 0x411200
mov dword [edi + 0xc], 5
jmp 0x411200
mov dword [edi + 0xc], 1
jmp 0x411200
mov dword [edi + 0xc], 2
mov ecx, dword [esp + 0x420]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x414
ret 8