joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5ca8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a5d4a
cmp dword [ebx + 0x94], 0
jne 0x4a5d44
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a5bf4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a5d44
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a5d0a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a5d44
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f200
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a5d19
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a5f68
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bb280]
cmp dword [eax + 0x170], 0
je 0x4a60cd
test bl, bl
jne 0x4a601b
cmp dword [esi + 0x9c], 0
jne 0x4a6010
mov eax, esi
call fcn.004a8e58
push eax
push 0x4a5e74
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a5fe1
mov eax, dword [0x4bb280]
cmp byte [eax + 0xd3], 0
je 0x4a5fe1
mov eax, dword [esi + 0xd8]
call fcn.00407e08
mov edi, eax
cmp edi, 0
jl 0x4a5fe1
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a5fca
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a6010
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f200
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a5ff0
inc dword [esi + 0x9c]
jmp 0x4a60cd
cmp dword [esi + 0x9c], 0
jle 0x4a60cd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a60cd
cmp dword [esi + 0x44], 0
je 0x4a6078
mov eax, dword [0x4bb280]
cmp byte [eax + 0xd3], 0
je 0x4a6078
mov eax, dword [esi + 0xd8]
call fcn.00407e08
mov edi, eax
cmp edi, 0
jl 0x4a6078
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a6061
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a60a7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f200
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a6087
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4991f0]
call fcn.00407fc8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a6d1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a6d87
cmp byte [ebx + 0xd3], 0
jne 0x4a6d87
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406940
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a6d74
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a6d94
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406804
jmp 0x4a6d94
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406804
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a85bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a862a
mov eax, esi
call fcn.00480be0
test al, al
je 0x4a862a
mov eax, dword [ebx + 0x84]
call fcn.00480834
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a862a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a861e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00480834
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00477808
jmp 0x4a862a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a83f4
pop esi
pop ebx
ret
Function at 0x401d50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a24
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x401dba
cmp esi, 0xffffffff
je 0x401dba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x401dba
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [0x593b48], 1
jne 0x401de9
or dword [0x593b48], 1
mov ecx, 0x593b1c
mov byte [ebp - 4], 1
call fcn.00408fd0
push 0x534990
call fcn.004b9fdc
add esp, 4
mov byte [ebp - 4], 0
push 0x539718
mov ecx, 0x593b1c
call fcn.00408780
test al, al
jne 0x401e42
test byte [0x593b48], 1
jne 0x401e2b
or dword [0x593b48], 1
mov ecx, 0x593b1c
mov byte [ebp - 4], 2
call fcn.00408fd0
push 0x534990
call fcn.004b9fdc
add esp, 4
mov byte [ebp - 4], 0
push str.self
mov ecx, 0x593b1c
call fcn.00408780
test al, al
je 0x401ec4
mov ebx, 4
push ebx
push str.Try_wait_mutex__d_.
push str.CreateUpdateMutex
push 0x4a
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwpsupdateimpl.cpp
push 7
call fcn.0041a9b0
add esp, 0x18
test esi, esi
je 0x401e73
cmp esi, 0xffffffff
je 0x401e73
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov edi, eax
cmp edi, esi
je 0x401ea7
test esi, esi
je 0x401ea2
cmp esi, 0xffffffff
je 0x401ea2
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, edi
mov dword [ebp - 0x10], esi
test esi, esi
je 0x401ec1
cmp esi, 0xffffffff
je 0x401ec1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x401da6
dec ebx
jns 0x401e47
test esi, esi
je 0x401ed4
cmp esi, 0xffffffff
je 0x401ed4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a56
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x488]
push eax
call fcn.004b9cd0
lea ecx, [ebp - 0x488]
push ecx
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x484], edx
call fcn.004b9ca9
push 0x206
xor ebx, ebx
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004ba010
lea eax, [esi + 0x208]
lea edx, [ebp - 0x218]
add esp, 0x14
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x402762
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.004b9013
xor edx, edx
mov word [eax], dx
add esp, 8
xor eax, eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4027b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00402460
push 4
push 0x539ff4
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], ebx
call fcn.00402340
mov eax, dword [ebp - 0x250]
mov esi, 8
cmp dword [ebp - 0x23c], esi
jae 0x402800
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x480]
push edx
push eax
call fcn.004ba494
add esp, 8
mov dword [ebp - 0x48c], eax
cmp eax, 0xffffffff
je 0x402944
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test byte [ebp - 0x480], 0x10
jne 0x402916
mov ecx, dword [ebp - 0x488]
mov eax, dword [ebp - 0x484]
sub ecx, 0x3f480
sbb eax, ebx
cmp dword [ebp - 0x474], eax
jg 0x402916
jl 0x402860
cmp dword [ebp - 0x478], ecx
jae 0x402916
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402882
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00402460
push 1
push 0x539ff0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.00402340
lea eax, [ebp - 0x45c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4028c3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402340
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x4028f9
lea eax, [ebp - 0x234]
push eax
call edi
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], esi
jb 0x402916
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x48c]
lea edx, [ebp - 0x480]
push edx
push eax
call fcn.004ba5bb
add esp, 8
cmp eax, 0xffffffff
jne 0x402825
mov ecx, dword [ebp - 0x48c]
push ecx
call fcn.004ba46e
add esp, 4
cmp dword [ebp - 0x23c], esi
jb 0x40295b
mov edx, dword [ebp - 0x250]
push edx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x402a00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x64]
push 0x1a
push eax
call fcn.0041d2b0
add esp, 8
mov eax, dword [ebp - 0x64]
xor esi, esi
mov edi, 8
mov dword [ebp - 4], esi
cmp dword [ebp - 0x50], edi
jae 0x402a4e
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0041c3e0
add esp, 8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], edi
jae 0x402a6a
lea eax, [ebp - 0x48]
push eax
call fcn.0041cc80
lea edx, [ebp - 0x80]
push 0x18
push edx
call fcn.0041d2b0
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x402a87
mov edx, dword [eax]
jmp 0x402a89
mov edx, eax
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov eax, edx
mov byte [ebp - 4], 3
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402aa3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402460
mov byte [ebp - 4], 5
cmp dword [ebp - 0x6c], edi
jb 0x402ad1
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x2c]
xor esi, esi
xor edx, edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], edi
jae 0x402aea
lea eax, [ebp - 0x2c]
push eax
push 4
push str.LogLevel
push str.Update
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x402b08
lea ecx, [ebp - 0x64]
push 3
push 0x10000001
push eax
push ecx
push 0x53a000
call fcn.0041aef0
add esp, 0x14
cmp dword [ebp - 0x18], edi
jb 0x402b2f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x402b4c
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edi
jb 0x402b69
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x402cc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push 0x104
push eax
push ebx
mov dword [ebx + 0x410], ecx
mov dword [ebx + 0x414], edx
call fcn.004ba6e9
mov eax, dword [ebp + 0x18]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebx + 0x41c], eax
mov word [ebp - 0x20c], cx
call fcn.004ba010
mov ecx, dword [ebx + 0x414]
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x402de0
push esi
push edi
lea edi, [ebx + 0x208]
mov edx, edi
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402d50
lea eax, [edi - 2]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402d62
mov edx, dword [str.dump_]
mov dword [eax], edx
mov ecx, dword [0x53a03c]
mov dword [eax + 4], ecx
mov edx, dword [0x53a040]
push 0
push edi
mov dword [eax + 8], edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004b9013
add esp, 8
add eax, 2
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402da7
sub eax, edx
add edi, 0xfffffffe
jmp 0x402dc0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402dc0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x402dff
lea eax, [ebp - 0x20c]
lea edx, [ebx + 0x208]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402df0
mov ecx, ebx
call fcn.004026e0
push 0x4017d0
call dword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4057a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x590cc0]
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]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00405070
mov ebx, eax
cmp ebx, esi
je 0x40581a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x405805
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40589c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.004057a0
mov ebx, eax
cmp ebx, esi
jne 0x4057f4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x405850
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x4058b5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00404f50
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x4058d8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
Function at 0x407360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524006
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4073dd
call fcn.00404d30
mov edi, eax
jmp 0x4074c2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4073f6
call fcn.00404d30
jmp 0x4074b9
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x407414
call fcn.00404d30
jmp 0x4074b9
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x407435
mov edi, 0x8007000e
jmp 0x4074bb
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00405ff0
mov dword [ebp - 4], 1
jmp 0x40746d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40747e
mov edi, 0x8007000e
jmp 0x4074bb
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x407497
call fcn.00404d30
jmp 0x4074b9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00406f30
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x4074e0
lea ecx, [ebp - 0x418]
call fcn.00405740
jmp 0x4074e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409380
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e648
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4093c7
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402460
lea ecx, [ebp - 0x2c]
push 0x20
push ecx
mov dword [ebp - 4], esi
call fcn.00408610
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], esi
jae 0x409400
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
push str.argc_d.
push str.kupdate::KCommandLine::_DoParseCmdLine
push 0x72
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKCommandLine.cpp
push 7
call fcn.0041a9b0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
add esp, 0x18
push ecx
mov ecx, dword [ebp - 0x34]
push esi
push edx
call fcn.00409060
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x18], 8
jb 0x409458
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8
Function at 0x409670
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x409689
cmp ebx, 0x20
jne 0x40987a
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x40969b
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x409879
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x4096f9
add eax, 5
jmp 0x4096d0
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x4096d0
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x4097ed
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x40977c
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x53af08]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x53aee4]
xor ebx, eax
movzx eax, byte [edx + 0x53af08]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x53af08]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x53af08]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x4097d2
cmp ebx, 6
jle 0x4097d2
cmp edx, 4
jne 0x4097d2
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x53af08]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x53af08]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x53af08]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x53af08]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x409712
xor edx, edx
dec esi
js 0x409878
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x409867
cmp esi, 4
jl 0x409867
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x53af08]
mov eax, dword [eax*4 + 0x53c508]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x53af08]
xor eax, dword [ebx*4 + 0x53c908]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x53af08]
xor eax, dword [ebx*4 + 0x53c108]
and ecx, 0xff
movzx ecx, byte [ecx + 0x53af08]
xor eax, dword [ecx*4 + 0x53cd08]
jmp 0x409869
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x409800
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4