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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5cdfb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a20b
cmp dword [ebp - 8], 1
je 0x40a1e3
cmp dword [ebp - 8], 2
je 0x40a1e3
push 0xd
pop eax
jmp 0x40a20b
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x40a205
test ecx, ecx
je 0x40a200
test cl, 1
jne 0x40a1de
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x40a205
jmp 0x40a1de
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f025
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ad5d
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x562c99
call fcn.00531c89
mov esi, ecx
mov eax, dword [0x5ddb44]
mov edi, 0x5ddb50
test al, 1
jne 0x40ada6
or eax, 1
mov dword [0x5ddb44], eax
and dword [ebp - 4], 0
push 0x70
push 0
push edi
call fcn.00532330
add esp, 0xc
call fcn.0040add5
push 0x572b42
call fcn.0052f971
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x5dda05], 0
jne 0x40adcd
call fcn.0040b150
test esi, esi
jne 0x40adc0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
call fcn.0040b068
mov byte [0x5dda05], 1
mov eax, edi
call fcn.00531c57
ret

Function at 0x40ae8c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa4c
mov eax, 0x562d2e
call fcn.00531cbc
mov esi, ecx
push str.package
lea ecx, [esi + 8]
call fcn.00407f2d
test dword [eax + 0x10], 0x400000
jne 0x40aeb5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa34]
call fcn.00402387
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00532330
mov eax, dword [ebp - 0xa24]
lea ecx, [ebp - 0xa34]
add esp, 0xc
cmp dword [ebp - 0xa20], 0x10
cmovae ecx, dword [ebp - 0xa34]
add eax, ecx
cmp dword [ebp - 0xa20], 0x10
lea ecx, [ebp - 0xa34]
cmovae ecx, dword [ebp - 0xa34]
push eax
push ecx
lea ecx, [ebp - 0xa58]
call fcn.004066ea
cmp dword [eax + 0x14], 8
jb 0x40af29
mov eax, dword [eax]
push eax
push str.Software_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053012d
add esp, 0x10
lea ecx, [ebp - 0xa58]
push ebx
push 1
call fcn.004034f0
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40b010
push 0x7fe
mov word [ebp - 0xa18], ax
lea eax, [ebp - 0xa16]
push ebx
push eax
call fcn.00532330
add esp, 0xc
mov dword [ebp - 0xa1c], 0x400
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xa18]
push eax
push ebx
push ebx
push str.appinstanceuid
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b004
sub esp, 0x18
lea eax, [ebp - 0xa18]
mov ecx, esp
mov dword [ebp - 0xa40], esp
push eax
call fcn.00403499
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0x5a7870
call fcn.00402387
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0040b5d6
sub esp, 0x18
mov ecx, esp
push str.reinstall
call fcn.00402387
push 1
jmp 0x40b04d
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa3c], esp
call fcn.0040d6c0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x5a7870
call fcn.00402387
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0040b5d6
sub esp, 0x18
mov ecx, esp
push str.reinstall
call fcn.00402387
push ebx
mov ecx, esi
call fcn.0040b6eb
push ebx
push 1
lea ecx, [ebp - 0xa34]
call fcn.004023b6
call fcn.00531c6b
ret
Function at 0x40b9e2
Capabilities:
Set registry value

Disassembly:
push 0x14c
mov eax, 0x562f6d
call fcn.00531cbc
mov edi, ecx
push str.Software_
lea ecx, [ebp - 0x148]
call fcn.00402387
and dword [ebp - 4], 0
add edi, 8
push str.package
mov ecx, edi
mov dword [ebp - 0x158], edi
call fcn.00407f2d
mov esi, eax
test dword [esi + 0x10], 0x400000
jne 0x40ba29
mov esi, dword [esi]
push esi
call fcn.0040236a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x148]
call fcn.00405524
mov esi, str.InitPrefs
push esi
call fcn.0040236a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x148]
call fcn.00405524
cmp dword [ebp - 0x134], 0x10
lea ecx, [ebp - 0x14c]
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x40bc14
imul ecx, dword [edi + 4], 0x30
mov esi, dword [edi]
add ecx, esi
cmp esi, ecx
je 0x40bc14
lea ebx, [esi + 0x18]
test dword [ebx - 8], 0x400000
mov eax, esi
jne 0x40baab
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402387
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
movsx eax, byte [eax]
push eax
call fcn.00530bc2
mov edx, dword [ebp - 0x130]
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x130]
je 0x40baf9
cmp ecx, 0x10
cmovae eax, edx
movsx eax, byte [eax]
sub eax, 0x20
jmp 0x40bb02
cmp ecx, 0x10
cmovae eax, edx
movsx eax, byte [eax]
mov dword [ebp - 0x150], eax
cmp ecx, 0x10
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x130]
cmovae eax, edx
mov byte [eax], cl
mov eax, dword [ebx + 0x10]
shr eax, 0x14
test al, 1
je 0x40bb7a
test dword [ebx + 0x10], 0x400000
je 0x40bb37
mov dword [ebp - 0x150], ebx
jmp 0x40bb3f
mov eax, dword [ebx]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x11c], 0x10
lea edi, [ebp - 0x130]
mov ecx, ebx
cmovae edi, dword [ebp - 0x130]
call fcn.004083a4
push eax
push dword [ebp - 0x150]
push 1
push 0
push edi
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x158]
jmp 0x40bbf1
push 0x103
lea eax, [ebp - 0x117]
mov byte [ebp - 0x118], 0
push 0
push eax
call fcn.00532330
add esp, 0xc
lea eax, [ebp - 0x118]
push dword [ebx]
push 0x5a9258
push 0x104
push eax
call fcn.00530494
lea ecx, [ebp - 0x118]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bbbb
sub ecx, edx
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
push ecx
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x118]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.004023b6
imul eax, dword [edi + 4], 0x30
add esi, 0x30
add ebx, 0x30
add eax, dword [edi]
cmp esi, eax
jne 0x40ba9e
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.004023b6
mov eax, dword [ebp - 0x154]
call fcn.00531c6b
ret
Function at 0x40ce6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x5cdfb0]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push esi
push edi
call fcn.0040cdb2
test al, al
je 0x40cf8b
mov edi, 0x3ff
lea eax, [esp + 0x31]
xor ebx, ebx
push edi
push ebx
push eax
mov byte [esp + 0x3c], bl
call fcn.00532330
add esp, 0xc
lea eax, [ebp + 0xc]
lea esi, [edi + 1]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00531868
push 0x5a94cc
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00531281
add esp, 0x1c
mov byte [esp + 0x430], bl
lea eax, [esp + 0x431]
push edi
push ebx
push eax
call fcn.00532330
sub esp, 0xc
mov ecx, esp
push str.SystemDrive
call fcn.00402387
lea ecx, [esp + 0x2c]
call fcn.0040cdec
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x40cf11
mov eax, dword [eax]
push eax
lea eax, [esp + 0x434]
push str._scleanInstaller.txt
push eax
call fcn.0040e754
add esp, 0xc
lea ecx, [esp + 0x14]
push ebx
push 1
call fcn.004023b6
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x448]
mov dword [esp + 0x44], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push ebx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40cf68
push ebx
lea eax, [esp + 0x30]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f025
mov esp, ebp
pop ebp
ret
Function at 0x40cfa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56316a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2458
call fcn.00534e90
mov eax, dword [0x5cdfb0]
xor eax, esp
mov dword [esp + 0x2454], eax
push ebx
push esi
mov eax, dword [0x5cdfb0]
xor eax, esp
push eax
lea eax, [esp + 0x2468]
mov dword fs:[0], eax
call fcn.0040cdb2
test al, al
je 0x40d160
xor eax, eax
xor ebx, ebx
push 0x1ffe
mov word [esp + 0x460], ax
lea eax, [esp + 0x462]
push ebx
push eax
call fcn.00532330
add esp, 0xc
lea eax, [ebp + 0xc]
mov esi, 0x1000
push eax
push dword [ebp + 8]
lea eax, [esp + 0x464]
push esi
push eax
call fcn.005309ba
push 0x5a7780
lea eax, [esp + 0x470]
push esi
push eax
call fcn.005305e7
add esp, 0x1c
lea eax, [esp + 0x45c]
lea ecx, [esp + 0x2c]
push eax
call fcn.00403499
mov dword [esp + 0x2470], ebx
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x3c]
cmovae ecx, dword [esp + 0x2c]
push dword [esp + 0x28]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
lea eax, [ecx + eax*2]
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x30]
cmovae ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00404aba
push 0x3ff
lea eax, [esp + 0x61]
mov byte [esp + 0x2474], 1
push ebx
push eax
mov byte [esp + 0x68], bl
call fcn.00532330
sub esp, 0xc
mov ecx, esp
push str.SystemDrive
call fcn.00402387
lea ecx, [esp + 0x28]
call fcn.0040cdec
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x40d0d7
mov eax, dword [eax]
push eax
lea eax, [esp + 0x60]
push str._scleanInstaller.txt
push eax
call fcn.0040e754
add esp, 0xc
lea ecx, [esp + 0x10]
push ebx
push 1
call fcn.004023b6
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x74]
mov dword [esp + 0x40], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push ebx
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x58], 0x10
lea eax, [esp + 0x28]
push ebx
push eax
push dword [esp + 0x5c]
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.004023b6
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.004034f0
mov ecx, dword [esp + 0x2468]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2454]
xor ecx, esp
call fcn.0052f025
mov esp, ebp
pop ebp
ret
Function at 0x40d4d3
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x563254
call fcn.00531cbc
mov bl, dl
mov esi, ecx
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00532330
add esp, 0xc
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x74]
xor edi, edi
mov dword [ebp - 0x18], edi
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
push str.visible
call fcn.00402387
xor ecx, ecx
mov dword [ebp - 4], edi
call fcn.0040ad5d
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040b415
dec eax
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 0x5a76f4
test eax, eax
je 0x40d5bd
test bl, bl
je 0x40d5c6
push 0xffffffffffffffff
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40d572
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40d5c6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
push edi
call fcn.00402387
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x7c], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x5a9648
call fcn.00402387
mov ecx, dword [ebp - 0x18]
xor dl, dl
or dword [ebp - 4], 0xffffffff
call fcn.0040516a
add esp, 0x48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x74]
call esi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x80], esp
push edi
call fcn.00402387
sub esp, 0x18
mov dword [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x7c], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.runExecutable
call fcn.00402387
mov ecx, dword [ebp - 0x18]
xor dl, dl
or dword [ebp - 4], 0xffffffff
call fcn.0040516a
mov eax, dword [ebp - 0x18]
add esp, 0x48
call fcn.00531c6b
ret
Function at 0x40d793
Capabilities:
Get file version info

