joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d490]
jne 0x406109
repz ret
jmp fcn.00407ee9

Function at 0x407b13
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405bca
and dword [ebp - 0x14], 0
cmp dword [0x40e7a4], 0
mov dword [ebp - 0x18], eax
jne 0x407bc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407c6e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407c6e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e7a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e7a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e7ac], eax
call edi
push eax
call esi
mov dword [0x40e7b4], eax
test eax, eax
je 0x407bc6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e7b0], eax
mov eax, dword [0x40e7b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407c1f
cmp dword [0x40e7b4], ecx
je 0x407c1f
push eax
call esi
push dword [0x40e7b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407c1f
test ebx, ebx
je 0x407c1f
call edi
test eax, eax
je 0x407c16
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407c16
test byte [ebp - 8], 1
jne 0x407c1f
or dword [ebp + 0x10], 0x200000
jmp 0x407c52
mov eax, dword [0x40e7a8]
cmp eax, dword [ebp - 0x18]
je 0x407c52
push eax
call esi
test eax, eax
je 0x407c52
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407c52
mov eax, dword [0x40e7ac]
cmp eax, dword [ebp - 0x18]
je 0x407c52
push eax
call esi
test eax, eax
je 0x407c52
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e7a4]
call esi
test eax, eax
je 0x407c6e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407c70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004060ff
leave
ret
Function at 0x402308
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 8], 0x5c6b7
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x402364
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004f77d8
push edx
push eax
mov ecx, dword [ebp + 0xc]
movsx eax, byte [ecx]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
inc dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x40232c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40ecec
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
push 0x40
push 0
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
push dword [ebp + 8]
call fcn.0040ed44
add esp, 0x10
mov edx, dword [ebp + 8]
mov byte [edx + 0x58], 0x80
pop ebp
ret

Function at 0x421afc
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x514ea8
call fcn.004f0e20
push dword [ebp + 0xc]
call fcn.0042132c
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
push dword [ebp + 0xc]
call fcn.004177bc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov word [ebp - 0x24], 0xc
add esp, 0xfffffff0
push dword [ebp + 0xc]
lea eax, [esp + 4]
push eax
call fcn.004177c8
add esp, 8
mov word [ebp - 0x24], 0x18
inc dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
lea ecx, [ebp - 0x10]
push ecx
mov word [ebp - 0x24], 0xc
dec dword [ebp - 0x18]
call fcn.0040f924
add esp, 0x18
inc dword [ebp - 0x18]
dec dword [ebp - 0x18]
push 2
lea eax, [ebp - 0x10]
push eax
call fcn.0040f900
add esp, 8
push dword [ebp + 0xc]
call fcn.00421bfc
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
push dword [ebp + 0xc]
call fcn.00421c08
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], eax
push dword [ebp + 0xc]
call fcn.00421590
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], eax
push dword [ebp + 0xc]
call fcn.00421584
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], eax
push dword [ebp + 0xc]
call fcn.00421c14
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], eax
push dword [ebp + 0xc]
call fcn.00421c20
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44], eax
push dword [ebp + 0xc]
call fcn.00421c2c
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x48], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x4c], ecx
mov eax, dword [ebp - 0x34]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret
Function at 0x463194
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4631e6
test eax, edx
je 0x4631e9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4631a9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4631cf
add ecx, 4
js 0x4631bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4631cc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4631f5
test edx, edx
jne 0x46319c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x49e9cc
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 0x49e9d2
ret
Function at 0x4be588
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4be743
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00475fc8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x4be75c
call fcn.00475b5c
mov eax, ebx
call fcn.0045cb3c
mov edi, eax
dec edi
test edi, edi
jl 0x4be640
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0045cb10
mov edx, dword [0x48a8d4]
call fcn.00474d8c
test al, al
je 0x4be63c
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0045cb10
lea edx, [ebp - 0x14]
call fcn.004c5dfc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00475fc8
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00475bd8
inc esi
dec edi
jne 0x4be5ee
movzx eax, byte [0x4be760]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4be76c
mov eax, dword [ebp - 8]
call fcn.00468514
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004758dc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004c5dfc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4be75c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.004c5dfc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4be75c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4be75c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4be778
call fcn.00464584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be74a
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00475868
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00475868
lea eax, [ebp - 0x14]
call fcn.00475844
lea eax, [ebp - 0x10]
call fcn.00475844
lea eax, [ebp - 8]
mov edx, 2
call fcn.00475868
ret
Function at 0x6321af
Capabilities:
Encode data using xor

Disassembly:
popal
cmp al, 0x6d
mov dword [esp + 8], esi
bt si, sp
bt eax, 0x1d
mov dword [esp + 4], edi
mov byte [esp], 0xff
mov byte [esp], bh
test di, 0xd54e
cmc
mov dword [esp], ebx
stc
test eax, eax
call fcn.0062f94a
cmp cl, byte [eax]
pushal
pop ecx
cmp edi, esp
jg 0x6321d5
jno 0x6321ae
invalid
in eax, 0x31
push esp
sub dword [edi - 0x6b031c59], 0xffffff9d
cmc
inc esi
cmc
movsd dword es:[edi], dword [esi]
mov bl, 5
mov eax, 0x8ca954ab
nop
sahf
pop eax
mov byte [eax - 0x764131d5], bl
cmc
daa
outsb dx, byte [esi]
or byte [ecx + 0x53], dl
cmp edx, dword [eax + 0x683008da]
pop esi
les edx, [ecx + 0x15]
push 0xffffffffffffff96
sbb bl, byte [edi - 0x13]
push ecx
adc eax, 0x5f1a966a
in eax, dx
popfd
mov edx, 0xa0a40260
add eax, 0x5b1dcbb7
not dword [ecx + 0x32b61c1a]
xor dword [eax + 0x6cc1c44b], 0xfffffff6
mov bh, 0x1f
movsb byte es:[edi], byte [esi]
fsub st(3), st(0)
sbb bl, byte [esi + esi*4]
xor al, byte [ebx - 0x3e3bb450]
insb byte es:[edi], dx
div byte [edi - 0x14235be1]
cmp esp, 0x9d16bad3
inc edx
loope 0x632221
pop esp
mov dword [0x2198897b], eax
xchg esp, eax
in eax, dx
mov edx, 0x3592961d
cmpsd dword [esi], dword es:[edi]
and eax, 0x9f36c59c
pop esi
lodsb al, byte [esi]
mov bl, 0x25
push 0xf343cc2
ja 0x63220d
xchg ebp, eax
sub al, byte [esi + 0x26]
and dword [ecx], esp
invalid

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x78]
mov ecx, 0x1b
push esi
push edi
mov esi, str.sdfksOIAJEFJLKALSDKFjkdhfiehsdKASDJJLKNASDHFUIAkhfu340985LIASDJFOISDLKJFOIESJFDKSMFMLKdLKASDJFOIDJKKfhisdfi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test eax, eax
jle 0x40105f
mov edi, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
sub edi, ebx
mov eax, ecx
mov ebp, 0x28
cdq
idiv ebp
lea esi, [ecx + ebx]
mov al, byte [esp + edx + 0x10]
mov dl, byte [edi + esi]
xor al, dl
inc ecx
mov byte [esi], al
mov eax, dword [esp + 0x88]
cmp ecx, eax
jl 0x40102e
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x6c
ret
pop edi
mov eax, 1
pop esi
add esp, 0x6c
ret

