joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100220a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rol dword [esi], cl
outsd dx, dword [esi]
lodsb al, byte [esi]
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x10022051
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x1002204b
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x1002203c
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10021df7
shr dword [edx + 0x458d1b6c], 1
inc ebp
test al, 0x50
call fcn.10021e07
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10021dbc
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x100220e5
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10021df7
Function at 0x100221c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10021e07
push eax
push esi
push dword [ebp + 8]
call fcn.10021dbc
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
pop ebp
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10021e07
push eax
push esi
push dword [ebp + 8]
call fcn.10021dbc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10021df7
dec ecx
dec esi
dec esp
pop ebx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10021df7
salc
push ecx
xchg edi, eax
jae 0x1002226d
invalid
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x1002221b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10021e07
push eax
push esi
push dword [ebp + 8]
call fcn.10021dbc
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
pop ebp
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10021e07
push eax
push esi
push dword [ebp + 8]
call fcn.10021dbc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10021df7
dec ecx
dec esi
dec esp
pop ebx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10021df7
salc
push ecx
xchg edi, eax
jae 0x1002226d
invalid
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x100224b9
Capabilities:
Inspect section memory permissions

Disassembly:
cmp ax, word [edi + 6]
jne 0x100224ce
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100224ec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1002254a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
inc eax

Function at 0x10022515
Capabilities:
Inspect section memory permissions

Disassembly:
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
Function at 0x1002252b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10022531
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1002253a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10022544
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10022526
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100224b0
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x1002269c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10021dbc
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
invalid
nop
stc
invalid

Function at 0x10023cbe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.10021d68
add esp, 0xc
jmp 0x10023d6f

