joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ecf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4385e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x44a1e0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x1a
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40ee86
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ed55
mov ecx, 0xa
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x134], 0
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x43cb00
push ecx
mov byte [esp + 0x140], 1
call fcn.00402930
mov edx, dword [0x44b18c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x20]
push str._swniewnie.exe
push edx
call fcn.00402930
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x14]
add esp, 0x18
push str.wnie
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00404b60
mov eax, dword [eax]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push 0
push eax
push 0
push 1
push 0x43cb20
push esi
push edi
mov ecx, ebx
mov byte [esp + 0x150], 2
call fcn.0040d830
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov eax, 1
call fcn.0041c40e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f780
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x78
mov eax, dword [0x44a1e0]
push ebp
mov dword [esp + 0x78], eax
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f7bf
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x74]
call fcn.0041c40e
add esp, 0x78
ret
mov edx, dword [esp + 4]
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x1c], 0
mov ecx, 0xc
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [esp + 0x50], 0
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
push 0x32
lea ecx, [esp + 0x54]
push ecx
xor ebx, ebx
push ebx
push edx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40f88a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f872
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push str.Ime_File
push edx
mov dword [esp + 0x30], 0x32
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041d2f4
mov eax, dword [ebp + 0xc]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0041cbad
add esp, 0xc
test eax, eax
je 0x40f89d
mov ecx, dword [esp + 0x10]
push 0x32
lea eax, [esp + 0x54]
push eax
inc ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40f811
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x74]
call fcn.0041c40e
add esp, 0x78
ret
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword [ebp + 0x28], eax
pop ebp
call fcn.0041c40e
add esp, 0x78
ret

Function at 0x40f8c0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f915
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40f90e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f92f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4
Function at 0x40fb60
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x44b18c]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
push edi
push esi
add ecx, 4
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00406370
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x40fbb0
mov dword [esi + 0x40], 1
pop edi
pop esi
pop ecx
ret

Function at 0x40fe00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x44a1e0]
push ebx
push esi
push edi
mov dword [esp + 0x118], eax
push 0x104
lea eax, [esp + 0x18]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x14]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fe30
mov cx, word [0x43ac14]
mov eax, dword [ebx + 0xc]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe47
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fe55
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [0x44b18c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x18]
call fcn.004088e0
test eax, eax
je 0x40fede
mov ecx, dword [0x44b18c]
mov ecx, dword [ecx + 0x18]
lea eax, [esp + 0x10]
push eax
call fcn.00408910
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402e80
mov ecx, ebx
call fcn.0040f8c0
test eax, eax
jne 0x40feb5
mov dword [ebx + 0x44], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44b18c]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.00408930
mov ecx, dword [esp + 0x118]
call fcn.0041c40e
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402e80
mov ecx, ebx
call fcn.0040f8c0
test eax, eax
jne 0x40ff01
mov dword [ebx + 0x44], 1
mov ecx, dword [esp + 0x118]
call fcn.0041c40e
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x410290
Capabilities:
Check if file exists
Manipulate boot configuration

