joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c9d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x431c70
cmp edx, dword [eax]
je 0x41c9f3
add eax, 8
inc ecx
cmp eax, 0x431d00
jl 0x41c9e4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x431c70]
jne 0x41cb21
mov eax, dword [0x455020]
cmp eax, 1
je 0x41cafb
test eax, eax
jne 0x41ca24
cmp dword [0x431274], 1
je 0x41cafb
cmp edx, 0xfc
je 0x41cb21
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ca5b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041cdd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041b610
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41ca9e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041b610
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427a14
push edi
call fcn.00416040
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041cdd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041cde0
lea eax, [ebp - 0xa0]
push 0x42bbc8
push eax
call fcn.0041cde0
push dword [esi + 0x431c74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041cde0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00421e3f
add esp, 0x2c
pop edi
jmp 0x41cb21
lea eax, [ebp + 8]
lea esi, [esi + 0x431c74]
push 0
push eax
push dword [esi]
call fcn.0041b610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x420870
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420876
ret
Function at 0x63026a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
rcr ax, 0xe
neg ah
push ebp
shld ax, bp, 2
movzx ax, cl
mov ebp, esp
bsr ax, si
setge ah
rcl ax, 0xa
shrd ax, ax, 0xf
sub esp, 0x18
ror al, 1
sbb ax, si
stc
daa
push esi
setp al
shrd ax, di, cl
push edi
shld ax, di, 0xc
shl ax, cl
bsr ax, cx
push ebx
pushal
rcr eax, cl
mov al, bl
mov dword [esp + 0x1c], edx
push edx
cmp edi, 0xff1052f0
mov eax, dword [ebp + 8]
cmc
stc
stc
test eax, eax
jmp 0x51e1a9

Function at 0x638d5f
Capabilities:
Encode data using xor

Disassembly:
call fcn.00527136
test cl, 0x59
cmp cl, 0x47
bt si, di
cmp al, byte [edi]
setl al
lea edi, [edi + 1]
mov al, ah
pop eax
jmp 0x526e98
xchg byte [ebx + 0x64], ch
mov edi, 0x3e2a977b
add dword [eax + ebp*2 - 0x71], ebx
aad 0x3b
mov esp, 0xff7f8060
add byte [eax + 0x1b], ch
dec esi
push 0xbc3bd58f
pushal
cmp byte [edi - 1], 0
push 0x4e362e1b
lea esp, [esp + 0x28]
jne 0x6347ac
rcr edi, cl
cmc
rol di, 7
mov edi, dword [edx + 0x24]
call fcn.005353db
xor eax, 0x544b57d5
out 0x76, al
adc byte cs:[eax - 0x3aeaeb9c], bh
inc esi
and ecx, dword [esi + 0x6fd3d242]
jo 0x636ccf
shr dword [edi + 0x70], cl
cld
mov al, 0x44
cmp eax, 0x5a61f2c1
sal edx, 0x61
pop edx
adc cl, byte [ebx]
mov bh, 0x53
push 0xffffffffffffff9e
mov al, bl
jp 0x636c89
push edi
loop 0x636d3c
push esi
add bl, byte [esi - 0x2f5b0623]
cdq
push ecx
jno 0x636cd6
dec esp
inc edx
jge 0x636d2a
cwde
jp 0x636d19
fcomp dword [ecx + 1]
cli
mov cl, dh
out dx, al
add al, 7
into
arpl word [edi], di
or byte [edx + 0x6d], bl
sub eax, 0xa552be02
cmp dword [ebp - 0x5b073bc0], ecx
xor eax, 0x452ab0c1
leave
std
mov esi, 0xe9ed18c6
mov ah, 0x3e
xor eax, ebx
pop esp
sub dl, dh
dec dword [esi - 0x1e]
sbb dword [ebx], esi
not dword [ebx + 0x399d7ee2]
mov bh, ch
jge 0x636ce4
sti
dec ebp
pop esp
invalid
pop esi
in al, dx
mov eax, 0xf4cfaf21
inc esi
pop ecx
pop ecx
add eax, esp
rcl byte [edi + eax*2 - 0x2d]
int3
ja 0x63758b
push 0xe898423c
lea esp, [esp + 4]
ja 0x62fec3
pushfd
push dword [esp]
lea esp, [esp + 8]
jb 0x634737
jo 0x636c93
push edx
mov word [esp], 0x72f6
mov dword [esp], 0xb9df3b8e
cmp byte [edi - 1], 0
push 0x8354081f
lea esp, [esp + 8]
jne 0x6347ac
inc di
dec di
sal edi, cl
mov edi, dword [edx + 0x24]
bt sp, sp
push 0xc98ad01e
call fcn.0063441e
jnp 0x637dc9
ror byte [edx - 0x39b21737], 1
invalid
xor byte [ebp - 0x1a], 0x76
adc ah, byte [ebp - 0x536a9d3]
imul edx, dword [edx + 0x1a1999e5], 0x6ddb53d2
int 0xf6
popal
xchg edx, eax
in eax, dx
out dx, al
scasb al, byte es:[edi]
xlatb
dec edi
mov dl, 0xce
insd dword es:[edi], dx
mov eax, dword [0x870b168d]
and al, 0x3f
jmp 0x637d83
mov byte [esp], al
cmc
cmc
rol al, 6
bt cx, 5
sub esp, 0xfffffff4
jns 0x6345e2
cmp al, byte [edi]
cwde
setb al
lea edi, [edi + 1]
mov ax, sp
movsx ax, al
cwde
movzx ax, al
pop eax
jmp 0x637d6e
Function at 0x100ad13
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1035844
call fcn.01034e28
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1002138
call sub.MFC42u.DLL_CObList::CObList
or dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100ad1e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1035844
call fcn.01034e28
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1002138
call sub.MFC42u.DLL_CObList::CObList
or dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100d354
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 5
xor edx, edx
mov ecx, 0x3e8
div ecx
push esi
push edi
push 0xa
pop ecx
push 2
mov dword [ebp + 0xc], 0x2e
mov edi, eax
mov eax, edx
xor edx, edx
div ecx
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 8]
push 0x18
call sub.MFC42u.DLL_CString::GetBufferSetLength
test esi, esi
je 0x100d3b6
push esi
lea ecx, [ebp + 0xc]
push ecx
push edi
push 0x100250c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x100d3c6
push edi
push 0x1002504
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call sub.MFC42u.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebp
ret 8
Function at 0x100dbc4
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1035a59
call fcn.01034e28
sub esp, 0x64
mov eax, dword [0x103e6bc]
and dword [ebp - 0x58], 0
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], eax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0x12
mov esi, 0x400
push esi
mov byte [ebp - 4], 2
call edi
mov ebx, dword [sym.imp.msvcrt.dll__wtol]
lea eax, [ebp - 0x3c]
push eax
call ebx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x48]
push 6
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1c]
push eax
push 0xe
push esi
mov dword [ebp - 0x68], 3
call edi
push 6
push dword [ebp - 0x60]
push 0xf
push esi
call edi
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0x1010
push esi
call edi
lea eax, [ebp - 0x3c]
push eax
call ebx
pop ecx
push 0xa
push 0x14
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__ltow]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x4c]
push ebx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
call edi
cmp eax, ebx
je 0x100dcdd
mov ebx, dword [ebp - 0x4c]
push eax
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0
push esi
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
call sub.MFC42u.DLL_CString::CString_3
jmp 0x100dcea
mov ecx, dword [ebp - 0x54]
push 0x10020d4
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01032f6b
leave
ret 8
Function at 0x10118f5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1035e25
call fcn.01034e28
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea edi, [ebx + 4]
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_1
add ebx, 8
mov ecx, ebx
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0100cf4b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
mov esi, 0x104
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x10]
push esi
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0x1002be0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebp - 0x10]
push esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0x1002be0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [ebx]
call sub.MFC42u.DLL_CFile::Remove
push dword [edi]
call sub.MFC42u.DLL_CFile::Remove
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebx]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100cedd
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
push dword [edi]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100cedd
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_operator
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x101edae
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
jle 0x101eeb9
push edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx*4]
push 0x10047fc
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee09
mov dword [esi + 0x154], ebx
mov dword [ebp - 8], ebx
jmp 0x101eea9
push 0x10047f8
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee24
mov dword [esi + 0x154], ebx
jmp 0x101eea9
push 0x10047f0
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee3c
mov dword [esi + 0x168], ebx
jmp 0x101eea9
mov eax, dword [esi + 0x168]
xor edx, edx
cmp eax, edx
je 0x101ee69
lea ecx, [esi + 0x16c]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
je 0x101eea2
xor edx, edx
cmp eax, edx
je 0x101ee69
lea ecx, [esi + 0x170]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x158]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
cmp dword [ebp - 8], edx
je 0x101eea9
lea ecx, [esi + 0x15c]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x160]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x164]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
jne 0x101eea9
push dword [edi]
call sub.MFC42u.DLL_CString::operator_1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x101ede2
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
leave
ret

