joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028b3
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x402a5f
Capabilities:
Read file on windows

Disassembly:
push 0x4d8
mov eax, 0x4b71fe
call fcn.00495a70
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x4e4], esi
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], ebx
mov word [ebp - 0x470], ax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x402b88
push 0x3ff
lea eax, [ebp - 0x453]
push ebx
push eax
mov byte [ebp - 0x454], bl
call fcn.00495b20
push 0x4c130c
push edi
call fcn.004964a2
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x402b88
lea ecx, [ebp - 0x4dc]
call fcn.0049168f
mov esi, 0x400
jmp 0x402afb
push eax
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.00491d82
push edi
push esi
lea eax, [ebp - 0x454]
push 1
push eax
call fcn.004963c7
add esp, 0x10
cmp eax, ebx
jne 0x402ae8
push edi
call fcn.00496109
pop ecx
lea ecx, [ebp - 0x4dc]
call fcn.0040297f
mov dword [ebp - 0x4e0], eax
xor eax, eax
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call fcn.00495b20
add esp, 0xc
xor edi, edi
lea esi, [ebp - 0x54]
mov eax, dword [ebp - 0x4e0]
movzx eax, byte [edi + eax]
push eax
push 0x4c1300
push 3
push esi
call fcn.00495fcc
add esp, 0x10
inc edi
add esi, 4
cmp edi, 0x10
jl 0x402b44
lea eax, [ebp - 0x54]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x470]
call fcn.00402570
mov esi, dword [ebp - 0x4e4]
lea eax, [ebp - 0x470]
push eax
mov ecx, esi
call fcn.0040267b
push ebx
push 1
lea ecx, [ebp - 0x470]
call fcn.00401129
mov eax, esi
call fcn.00495af3
ret

Function at 0x402d54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x5016e0]
cmp dword [0x5016e0], 0x64
mov eax, ecx
jl 0x402db5
and dword [0x5016e0], 0
push esi
lea esi, [eax + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x402d8a
mov eax, dword [esi]
jmp 0x402d8c
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x402db4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jbe 0x402db4
cmp dword [esi + 0x14], 8
jb 0x402dad
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959f8
leave
ret 4
Function at 0x403405
Capabilities:
Delete file

Disassembly:
push 0xe88
mov eax, 0x4b72d2
call fcn.00495a70
cmp dword [ebp + 8], 0xffffffff
mov edi, ecx
jne 0x4031fe
mov dword [ebp + 8], SysReAllocString
lea eax, [ebp - 0xe94]
push eax
call fcn.00496768
mov dword [ebp - 0xe94], eax
lea eax, [ebp - 0xe94]
push eax
mov dword [ebp - 0xe90], edx
call fcn.00496741
cmp dword [edi + 0x30], 8
pop ecx
pop ecx
mov esi, eax
jb 0x403231
mov eax, dword [edi + 0x1c]
jmp 0x403234
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0xa38]
push ecx
lea ecx, [ebp - 0xc40]
push ecx
push eax
call fcn.00497a05
lea eax, [ebp - 0x628]
push eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xc40]
push eax
push str._s_s_s__d__02d__02d_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00495fcc
lea eax, [ebp - 0x218]
push eax
call fcn.00495461
add esp, 0x40
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x1c]
call fcn.00402570
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004973de
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0049755c
lea eax, [ebp - 0x420]
push 0x4c1664
push eax
call fcn.0049752b
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0049752b
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004975a3
mov edi, eax
add esp, 0x28
cmp edi, 0xffffffff
je 0x4033fd
mov esi, 0x4c1660
test byte [ebp - 0xe8c], 0x10
jne 0x4033de
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe94]
imul eax, eax, 0x15180
cdq
sub ecx, eax
mov eax, dword [ebp - 0xe90]
sbb eax, edx
cmp dword [ebp - 0xe80], eax
jg 0x4033de
jl 0x403365
cmp dword [ebp - 0xe84], ecx
jae 0x4033de
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.004025ee
and dword [ebp - 4], 0
push esi
call fcn.00495461
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc5c]
call fcn.0040136b
lea eax, [ebp - 0xe68]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0xe68]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.0040136b
cmp dword [ebp - 0xc48], 8
mov eax, dword [ebp - 0xc5c]
jae 0x4033c4
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc5c]
call fcn.00401129
lea eax, [ebp - 0xe8c]
push eax
push edi
call fcn.004976ca
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x403328
push edi
call fcn.0049757d
pop ecx
call fcn.00495af3
ret 4
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x3c]
test al, 1
je 0x403415
pop ebp
jmp 0x4031e0
test al, 2
je 0x40341f
pop ebp
jmp fcn.00402d54
pop ebp
ret 4
Function at 0x40508f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00404ac4
mov ebx, eax
cmp ebx, esi
je 0x405100
lea ecx, [ebp - 0x214]
call fcn.00404a41
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40511e
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040508f
cmp eax, esi
jne 0x405165
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x405108
lea ecx, [ebp - 0x214]
call fcn.00404a41
push dword [ebp - 0x218]
mov ecx, edi
call fcn.004049d1
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00404a41
mov eax, esi
jmp 0x4050ef
Function at 0x406673
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4b7521
call fcn.00495aa6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x4066cc
call fcn.004047de
mov esi, eax
jmp 0x4067a2
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4066e5
call fcn.004047de
jmp 0x406794
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x4066db
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40671f
mov esi, 0x8007000e
jmp 0x406796
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040563e
mov dword [ebp - 4], 1
jmp 0x40674d
cmp dword [ebp - 0x418], esi
je 0x406718
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, esi
je 0x4066db
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.004063c6
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4067bb
lea ecx, [ebp - 0x418]
call fcn.00405038
mov eax, esi
call fcn.00495b02
ret 0x10
Function at 0x4070b3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
sub esp, 0x10
push 0x10
pop eax
cmp edx, eax
je 0x4070cb
cmp edx, 0x20
jne 0x407293
push ebx
push edi
shr edx, 2
push 4
mov ebx, edx
pop edi
mov dword [ebp - 4], ebx
cmp ebx, edi
jge 0x4070de
mov edx, edi
push esi
mov esi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x407290
mov dword [esi], eax
add esi, edi
mov dword [esi], edx
add esi, edi
xor edx, edx
test ebx, ebx
jle 0x40712e
lea eax, [ecx + 5]
movzx ecx, byte [eax - 1]
movzx edi, byte [eax]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 1]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl ecx, 8
or ecx, edi
mov dword [esi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x407105
mov ecx, dword [esi + edx*4 - 4]
mov edi, 0xff
cmp ebx, dword [ebp - 0xc]
jge 0x407212
and dword [ebp + 8], 0
mov dword [ebp - 8], esi
mov eax, ebx
cdq
idiv dword [ebp - 4]
test edx, edx
jne 0x4071ae
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + 0x4c2050]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edi, 0xff
movzx eax, byte [eax + 0x4c2030]
xor edx, eax
mov eax, ecx
shr eax, 8
and eax, edi
movzx eax, byte [eax + 0x4c2050]
shl edx, 8
xor edx, eax
mov eax, ecx
and eax, edi
movzx eax, byte [eax + 0x4c2050]
shl edx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4c2050]
xor edx, eax
shl edx, 8
xor ecx, edx
jmp 0x4071f9
cmp dword [ebp - 4], 6
jle 0x4071f9
cmp edx, 4
jne 0x4071f9
mov eax, ecx
shr eax, 0x10
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x4c2050]
and eax, edi
movzx eax, byte [eax + 0x4c2050]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + 0x4c2050]
shl eax, 8
and ecx, edi
movzx ecx, byte [ecx + 0x4c2050]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 8]
xor ecx, dword [eax]
add dword [ebp - 8], 4
mov dword [esi + ebx*4], ecx
inc ebx
inc dword [ebp + 8]
cmp ebx, dword [ebp - 0xc]
jl 0x407147
and dword [ebp + 8], 0
dec ebx
js 0x407290
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 4
mov ecx, dword [esi + ebx*4]
jl 0x40727f
cmp ebx, 4
jl 0x40727f
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + 0x4c2050]
mov eax, dword [eax*4 + 0x4c3650]
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + 0x4c2050]
xor eax, dword [edx*4 + 0x4c3a50]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x4c2050]
xor eax, dword [edx*4 + 0x4c3250]
and ecx, edi
movzx ecx, byte [ecx + 0x4c2050]
xor eax, dword [ecx*4 + 0x4c3e50]
jmp 0x407281
mov eax, ecx
mov ecx, dword [ebp - 0xc]
inc dword [ebp + 8]
add dword [ebp - 0xc], 4
dec ebx
mov dword [ecx], eax
jns 0x407222
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x407a03
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x407b45
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x407b45
xor edx, edx
push 3
pop ecx
mov eax, ebx
div ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
setne cl
mov dword [ebp - 0xc], edx
add ecx, eax
shl ecx, 2
mov dword [ebp - 8], ecx
test esi, esi
jne 0x407a4b
mov eax, ecx
jmp 0x407b47
xor ecx, ecx
test eax, eax
je 0x407abe
add edi, 2
mov dword [ebp - 4], eax
movzx eax, byte [edi - 2]
shr eax, 2
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi], al
movzx eax, byte [edi - 2]
movzx edx, byte [edi - 1]
and eax, 3
shl eax, 4
shr edx, 4
or eax, edx
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi + 1], al
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
shl eax, 2
shr edx, 6
or eax, edx
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi + 2], al
movzx eax, byte [edi]
and eax, 0x3f
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x407a57
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
dec eax
je 0x407b11
dec eax
jne 0x407b40
lea edx, [edi + ebx]
movzx eax, byte [edx - 2]
shr eax, 2
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi], al
movzx eax, byte [edx - 2]
movzx edi, byte [edx - 1]
and eax, 3
shl eax, 4
shr edi, 4
or eax, edi
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi + 1], al
movzx eax, byte [edx - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x4c42b0]
lea ecx, [ecx + esi + 2]
mov byte [ecx], al
mov byte [ecx + 1], 0x3d
jmp 0x407b40
lea edx, [edi + ebx - 1]
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi], al
movzx eax, byte [edx]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x4c42b0]
mov byte [ecx + esi + 1], al
lea ecx, [ecx + esi + 2]
mov word [ecx], 0x3d3d
mov eax, dword [ebp - 8]
jmp 0x407b47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408cfc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x15
push eax
call fcn.0044e8e7
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.00495b20
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x408d4d
lea eax, [ebp - 0xa0]
push esi
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push str.false
push str.InstallPerUser
push 0x4c4cf8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
push 0x4c4cec
push eax
call fcn.00499872
pop ecx
pop ecx
push 0
neg eax
push 1
lea ecx, [ebp - 0xa0]
sbb esi, esi
call fcn.00401129
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.004959f8
leave
ret 4
Function at 0x408da5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x15
push eax
call fcn.0044e8e7
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.00495b20
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x408df6
lea eax, [ebp - 0xa0]
push esi
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
mov esi, str.false
push esi
push str.Inactive
push 0x4c4cf8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00499872
pop ecx
pop ecx
push 0
neg eax
push 1
lea ecx, [ebp - 0xa0]
sbb esi, esi
call fcn.00401129
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.004959f8
leave
ret 4

Function at 0x40b162
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938c3
cmp dword [esi + 0x14], 8
pop ecx
mov edi, eax
jb 0x40b190
mov esi, dword [esi]
push esi
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
push edi
call fcn.004025ee
push edi
call fcn.00495548
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
leave
ret 0x14
Function at 0x40d152
Capabilities:
Create thread

Disassembly:
push 0x44
mov eax, 0x4b7c23
call fcn.00495a70
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], esi
cmp byte [0x5021a8], bl
je 0x40d184
push 0x5021a8
mov ecx, esi
call fcn.004096f4
mov eax, esi
jmp 0x40d225
push ebx
push ebx
mov edi, 0x5021a8
push edi
push 0x40cc83
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xbb8
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x4c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
je 0x40d1d1
push edi
lea ecx, [ebp - 0x48]
call fcn.004096f4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], 2
jmp 0x40d1ef
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 4
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0040ab3b
or dword [ebp - 0x4c], 1
test byte [ebp - 0x4c], 4
je 0x40d211
and dword [ebp - 0x4c], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408711
test byte [ebp - 0x4c], 2
je 0x40d222
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00408711
mov eax, dword [ebp - 0x50]
call fcn.00495af3
ret
Function at 0x410563
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x4bf357
call fcn.00495a70
mov eax, dword [ebp + 8]
mov ebx, ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.00410151
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
jae 0x41059e
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [ebp - 0x30]
mov esi, eax
push str.argc_d.
push str.kupdate::KCommandLine::_DoParseCmdLine
push 0x72
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcmiscKCommandLine.cpp
push 7
call fcn.004030c6
add esp, 0x18
push dword [ebp + 0xc]
mov ecx, ebx
push esi
push dword [ebp - 0x30]
call fcn.00410384
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, ebx
call fcn.00495af3
ret 8

Function at 0x41094b
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x4109d7
cmp eax, 0xffffffff
je 0x4109d7
mov ebx, dword [ebp + 8]
cmp ebx, edi
jne 0x41096c
cmp dword [esi + 8], edi
jne 0x410971
cmp dword [esi + 0xc], edi
jne 0x410978
mov eax, 0x80004005
jmp 0x4109d9
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4109ad
cmp ebx, 1
jne 0x4109a1
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x4109a1
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 4], edi
or dword [esi + 8], 0xffffffff
push 8
mov dword [ebp + 8], edi
call fcn.0049547c
pop ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push 0x410923
push edi
push edi
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410f01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
xor eax, eax
xor ecx, ecx
cmp byte [ebp + 0x10], al
push eax
setne cl
mov byte [esi + 0xc], al
dec ecx
and ecx, 4
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.0049a38c
add esp, 0x18
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 0xc
Function at 0x410f3d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x410fa8
push dword [esi + 8]
mov byte [esi + 0xc], 1
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x410f9b
cmp dword [ebp - 4], 0x103
jne 0x410f9b
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x410f9b
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 4], 0
pop esi
leave
ret 4

Function at 0x411711
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
mov esi, ecx
push esi
push 0x4116f1
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
mov byte [esi + 8], bl
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x41184d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0044d402
test al, al
jne 0x4118fd
cmp dword [ebp + 0xc], ebx
je 0x4118a2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4118a6
xor esi, esi
jmp 0x4118c3
lea esi, [eax + eax]
mov eax, esi
call fcn.00495fa0
mov eax, esp
push 0xfde9
push esi
push dword [ebp + 0xc]
push eax
call fcn.00402138
mov esi, eax
push esi
call fcn.00495f10
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
mov esi, dword [ebp - 8]
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4118fd
cmp dword [ebp - 0xc], edi
jne 0x4118fd
cmp esi, ebx
je 0x4118f9
cmp esi, 0xffffffff
je 0x4118f9
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x41190f
cmp esi, ebx
je 0x41190d
cmp esi, 0xffffffff
je 0x41190d
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959f8
leave
ret 8