joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041720
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x6a09e667
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xbb67ae85
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x3c6ef372
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xa54ff53a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x510e527f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0x9b05688c
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0x1f83d9ab
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret 4

Function at 0x10048168
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006d258]
jne 0x10048172
repz ret
jmp fcn.1004b489

Function at 0x100493be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100493ef
call fcn.10049758
mov dword [eax], esi
call fcn.10049745
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1004c3c2
add esp, 0x14
push 0x16
pop eax
jmp 0x10049444
test dword [ebp + 0xc], 0xfffffff9
jne 0x100493cb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004941c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004976b
pop ecx
call fcn.10049745
mov eax, dword [eax]
jmp 0x10049444
test al, 0x10
jne 0x10049442
test al, 1
je 0x10049442
test byte [ebp + 0xc], 2
je 0x10049442
call fcn.10049758
mov dword [eax], 5
call fcn.10049745
mov dword [eax], 0xd
jmp 0x10049413
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1004e44a
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1004e469
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1004e464
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1004e44e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1004e456
cmp edx, ebx
jne 0x1004e5a4
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1004e425
add eax, dword [eax + 4]
jmp 0x1004e412
mov dword [ebp + 0xc], ebx
jmp 0x1004e474
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1004e48c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1004e4aa
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1004e508
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1004e4ef
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1004e4f8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1004e502
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1004e4e4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1004e46e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1004e555
dec eax
je 0x1004e54c
sub eax, 3
je 0x1004e543
mov dword [ebp - 4], 0x40
jmp 0x1004e572
mov dword [ebp - 4], 4
jmp 0x1004e558
mov dword [ebp - 4], 0x20
jmp 0x1004e558
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1004e5a4
invalid
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1004e524
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1004ddb5
jl 0x1004e564
pop edi
jmp 0x7a195b9b
Function at 0x1004fa6a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + edi*8 - 1], esp
call dword [eax - 0x18]
push eax
jecxz 0x1004fa73
invalid
call [ecx + 0x50]
mov eax, dword [ebp - 0x550]
lea eax, [ebp + eax - 0x654]
push eax
call fcn.1004dd26
add esp, 0xc
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3a0], eax
jmp 0x1004fd2d

Function at 0x100576c7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10050744
and dword [ebp - 4], 0
cmp dword [0x10073414], 0
mov ebx, eax
jne 0x10057778
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10057829
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10057829
push eax
call fcn.100506d2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10073414], eax
call esi
push eax
call fcn.100506d2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10073418], eax
call esi
push eax
call fcn.100506d2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007341c], eax
call esi
push eax
call fcn.100506d2
pop ecx
mov dword [0x10073424], eax
test eax, eax
je 0x10057778
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100506d2
pop ecx
mov dword [0x10073420], eax
mov eax, dword [0x10073420]
cmp eax, ebx
je 0x100577d0
cmp dword [0x10073424], ebx
je 0x100577d0
push eax
call fcn.1005074d
push dword [0x10073424]
mov esi, eax
call fcn.1005074d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100577d0
test edi, edi
je 0x100577d0
call esi
test eax, eax
je 0x100577c7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100577c7
test byte [ebp - 0xc], 1
jne 0x100577d0
or dword [ebp + 0x10], 0x200000
jmp 0x10057809
mov eax, dword [0x10073418]
cmp eax, ebx
je 0x10057809
push eax
call fcn.1005074d
pop ecx
test eax, eax
je 0x10057809
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10057809
mov eax, dword [0x1007341c]
cmp eax, ebx
je 0x10057809
push eax
call fcn.1005074d
pop ecx
test eax, eax
je 0x10057809
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10073414]
call fcn.1005074d
pop ecx
test eax, eax
je 0x10057829
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1005782b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402140
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0040bd60
push ebx
push esi
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push 0x1000
push ecx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov esi, dword [esp + 0x1014]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdA]
lea edx, [esp + 0x10]
push edx
push 0x101d0
push esi
call ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push 0x1000
push ecx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryA
lea edx, [esp + 0x10]
push edx
push 0x101d1
push esi
call ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10]
push 0x1000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0x101d2
push esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x1004
ret 4

Function at 0x402230
Capabilities:
Copy file

Disassembly:
mov eax, 0x1000
call fcn.0040bd60
push ebx
push ebp
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push str.kernel32.dll
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4022f3
push esi
push str.MoveFileExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4022dd
mov edi, dword [esp + 0x1018]
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00402c70
add esp, 8
test al, al
je 0x4022dd
lea ecx, [esp + 0x10]
push 1
push ecx
push edi
call esi
test eax, eax
je 0x4022dd
mov edx, dword [esp + 0x1014]
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4022d3
push 4
lea eax, [esp + 0x14]
push 0
push eax
mov bl, 1
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov al, bl
pop ebp
pop ebx
add esp, 0x1000
ret 8
push 1
lea ecx, [esp + 0x14]
push edi
push ecx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov al, bl
pop ebp
pop ebx
add esp, 0x1000
ret 8
pop edi
mov al, bl
pop ebp
pop ebx
add esp, 0x1000
ret 8
Function at 0x402310
Capabilities:
Copy file

Disassembly:
mov eax, 0x3008
call fcn.0040bd60
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov esi, dword [esp + 0x301c]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1018]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x2018]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x18]
test esi, esi
rep stosd dword es:[edi], eax
je 0x40239d
mov ebx, dword [esp + 0x3020]
test ebx, ebx
je 0x40239d
lea eax, [esp + 0x10]
push eax
call fcn.00402d20
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 0xa
jne 0x40239d
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00402c70
add esp, 8
test al, al
jne 0x4023ac
push str.Get_Temp_File_Name_fail__
add ebp, 0x3218
push 0
push ebp
call fcn.004044c0
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x3008
ret 8
lea edx, [esp + 0x18]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40239d
lea eax, [esp + 0x1018]
push 0x1000
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x40241c
lea edx, [esp + 0x18]
push edx
push str.Get_Short_Path_Name_fail_____s_
push eax
lea eax, [ebp + 0x3218]
push eax
call fcn.004044c0
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1018]
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 + 0x2018]
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x402470
push ebx
push str.Get_Short_Path_Name_fail_____s_
add ebp, 0x3218
push eax
push ebp
call fcn.004044c0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2018]
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 + 0x1018]
push str.wininit.ini
lea edx, [esp + 0x201c]
push ecx
push edx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x3008
ret 8
Function at 0x4024a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100c
call fcn.0040bd60
push ebx
push esi
mov esi, dword [ecx + 0x3564]
push edi
test esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
je 0x402566
mov eax, dword [esp + 0x1020]
sub eax, 0
je 0x402572
sub eax, 2
jne 0x402566
mov esi, dword [ecx + 0x3568]
mov ebx, str.ConditionFileCnt
mov edi, str.C_File__d
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push ebx
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push edi
push ecx
call fcn.0040bd8f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1028]
add esp, 0xc
inc ecx
mov dword [esp + 0xc], ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
dec ecx
push ecx
push edx
push 1
lea edx, [esp + 0x24]
push eax
push edx
push esi
call edi
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ebx
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x100c
ret 8
mov ebx, str.NormalFileCnt
mov edi, str.File__d
jmp 0x4024f4
Function at 0x402630
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x832c
call fcn.0040bd60
push esi
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402d20
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, 0xa
jne 0x4027e4
mov esi, dword [esp + 0x8338]
lea ecx, [esp + 0x12c]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x402682
lea edx, [esp + 0x12c]
mov dword [esp + 0xc], edx
jmp 0x402686
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x230]
push eax
push str.NUL_s
push ecx
call fcn.0040bd8f
add esp, 0xc
lea edx, [esp + 0x334]
mov ecx, 0x2000
xor eax, eax
push str.wininit.ini
lea edi, [esp + 0x338]
push 0x8000
push edx
rep stosd dword es:[edi], eax
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor esi, esi
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x4027e4
mov al, byte [esp + 0x334]
mov dword [esp + 0x14], esi
test al, al
mov dword [esp + 0x10], esi
je 0x4027e4
lea edx, [esp + 0x334]
push ebx
push ebp
mov dword [esp + 0x10], edx
jmp 0x402705
mov edx, dword [esp + 0x10]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x238]
mov ebx, ecx
push eax
push edx
inc ebx
call fcn.004101d0
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
je 0x4027a2
lea ecx, [ebx + esi]
mov al, byte [esp + ecx + 0x33c]
lea ebp, [esp + ecx + 0x33c]
test al, al
je 0x402780
mov edx, dword [esp + 0x14]
push 0x419f28
push edx
lea eax, [esp + 0x38]
push 0x41548c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x30]
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0x18]
je 0x4027a2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
sub eax, ebx
sub eax, esi
inc eax
push eax
push ebp
push ecx
call fcn.0040bf40
add esp, 0xc
mov dword [esp + 0x1c], 1
xor ebx, ebx
add esi, ebx
mov dword [esp + 0x18], esi
mov cl, byte [esp + esi + 0x33c]
lea eax, [esp + esi + 0x33c]
test cl, cl
mov dword [esp + 0x10], eax
jne 0x402701
mov eax, dword [esp + 0x1c]
pop ebp
test eax, eax
pop ebx
je 0x4027e4
lea edx, [esp + 0x334]
push str.wininit.ini
push edx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
add esp, 0x832c
ret 4
Function at 0x402a20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4120a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jbe 0x402aa7
push esi
call fcn.0040c275
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x402a9e
lea eax, [ebp - 0x18]
lea ecx, [ebp + 8]
push eax
push ecx
push 0x41549c
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
jne 0x402a9e
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 0xd
mov dword [ebp - 0x14], eax
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0040bd46
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402c70
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0040bd60
push ebx
push esi
mov esi, dword [esp + 0x1010]
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], eax
test esi, esi
rep stosd dword es:[edi], eax
je 0x402d14
mov ebx, dword [esp + 0x1018]
test ebx, ebx
je 0x402d14
lea eax, [esp + 0x10]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402d14
push 0x5c
push esi
call fcn.0040c390
mov edx, eax
add esp, 8
test edx, edx
je 0x402ce0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi - 1]
cmp edx, ecx
je 0x402ce0
inc edx
jmp 0x402ce2
mov edx, esi
push 3
push edx
lea edx, [esp + 0x14]
push edx
call fcn.0040c290
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push ebx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
pop edi
pop esi
setne al
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1004
ret
Function at 0x402d20
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
mov edi, eax
test edi, edi
jne 0x402d6c
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x402d6c
pop edi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0xa8]
sub eax, 0
je 0x402ec3
dec eax
je 0x402e32
dec eax
jne 0x402ed0
mov edx, dword [esp + 0xc]
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x402d9e
jmp dword [eax*4 + 0x402f00]
mov dword [esi], 0xb
mov dword [esi + 4], 0xf
jmp 0x402ed0
mov dword [esi], 0xc
mov dword [esi + 4], 0xf
jmp 0x402ed0
mov eax, dword [esp + 0x10]
mov dword [esi + 4], 0x11
sub eax, 0
je 0x402df5
dec eax
je 0x402ddf
dec eax
je 0x402dea
mov dword [esi], 0xe
jmp 0x402ed0
mov dword [esi], 0x10
jmp 0x402ed0
mov dword [esi], 0xd
jmp 0x402ed0
mov dl, byte [esp + 0xa2]
xor eax, eax
cmp dl, 1
mov dword [esi + 4], 0x11
setne al
add eax, 0x12
mov dword [esi], eax
jmp 0x402ed0
mov dword [esi], 0xd
mov dword [esi + 4], 0x11
jmp 0x402ed0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402e79
cmp eax, 0xa
je 0x402e55
xor ecx, ecx
cmp eax, 0x5a
setne cl
add ecx, 9
mov dword [esi + 4], 0xa
mov dword [esi], ecx
jmp 0x402ed0
lea edx, [esp + 0x1c]
push 0x4154f8
push edx
call fcn.004101d0
add esp, 8
mov dword [esi + 4], 0xa
neg eax
sbb eax, eax
add eax, 7
mov dword [esi], eax
jmp 0x402ed0
lea eax, [esp + 0x1c]
push 0x4154f4
push eax
call fcn.004101d0
add esp, 8
test eax, eax
je 0x402eb4
lea ecx, [esp + 0x1c]
push str.Bca_
push ecx
call fcn.004101d0
add esp, 8
test eax, eax
je 0x402eb4
mov dword [esi], 3
mov dword [esi + 4], 0xa
jmp 0x402ed0
mov dword [esi], 4
mov dword [esi + 4], 0xa
jmp 0x402ed0
mov dword [esi], 2
mov dword [esi + 4], 2
call fcn.0040b7a0
test al, al
je 0x402ef2
cmp dword [esi], 0x10
jne 0x402ef2
test edi, edi
je 0x402ef2
cmp byte [esp + 0xa2], 1
jne 0x402ef2
mov dword [esi], 0xe
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret

Function at 0x403c60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403cc1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cb6
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x404430
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebp
cmp eax, 0xffffffff
mov ebp, ecx
jne 0x4044a4
push ebx
push esi
lea ebx, [ebp + 9]
push edi
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.NonDeviceInfInstaller.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, edx
push 2
push eax
and ecx, 3
push 1
push 0x40000000
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
mov dword [ebp], eax
mov dword [ebp + 4], 1
mov byte [ebp + 8], 1
pop ebx
pop ebp
ret 4
mov dword [ebp], eax
mov dword [ebp + 4], 1
pop ebp
ret 4
Function at 0x4044c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x814
push ebx
mov ebx, dword [esp + 0x81c]
cmp dword [ebx], 0xffffffff
je 0x40462d
mov eax, dword [ebx + 4]
test eax, eax
je 0x40462d
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cl, byte [0x419f28]
xor eax, eax
mov byte [esp + 0x24], cl
mov ecx, 0x1ff
lea edi, [esp + 0x25]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x800
push edx
lea eax, [esp + 0x1c]
push 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, 0x415698
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
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 + 0x834]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x834]
lea edi, [esp + 0x28]
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x2c]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [esp + 0x82c]
test esi, esi
je 0x4045d9
cmp esi, 1
jne 0x404594
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._d__
lea eax, [esp + ecx + 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x800
sub edx, ecx
lea eax, [esp + ecx + 0x24]
push edx
push eax
push esi
mov ecx, ebx
call fcn.00404640
mov edi, 0x41568c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret