joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020c5
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x402118
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x40212e
push 0x80004005
call fcn.00401e18
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x402131
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4029bd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41e7d0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00402090
mov edi, eax
cmp edi, esi
je 0x402a25
lea ecx, [ebp - 0x70]
call fcn.0040202b
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040995a
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402a3d
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004029bd
cmp eax, esi
jne 0x402a70
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x402a2d
lea ecx, [ebp - 0x70]
call fcn.0040202b
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040202b
mov eax, esi
jmp 0x402a0b
Function at 0x40458b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x41e7d0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x416b5a
call fcn.00409fe6
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x41e758]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x404645
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401cd3
add esp, 0xc
test eax, eax
jl 0x404645
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x40462d
push edi
call fcn.004028c8
test al, al
pop ecx
je 0x40462d
mov eax, edi
call fcn.0040aaa0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x404636
push edi
lea ecx, [ebp - 0x20]
call fcn.00402b3c
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.00401db4
cmp eax, ebx
jne 0x40468a
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x404655
lea ecx, [ebp]
call fcn.004027e5
lea ecx, [ebp - 0x20]
call fcn.0040271f
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040995a
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x4046a9
call fcn.00401f3c
mov esi, eax
jmp 0x40476c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4046c6
call fcn.00401f3c
jmp 0x404761
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4046bc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x40470d
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4046f9
lea ecx, [ebp]
call fcn.004027e5
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.0040271f
mov eax, esi
jmp 0x404662
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00403781
mov dword [ebp - 4], 1
jmp 0x40472e
cmp dword [ebp], ebx
jne 0x40473a
mov esi, 0x8007000e
jmp 0x404763
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.00401e65
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.004043d5
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4046fe
lea ecx, [ebp]
call fcn.004027e5
jmp 0x4046fe
Function at 0x4061ac
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor ecx, ecx
push 4
inc ecx
cmp dword [ebp + 8], ecx
pop edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov eax, 0x20019
jne 0x4061db
add eax, 6
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push esi
push esi
push esi
push str.SOFTWAREIntelDisplayigfxcuiigfxtrayTrayIcon
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40628f
cmp dword [ebp + 8], esi
push ebx
jne 0x40626e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov ebx, 0x41885c
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
je 0x406266
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push esi
push str.SOFTWAREIntelDisplayigfxcuiigfxtrayTrayIcon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406285
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x406285
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x406285
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
push esi
push 0x41885c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret

Function at 0x407510
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41e7d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004074a5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004098e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40755f
cmp dword [ebp - 0x1c], 5
jb 0x407577
jmp 0x407573
cmp dword [ebp - 0x10], 1
jne 0x407577
cmp dword [ebp - 0x1c], 4
ja 0x407573
jne 0x407577
cmp dword [ebp - 0x18], 0
jbe 0x407577
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x418940
call fcn.00401ef1
test eax, eax
jge 0x407598
mov byte [0x41fca0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040995a
add ebp, 0x78
leave
ret

Function at 0x40995a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e7d0]
jne 0x409964
repz ret
jmp fcn.0040d85b
Function at 0x4131ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040bf10
xor ebx, ebx
cmp dword [0x4207f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x413282
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4131ed
xor eax, eax
jmp 0x413346
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4131e6
push eax
call fcn.0040bead
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4207f4], eax
call esi
push eax
call fcn.0040bead
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4207f8], eax
call esi
push eax
call fcn.0040bead
mov dword [0x4207fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040e855
test eax, eax
pop ecx
pop ecx
je 0x413250
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409abc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x413282
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040bead
cmp eax, ebx
pop ecx
mov dword [0x420804], eax
je 0x413282
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040bead
pop ecx
mov dword [0x420800], eax
mov eax, dword [0x420800]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4132fb
cmp dword [0x420804], esi
je 0x4132fb
push eax
call fcn.0040bf19
pop ecx
call eax
cmp eax, ebx
je 0x4132c8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x420804]
call fcn.0040bf19
pop ecx
call eax
test eax, eax
je 0x4132c8
test byte [ebp - 0x18], 1
jne 0x4132fb
lea eax, [ebp - 0xc]
push eax
call fcn.0040e88c
test eax, eax
pop ecx
je 0x4132e3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409abc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4132f2
or dword [ebp + 0x10], 0x200000
jmp 0x41332c
or dword [ebp + 0x10], 0x40000
jmp 0x41332c
mov eax, dword [0x4207f8]
cmp eax, esi
je 0x41332c
push eax
call fcn.0040bf19
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41332c
mov eax, dword [0x4207fc]
cmp eax, esi
je 0x41332c
push dword [ebp - 4]
push eax
call fcn.0040bf19
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 [0x4207f4]
call fcn.0040bf19
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10069190
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1006937d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48000]
push edi
jmp 0x100691ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100691c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100691b0
mov eax, 1
add ebx, ebx
jne 0x100691d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100691e4
jne 0x10069203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10069203
dec eax
add ebx, ebx
jne 0x100691f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100691c8
add ebx, ebx
jne 0x100691ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10069255
xor ecx, ecx
sub eax, 3
jb 0x1006921b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1006928a
sar eax, 1
mov ebp, eax
jmp 0x10069226
add ebx, ebx
jne 0x10069226
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100691f4
inc ecx
add ebx, ebx
jne 0x10069234
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100691f4
add ebx, ebx
jne 0x10069241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10069236
jne 0x10069252
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10069236
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10069274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10069266
jmp 0x100691b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10069274
add edi, ecx
jmp 0x100691b6
pop esi
mov edi, esi
mov ecx, 0x2b91
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10069292
cmp byte [edi], 0x11
jne 0x10069292
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 0x10069297
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x1006930f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6903c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100692c4
mov ecx, edi
jns 0x100692f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x69040]
or eax, eax
je 0x10069309
mov dword [ebx], eax
add ebx, 4
jmp 0x100692e1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10069340
cmp al, 0xef
ja 0x10069333
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10069315
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10069322
mov ebp, dword [esi + 0x69044]
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 0x10069374
sub esp, 0xffffff80
jmp 0x1003bd4e
Function at 0x10013b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x10040c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
xor ecx, ecx
push eax
mov word [ebp - 0x13c], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001449
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x48]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call esi
test eax, eax
je 0x1001441
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x1001441
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1001441
push edi
lea eax, [ebp - 0x48]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
movzx eax, word [ebp - 0x13c]
pop edi
xor ecx, ebp
pop ebx
call fcn.010027d0
leave
ret 4
Function at 0x1001465
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x10040c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x44
pop ebx
xor esi, esi
push ebx
lea eax, [ebp - 0x290]
push esi
push eax
mov dword [ebp - 0x218], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x290], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [ebx]
cmp ax, si
je 0x1001633
cmp ax, 0x20
je 0x10014cd
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
cmp ax, si
jne 0x10014b6
cmp word [ebx], si
je 0x1001633
push edi
call fcn.010013b5
mov edi, eax
cmp edi, esi
je 0x1001633
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp eax, 1
jne 0x1001633
cmp dword [ebp - 0x218], eax
jne 0x1001633
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24c], 9
jne 0x1001532
cmp edi, 0x8664
jne 0x1001633
cmp word [ebp - 0x24c], 6
jne 0x1001548
cmp edi, 0x200
jne 0x1001633
push 0xf6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x1001633
push 0xd
mov ecx, 0x105
sub ecx, eax
push 0x10011b4
push ecx
lea eax, [ebp + eax*2 - 0x210]
push eax
call sub.msvcrt.dll_wcsncpy_s
mov edi, dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
add esp, 0x10
push esi
call edi
push 0x44
lea eax, [ebp - 0x290]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x290]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 1
mov dword [ebp - 0x214], eax
call edi
cmp dword [ebp - 0x214], esi
je 0x1001633
push 0xffffffffffffffff
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x214], eax
cmp eax, esi
jne 0x100161d
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100161d
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x224]
call esi
mov eax, dword [ebp - 0x214]
jmp 0x1001636
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x224]
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010027d0
leave
ret 4
Function at 0x10018c6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10040c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x100
xor edi, edi
lea ecx, [ebp - 0x204]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push dword [eax]
mov dword [ebp - 0x418], eax
call sub.msvcrt.dll__wsplitpath_s
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea eax, [ebp - 0x408]
push eax
push 1
push edi
lea eax, [ebp - 0x204]
push eax
push 0x80000000
call ebx
test eax, eax
je 0x100192d
xor eax, eax
jmp 0x1001a10
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x408]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x410], eax
call esi
cmp dword [ebp - 0x410], edi
jne 0x10019ae
lea eax, [ebp - 0x408]
push eax
push 1
push edi
lea eax, [ebp - 0x404]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x10019ae
lea eax, [ebp - 0x414]
push eax
push 1
push edi
push 0x1001204
push dword [ebp - 0x408]
call ebx
test eax, eax
je 0x10019b2
push dword [ebp - 0x408]
call esi
xor eax, eax
jmp 0x1001a0f
lea eax, [ebp - 0x40c]
push eax
mov ebx, 0x10041f0
push ebx
push edi
push dword [ebp - 0x414]
mov dword [ebp - 0x40c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x408]
mov dword [ebp - 0x410], eax
call esi
push dword [ebp - 0x414]
call esi
xor eax, eax
cmp dword [ebp - 0x410], edi
jne 0x1001a0f
mov ecx, dword [ebp - 0x40c]
mov word [ecx*2 + 0x10041f0], ax
mov eax, dword [ebp - 0x418]
mov dword [eax], ebx
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.010027d0
leave
ret 4
Function at 0x10027c1
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002cc8
call fcn.010029f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1004750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100257c
cmp eax, esi
jne 0x100256f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100257f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002556
xor esi, esi
inc esi
mov eax, dword [0x100474c]
cmp eax, esi
jne 0x1002592
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10025c1
mov eax, dword [0x100474c]
test eax, eax
jne 0x10025bb
mov dword [0x100474c], esi
push 0x1001154
push 0x1001148
call fcn.010024b8
pop ecx
pop ecx
test eax, eax
je 0x10025c1
jmp 0x10026e5
mov dword [0x1004414], esi
mov eax, dword [0x100474c]
cmp eax, esi
jne 0x10025e5
push 0x1001144
push 0x100113c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100474c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10025f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004754], ebx
je 0x1002613
push 0x1004754
call fcn.01002969
pop ecx
test eax, eax
je 0x1002613
push ebx
push 2
push ebx
call dword [0x1004754]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10026e5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100267d
cmp cx, bx
je 0x1002638
cmp dword [ebp - 0x1c], ebx
jne 0x100267d
movzx ecx, word [eax]
cmp cx, bx
je 0x100264d
cmp cx, 0x20
ja 0x100264d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002638
test byte [ebp - 0x40], 1
je 0x1002659
movzx ecx, word [ebp - 0x3c]
jmp 0x100265c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004410], eax
cmp dword [0x1004404], ebx
jne 0x10026c2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100268e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002622
cmp dword [0x1004414], ebx
jne 0x10026d0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004410]
jmp 0x10026f1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002a39
ret
call fcn.01002b41
jmp 0x1002519
Function at 0x1009d57
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10255b8]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], eax
call sub.MFC42u.DLL_CDataExchange::PrepareEditCtrl
cmp dword [ebx], 0
mov edi, eax
je 0x1009df5
push 0x40
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x84], 0
je 0x1009ded
push esi
lea eax, [ebp - 0x84]
mov edi, 0x10258d0
push eax
mov ecx, edi
call fcn.010131bf
test eax, eax
jne 0x1009dc8
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.DLL_CDataExchange::Fail
push 2
push dword [esi]
lea eax, [ebp - 0x84]
push 0x40
push eax
mov ecx, edi
call fcn.01014091
push esi
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.010131bf
jmp 0x1009e23
mov dword [esi], 0x7fffffff
jmp 0x1009e23
mov esi, dword [esi]
cmp esi, 0x7fffffff
je 0x1009e23
push 2
push esi
push 0x40
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x10258d0
call fcn.01014091
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101874a
leave
ret 0xc

Function at 0x100a2a4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10255b8]
push esi
xor esi, esi
cmp dword [0x10256dc], esi
mov dword [ebp - 4], eax
jne 0x100a36d
push ebx
push edi
mov edi, 0x1024c74
mov ebx, 0xffff
xor eax, eax
cmp dword [edi - 4], eax
jne 0x100a352
cmp dword [edi], eax
je 0x100a352
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100a334
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x100a334
and word [eax], 0
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009b3d
mov esi, eax
and esi, ebx
jne 0x100a34f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
test esi, esi
jne 0x100a34f
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.010088bd
mov esi, eax
and esi, ebx
je 0x100a352
and dword [edi], 0
add edi, 0x1c
cmp edi, 0x1024dc4
jl 0x100a2d2
pop edi
mov dword [0x10256dc], 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101874a
leave
ret