Function at 0x40168a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40f0d4], 0
jne 0x401698
call fcn.00401660
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4016c5
test cl, 7
je 0x4016c5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec esi
inc ecx
jmp 0x4016a6
cmp esi, 8
jb 0x401749
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x40f0d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec edi
jne 0x4016cf
xor edx, edx
test esi, esi
jbe 0x401769
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x40f0d0]
inc edx
cmp edx, esi
jb 0x401750
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4bbc8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23b8
cmp edx, dword [eax]
je 0x4bbcaf
add eax, 8
inc ecx
cmp eax, 0x4c2448
jl 0x4bbca0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23b8]
jne 0x4bbddd
mov eax, dword [0x4c7dc0]
cmp eax, 1
je 0x4bbdb7
test eax, eax
jne 0x4bbce0
cmp dword [0x4c22e4], 1
je 0x4bbdb7
cmp edx, 0xfc
je 0x4bbddd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbd17
lea eax, [ebp - 0x1a4]
push 0x4c0500
push eax
call fcn.004bc670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcb00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbd5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcb00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c04fc
push edi
call fcn.004be9d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c04e0
push eax
call fcn.004bc670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc680
lea eax, [ebp - 0xa0]
push 0x4c04dc
push eax
call fcn.004bc680
push dword [esi + 0x4c23bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc680
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c04b4
push eax
call fcn.004be944
add esp, 0x2c
pop edi
jmp 0x4bbddd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23bc]
push 0
push eax
push dword [esi]
call fcn.004bcb00
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 0x401280
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e596
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x124], ecx
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x4012cb
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x11c], esi
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], edi
mov eax, dword [ebp - 0x124]
mov byte [ebp - 4], 1
test eax, eax
je 0x401452
test ebx, ebx
js 0x401452
push ebx
push edi
push eax
call fcn.0046ea70
add esp, 0xc
call fcn.004088e0
lea edx, [eax + 0x200]
test edx, edx
jne 0x401326
xor ecx, ecx
jmp 0x40133f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401330
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x11c]
call fcn.004046a0
mov esi, dword [ebp - 0x11c]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x401452
lea eax, [ecx - 1]
test eax, eax
js 0x401448
cmp eax, ecx
jg 0x401448
cmp word [esi + eax*2], 0x5c
je 0x401387
push 0x4a1b6c
lea ecx, [ebp - 0x11c]
call fcn.00403140
push 7
push str.VERSION
lea ecx, [ebp - 0x11c]
call fcn.00403730
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x114]
push esi
call fcn.004043b0
sub esp, 0xc
lea ecx, [ebp - 0x12c]
push 3
push 1
push Ordinal_1
push dword [eax]
call fcn.004011b0
test eax, eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x114]
sets byte [ebp - 0x115]
cmp eax, ecx
je 0x4013e6
push eax
call fcn.00471958
add esp, 4
cmp byte [ebp - 0x115], 0
mov edi, dword [ebp - 0x12c]
jne 0x401452
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x120], eax
cmp eax, 0xffffffff
jne 0x40141d
call fcn.00404b90
test eax, eax
js 0x401452
mov eax, dword [ebp - 0x120]
cmp dword [ebp - 0x11c], 0
ja 0x401452
jb 0x40142c
cmp eax, ebx
ja 0x401452
mov ecx, dword [ebp - 0x124]
push eax
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00401210
xor ebx, ebx
test eax, eax
setns bl
jmp 0x401454
push 0x80070057
call fcn.00404ad0
xor ebx, ebx
test edi, edi
je 0x40145f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40147e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x4023f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x4d67a8]
push esi
or esi, 0xffffffff
push edi
cmp eax, dword [ecx + 4]
jle 0x402437
push 0x4d67a8
call fcn.0046c1c1
add esp, 4
cmp dword [0x4d67a8], esi
jne 0x402437
call fcn.00408a00
push 0x4d67a8
call fcn.0046c182
add esp, 4
push 0x4d6db0
push 0x18
call dword [sym.imp.HipsDB.dll_Ordinal_9]
mov edi, eax
add esp, 8
test edi, edi
je 0x4024f8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
push 0x4a168c
push eax
call dword [sym.imp.jansson.dll_json_object_get]
add esp, 8
test eax, eax
je 0x402477
push eax
call dword [sym.imp.jansson.dll_json_integer_value]
add esp, 4
mov esi, eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test esi, esi
js 0x4024f8
push 0xf013f
push 0x4a1aa0
push reloc.gdiplus.dll_Ordinal_1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004041d0
test eax, eax
je 0x4024cf
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4024ff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
cmovs esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
push 0x4a1684
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x4024ff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
cmovs esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00402360
mov esi, eax
xor eax, eax
test esi, esi
pop edi
cmovs esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0x20119
push str.SOFTWAREHuorongSysdiag_app
push reloc.upgrade.dll_Ordinal_2
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], vtable.CCfgOPReg.0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004041d0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x402f0d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.InstallTime
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x402ef4
cmp dword [esp + 0x14], 0xb
mov eax, 0xd
cmovne ecx, eax
xor eax, eax
test ecx, ecx
sete al
test eax, eax
je 0x402f0d
mov edi, dword [esp + 0x18]
mov eax, edi
mov ebx, dword [esp + 0x1c]
or eax, ebx
jne 0x402f1b
push 0
call fcn.00476551
add esp, 4
mov edi, eax
mov ebx, edx
test esi, esi
je 0x402f26
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403db9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403df6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403df2
nop word [eax + eax]
cmp esi, edx
jae 0x403df6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403de0
cmp esi, edx
jb 0x403dfd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4041c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40418f
cmp eax, 2
jne 0x4041ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4041bb
test ecx, ecx
je 0x4041b6
test cl, 1
jne 0x4041ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4041bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x404e20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b6c
call fcn.0046cfb0
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2b64], ecx
lea edi, [ebp - 0x58]
mov ecx, 0x13
mov dword [ebp - 0x2b60], 1
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea eax, [ebp - 0x2b5c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x58]
movsw word es:[edi], word [esi]
push eax
push reloc.upgrade.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404e92
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x2b54], 0x3e8
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2b54]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
push dword [ebp - 0x2b5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405018
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x2b58]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x2b5c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fce
lea eax, [ebp - 0x2b54]
mov dword [ebp - 0x2b54], 0x2710
push eax
lea eax, [ebp - 0x2b50]
push eax
lea eax, [ebp - 0x2b68]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x2b58]
call ebx
test eax, eax
jne 0x404fc6
mov eax, dword [ebp - 0x2b64]
lea ecx, [ebp - 0x2b50]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404f60
test dl, dl
je 0x404f5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404f60
add eax, 2
add ecx, 2
test dl, dl
jne 0x404f40
xor eax, eax
jmp 0x404f65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404fc6
lea eax, [ebp - 0x2b54]
mov dword [ebp - 0x2b54], 0x2710
push eax
lea eax, [ebp - 0x2b50]
push eax
lea eax, [ebp - 0x2b68]
push eax
push 0
push str.MatchingDeviceId
push dword [ebp - 0x2b58]
call ebx
test eax, eax
jne 0x404fc6
lea eax, [ebp - 0x2b50]
push eax
push str.MatchingDeviceId:___s__n
call fcn.00405aa0
push 4
lea eax, [ebp - 0x2b50]
push str.pci_
push eax
call fcn.004805bc
add esp, 0x14
test eax, eax
je 0x405006
push dword [ebp - 0x2b58]
call edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b54]
mov dword [ebp - 0x2b54], 0x3e8
push eax
lea eax, [ebp - 0x440]
inc esi
push eax
push esi
push dword [ebp - 0x2b5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x404ed1
jmp 0x405018
push dword [ebp - 0x2b58]
call edi
mov dword [ebp - 0x2b60], 0
push dword [ebp - 0x2b5c]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2b60]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x405040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.0046cfb0
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea eax, [ebp - 0x7d8]
mov esi, 1
push 0x7d0
push eax
call fcn.00405a60
add esp, 0x10
lea eax, [ebp - 0x2eec]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x7d8]
push eax
push reloc.upgrade.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4050ad
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2ef0]
mov dword [ebp - 0x2ef0], 0x2710
push eax
lea eax, [ebp - 0x2ee8]
push eax
lea eax, [ebp - 0x2ef4]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x2eec]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050ff
push 4
lea eax, [ebp - 0x2ee8]
push str.pci_
push eax
call fcn.004805bc
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x2eec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046be2f
mov esp, ebp
pop ebp
ret