joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001043f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100162d0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10010470
xor eax, eax
jmp 0x100105f9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10017f40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100104ac
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10010e07
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10010587
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100105c5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10010510
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10010501
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x100104e1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010550
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10010559
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100104d2
jmp 0x1001055b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100105f4
cmp dword [ebp - 0x6c], edi
je 0x100105c5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100105ba
call fcn.1000db8f
mov dword [eax], 9
call fcn.1000db98
mov dword [eax], esi
jmp 0x100105ef
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100105af
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001055b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001055b
push dword [ebp - 0x6c]
call fcn.1000dba1
pop ecx
jmp 0x100105ef
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100105dd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100105dd
xor eax, eax
jmp 0x100105f7
call fcn.1000db8f
mov dword [eax], 0x1c
call fcn.1000db98
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100105f7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000989e
add ebp, 0x3a0
leave
ret
Function at 0x4016a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x91c
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x918], eax
push ebx
push ebp
mov ebp, dword [esp + 0x928]
xor ebx, ebx
push esi
cmp edi, ebx
je 0x4017f7
cmp ebp, ebx
je 0x4017f7
push 0x800
lea eax, [esp + 0x11d]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x124], bl
call fcn.00418e90
add esp, 0xc
push 0x104
lea ecx, [esp + 0x15]
push ebx
push ecx
mov byte [esp + 0x1c], bl
call fcn.00418e90
add esp, 0xc
push edi
lea esi, [esp + 0x14]
call fcn.00411970
add esp, 4
test eax, eax
jne 0x401723
push str.IsDriverInfFiles_CanonicalizePath_failed
jmp 0x4017fc
push 0x424e50
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x120], bl
call fcn.00413f16
add esp, 0xc
cmp eax, ebx
je 0x40175d
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Open___s__failed__errno_d
call fcn.004129d0
add esp, 0xc
jmp 0x401804
mov edx, dword [esp + 0xc]
push edx
push 0x800
lea eax, [esp + 0x120]
push 1
push eax
call fcn.004144c2
add esp, 0x10
test eax, eax
jne 0x40178a
push str.fread_return_size_error
call fcn.004129d0
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004145d3
add esp, 4
lea edx, [esp + 0x118]
push 0x801
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x920], bl
call fcn.0041377b
lea eax, [esp + 0x120]
push ebp
push eax
call fcn.004139d0
add esp, 0x10
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x4017dd
push edi
push str.the_eom_inf_is__s
call fcn.00412950
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x918]
xor ecx, esp
call fcn.00413017
add esp, 0x91c
ret
push str.IsDriverInfFiles_Param_error
call fcn.004129d0
add esp, 4
mov ecx, dword [esp + 0x924]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00413017
add esp, 0x91c
ret
Function at 0x402e50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x421d31
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1cc]
push eax
push str.IsInstallDriver_run.._s
mov dword [esp + 0x24], eax
call fcn.00412950
xor ebx, ebx
mov ebp, 0xf
add esp, 8
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea esi, [esp + 0x3c]
mov dword [esp + 0x1c4], ebx
mov dword [esp + 0x18], ebx
call fcn.00410860
test eax, eax
je 0x40305c
mov eax, esi
push eax
mov edi, str.infoem.inf
lea esi, [esp + 0x5c]
call fcn.00408e30
add esp, 4
mov byte [esp + 0x1c4], 1
mov eax, dword [esp + 0x5c]
mov edi, 0x10
cmp dword [esp + 0x70], edi
jae 0x402f02
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f32
push str.IsInstallDriver_hFind_is__INVALID_HANDLE_VALUE
call fcn.00412a50
add esp, 4
mov byte [esp + 0x1c4], bl
cmp dword [esp + 0x70], edi
jmp 0x40304d
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x1c4], 2
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.004077d0
push 5
push str.Inf_
lea eax, [esp + 0x28]
call fcn.00407630
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
jmp 0x402f80
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402f80
sub eax, edx
push eax
lea ecx, [esp + 0xa4]
push ecx
lea eax, [esp + 0x28]
call fcn.00407630
cmp dword [esp + 0x38], 0x10
mov edi, dword [esp + 0x24]
jae 0x402faa
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x1c]
push edx
call fcn.004016a0
add esp, 4
test eax, eax
jne 0x402fed
push ebx
push 0x424da5
lea ecx, [esp + 0x28]
call fcn.00407f80
lea eax, [esp + 0x74]
push eax
push esi
call ebp
cmp eax, ebx
je 0x402fe1
cmp eax, 1
je 0x402f50
jmp 0x403002
push str.find_file_failed_
call fcn.004129d0
jmp 0x402fff
push str.IsDriverInfFiles_return_true_
mov dword [esp + 0x1c], 1
call fcn.00412950
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, ebx
je 0x40301a
push str.return_failed_
call fcn.004129d0
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x403032
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041300c
add esp, 4
mov byte [esp + 0x1c4], bl
cmp dword [esp + 0x70], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x40305c
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041300c
add esp, 4
push str.IsInstallDriver_exit..
call fcn.00412950
add esp, 4
cmp dword [esp + 0x54], 0x10
jb 0x40307d
mov eax, dword [esp + 0x40]
push eax
call fcn.0041300c
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.00413017
add esp, 0x1b4
ret 4
Function at 0x403920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, ecx
test esi, esi
je 0x403ab8
test edi, edi
je 0x403ab8
push str.ModifRegist_run..
call fcn.00412950
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
add esp, 4
push eax
push ecx
push esi
push str.the_Reg_dir_is__s__value_is__x_x
call fcn.00412950
add esp, 0x10
xor eax, eax
lea edx, [esp + 8]
push edx
push 0x2001f
push eax
push esi
push 0x80000002
mov dword [esp + 0x1c], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x4039d2
push esi
push str.Open_Regedit_fail_with_error_code__d
call fcn.00412950
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00413017
add esp, 0x28
ret
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.osvc
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x403a19
push esi
push str.Query_Regedit_fail_with_error_code__d
call fcn.00412950
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00413017
add esp, 0x28
ret
xor eax, eax
cmp byte [esp + 0x14], al
jne 0x403a35
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
je 0x403ac5
cmp byte [esp + eax + 0x14], 0
je 0x403a25
movzx ecx, byte [esp + eax + 0x14]
movzx edx, byte [esp + eax + 0x15]
lea eax, [esp + eax + 0x14]
shl ecx, 8
or ecx, edx
cmp ecx, 0x1ee
jne 0x403a5c
push str._the_key_value_had_been_set_
call fcn.00412950
jmp 0x403ac2
mov eax, dword [esp + 8]
push 2
push edi
push 3
push 0
push str.osvc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x403a99
push esi
push str.set_Regedit_fail_with_error_code__d
call fcn.00412950
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00413017
add esp, 0x28
ret
push str.ModifRegist_exit..
call fcn.00412950
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00413017
add esp, 0x28
ret
push str.ModifRegist_parameter_is_invalid
call fcn.004129d0
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.00413017
add esp, 0x28
ret
Function at 0x404530
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x421a36
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x2bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2cc]
push 0x63
xor ebx, ebx
lea ecx, [esp + 0x5d]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x64], 0
call fcn.00418e90
add esp, 0xc
push 0x1f3
lea edx, [esp + 0xc5]
push ebx
push edx
mov byte [esp + 0xcc], bl
call fcn.00418e90
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 0x64
mov dword [esp + 0x1c], 0x5c3a41
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp eax, ebx
jne 0x4045d2
push str.GetLogicalDriveStringsA_failed
call fcn.00412950
jmp 0x404703
mov edi, 0xf
push edi
push str.Logical_Drives:
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00407f80
mov dword [esp + 0x2c4], ebx
push ebx
push 0x424da5
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], 0
call fcn.00407f80
lea esi, [esp + 0x58]
mov eax, esi
mov byte [esp + 0x2c4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404626
sub eax, edx
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x58], cl
je 0x4046ce
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
lea esp, [esp]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404655
sub eax, edx
push eax
push esi
lea eax, [esp + 0x44]
call fcn.00407630
push 1
push 0x4256e4
lea eax, [esp + 0x44]
call fcn.00407630
push esi
call edi
cmp eax, 5
jne 0x4046ba
mov bl, byte [esi]
push 0x1f4
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], bl
call ebp
test eax, eax
je 0x4046b8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc0]
push eax
push ecx
call fcn.0041320c
add esp, 8
test eax, eax
je 0x404732
xor ebx, ebx
mov edx, dword [esp + 0x1c]
cmp byte [esi + edx + 1], 0
lea esi, [esi + edx + 1]
jne 0x404650
mov edi, 0xf
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x4046e6
mov edx, dword [esp + 0x24]
push edx
call fcn.0041300c
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], 0
cmp dword [esp + 0x54], esi
jb 0x404706
mov eax, dword [esp + 0x40]
push eax
call fcn.0041300c
add esp, 4
mov al, 0x30
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.00413017
add esp, 0x2b4
ret 4
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x40474a
mov eax, dword [esp + 0x24]
push eax
call fcn.0041300c
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
cmp dword [esp + 0x54], esi
jb 0x404772
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0041300c
add esp, 4
mov al, bl
jmp 0x404708
Function at 0x4053a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4212d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov edi, dword [esp + 0x7c]
cmp edi, dword [esp + 0x80]
jbe 0x4053f2
call fcn.00414207
mov ebp, dword [esp + 0x70]
jmp 0x405400
mov esi, dword [esp + 0x80]
cmp dword [esp + 0x7c], esi
jbe 0x405412
call fcn.00414207
cmp ebp, ebx
je 0x40541c
cmp ebp, dword [esp + 0x70]
je 0x405421
call fcn.00414207
cmp edi, esi
je 0x40554b
lea ecx, [esp + 0x1c]
push ecx
call fcn.004012c0
mov byte [esp + 0x64], 1
cmp ebp, ebx
jne 0x40553e
call fcn.00414207
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x405451
call fcn.00414207
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x28]
call fcn.004077d0
push 4
push str.NULL
lea ecx, [esp + 0x40]
call fcn.00407f80
sub esp, 0x38
mov esi, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x5c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov dword [esp + 0x58], esi
mov byte [esi + 4], bl
call fcn.004077d0
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
mov byte [esp + 0xa0], 2
push ebx
lea eax, [esp + 0x78]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004077d0
mov esi, dword [esp + 0x50]
mov ecx, esi
mov byte [esp + 0x9c], 1
call fcn.00405660
cmp eax, ebx
jne 0x4054e2
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esi + 0x64]
call fcn.00407190
xor ebx, ebx
mov esi, 0x10
mov byte [esp + 0x64], bl
cmp dword [esp + 0x50], esi
jb 0x4054fe
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041300c
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x34], esi
jb 0x405521
mov eax, dword [esp + 0x20]
push eax
call fcn.0041300c
add esp, 4
cmp ebp, ebx
jne 0x405546
call fcn.00414207
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x405536
call fcn.00414207
add edi, 0x1c
jmp 0x405400
mov eax, dword [ebp]
jmp 0x405447
mov eax, dword [ebp]
jmp 0x40552c
mov esi, dword [esp + 0x7c]
cmp esi, ebx
je 0x405595
mov edi, dword [esp + 0x80]
cmp esi, edi
je 0x405588
add esi, 0x18
cmp dword [esi], 0x10
jb 0x405572
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0041300c
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x405561
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041300c
add esp, 4
mov ecx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.0041300c
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00413017
add esp, 0x54
ret 0x1c
Function at 0x406a00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4217b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push str.FindXpHotFixList_enter...
call fcn.00412950
add esp, 4
push 0x31
xor edi, edi
lea eax, [esp + 0x3d]
push edi
push eax
mov byte [esp + 0x44], 0
call fcn.00418e90
add esp, 0xc
push edi
push 0x424da5
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0x32
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
call fcn.00407f80
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotFix
push 0x80000002
mov dword [esp + 0x8c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406ac9
push str.CheckPatchList__Err:_cmd_err
call fcn.004129d0
add esp, 4
cmp dword [esp + 0x34], 0x10
jb 0x406b69
mov edx, dword [esp + 0x20]
push edx
jmp 0x406b61
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
push edx
call ebp
mov esi, eax
lea eax, [esp + 0x38]
push 0x32
push eax
call fcn.0041377b
add esp, 8
test esi, esi
jne 0x406b2a
lea ecx, [esp + 0x38]
push str.kb909394
push ecx
call fcn.004139d0
add esp, 8
test eax, eax
jne 0x406b89
lea edx, [esp + 0x38]
push str.kb959765
push edx
call fcn.004139d0
add esp, 8
test eax, eax
jne 0x406b89
push 0x32
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00418e90
add esp, 0xc
inc edi
mov dword [esp + 0x14], 0x32
test esi, esi
je 0x406acf
push str.FindXpHotFixList_leave...
call fcn.00412950
add esp, 4
cmp dword [esp + 0x34], 0x10
jb 0x406b69
mov eax, dword [esp + 0x20]
push eax
call fcn.0041300c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00413017
add esp, 0x6c
ret
lea ecx, [esp + 0x38]
push ecx
push str.FindXpHotFixList_find_the_patch__s
call fcn.00412950
add esp, 8
cmp dword [esp + 0x34], 0x10
jb 0x406baf
mov edx, dword [esp + 0x20]
push edx
call fcn.0041300c
add esp, 4
mov eax, 1
jmp 0x406b6b
Function at 0x406bc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x421788
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42c070]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c070]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
push str.ReInstallPatch_enter...
call fcn.00412950
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00410080
mov dword [esp + 0x3c], 0
mov esi, dword [ebp + 0xa0]
cmp esi, dword [ebp + 0xa4]
jbe 0x406c27
call fcn.00414207
mov ebx, dword [ebp + 0x94]
mov edi, esi
nop
mov esi, dword [ebp + 0xa4]
cmp dword [ebp + 0xa0], esi
jbe 0x406c43
call fcn.00414207
mov eax, dword [ebp + 0x94]
test ebx, ebx
je 0x406c51
cmp ebx, eax
je 0x406c56
call fcn.00414207
cmp edi, esi
je 0x406d62
test ebx, ebx
jne 0x406cf2
call fcn.00414207
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x406c77
call fcn.00414207
cmp dword [edi + 0x70], 1
jne 0x406d3d
test ebx, ebx
jne 0x406cf9
call fcn.00414207
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x406c96
call fcn.00414207
push 0
lea eax, [edi + 0x38]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x1c]
call fcn.00407540
push 1
push 0x4256e4
mov eax, esi
call fcn.00407630
mov eax, dword [esp + 0x18]
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jae 0x406cc9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406cfd
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x406ce2
lea eax, [esp + 0x18]
push eax
push str._s_is_not_exist
call fcn.004129d0
add esp, 8
jmp 0x406d3d
mov eax, dword [ebx]
jmp 0x406c6d
mov eax, dword [ebx]
jmp 0x406c8c
test ebx, ebx
jne 0x406d5a
call fcn.00414207
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x406d12
call fcn.00414207
push 0
lea ecx, [edi + 0x54]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x1c]
call fcn.00407540
cmp dword [esp + 0x2c], 0x10
mov esi, dword [esp + 0x18]
jae 0x406d33
lea esi, [esp + 0x18]
push 1
call fcn.004106a0
add esp, 4
test ebx, ebx
jne 0x406d5e
call fcn.00414207
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x406d52
call fcn.00414207
add edi, 0x74
jmp 0x406c30
mov eax, dword [ebx]
jmp 0x406d08
mov eax, dword [ebx]
jmp 0x406d48
push str.ReInstallPatch_leave...
call fcn.00412950
add esp, 4
cmp dword [esp + 0x2c], 0x10
jb 0x406d83
mov edx, dword [esp + 0x18]
push edx
call fcn.0041300c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00413017
add esp, 0x2c
ret 4

Function at 0x408a7f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x408aba
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x408aa1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x408ab2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x408abc
inc edi
add eax, 0x28
cmp edi, esi
jb 0x408a97
xor eax, eax
pop edi
pop esi
ret
Function at 0x408e30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00408a4f
push eax
push esi
push dword [ebp + 8]
call fcn.00408a04
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00408a4f
push eax
push esi
push dword [ebp + 8]
call fcn.00408a04
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00408a3f
in eax, 0xa0
and cl, dh
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
invalid
inc ebp

Function at 0x409090
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x408fe4
cmp dword [eax + 0xc], ebx
je 0x409087
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00408a3f
mov dl, 0xe8
stc
invalid
dec dword [ebp - 0x7434f9bb]
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x409075
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x409050
and eax, 0xffff
push eax
jmp 0x409054
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408a04
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x40922e
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x409035
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x408fd6
call fcn.00408a3f
loopne 0x4090bc
and dword [ebx + 0xa0878b], ecx
add byte [eax], al
cmp eax, ebx
je 0x4090f3
add eax, esi
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh