joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c381
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xc
mov eax, 0x4596e0
call fcn.0043cc79
lea esi, [ecx + 0x158]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00401b37
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str..part
call fcn.00401881
lea ecx, [ebp - 0x10]
call fcn.004055fb
mov edi, dword [ebp - 0x10]
test al, al
je 0x42c3ca
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.004055fb
test al, al
je 0x42c3dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [esi]
call fcn.0043e594
pop ecx
pop ecx
test eax, eax
je 0x42c413
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x42c413
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040276a
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.00401b8a
lea ecx, [edi - 0x10]
call fcn.00401b8a
xor eax, eax
call fcn.0043cc42
ret

Function at 0x42cd8d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
lea ecx, [esi + 0xec]
call fcn.004044f3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x42cddb
cmp dword [esi + 0x120], ebx
je 0x42cddb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x120]
jne 0x42cddb
mov bl, 1
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x467a50
call fcn.00404635
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d101
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
cmp dword [esi + 0xe4], 3
je 0x42d11a
xor al, al
jmp 0x42d1ac
push ebx
xor ebx, ebx
cmp dword [esi + 0x104], ebx
jne 0x42d1a9
push 0x3c
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0043dd90
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea ecx, [esi + 0xec]
mov dword [ebp - 0x3c], 0x40
call fcn.004044f3
mov dword [ebp - 0x30], eax
lea ecx, [esi + 0xf0]
mov eax, dword [ecx]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], str.open
cmp dword [eax - 0xc], ebx
je 0x42d173
call fcn.004044f3
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42d1a9
cmp dword [ebp - 8], ebx
je 0x42d1a9
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], ebx
setne al
jmp 0x42d1ab
xor al, al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d1b1
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x457552
call fcn.0043cc79
mov esi, ecx
cmp dword [esi + 0xe4], 4
je 0x42d1cf
xor al, al
jmp 0x42d250
call fcn.00402af7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402918
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x467a40
call fcn.00402eb5
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [esi + 0x100]
inc ebx
push eax
lea eax, [esi + 0xfc]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x10c]
push eax
lea edx, [esi + 0xf8]
lea ecx, [esi + 0xf4]
call fcn.0040ec6a
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00401b8a
test esi, esi
mov esi, dword [ebp - 0x14]
jne 0x42d244
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d246
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov al, bl
call fcn.0043cc42
ret

Function at 0x42e000
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x459b61
call fcn.0043cc79
mov ebx, ecx
call fcn.0042e20a
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [esi - 0xc], 0
je 0x42e06f
mov ecx, dword [ebx + 4]
cmp ecx, 6
je 0x42e03b
cmp ecx, 7
je 0x42e03b
cmp ecx, 8
je 0x42e03b
cmp ecx, 9
je 0x42e03b
cmp ecx, 0x12
jne 0x42e06f
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0043dd90
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 0x8400
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.00411415
mov al, byte [eax + 0x1c]
test al, al
je 0x42e109
call fcn.00411415
test byte [eax + 0x20], 8
je 0x42e109
lea ecx, [ebp - 0x18]
call fcn.0041108a
mov esi, eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041108a
mov edi, eax
push str.Updater_finished._Mode:
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401881
push dword [ebx + 4]
mov ecx, esi
call fcn.004110b7
mov esi, eax
push str.._Return_code:
mov ecx, esi
call fcn.00401881
push 0x467a40
mov ecx, edi
call fcn.00401881
mov ebx, dword [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call fcn.004110b7
push eax
push ecx
push edi
call fcn.00411415
mov ecx, eax
call fcn.004114cb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
jmp 0x42e10c
mov ebx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0043cc42
ret
Function at 0x42e114
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x47806c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x459b84
call fcn.0043cc79
mov esi, dword [ebp + 0x214]
call fcn.00402af7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402918
xor ebx, ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [esi]
push str.SoftwareCaphyonAdvanced_Updater_s
push eax
call fcn.0040450a
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
add esp, 0xc
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x42e1db
push 0x104
lea eax, [ebp]
push eax
push dword [0x478fc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42e1d0
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 4
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043c1a9
lea esp, [ebp + 0x20c]
pop ebp
ret 4
Function at 0x432989
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x47806c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebp
push dword [edi]
call fcn.0040e1a9
mov esi, eax
test esi, esi
jne 0x432a62
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebx
test eax, eax
jne 0x432a3d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00432989
mov esi, eax
test esi, esi
jne 0x432a62
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x432a02
jmp 0x432a3f
xor esi, esi
cmp dword [esp + 0x14], 0
je 0x432a54
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
push ebp
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.00432b0e
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.0040e207
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c1a9
add esp, 0x21c
ret 4
Function at 0x4350ea
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x298
lea ebp, [esp - 4]
mov eax, dword [0x47806c]
xor eax, ebp
mov dword [ebp + 0x298], eax
push 8
mov eax, 0x45a7af
call fcn.0043cc79
mov edi, edx
mov esi, ecx
lea eax, [ebp + 0x6c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x435135
call fcn.00402af7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402918
jmp 0x435165
push 0x5c
pop ecx
cmp word [ebp + eax*2 + 0x6a], cx
je 0x435145
mov word [ebp + eax*2 + 0x6c], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x43524e
xor ecx, ecx
mov word [ebp + eax + 0x6c], cx
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402eb5
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00402825
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4351b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x298]
xor ecx, ebp
call fcn.0043c1a9
lea esp, [ebp + 0x29c]
pop ebp
ret
call fcn.00402af7
push eax
lea ecx, [ebp - 0x10]
call fcn.00402918
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, dword [esi]
push 0
call fcn.0040484a
mov esi, dword [ebp - 0x10]
pop ecx
cmp dword [esi - 4], 1
jle 0x4351e9
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404e6a
mov esi, dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.0040628d
xor eax, eax
cmp byte [esi], al
je 0x4351fe
inc eax
cmp byte [eax + esi], 0
jne 0x4351f7
push eax
push esi
lea ecx, [ebp]
call fcn.0040611b
lea ecx, [ebp]
call fcn.004061ba
lea ecx, [ebp]
call fcn.004061ba
lea eax, [ebp + 0x274]
push eax
lea ecx, [ebp]
call fcn.0040623a
lea ecx, [ebp + 0x274]
push ecx
mov ecx, edi
call fcn.0040440c
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov al, 1
jmp 0x43518d
call fcn.0043c819
int3
Function at 0x435254
Capabilities:
Enumerate processes

Disassembly:
push 0xa7c
mov eax, 0x45a803
call fcn.0043ccad
mov dword [ebp - 0xa64], edx
mov dword [ebp - 0xa74], ecx
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0xa88], 0x467a50
mov dword [ebp - 0xa84], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x435455
mov esi, 0x22c
lea eax, [ebp - 0xa60]
push esi
push ebx
push eax
call fcn.0043dd90
add esp, 0xc
mov dword [ebp - 0xa60], esi
lea eax, [ebp - 0xa60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x435441
call fcn.00410242
test al, al
je 0x4353d4
push dword [ebp - 0xa58]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xa80], 0x467a50
mov dword [ebp - 0xa7c], esi
mov dword [ebp - 0xa78], 0x410
test esi, esi
je 0x4353ba
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, 0x46792c
mov dword [ebp - 0xa68], eax
mov dword [ebp - 0xa6c], ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x435341
mov dword [ebp - 0xa6c], ecx
lea ecx, [ebp - 0xa6c]
call fcn.00402149
jmp 0x4353ba
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43535d
mov dword [ebp - 0xa6c], 0x46792c
jmp 0x435334
lea ecx, [ebp - 0xa78]
push ecx
lea ecx, [ebp - 0x830]
push ecx
push ebx
push esi
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa6c]
mov esi, eax
mov dword [ebp - 0xa6c], 0x46792c
call fcn.00402149
test esi, esi
je 0x4353ba
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0xa74]
push dword [eax]
call fcn.0044205f
pop ecx
pop ecx
test eax, eax
jne 0x4353ba
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0xa58]
push eax
call fcn.0042dc00
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa80]
mov dword [ebp - 0xa80], 0x467a50
call fcn.00404635
jmp 0x435433
call fcn.00402af7
push eax
lea ecx, [ebp - 0xa70]
call fcn.00402918
lea eax, [ebp - 0xa70]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa58]
push eax
call fcn.00435472
mov esi, dword [ebp - 0xa70]
pop ecx
test al, al
je 0x435428
mov ecx, dword [ebp - 0xa74]
push esi
call fcn.004043ea
test eax, eax
jne 0x435428
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0xa58]
push eax
call fcn.0042dc00
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.00401b8a
lea eax, [ebp - 0xa60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4352c7
mov eax, dword [ebp - 0xa64]
cmp dword [eax + 4], ebx
setg bl
lea ecx, [ebp - 0xa88]
mov dword [ebp - 0xa88], 0x467a50
call fcn.00404635
mov al, bl
call fcn.0043cc57
ret
Function at 0x4356ad
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x24c
mov eax, 0x45a8d3
call fcn.0043ccad
mov dword [ebp - 0x248], edx
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x4356d1
xor al, al
jmp 0x4358d3
xor ebx, ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x238]
mov dword [ebp - 4], ebx
call fcn.00435254
mov edi, ebx
mov byte [ebp - 0x21d], bl
mov ebx, dword [ebp - 0x238]
cmp dword [ebp - 0x234], edi
jle 0x4358c2
test edi, edi
js 0x4358d9
cmp edi, dword [ebp - 0x234]
jge 0x4358d9
push dword [ebx + edi*4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x258], 0x467a50
mov dword [ebp - 0x254], eax
xor eax, eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
mov esi, dword [ebx + edi*4]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
call fcn.00402af7
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402918
mov byte [ebp - 4], 3
cmp dword [ebp - 0x22c], 0
mov dword [ebp - 0x244], esi
je 0x4357a5
push dword [ebp - 0x22c]
call fcn.00441e39
and dword [ebp - 0x22c], 0
pop ecx
push dword [ebp - 0x248]
and dword [ebp - 0x228], 0
lea eax, [ebp - 0x22c]
and dword [ebp - 0x224], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x240], eax
call fcn.00402825
lea eax, [ebp - 0x244]
push eax
push 0x435515
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
xor esi, esi
cmp dword [ebp - 0x228], esi
jle 0x435872
mov ebx, dword [ebp - 0x24c]
push esi
lea ecx, [ebp - 0x22c]
call fcn.0040301c
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x435863
test ebx, ebx
je 0x435863
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x250], 0x103
jne 0x435863
push esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 0x21d], 1
call fcn.0040301c
push 0
push 0
push 0x10
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
inc esi
cmp esi, dword [ebp - 0x228]
jl 0x435800
mov ebx, dword [ebp - 0x238]
cmp dword [ebp - 0x22c], 0
je 0x43588e
push dword [ebp - 0x22c]
call fcn.00441e39
and dword [ebp - 0x22c], 0
pop ecx
and dword [ebp - 0x228], 0
lea ecx, [ebp - 0x258]
and dword [ebp - 0x224], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x258], 0x467a50
call fcn.00404635
inc edi
cmp edi, dword [ebp - 0x234]
jl 0x43570d
test ebx, ebx
je 0x4358cd
push ebx
call fcn.00441e39
pop ecx
mov al, byte [ebp - 0x21d]
call fcn.0043cc57
ret
push 1
push 0xc000008c
call fcn.004021db
int3
Function at 0x4358e6
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
and dword [ebp - 4], 0
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
push 0x4363f7
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], 0
jne 0x435921
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x4358f1
jmp 0x43592a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435fca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x45aa00
call fcn.0043cc79
mov dword [ebp - 0x14], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x20], 0x46792c
mov dword [ebp - 0x1c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x436074
push 0xa
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x436074
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
call fcn.00402af7
push eax
lea ecx, [ebp - 0x18]
call fcn.00402918
mov byte [ebp - 4], 1
test ebx, ebx
je 0x436069
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x436069
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x436069
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041515f
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040efeb
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x46792c
call fcn.00402149
call fcn.0043cc42
ret
Function at 0x436089
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x45aa53
call fcn.0043cc79
mov dword [ebp - 0x20], edx
mov esi, ecx
call fcn.00402af7
push eax
lea ecx, [ebp - 0x24]
call fcn.00402918
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00402af7
push eax
lea ecx, [ebp - 0x28]
call fcn.00402918
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x2c]
call fcn.0043624f
mov edi, dword [ebp - 0x28]
add esp, 0xc
test al, al
je 0x436234
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x436234
mov eax, 0x104
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
push eax
mov byte [ebp - 4], 2
call fcn.0043c1e2
mov esi, eax
pop ecx
mov dword [ebp - 0x30], esi
jmp 0x43614a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4361b0
push esi
mov byte [ebp - 4], 2
call fcn.0043c1dd
push dword [ebp - 0x14]
call fcn.0043c1e2
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436124
cmp dword [ebp - 0x18], 1
je 0x4361eb
cmp dword [ebp - 0x18], 2
je 0x4361eb
cmp dword [ebp - 0x18], 7
jne 0x4361c2
mov ecx, dword [ebp - 0x14]
lea eax, [ecx - 1]
test eax, eax
je 0x436197
cmp byte [ebx + esi], 0
jne 0x43618f
mov byte [ebx + esi], 0xa
mov ecx, dword [ebp - 0x14]
inc ebx
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x436182
lea ebx, [ecx - 1]
call fcn.00402af7
push eax
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004028b4
mov byte [ebp - 4], 5
jmp 0x436203
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0043c1dd
pop ecx
jmp 0x43622c
cmp dword [ebp - 0x14], 0
jbe 0x4361da
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040415a
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x4361c8
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.00404935
mov byte [ebp - 4], 6
jmp 0x436206
mov ebx, dword [ebp - 0x14]
dec ebx
call fcn.00402af7
push eax
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004028b4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00402825
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
push esi
call fcn.0043c1dd
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [ebp - 0x3c]
call fcn.004021be
lea ecx, [edi - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov al, bl
call fcn.0043cc42
ret
Function at 0x43744f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea eax, [ecx - 0x68]
neg esi
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x437491
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x437481
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x437498
cmp dword [esp + 0xc], 0
jne 0x437491
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x4374af
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [esi + 0x68]
push eax
call fcn.00437971
xor eax, eax
pop esi
ret 0x10

Function at 0x439427
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 8], 0xfeff
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x439470
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
push 2
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x439478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x467a50
call fcn.00404635
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x43cc32
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x474c70
call fcn.0043d1f0
push 1
call fcn.0043c4f4
pop ecx
test al, al
jne 0x43cae9
push 7
call fcn.0043ce8e
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0043c4bf
mov byte [ebp - 0x24], al
mov eax, dword [0x4792d8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x43cae2
test eax, eax
jne 0x43cb53
mov dword [0x4792d8], ecx
push 0x45c590
push 0x45c56c
call fcn.00447e3c
pop ecx
pop ecx
test eax, eax
je 0x43cb36
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43cc2c
push 0x45c568
push 0x45c518
call fcn.00447de0
pop ecx
pop ecx
mov dword [0x4792d8], 2
jmp 0x43cb58
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0043c661
pop ecx
call fcn.0043d3cc
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x43cb88
push esi
call fcn.0043c5d7
pop ecx
test al, al
je 0x43cb88
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0043cc3c
call esi
call fcn.0043d3d2
mov esi, eax
cmp dword [esi], edi
je 0x43cba6
push esi
call fcn.0043c5d7
pop ecx
test al, al
je 0x43cba6
push dword [esi]
call fcn.004471a1
pop ecx
call fcn.0043cfaa
movzx eax, ax
push eax
call fcn.00447d9a
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004470b0
test al, al
jne 0x43cbd1
push esi
call fcn.004471d9
test bl, bl
jne 0x43cbda
call fcn.0044717c
push edi
push 1
call fcn.0043c67e
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43cc2c
call fcn.0043d236
ret
call fcn.0043d317
jmp 0x43caca
Function at 0x440331
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x45eccc
push 0x45ecc4
push str.FlsAlloc
push 0
call fcn.004402b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440363
push dword [ebp + 8]
mov ecx, esi
call fcn.0043cc3c
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4403a5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x45ecdc
push 0x45ecd4
push str.FlsGetValue
push 2
call fcn.004402b1
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4403d6
mov ecx, esi
call fcn.0043cc3c
call esi
jmp 0x4403dc
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4403df
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x45ece4
push 0x45ecdc
push str.FlsSetValue
push 3
call fcn.004402b1
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x440413
mov ecx, esi
call fcn.0043cc3c
call esi
jmp 0x440419
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret