joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x42d07b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x42d0b3
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x42d0a1
mov al, 1
jmp 0x42d0fd
cmp dword [ebx + 0x54], ecx
jne 0x42d0aa
mov al, 2
jmp 0x42d0fd
cmp dword [ebx + 0x7c], ecx
jne 0x42d0fd
mov al, 3
jmp 0x42d0fd
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x42d0c8
mov al, 4
jmp 0x42d0fd
cmp ecx, 5
jne 0x42d0e8
cmp ebx, 0
jne 0x42d0d6
mov al, 5
jmp 0x42d0fd
cmp ebx, 1
jne 0x42d0df
mov al, 6
jmp 0x42d0fd
cmp ebx, 2
jne 0x42d0e8
mov al, 7
jmp 0x42d0fd
cmp ecx, 6
jne 0x42d0f4
cmp ebx, 0
jne 0x42d0f6
mov al, 8
jmp 0x42d0fd
cmp ebx, 1
jne 0x42d0fd
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f7f9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0042f9a9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42f8f7
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42f89a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42f8dd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x42f8b1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42f8cc
test al, 0x40
je 0x42f8c3
mov ecx, dword [edi + 0x20]
jmp 0x42f8ca
test al, 0x80
je 0x42f8dd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42f8dd
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x42f869
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x101b2ec
Capabilities:
Check if file exists

Disassembly:
push 0x264
mov eax, 0x102c61c
call fcn.010244cb
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x238], eax
call fcn.01023754
push dword [0x1033584]
xor ebx, ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString_3
push dword [0x1033588]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString_3
push dword [ebp - 0x234]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.01027803
mov ecx, esi
test al, al
je 0x101b37c
push ebx
push ebx
push dword [ebp - 0x234]
lea eax, [ebp - 0x220]
push eax
call fcn.010278f4
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.01023778
jmp 0x101b525
push dword [ebp - 0x230]
call fcn.01027803
test al, al
je 0x101b534
push ebx
push ebx
push dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.010278f4
mov edi, dword [eax]
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x220]
test eax, eax
je 0x101b46e
call fcn.01023754
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.01023754
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString_3
call fcn.0102131d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [esi + 0x10]
call fcn.01023784
lea eax, [ebp - 0x224]
push eax
lea ecx, [esi + 0x14]
call fcn.01023778
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
jmp 0x101b520
call fcn.01023754
lea eax, [ebp - 0x220]
push eax
push 0x48c
mov byte [ebp - 4], 6
call fcn.01025ff0
lea ecx, [ebp - 0x228]
call fcn.01023754
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.01023754
lea eax, [ebp - 0x224]
push eax
push 0x48d
mov byte [ebp - 4], 8
call fcn.01025ff0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea eax, [ebp - 0x228]
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0xc
push ebx
push ebx
push ebx
push 1
push 1
push ebx
push ebx
push dword [ebp - 0x228]
lea ecx, [ebp - 0x270]
push dword [0x1033d64]
push dword [ebp - 0x220]
push ebx
push 0x65
call fcn.0102674d
lea ecx, [ebp - 0x270]
call fcn.01026bd8
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call sub.MFC42u.dll_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x22c]
push eax
call fcn.01023778
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::CString
call fcn.0102451f
ret 4
Function at 0x1021573
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
test edi, edi
jne 0x10215c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1033004]
cmp eax, 0x1033004
je 0x1021647
test byte [eax + 0x1c], 8
je 0x1021647
push ebx
push 0x1004a90
push 0xf
jmp 0x1021632
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01023eb1
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x1021605
push 8
pop ebx
mov eax, dword [0x1033004]
cmp eax, 0x1033004
je 0x102164b
test byte [eax + 0x1c], bl
je 0x102164b
push ebx
push 0x1004a90
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ca54
jmp 0x102164b
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x102163f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1033004]
cmp eax, 0x1033004
je 0x1021647
test byte [eax + 0x1c], 8
je 0x1021647
push ebx
push 0x1004a90
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ca54
jmp 0x1021647
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
test ebx, ebx
je 0x1021654
push dword [ebp - 4]
call fcn.01023ea0
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1021d1e
Capabilities:
Check os version

Disassembly:
push 0x1dc
mov eax, 0x102d1f4
call fcn.010244cb
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x1033d6c], ebx
jne 0x1021e7f
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x110
mov dword [0x1033d6c], eax
lea eax, [ebp - 0x1d8]
push ebx
push eax
mov dword [ebp - 0x1dc], 0x114
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1cc], 2
jne 0x1021e7f
cmp dword [ebp - 0x1d8], 5
jb 0x1021e7f
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push dword [0x1033d6c]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1021e7f
lea ecx, [ebp - 0x1e0]
call fcn.01023754
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 4], ebx
call fcn.010214d4
test eax, eax
je 0x1021de4
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.01023784
jmp 0x1021df5
lea eax, [ebp - 0x1e0]
push eax
push 0x478
call fcn.01025ff0
push dword [ebp - 0x1e0]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jae 0x1021e1b
mov eax, dword [ebp - 0x1e0]
push dword [eax - 8]
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
call fcn.0102180d
lea ecx, [ebp - 0x1e4]
call fcn.01023754
lea eax, [ebp - 0x1e4]
push eax
push 0x46b
mov byte [ebp - 4], 1
call fcn.01025ff0
push dword [ebp - 0x1e4]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
cmp eax, ebx
je 0x1021e4f
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
cmp eax, ebx
je 0x1021e62
mov dword [0x1033d6c], eax
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e0]
call sub.MFC42u.dll_CString::CString
push 1
push dword [0x1033d6c]
call sub.MFC42u.dll_CGdiObject::FromHandle
push eax
mov ecx, esi
call fcn.010188f1
push 5
mov ecx, esi
call fcn.010217cc
mov esi, eax
cmp esi, ebx
je 0x1021ec1
push esi
call fcn.01021d1e
push ebx
jmp 0x1021eb4
push esi
call fcn.01021d1e
push 2
mov ecx, esi
call fcn.010217cc
mov esi, eax
cmp esi, ebx
jne 0x1021eac
call fcn.0102451f
ret 4
Function at 0x102434f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10310c8
call fcn.01024a64
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, 0x1034138
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x102410a
cmp eax, esi
jne 0x10240fd
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x102410d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10240e4
xor esi, esi
inc esi
mov eax, dword [0x1034134]
cmp eax, esi
jne 0x1024120
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x102414f
mov eax, dword [0x1034134]
test eax, eax
jne 0x1024149
mov dword [0x1034134], esi
push 0x1001700
push 0x10016f4
call fcn.01024046
pop ecx
pop ecx
test eax, eax
je 0x102414f
jmp 0x1024273
mov dword [0x1033dac], esi
mov eax, dword [0x1034134]
cmp eax, esi
jne 0x1024173
push 0x10016f0
push 0x10016b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1034134], 2
cmp dword [ebp - 0x20], ebx
jne 0x1024180
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1034144], ebx
je 0x10241a1
push 0x1034144
call fcn.010249d9
pop ecx
test eax, eax
je 0x10241a1
push ebx
push 2
push ebx
call dword [0x1034144]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1024273
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x102420b
cmp cx, bx
je 0x10241c6
cmp dword [ebp - 0x1c], ebx
jne 0x102420b
movzx ecx, word [eax]
cmp cx, bx
je 0x10241db
cmp cx, 0x20
ja 0x10241db
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10241c6
test byte [ebp - 0x40], 1
je 0x10241e7
movzx ecx, word [ebp - 0x3c]
jmp 0x10241ea
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1033da8], eax
cmp dword [0x1033d9c], ebx
jne 0x1024250
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x102421c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10241b0
cmp dword [0x1033dac], ebx
jne 0x102425e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1033da8]
jmp 0x102427f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01024aa9
ret
call fcn.01024ba9
jmp 0x10240a7
Function at 0x1024f0b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10338d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10340dc], edi
jne 0x1025027
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1024f72
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10340dc], edi
pop esi
je 0x1024ffa
dec eax
jne 0x1025027
cmp dword [ebp - 0x11c], 5
jne 0x1024fe7
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x1024fdb
dec eax
je 0x1024fc8
dec eax
je 0x1024fae
mov dword [0x10340dc], 0x14
jmp 0x1025027
cmp word [ebp - 0xc], 1
jb 0x1024fbf
mov dword [0x10340dc], 0x10
or dword [0x10340dc], 4
jmp 0x1025027
cmp word [ebp - 0xc], 2
jb 0x1024fbf
mov dword [0x10340dc], 8
jmp 0x1024fbf
mov dword [0x10340dc], 4
jmp 0x1025027
cmp dword [ebp - 0x11c], 4
ja 0x1025039
mov dword [0x10340dc], 2
cmp dword [ebp - 0x11c], 4
jne 0x1025027
cmp dword [ebp - 0x118], edi
je 0x102501d
cmp dword [ebp - 0x118], 0xa
je 0x102501d
cmp dword [ebp - 0x118], 0x5a
jne 0x1025027
mov dword [0x10340dc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10340dc]
xor ecx, ebp
pop edi
call fcn.01024443
leave
ret
mov dword [0x10340dc], 0x20
jmp 0x1025027

Function at 0x102504a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10338d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x102509e
push 3
lea eax, [ebp - 0x44]
push 0x1005398
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01024443
leave
ret

Function at 0x10250b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10338d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10340e0]
jne 0x102514e
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x10052c8
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102514d
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1005380
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x102514d
push 3
push dword [esi*8 + 0x1005118]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x102513f
inc esi
cmp esi, 0x1c
jb 0x102511e
jmp 0x102514d
mov ax, word [esi*8 + 0x100511c]
mov word [0x10340e0], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10340e0]
xor ecx, ebp
call fcn.01024443
leave
ret
Function at 0x1025e4b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10338d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1007fac
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1025f20
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1025f0f
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1025ef9
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1025f0f
push eax
push edi
push dword [ebp - 0x110]
call fcn.01025de3
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1025f22
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01024443
leave
ret 4
Function at 0x1026bd8
Capabilities:
Get graphical window text

Disassembly:
push 0x470
mov eax, 0x102d595
call fcn.010244cb
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.01023754
push 0x5c
lea eax, [ebp - 0x478]
push edi
push eax
mov dword [ebp - 4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x47c], 0x60
call fcn.010267bc
mov dword [ebp - 0x464], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x460], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x45c], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x470], 0x1001
cmp eax, edi
je 0x1026c82
mov ecx, dword [esi + 0x34]
cmp ecx, edi
je 0x1026c82
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x458], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x46c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x450], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x428], 0x1026aaf
mov dword [ebp - 0x424], esi
cmp eax, edi
je 0x1026cb1
mov dword [ebp - 0x468], eax
mov ecx, dword [0x10340f8]
cmp ecx, edi
je 0x1026ce9
cmp eax, edi
jne 0x1026ce2
push 0x200
lea eax, [ebp - 0x410]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1026ce2
lea eax, [ebp - 0x410]
mov dword [ebp - 0x468], eax
mov eax, dword [0x10340f8]
jmp 0x1026cef
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x478], eax
mov eax, dword [0x10340fc]
mov dword [ebp - 0x474], eax
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x1026d0d
mov dword [ebp - 0x43c], eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x1026d36
lea ecx, [ebp - 0x414]
push ecx
push eax
call fcn.01025ff0
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x41c]
push eax
jmp 0x1026d37
push edi
push edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
cmp dword [ebp - 0x41c], edi
je 0x1026d58
mov byte [esi + 8], 1
mov esi, dword [ebp - 0x418]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call sub.MFC42u.dll_CString::CString
mov eax, esi
call fcn.0102451f
ret
Function at 0x10270cb
Capabilities:
Read file via mapping

Disassembly:
push 0x14
mov eax, 0x102d69c
call fcn.01024458
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.0102700e
push dword [eax]
xor esi, esi
push esi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
lea ecx, [ebp - 0x10]
mov ebx, eax
call sub.MFC42u.dll_CString::CString
xor eax, eax
cmp ebx, esi
setne al
mov dword [ebp - 0x14], eax
cmp ebx, esi
je 0x1027111
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x102711a
xor eax, eax
jmp 0x102718f
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0102700e
push dword [eax]
push 4
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea ecx, [ebp - 0x14]
mov dword [0x103412c], eax
call sub.MFC42u.dll_CString::CString
mov eax, dword [0x103412c]
cmp eax, esi
je 0x1027116
push 4
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 1
add edi, 8
push edi
lea ecx, [ebp - 0x20]
mov ebx, eax
call sub.MFC42u.dll_CSingleLock::CSingleLock
mov dword [ebp - 4], esi
call fcn.0100e898
cmp eax, esi
je 0x1027177
mov esi, dword [eax + 0x20]
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CSingleLock::Unlock
xor eax, eax
inc eax
call fcn.01024506
ret

Function at 0x102719a
Capabilities:
Check mutex on windows

Disassembly:
push 8
mov eax, 0x102d6cc
call fcn.01024458
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.0102700e
push eax
push 0x1008c90
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call sub.MFC42u.dll_operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
cmp eax, edi
je 0x10271fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10271fa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
mov eax, edi
call fcn.01024506
ret