Disassembly:
push 0xffffffffffffffff
push 0x438688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [0x44b18c]
mov edx, dword [ecx + 0x14]
push edi
lea eax, [esi + 0x14]
push eax
add edx, 4
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00406370
push str.delboot.ini
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x24], 0
call fcn.00404b60
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fafe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x40fb09
mov dword [esi + 0x48], 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
mov esi, ecx
mov eax, dword [esi]
push 0x43aa4f
push eax
call fcn.0041cbad
add esp, 8
test eax, eax
je 0x4102ae
mov ecx, esi
call fcn.0040fb20
mov eax, dword [esi + 0xc]
push 0x43aa4f
push eax
call fcn.0041cbad
add esp, 8
test eax, eax
je 0x4102ca
mov ecx, esi
call fcn.0040fe00
mov ecx, esi
pop esi
jmp 0x40fa60
Function at 0x410440
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4387a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [esp + 0x1c], edi
lea ebp, [esi + 4]
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 1
lea ebx, [esi + 8]
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 2
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x1c], 3
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x1c], 4
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x1c], 5
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x1c], 6
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x1c], 7
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x1c], 8
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x1c], 9
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
push edi
push 0x43aa4f
mov ecx, esi
mov byte [esp + 0x24], 0xb
call fcn.00402330
push edi
push 0x43aa4f
mov ecx, ebp
call fcn.00402330
push edi
push 0x43aa4f
mov ecx, ebx
call fcn.00402330
push edi
push 0x43aa4f
lea ecx, [esi + 0x18]
call fcn.00402330
push edi
push 0x43aa4f
lea ecx, [esi + 0x30]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.00402330
push edi
push 0x43aa4f
lea ecx, [esi + 0x34]
call fcn.00402330
push edi
push 0x43aa4f
lea ecx, [esi + 0x38]
call fcn.00402330
push edi
push 0x43aa4f
lea ecx, [esi + 0x3c]
call fcn.00402330
mov eax, 1
push edi
push 0x43aa4f
lea ecx, [esi + 0x10]
mov dword [esi + 0x40], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.00402330
push edi
push 0x43aa4f
lea ecx, [esi + 0x14]
call fcn.00402330
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4114d0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x234
mov eax, dword [0x44a1e0]
push edi
mov edi, dword [esp + 0x23c]
test edi, edi
mov dword [esp + 0x234], eax
mov dword [esp + 4], ecx
je 0x41169a
mov eax, dword [esp + 0x240]
test eax, eax
je 0x41169a
push ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0x410ae0
push 0x410ad0
push 0x410ac0
push 0x410ab0
push 0x410aa0
push 0x410a90
push 0x410a80
call sub.Cabinet.dll_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x411555
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.0041c40e
add esp, 0x234
ret 0xc
push esi
push 0
push 0x8020
push edi
call fcn.0041e145
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x411590
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
xor eax, eax
pop edi
mov ecx, dword [esp + 0x230]
call fcn.0041c40e
add esp, 0x234
ret 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x4115b4
push esi
call fcn.0041e71c
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x411576
push ebx
push esi
call fcn.0041e71c
push 0x5c
push edi
call fcn.0041ea50
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
add esp, 0xc
test esi, esi
lea edx, [esp + 0x13c]
jne 0x4115eb
push edi
push edx
call ebx
push 0x43aa4f
lea eax, [esp + 0x3c]
push eax
call ebx
jmp 0x41160b
lea ecx, [esi + 1]
push ecx
push edx
call ebx
sub esi, edi
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.0041e920
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edx, dword [esp + 0x24c]
push edx
push 0x44b2e0
call ebx
mov eax, dword [esp + 0x250]
test eax, eax
je 0x41162d
push eax
push 0x44b1d8
call ebx
push 0x44b2e0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop ebx
jne 0x411649
push eax
push 0x44b2e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x410af0
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ebp
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push ebp
jne 0x41156e
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.0041c40e
add esp, 0x234
ret 0xc
mov ecx, dword [esp + 0x234]
xor eax, eax
pop edi
call fcn.0041c40e
add esp, 0x234
ret 0xc
Function at 0x4119a0
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x44a1e0]
push esi
push edi
mov dword [esp + 0x11c], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x4119e3
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x4119ea
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x411a0a
mov ecx, dword [esp + 0x11c]
call fcn.0041c40e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411a10
mov edx, dword [0x43c9f0]
mov eax, dword [0x43c9f4]
mov cx, word [0x43c9f8]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411a38
mov edx, dword [0x43ce7c]
mov eax, dword [0x43ce80]
push ecx
mov dword [edi], edx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [edi + 4], eax
call fcn.00402e80
mov ecx, esi
call fcn.004116d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.0041c40e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x411a90
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x44a1e0]
push esi
push edi
mov dword [esp + 0x11c], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x411ad3
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x411ada
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x411afa
mov ecx, dword [esp + 0x11c]
call fcn.0041c40e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411b00
mov edx, dword [0x43c9f0]
mov eax, dword [0x43c9f4]
mov cx, word [0x43c9f8]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411b28
mov edx, dword [0x43ce84]
mov eax, dword [0x43ce88]
push ecx
mov dword [edi], edx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [edi + 4], eax
call fcn.00402e80
mov ecx, esi
call fcn.004116d0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.0041c40e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411db3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x400
xor ebx, ebx
push ebx
mov esi, 0x44b3f0
push esi
call fcn.0041eca0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411e33
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411e2a
cmp dword [ebp - 4], 1
je 0x411e2a
cmp dword [ebp - 4], 2
je 0x411e2a
cmp dword [ebp - 4], 7
je 0x411e2a
mov byte [0x44b3f0], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x411e5d
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411f1f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x411f06
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411efa
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0xc], 1
jne 0x411f16
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x4121fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x412210
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x412222
xor eax, eax
jmp 0x412254
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x412246
cmp esi, eax
jae 0x41221e
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x412238
cmp esi, eax
jae 0x41221e
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x413536
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x413589
call fcn.00434642
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x413589
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41357f
xor eax, eax
jmp 0x4136a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4135b9
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4135b9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41369f
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4135e6
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00412417
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41369f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41362f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41362f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x413629
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00412417
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41368f
and dword [ebp + 0xc], 0
jmp 0x41368f
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41368f
push 0xc
call fcn.0042f85a
mov esi, eax
test esi, esi
pop ecx
je 0x413671
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x413673
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41368a
push dword [ebp - 8]
call fcn.0042a585
jmp 0x41368f
call fcn.0042a55c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4135f4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc