joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fcf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov edi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00455768
mov ebx, eax
mov dx, word [edi + 4]
mov eax, ebp
call fcn.0046fb9c
mov esi, eax
test esi, esi
je 0x46fd3d
mov al, byte [0x46fd50]
cmp al, bl
jne 0x46fd3d
mov edx, esi
mov eax, ebp
call fcn.0046fb44
mov dword [edi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x46fd45
mov edx, edi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x472ce8
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408778
add esp, 0x3ec
pop ebx
ret

Function at 0x47410c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
call fcn.0045089c
mov edi, eax
dec edi
test edi, edi
jl 0x4741bf
inc edi
xor esi, esi
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004508ac
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x474156
je 0x474177
dec eax
je 0x474198
jmp 0x4741b7
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004508ac
cmp byte [ebx + 0x158], 0
setne dl
call fcn.004507c8
jmp 0x4741b7
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004508ac
cmp byte [ebx + 0x158], 1
setne dl
call fcn.004507c8
jmp 0x4741b7
mov eax, dword [ebx + 0xe8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004508ac
cmp byte [ebx + 0x158], 2
setne dl
call fcn.004507c8
inc esi
dec edi
jne 0x474137
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x4741e4
cmp eax, dword [esp]
pop edx
pop eax
jae 0x474245
jmp 0x4741e8
pop edx
pop eax
jge 0x474245
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x12c]
test byte [eax + 0x50], 2
je 0x474221
cmp byte [ebx + 0x155], 2
je 0x474221
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xe8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x474261
push 0
mov eax, dword [ebx + 0x120]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0xf8]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x474261
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042ac98
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x120]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x47cd54
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ce92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x47ce77
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408778
mov dl, 1
mov eax, dword [0x4637b4]
call fcn.0046380c
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4125a4]
call fcn.004030e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00463888
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x47ce74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, 0x47cea8
call fcn.00463bd4
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404170
xor eax, eax
push ebp
push 0x47ce6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00416cfc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0047ceb0
mov eax, dword [ebp - 0xc]
call fcn.004083a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ce74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00403114
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00403114
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ce99
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403e88
ret
Function at 0x40d390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40d3b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d3a8
mov eax, 1
add ebx, ebx
jne 0x40d3cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d3c0
jne 0x40d3dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d3c0
xor ecx, ecx
sub eax, 3
jb 0x40d3f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d462
mov ebp, eax
add ebx, ebx
jne 0x40d3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d42c
inc ecx
add ebx, ebx
jne 0x40d418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d40d
jne 0x40d429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d40d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d44c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d43d
jmp 0x40d3ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d44c
add edi, ecx
jmp 0x40d3ae
pop esi
mov edi, esi
mov ecx, 0xc2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d46a
cmp byte [edi], 3
jne 0x40d46a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40d46f
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d4de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10e00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10f0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d49c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10f14]
or eax, eax
je 0x40d4d8
mov dword [ebx], eax
add ebx, 4
jmp 0x40d4b9
call dword [esi + 0x10f10]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40d50f
cmp al, 0xef
ja 0x40d502
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40d4e4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40d4f1
mov ebp, dword [esi + 0x10f18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40d543
sub esp, 0xffffff80
jmp 0x4029ea
Function at 0x404300
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40dd70
push 0x69
push esi
call edi
push 0x64
push 0x40dd08
push 0x67
push esi
call edi
push 0x40c000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push esi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x4c], 0x406790
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 3
call edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x6c
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x69
mov dword [ebp - 0x2c], 0x40a6f0
call edi
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x40a704
push 0x40a6f0
push 0
mov dword [0x40a67d], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x40443d
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
je 0x404432
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
jne 0x404412
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40659d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004039cc
xor ebx, ebx
cmp dword [0x40e418], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x406672
push 0x40c744
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4065dd
xor eax, eax
jmp 0x406736
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c738
push edi
call esi
cmp eax, ebx
je 0x4065d6
push eax
call fcn.00401c19
mov dword [esp], 0x40c728
push edi
mov dword [0x40e418], eax
call esi
push eax
call fcn.00401c19
mov dword [esp], 0x40c714
add byte [edi - 0x5d], dl
sbb al, 0xe4
inc eax
add bh, bh
salc
push eax
call fcn.00401c19
mov dword [0x40e420], eax
lea eax, [ebp - 8]
push eax
call fcn.00401380
test eax, eax
pop ecx
pop ecx
je 0x406640
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407e0d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x406672
push 0x40c6f8
push edi
call esi
push eax
call fcn.00401c19
cmp eax, ebx
pop ecx
mov dword [0x40e428], eax
je 0x406672
push 0x40c6e0
push edi
call esi
push eax
call fcn.00401c19
pop ecx
mov dword [0x40e424], eax
mov eax, dword [0x40e424]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4066eb
cmp dword [0x40e428], esi
je 0x4066eb
push eax
call fcn.00406bac
pop ecx
call eax
cmp eax, ebx
je 0x4066b8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e428]
call fcn.00406bac
pop ecx
call eax
test eax, eax
je 0x4066b8
test byte [ebp - 0x18], 1
jne 0x4066eb
lea eax, [ebp - 0xc]
push eax
call fcn.004031d4
test eax, eax
pop ecx
je 0x4066d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407e0d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4066e2
or dword [ebp + 0x10], 0x200000
jmp 0x40671c
or dword [ebp + 0x10], 0x40000
jmp 0x40671c
mov eax, dword [0x40e41c]
cmp eax, esi
je 0x40671c
push eax
call fcn.00406bac
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40671c
mov eax, dword [0x40e420]
cmp eax, esi
je 0x40671c
push dword [ebp - 4]
push eax
call fcn.00406bac
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e418]
call fcn.00406bac
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408773
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b1f8]
jne 0x40877d
repz ret
jmp fcn.00406c6d
Function at 0x10002468
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x10002482
xor esi, esi
jmp 0x100024b0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.1000a130
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x100024ed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100024d8
call esi
mov esi, eax
jmp 0x10002582
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10002582
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000251e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x10002531
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10002579
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x10002535
jmp 0x10002500
call esi
jmp 0x10002577
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1000256b
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.1000a130
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.100025e9
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10002ff8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1000a650
call fcn.1000a110
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.10002fba
mov edi, eax
cmp edi, esi
je 0x10003042
cmp dword [ebp - 0x10], esi
je 0x1000303b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100030df
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x100030b3
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.10002ff8
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x100030a0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x10003065
cmp dword [ebp - 0x10], esi
je 0x100030ae
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x100030df
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100030c6
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x100030dd
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100030f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.1000a130
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.10002742
xor edi, edi
cmp eax, edi
jl 0x100032a8
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.100032b5
pop ecx
test eax, eax
pop ecx
jne 0x1000313b
mov eax, 0x80020009
jmp 0x100032a8
mov ecx, esi
call fcn.1000271a
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.10002742
cmp eax, edi
jl 0x100032a8
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x10003270
sub eax, 9
je 0x100031d5
dec eax
dec eax
jne 0x10003297
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x10003180
xor ebx, ebx
jmp 0x100031b5
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1000a130
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x10003288
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x10003211
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1000a130
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x1000321b
mov eax, 0x80004005
jmp 0x100032a8
cmp dword [ebp - 8], 0
jle 0x10003255
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.1000333c
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x10003221
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x10003297
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10002742
cmp eax, edi
jl 0x100032a8
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10009c1a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1000acb0
call fcn.1000a110
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0xc]
lea edi, [esi + 4]
push edi
push 0x20019
push ebx
push eax
push dword [esi]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009cde
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ebx
push ecx
push ebx
push eax
push dword [edi]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push dword [ebp - 0x10]
push ecx
push 0
push eax
push dword [edi]
call ebx
push dword [ebp - 0x10]
test eax, eax
jne 0x10009cd0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
and dword [ebp - 4], 0
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi + 0x18], 1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
jmp 0x10009ce2
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x14
push esi
mov ecx, dword [ebp + 8]
call fcn.10009e4e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4054f0
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x45bc48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x405530
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x451508]
mov dword [ebp - 0x28], eax
mov eax, dword [0x45150c]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004054e9
mov eax, dword [0x451510]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x451514]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x45bc48], 0xc
mov dword [ebp - 4], eax
jne 0x4055c6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x45bc48]
cmp eax, 0xfa9
jne 0x4055e2
mov dword [0x45b1e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4055ef
mov dword [0x45ab90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x45b1e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x45bc48], 0x213
mov dword [ebp - 0x14], edx
jne 0x405629
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004054e3
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40556c
cmp dword [0x45bc48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405692
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4