joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b00
Capabilities:
Get file version info

Disassembly:
sub esp, 0x40c
lea eax, [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x41c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x411be6
cmp esi, 0x7d00
jae 0x411be6
push esi
call fcn.0044d570
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x411be6
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x411be6
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push str.StringFileInfo040904b0FileVersion
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411bcc
mov esi, dword [esp + 0xc]
test esi, esi
je 0x411be6
mov edx, dword [esp + 0x10]
cmp edx, 0x100
jae 0x411be6
test edx, edx
je 0x411be6
mov ecx, edx
lea edi, [esp + 0x18]
mov eax, ecx
mov dword [esp + edx*4 + 0x18], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0044d500
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x40c
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40c
ret 8

Function at 0x411c00
Capabilities:
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
sub esp, 0x600
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x411c2e
mov eax, dword [esp + 0x604]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x600
ret 4
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.wininit.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x618]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20c]
push edx
push 0x400
push eax
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esp + 0x10c]
push 0
push ecx
lea edx, [esp + eax + 0x214]
push str.NUL_s_c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20c]
push eax
push ecx
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
pop ebx
add esp, 0x600
ret 4
Function at 0x411cf0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x468a81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [esp + 0x240]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0xa
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.0045c599
lea eax, [esp + 0x3c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x23c], ebx
call fcn.0045ce46
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 1
push ecx
lea ecx, [esp + 0x20]
call fcn.004013a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], bl
call fcn.0045cdd8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x238], 2
cmp eax, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
je 0x411e1e
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00401310
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0045cdd8
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov ecx, ebp
call fcn.004117b0
cmp dword [esp + 0x14], ebx
jne 0x411dca
mov al, byte [esp + 0x244]
test al, 2
je 0x411e8f
mov edi, dword [esp + 0x240]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.J.LOG
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00411730
jmp 0x411ea1
test al, 1
je 0x411ea1
mov ecx, dword [esp + 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x238], 0xffffffff
call fcn.0045c60d
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 8
Function at 0x4127f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x4b4
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4129ad
cmp dword [esp + 0x18], 5
jb 0x4129ad
lea ecx, [esp + 0x2bc]
push ecx
mov ecx, ebx
call fcn.00412740
test eax, eax
jne 0x41284f
mov byte [esp + 0x2bc], al
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xae]
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xff
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x2c8]
push edx
push eax
lea ecx, [esp + 0x3d4]
push str.NT_s._d._d._d._d
push ecx
call fcn.0044cb10
mov eax, dword [esp + 0x4e4]
add esp, 0x1c
xor ebp, ebp
lea edx, [esp + 0x1b8]
push ebp
push 0x104
push edx
push 2
push eax
mov ebx, 3
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
je 0x4129ad
lea edi, [esp + 0x1b8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb4]
push ecx
call fcn.0044d7e0
lea edx, [esp + 0xb8]
lea eax, [esp + 0x3c4]
push edx
push eax
call fcn.0044d1c0
add esp, 0xc
test eax, eax
je 0x41296d
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jae 0x41296d
lea edi, [esp + 0x1b8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x4cc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov edx, dword [esp + 0x4c8]
push 0
lea ecx, [esp + 0x1bc]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call fcn.004099e0
mov ecx, eax
call fcn.0040a290
test eax, eax
jne 0x4128c4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b4
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b4
ret 8
Function at 0x427e00
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x88
push esi
xor esi, esi
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x38]
push str.push_me_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0xc], eax
je 0x427fb7
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov eax, dword [edx]
mov edx, dword [ecx]
mov eax, dword [eax - 8]
mov ecx, dword [edx - 8]
lea eax, [ecx + eax + 0x1c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x427fa2
mov edx, dword [esp + 0xa0]
push edi
test edx, 0x200000
lea esi, [esp + 0x1c]
je 0x427eab
mov edi, 0x481fa8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, ecx
jmp 0x427ec7
mov edi, 0x481fd0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test edx, 0x2000000
lea edx, [esp + 0x24]
mov edi, str._ARPWCLOSE1
jne 0x427ee9
mov edi, 0x481fcc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
lea ecx, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [edx]
push eax
push str._s_0x_X__s__s__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x70]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push ebx
push eax
mov dword [esp + 0x7c], 0x44
mov dword [esp + 0xa8], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
mov eax, dword [esp + 0x34]
push eax
call ebp
mov ecx, dword [esp + 0x30]
push ecx
call ebp
test esi, esi
pop edi
je 0x427fa2
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x427fa2
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
push eax
call ebp
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop esi
add esp, 0x88
ret
mov eax, esi
pop esi
add esp, 0x88
ret
Function at 0x42c630
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
push edi
call fcn.004318b0
test eax, eax
je 0x42c6d1
push 0
lea eax, [esp + 0x168]
push str.KINIFile::StartAnApp_n
push eax
call fcn.0044cb10
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x164]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x64]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.004318b0
mov ebp, dword [esp + 0x26c]
mov esi, dword [esp + 0x268]
test eax, eax
je 0x42c713
push ebp
push esi
lea ecx, [esp + 0x16c]
push str.pszCmdline___s__dwFlags___d_n
push ecx
call fcn.0044cb10
add esp, 0x10
lea edx, [esp + 0x164]
push edx
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
mov ebx, 1
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42c75d
xor ebx, ebx
jmp 0x42c786
mov eax, ebp
not eax
test al, 4
je 0x42c772
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
call fcn.004318b0
test eax, eax
je 0x42c81c
push ebx
lea ecx, [esp + 0x168]
push str.KINIFile::StartAnApp_:_bRetVal___d_n
push ecx
call fcn.0044cb10
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x164]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x254
ret 8
Function at 0x430440
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
push str.APPWIZ.CPL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4295ae
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x38
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x4295a5
mov edi, str.Add_Or_Remove_Programs
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4295d4
mov edi, str.Add_Or_Remove_Programs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x429450
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
add ecx, 0xd64
jmp 0x429550
Function at 0x431900
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46abd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x4855a4]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x234], 0
test edi, edi
je 0x431ac3
mov eax, dword [esp + 0x240]
test eax, eax
je 0x43195f
lea esi, [ebp + 0x1c]
push edi
mov ecx, esi
call fcn.0045cf15
jmp 0x431a14
lea ecx, [esp + 0x128]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x130]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x18]
mov byte [edx], 0
call fcn.0045ce46
mov esi, eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x238], 1
call fcn.0045ce46
push esi
lea ecx, [esp + 0x20]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x240], bl
call fcn.0045cfbb
lea esi, [ebp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x238], 3
call fcn.0045cec5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x234], bl
call fcn.0045cdd8
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
call fcn.0045cdd8
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0
call fcn.0045cdd8
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x431a33
mov eax, dword [esi]
push eax
call ebx
mov ecx, ebp
call fcn.00431b00
test eax, eax
jne 0x431ac3
push esi
lea ecx, [esp + 0x14]
call fcn.0045cec5
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0045bd8e
inc eax
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.0045b9bb
lea edx, [esp + 0x24]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0045d095
push eax
mov ecx, esi
mov byte [esp + 0x238], 4
call fcn.0045cec5
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0
call fcn.0045cdd8
mov eax, dword [esi]
push 0x80
push eax
call edi
test eax, eax
je 0x431abc
mov esi, dword [esi]
push esi
call ebx
mov ecx, ebp
call fcn.00431b00
lea ecx, [esp + 0x10]
mov dword [esp + 0x234], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret 8
Function at 0x4327c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46ac68
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov ebp, ecx
test edi, edi
jne 0x4327ea
xor eax, eax
jmp 0x432852
mov eax, dword [esp + 0x4c]
push str.IMAGE
and eax, 0xffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x432852
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x432852
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0046457c
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
push ecx
mov ecx, ebp
call fcn.00432870
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call fcn.004645b8
mov eax, esi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x43a5b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [ecx]
xor esi, esi
push edx
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43a611
push esi
push esi
mov eax, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
push esi
push ecx
push esi
lea edx, [esp + 0x1c]
push esi
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 4], esi
jne 0x43a611
mov eax, dword [esp + 8]
cmp eax, esi
mov eax, 1
je 0x43a613
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x43a700
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x1f4
push ebx
push ebp
push edi
mov edi, dword [esp + 0x204]
mov ebx, ecx
push 0x47d160
lea ecx, [edi + eax]
xor ebp, ebp
push ecx
call fcn.0044d1c0
add esp, 8
test eax, eax
je 0x43a751
push esi
mov esi, eax
sub esi, edi
lea edx, [esp + 0x10]
push esi
push edi
push edx
call fcn.0044d400
add esp, 0xc
mov byte [esp + esi + 0x10], 0
inc esi
mov ecx, ebx
push esi
push edi
call fcn.0043a700
pop esi
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.0043a5b0
test eax, eax
je 0x43a778
mov edx, dword [ebx]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov eax, 1
je 0x43a77a
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x1f4
ret 8
Function at 0x43a790
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x3f0
push ebx
push ebp
mov ebp, dword [esp + 0x3fc]
push esi
mov ebx, ecx
push ebp
xor esi, esi
call fcn.0043a570
test eax, eax
je 0x43a92f
mov eax, dword [esp + 0x408]
test eax, eax
je 0x43a7c5
push ebp
mov ecx, ebx
call fcn.0043a3e0
mov ecx, dword [ebx]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43a92f
lea edx, [esp + 0x208]
push 0x1f4
push edx
push eax
mov eax, dword [esp + 0x1c]
mov esi, 1
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x43a8e4
push edi
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x47d160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x40c]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea ecx, [esp + 0x18]
push esi
push eax
push esi
push ecx
mov ecx, ebx
call fcn.0043a790
test eax, eax
je 0x43a8b7
mov eax, dword [esp + 0x10]
mov esi, 1
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20c]
mov eax, ecx
push 0x1f4
push edx
push eax
mov eax, dword [esp + 0x20]
inc ecx
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x43a80e
pop edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x43a93d
mov edx, dword [ebx]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x43a93d
mov eax, dword [esp + 0x404]
mov esi, 1
test eax, eax
je 0x43a92f
mov eax, dword [esp + 0x40c]
test eax, eax
je 0x43a92f
push ebp
call fcn.0044d7e0
add esp, 4
mov ecx, ebx
push 0
push ebp
call fcn.0043a700
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 0x10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f0
ret 0x10