joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405438
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004056f6
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405477
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423768], eax
jmp 0x405601
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405491
test eax, eax
je 0x4055af
test bl, 2
je 0x4055af
mov esi, 0x420ce0
push edi
push esi
call fcn.00405b78
cmp dword [ebp + 8], 0
je 0x4054b0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054b6
push edi
call fcn.0040564f
cmp byte [edi], 0
jne 0x4054c4
cmp byte [0x420ce0], 0x5c
jne 0x4054cf
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055a5
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405633
cmp byte [eax], 0
je 0x405515
cmp byte [ebp - 0x1c], 0
je 0x405515
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40552b
mov al, byte [esi + 1]
test al, al
je 0x405584
cmp al, 0x2e
jne 0x40552b
cmp byte [esi + 2], 0
je 0x405584
push esi
push ebx
call fcn.00405b78
test byte [ebp - 0x14c], 0x10
je 0x405550
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405584
push dword [ebp + 0xc]
push edi
call fcn.00405438
jmp 0x405584
push dword [ebp - 4]
push edi
call fcn.004053f0
test eax, eax
jne 0x40557c
cmp dword [ebp - 4], eax
je 0x405574
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push 0
push edi
call fcn.00405a2c
jmp 0x405584
inc dword [0x423768]
jmp 0x405584
push edi
push 0xfffffffffffffff2
call fcn.00404e63
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054f3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055af
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405601
cmp dword [ebp - 0xc], esi
jne 0x4055c3
inc dword [0x423768]
jmp 0x405601
push edi
call fcn.00405e7c
test eax, eax
je 0x405601
push edi
call fcn.00405608
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053f0
test eax, eax
jne 0x4055f9
cmp dword [ebp - 4], esi
je 0x4055bb
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push esi
push edi
call fcn.00405a2c
jmp 0x405601
push edi
push 0xffffffffffffffe5
call fcn.00404e63
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4210e0
push esi
call fcn.00405b78
push esi
call fcn.004056a1
mov edi, eax
test edi, edi
jne 0x405717
xor eax, eax
jmp 0x405769
push edi
call fcn.00405de3
test byte [0x4236f8], 0x80
je 0x405730
mov al, byte [edi]
test al, al
je 0x405713
cmp al, 0x5c
je 0x405713
sub edi, esi
jmp 0x405748
call fcn.00405e7c
test eax, eax
je 0x405742
test byte [eax], 0x10
je 0x405713
push esi
call fcn.0040564f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405734
call fcn.00405608
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405803
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405809
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405838
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409384]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40587d
test edi, edi
jne 0x405843
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405877
Function at 0x4058b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x421a68
push 0x4093a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058ff
push 1
push 0
push esi
call fcn.00405809
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a26
cmp eax, ebx
jg 0x405a26
mov esi, 0x421e68
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a26
cmp eax, ebx
jg 0x405a26
push esi
push edi
push str._s_s_r_n
push 0x421668
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4236f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b9a
push 4
push 0xc0000000
push esi
call fcn.00405809
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a26
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a1f
push edi
push esi
push ebp
call fcn.00405881
test eax, eax
je 0x405a1f
push str._Rename__r_n
push esi
call fcn.0040576e
test eax, eax
jne 0x4059b5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059ea
add eax, 0xa
push 0x409388
push eax
call fcn.0040576e
mov ebp, eax
test ebp, ebp
je 0x4059e6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059d7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059d1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059ec
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421668
push eax
call fcn.004057c4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ad0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405abf
cmp dword [ebp + 0x14], 1
je 0x405ac1
cmp dword [ebp + 0x14], 2
je 0x405ac1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42226c], 0
push esi
jne 0x405f4c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f26
mov dword [ecx*4 + 0x422268], eax
inc ecx
cmp ecx, 0x100
jl 0x405f21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f7d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422268]
xor eax, esi
inc ecx
dec edx
jne 0x405f5f
pop edi
not eax
pop esi
ret 0xc
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x406e38
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
sub eax, 3
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
je 0x406e8b
lea eax, [esp + 4]
push eax
push esp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, dword [edx + ebp]
je 0x406ecf
mov eax, 0x406e86
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesA
test eax, eax
jne 0x406ea4
jmp 0x406ecf
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x789693]
xchg ebx, eax
xchg esi, eax
js 0x406ea8
sub eax, 0x783648
add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
in al, dx
in al, dx
mov eax, 0
mov dx, cs
push dx
push ecx
jmp 0x406e89
add byte [eax], al
add byte [eax], al
or eax, 0x8f6705e3
mov ch, 0x41
outsd dx, dword [esi]
mov dword [0x82007028], eax
add byte [edx + 0xf43500], dl
cmp dword [eax], edx
cmp dword [edx], ebp
jge 0x406f3b
nop
add byte [edx - 0x76], ch
in eax, 0x1c
fiadd dword ds:[ecx + 0x590080e7]
add eax, ecx
sub dword [eax + 0xd00f000], esp
jno 0x406eb9
ror edx, 1
mov word [esi], gs
pop edx
or byte [0xbaaf01c8], ch
hlt
invalid
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x42b4c6
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0042b545
jae 0x42b4d2
xor ecx, ecx
call fcn.0042b545
jae 0x42b4fc
xor eax, eax
call fcn.0042b545
jae 0x42b50d
mov al, 0x10
call fcn.0042b545
adc al, al
jae 0x42b4ee
jne 0x42b53a
stosb byte es:[edi], al
jmp 0x42b4d3
call fcn.0042b551
dec ecx
loop 0x42b519
mov eax, ebp
call fcn.0042b54f
jmp 0x42b53b
lodsb al, byte [esi]
shr eax, 1
je 0x42b561
adc ecx, 2
mov ebp, eax
jmp 0x42b53b
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0042b54f
cmp eax, 0x7d00
jae 0x42b539
cmp eax, 0x500
jae 0x42b53a
cmp eax, 0x7f
ja 0x42b53b
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x42b4d3
pop ebp
ret 8
Function at 0x402353
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push 0
push 4
push 0
push 0
push 0x432b4c
mov esi, ecx
call fcn.004102c8
mov dword [esi + 8], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 8]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ebx, ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x40238e
cmp dword [eax + 0x20], 0
jne 0x40239e
cmp ebx, 0x14
jge 0x40239e
push 0x64
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402381
mov ecx, dword [eax + 0x20]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x10], eax
pop esi
pop ebx
ret

Function at 0x402a16
Capabilities:
Get file version info

Disassembly:
push 0x3c
mov eax, 0x42f745
call fcn.004199aa
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
call fcn.0040861a
pop ecx
mov esi, eax
push esi
push edi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x402aa4
push dword [ebp + 0xc]
push 0x432f28
push 0x4423fc
call fcn.00401485
add esp, 0xc
mov ecx, 0x442358
call fcn.00406721
push esi
call fcn.0040860f
pop ecx
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040103e
mov eax, esi
call fcn.00419a82
ret 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x432e90
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xa]
mov dword [ebp - 0x38], ecx
movzx ecx, word [eax + 8]
mov dword [ebp - 0x34], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
call fcn.0040860f
pop ecx
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x432f24
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00402963
mov esi, 0x4327f8
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004023e5
test eax, eax
je 0x402b5a
lea ebx, [ebp - 0x48]
push dword [ebp - 0x10]
call fcn.00419aca
pop ecx
mov dword [ebx], eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00402963
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401435
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040103e
push esi
lea ecx, [ebp - 0x10]
add ebx, 4
call fcn.004023e5
test eax, eax
jne 0x402b12
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004022c3
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
test eax, eax
je 0x402b81
call fcn.0040103e
xor esi, esi
inc esi
jmp 0x402a84
call fcn.0040103e
jmp 0x402a82
Function at 0x403ba8
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x42f9c8
call fcn.00419a49
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.004089b3
push eax
lea ecx, [ebp - 0x220]
call fcn.00401217
xor ebx, ebx
push ebx
lea ecx, [esi + 8]
push 0x4334b0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x22c], ecx
call fcn.0040360e
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 1
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x230], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040861a
pop ecx
mov dword [ebp - 0x228], eax
cmp eax, ebx
je 0x403c55
mov ecx, dword [ebp - 0x230]
add ecx, ecx
push ecx
push ebx
push eax
call fcn.00419d30
add esp, 0xc
push dword [ebp - 0x228]
push dword [ebp - 0x230]
call esi
cmp eax, ebx
seta al
cmp al, bl
jne 0x403c65
push dword [ebp - 0x228]
call fcn.0040860f
jmp 0x403df4
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.00419d30
push str.TRANSFORMS_
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00419f38
push dword [ebp - 0x228]
call fcn.0041959b
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041959b
lea esi, [esi + eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040861a
add esp, 0x24
mov dword [ebp - 0x224], eax
cmp eax, ebx
je 0x403d09
lea ecx, [esi + esi]
push ecx
push ebx
push eax
call fcn.00419d30
push dword [ebp - 0x228]
push esi
push dword [ebp - 0x224]
call fcn.00419f38
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
call fcn.00419ebb
add esp, 0x24
mov eax, dword [ebp - 0x234]
cmp eax, 0xffffffff
jne 0x403d43
mov eax, dword [edi]
xor esi, esi
cmp dword [eax - 0xc], ebx
jne 0x403d35
lea eax, [ebp - 0x220]
push str.TRANSFORMS__
push eax
call fcn.00401485
pop ecx
pop ecx
jmp 0x403dc8
push eax
push dword [ebp - 0x224]
push str.TRANSFORMS__s_s_
jmp 0x403db9
mov ecx, dword [ebp - 0x22c]
add eax, 0xa
push eax
push 0x22
call fcn.004035da
mov esi, eax
mov eax, dword [edi]
inc esi
cmp dword [eax - 0xc], ebx
jne 0x403d75
push eax
lea eax, [ebp - 0x220]
push 0x433444
push eax
call fcn.00401485
add esp, 0xc
jmp 0x403dc8
mov ecx, dword [ebp - 0x22c]
push esi
push 0x5c
call fcn.004035da
cmp eax, 0xffffffff
jne 0x403dac
push dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push dword [edi]
push dword [ebp - 0x224]
push str._s_s__s_
push eax
call fcn.00401485
add esp, 0x14
jmp 0x403dc8
push dword [edi]
push dword [ebp - 0x224]
push 0x433424
lea eax, [ebp - 0x220]
push eax
call fcn.00401485
add esp, 0x10
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.0040386d
mov dword [ebp - 4], ebx
push dword [ebp - 0x224]
call fcn.0040860f
push dword [ebp - 0x228]
call fcn.0040860f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040103e
call fcn.00419aa5
ret 4
Function at 0x404344
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x42fab4
call fcn.004199aa
xor edi, edi
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.00401ab9
mov esi, 0x433830
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00403eb3
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.00403b28
push esi
lea ecx, [ebp - 0x18]
call fcn.00403eb3
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040233d
push eax
push esi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x4043bd
mov ecx, dword [ebp + 8]
call fcn.00401335
jmp 0x40444f
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x4043b0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040233d
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x4043b0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], edi
je 0x4043b0
call fcn.004089b3
push eax
lea ecx, [ebp + 0x10]
call fcn.00401217
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00401349
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004011ea
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.004017c5
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040103e
cmp dword [ebp - 0x10], edi
je 0x40445c
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x404469
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040103e
mov eax, dword [ebp + 8]
call fcn.00419a82
ret 0xc
Function at 0x405140
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x42fcc3
call fcn.004199aa
xor esi, esi
cmp dword [0x44241c], esi
je 0x405160
call fcn.00404e0d
jmp 0x405240
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], esi
call fcn.0040447f
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00419d30
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x68], 0x44
call fcn.00419d30
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401349
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4051ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x4423fc
call fcn.00401485
add esp, 0x10
mov ecx, 0x442358
call fcn.00406721
mov eax, dword [ebp - 0x14]
mov dword [0x442474], eax
jmp 0x405235
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
cmp eax, 0xbc2
jne 0x405220
cmp dword [0x442410], esi
jne 0x405220
mov dword [0x442410], 1
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x442474], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103e
call fcn.00419a82
ret