Function at 0x10223ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ecx + 0x44], esi
je 0x1022468
mov ecx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x24]
cmp dword [eax - 8], esi
jne 0x1022411
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
je 0x1022468
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1005078
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1022468
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100504c
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102245f
cmp dword [ebp - 8], esi
sete al
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10224b4
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
mov eax, 0x1036944
call fcn.01034e28
sub esp, 0xc
push ebx
push esi
mov esi, dword [ecx + 0x40]
push edi
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [eax - 8], ebx
mov dword [ebp - 4], ebx
je 0x10224b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
jne 0x10224b2
cmp dword [esi + 0x104], ebx
je 0x10224f5
push 0xffffffffffffffff
push 0x31
push 0x1b91
call sub.MFC42u.DLL_AfxMessageBox
dec eax
je 0x10224db
dec eax
je 0x102257a
push 1
mov ecx, 0x103ee08
call fcn.0101f3a4
jmp 0x102257a
mov ecx, esi
call fcn.0101ce65
push edi
lea ecx, [ebp - 0x10]
mov esi, eax
call sub.MFC42u.DLL_CString::operator
cmp esi, ebx
je 0x102257a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push 0x1001f64
push ebx
push 0x100511c
push SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102254d
cmp dword [ebp + 8], ebx
mov eax, 0x1005118
jne 0x1022530
mov eax, 0x10020d4
push 4
push eax
push 1
push ebx
push 0x10050fc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
push 3
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
xor eax, eax
cmp dword [ebp + 8], ebx
setne al
push eax
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x103007c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c0
mov eax, dword [0x103e6bc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x8b8], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0x8bc], eax
mov eax, dword [ebp + 0x28]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x8b0], eax
mov dword [eax], edi
mov dword [ebp - 0x8b4], edi
mov eax, 0x1007028
jne 0x10300c9
mov eax, 0x1007098
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x8a8]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x103021a
push 0x50
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x103020e
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x8a8]
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x1030199
cmp ebx, edi
je 0x1030141
lea eax, [ebp + 0x14]
push eax
push ebx
push edi
push edi
push 0x1007108
push dword [ebp - 0x8ac]
mov word [ebx], di
call esi
mov eax, dword [ebp - 0x8b8]
cmp eax, edi
je 0x1030162
lea ecx, [ebp + 0x1c]
push ecx
push eax
push edi
push edi
push 0x1007120
push dword [ebp - 0x8ac]
mov word [eax], di
call esi
mov eax, dword [ebp - 0x8bc]
cmp eax, edi
je 0x1030183
lea ecx, [ebp + 0x24]
push ecx
push eax
push edi
push edi
push 0x1007114
push dword [ebp - 0x8ac]
mov word [eax], di
call esi
push dword [ebp - 0x8ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x8b4], 1
lea eax, [ebp - 0x8c0]
push eax
lea eax, [ebp - 0x8a4]
push eax
push edi
push edi
push 0x1007138
push dword [ebp - 0x8a8]
mov dword [ebp - 0x8c0], 0x800
call esi
test eax, eax
jne 0x103020e
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x1002824
push ebx
lea eax, [ebp - 0x8a4]
push eax
jmp 0x1030206
mov ecx, dword [ebp - 0x8b0]
cmp dword [ecx], 1
je 0x103020e
lea ecx, [ebp - 0xa4]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1030204
mov eax, dword [ebp - 0x8b0]
mov dword [eax], 1
push ebx
push edi
call esi
cmp eax, edi
pop ecx
pop ecx
jne 0x10301d9
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8b4]
pop edi
pop esi
pop ebx
call fcn.01032f6b
leave
ret 0x24
Function at 0x1031f93
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push esi
call fcn.01031a80
xor esi, esi
cmp eax, esi
jne 0x1032080
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push 0x1031b17
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1031ff3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
test eax, eax
jg 0x1031fe2
call esi
jmp 0x1032080
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1032080
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, 0x4ff
jmp 0x1032033
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1032002
mov ecx, 0x103ee08
call sub.MFC42u.DLL_CCmdTarget::RestoreWaitCursor
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 4]
push eax
push 1
call edi
cmp eax, 1
je 0x1032016
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
pop edi
pop ebx
jne 0x1032074
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 8], 0x80004005
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
leave
ret 4
Function at 0x1034bd7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1007400
call fcn.01034fec
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1034c12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1034c12
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1034c2a
cmp eax, 0x20b
je 0x1034c17
mov dword [ebp - 0x1c], edi
jmp 0x1034c3e
cmp dword [ecx + 0x84], 0xe
jbe 0x1034c12
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1034c38
cmp dword [ecx + 0x74], 0xe
jbe 0x1034c12
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103f47c], 0xffffffff
or dword [0x103f480], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103f44c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103f448]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103f478], eax
call fcn.010350c0
cmp dword [0x103e6c0], edi
jne 0x1034c9b
push fcn.010350c0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010350a9
push 0x103d0a8
push 0x103d0a4
call sub.msvcrt.dll__initterm
mov eax, dword [0x103f444]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103f440]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x103d0a0
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1034d01
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1034dbb
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1034d4f
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1034d1d
cmp ax, 0x22
jne 0x1034d0a
cmp word [esi], 0x22
jne 0x1034d28
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1034d36
cmp ax, 0x20
jbe 0x1034d23
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1034d5c
movzx eax, word [ebp - 0x50]
jmp 0x1034d5f
cmp word [esi], 0x20
jbe 0x1034d28
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1034d4f
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0103571e
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1034d80
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1034db5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01035027
ret