Disassembly:
push 0x254
mov eax, 0x5632bf
call fcn.00531cbc
mov esi, ecx
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push edi
push eax
mov dword [ebp - 0x260], edi
call fcn.00532330
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40d7ee
push edi
mov ecx, esi
call fcn.00403499
jmp 0x40d8db
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40d7e1
xor eax, eax
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x23c]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040e6dd
and dword [ebp - 4], 0
lea eax, [ebp - 0x224]
mov edi, dword [ebp - 0x23c]
push edi
push ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40d845
push ebx
jmp 0x40d8c9
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x25c], ebx
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x22c], ebx
push eax
push str.StringFileInfo040904b0ProductName
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x228], ebx
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push edi
call ebx
test eax, eax
je 0x40d8c7
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
push str.StringFileInfo040904b0ProductVersion
push edi
call ebx
test eax, eax
je 0x40d8c7
push dword [ebp - 0x258]
lea ecx, [ebp - 0x254]
call fcn.00403499
lea eax, [ebp - 0x254]
mov ecx, esi
push eax
call fcn.004030b5
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.004034f0
jmp 0x40d8d0
push 0
mov ecx, esi
call fcn.00403499
test edi, edi
je 0x40d8db
push edi
call fcn.00418fa8
pop ecx
mov eax, esi
call fcn.00531c6b
ret
Function at 0x40da7e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x82c
mov eax, 0x563389
call fcn.00531cbc
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x830]
push 0x5a97d8
mov dword [ebp - 0x838], edi
call fcn.00403499
xor eax, eax
mov dword [ebp - 4], edi
push 0x7fe
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push edi
push eax
call fcn.00532330
add esp, 0xc
mov dword [ebp - 0x818], 0x400
cmp dword [ebp - 0x81c], 8
lea ecx, [ebp - 0x834]
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40db3e
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
push edi
push edi
push edi
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40db3e
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
call fcn.00403499
push edi
jmp 0x40dbc1
push dword [ebp - 0x834]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp - 0x81c], 8
lea ecx, [ebp - 0x834]
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40dbab
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dbab
push dword [ebp - 0x834]
call edi
lea eax, [ebp - 0x814]
push eax
jmp 0x40dbb8
push dword [ebp - 0x834]
call edi
push 0x5a76b0
mov ecx, esi
call fcn.00403499
push 0
push 1
lea ecx, [ebp - 0x830]
call fcn.004034f0
mov eax, esi
call fcn.00531c6b
ret
Function at 0x40e469
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x254
mov eax, 0x563521
call fcn.00531cbc
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 8]
push 8
pop esi
cmp dword [ebp + 0x1c], esi
cmovae ecx, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x260]
call fcn.00402cc6
add esp, 0xc
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x25c], 0x22c
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40e58a
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403499
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x260]
call fcn.00402cc6
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], esi
cmovae eax, dword [ebp + 8]
push dword [ebp + 0x18]
push eax
push dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402e69
test eax, eax
jne 0x40e55f
push dword [ebp - 0x254]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e55f
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004034f0
push 8
test esi, esi
pop esi
jne 0x40e4da
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004034f0
call fcn.00531c6b
ret
Function at 0x416500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x416512
push 0xd
pop eax
jmp 0x416544
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41651b
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x416549
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x41655c
push 0xd
pop eax
jmp 0x4165a0
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x41656f
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x416567
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4175c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x563da6
call fcn.00531d28
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
mov dword [ebp - 4], esi
lea eax, [ebp - 0x424]
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.00532330
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x417651
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x417651
call fcn.00415f1b
mov esi, eax
jmp 0x417752
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x417674
call fcn.00415f1b
jmp 0x417745
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x41766a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x4176a7
mov esi, 0x8007000e
jmp 0x417747
push 2
push eax
mov byte [ebp - 4], 2
call fcn.004165c0
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x4176ca
push eax
lea ecx, [ebp - 0x424]
call fcn.00415ef6
jmp 0x4176f7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x4176f7
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x41769d
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x41766a
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.0041746b
mov esi, eax
test edi, edi
je 0x417752
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x41776b
lea ecx, [ebp - 0x424]
call fcn.00415ee1
mov eax, esi
call fcn.00531c7a
ret 0x10

Function at 0x421922
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x421967
call fcn.0041b0c3
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421967
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x421983
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00429b60
mov ebx, eax
test edi, edi
je 0x421981
test esi, esi
je 0x421981
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4