Function at 0x401070
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d358
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp]
push esi
push str.SOFTWAREShilingtongGnet_pppoe2Account_
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4010d5
push eax
push eax
push eax
lea edx, [esp + 0x18]
push eax
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40110b
mov esi, dword [esp + 0xc]
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x401130
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40d37b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push str.SOFTWAREShilingtongGnet_pppoe2Account_
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x3a4
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4011ae
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov esi, dword [esp + 0x128]
lea edx, [esp + 0xc]
push edi
push edx
mov edx, dword [esp + 0x12c]
push esi
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov byte [esp + 0x38], 0
mov dword [esp + 0x34], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 0xc]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
je 0x401228
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
push 0x3a4
push esi
push esi
call fcn.00401000
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x401d70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40d4c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
mov esi, ecx
push eax
push 0x83
mov dword [esp + 0x2c], esi
call fcn.0040a728
xor edi, edi
lea ecx, [esi + 0x64]
mov dword [esp + 0x30], edi
call fcn.00403dd0
lea ecx, [esi + 0x228]
mov byte [esp + 0x30], 1
call fcn.00403dd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
mov dword [esi], 0x40e740
mov dword [esi + 0x3ec], 1
mov dword [esi + 0x3f0], edi
mov dword [esi + 0x3f4], 1
call fcn.0040a5ba
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.0040a5ba
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x24]
mov ebx, 4
push edx
push eax
mov byte [esp + 0x3c], bl
call fcn.00401b50
add esp, 0xc
test eax, eax
je 0x401e28
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x3f4], ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push eax
push str.TypeOfNotifyUpdate
push str.SOFTWAREShilingtongGnet_pppoe2_systemset_
push 0x80000002
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], ebx
call fcn.00403780
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x2c]
push ecx
push edx
push str.DaysToNotifyUpdate
push str.SOFTWAREShilingtongGnet_pppoe2_systemset_
push 0x80000002
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], ebx
call fcn.00403780
lea eax, [esp + 0x60]
lea ecx, [esp + 0x44]
push eax
push ecx
push str.TimeOfGetUpdatePackage
push str.SOFTWAREShilingtongGnet_pppoe2_systemset_
push 0x80000002
mov dword [esp + 0x58], edi
mov dword [esp + 0x74], ebx
call fcn.00403780
mov eax, dword [esp + 0x50]
add esp, 0x3c
cmp eax, edi
je 0x401ec7
mov dword [esi + 0x3ec], eax
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x401edd
mov dword [esi + 0x3f0], eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x401ee7
mov dword [esi + 0x3ec], 1
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4036a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
mov dword [esp + 0x14], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4036cd
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [esp]
push esi
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x403710
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403740
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x403780
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4037a3
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x4037e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40380e
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
cmp edx, 4
jne 0x403823
mov ecx, 4
jmp 0x403831
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x403860
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403897
mov ecx, dword [esp + 0x98]
push str.UNKNOWOS
call sub.MFC42.DLL_CString::operator
xor eax, eax
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x4038ca
mov eax, dword [esp + 8]
test eax, eax
je 0x4038ad
cmp eax, 0xa
jne 0x4038f8
mov ecx, dword [esp + 0x98]
push str.WIN98
call sub.MFC42.DLL_CString::operator
mov eax, 1
add esp, 0x94
ret
cmp eax, 5
jne 0x403962
mov eax, dword [esp + 8]
test eax, eax
jne 0x40391a
mov ecx, dword [esp + 0x98]
push str.WIN2000
call sub.MFC42.DLL_CString::operator
mov eax, 2
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x40388e
mov ecx, dword [esp + 0x98]
push str.WINME
call sub.MFC42.DLL_CString::operator
mov eax, 3
add esp, 0x94
ret
cmp eax, 1
jne 0x40393c
mov ecx, dword [esp + 0x98]
push str.WINXP
call sub.MFC42.DLL_CString::operator
mov eax, 4
add esp, 0x94
ret
cmp eax, 2
jne 0x40388e
mov ecx, dword [esp + 0x98]
push str.WIN2003
call sub.MFC42.DLL_CString::operator
mov eax, 5
add esp, 0x94
ret
cmp eax, 6
jne 0x403984
mov ecx, dword [esp + 0x98]
push str.WINVISTA
call sub.MFC42.DLL_CString::operator
mov eax, 6
add esp, 0x94
ret
cmp eax, 7
jne 0x40388e
mov ecx, dword [esp + 0x98]
push str.WINDOWS7
call sub.MFC42.DLL_CString::operator
mov eax, 7
add esp, 0x94
ret

Function at 0x4039b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x40d66b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
lea eax, [esp + 4]
push esi
push eax
xor esi, esi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4039fb
pop esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
cmp dword [esp + 0xc], 5
jne 0x403a79
cmp dword [esp + 0x10], 1
jne 0x403a79
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push str.Service
lea ecx, [esp + 8]
mov dword [esp + 0xa8], esi
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x403a65
push str.Pack
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x403a65
push 0x32
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Find
test eax, eax
jg 0x403a60
push 0x33
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x403a65
mov esi, 1
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xa4
ret