joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417e80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x442a40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 2
cmp dword [esp + 0x88], 0
mov edi, 8
jne 0x417eea
lea esi, [esp + 0xc]
call fcn.00417a60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x38], 3
call fcn.00405000
cmp dword [esp + 0x24], edi
jb 0x417eea
mov eax, dword [esp + 0x10]
push eax
call fcn.00427f9c
add esp, 4
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x417efb
lea edx, [esp + 0x78]
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x417f09
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x417f17
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x74]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp dword [esp + 0x50], edi
jb 0x417f3a
mov eax, dword [esp + 0x3c]
push eax
call fcn.00427f9c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
cmp dword [esp + 0x6c], edi
jb 0x417f64
mov edx, dword [esp + 0x58]
push edx
call fcn.00427f9c
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp dword [esp + 0x8c], edi
jb 0x417f91
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00427f9c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x418270
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440e80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x1000
mov dword [ebp - 0x18], ebx
lea esi, [ebx + 1]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00426a53
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
mov dword [edi], ecx
test ebx, ebx
jne 0x4182dc
lea edx, [ebp - 0x14]
push edx
push edi
push ebx
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ebx, eax
test ebx, ebx
je 0x4182f8
mov eax, dword [edi + 4]
push eax
jmp 0x4182f2
lea ecx, [ebp - 0x14]
push ecx
push edi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
mov esi, eax
test esi, esi
je 0x4182f8
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
cmp esi, 1
jne 0x418335
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
mov esi, eax
test esi, esi
je 0x41833c
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
test esi, esi
je 0x41833c
lea edx, [ebp - 0x14]
push edx
push edi
push ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
mov esi, eax
test esi, esi
je 0x41833c
mov eax, dword [edi + 4]
push eax
jmp 0x418313
mov dword [ebp - 0x18], 1
push edi
call fcn.00428033
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4182ad
push ebx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418370
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
mov eax, 1
mov dword [esp + 8], esi
test byte [0x456db4], al
jne 0x4183b5
or dword [0x456db4], eax
xor eax, eax
push 0x443b20
mov dword [0x456db0], 7
mov dword [0x456dac], esi
mov word [0x456d9c], ax
call fcn.00429653
add esp, 4
cmp dword [0x456dac], esi
je 0x4183e2
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
push 0xffffffffffffffff
mov word [ebp + 4], cx
push esi
mov eax, 0x456d98
mov ecx, ebp
call fcn.00405000
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push ebx
push edi
push esi
mov eax, 0x104
mov edi, 0x456d98
call fcn.00418a80
cmp dword [0x456db0], 8
mov eax, dword [0x456d9c]
jae 0x418407
mov eax, 0x456d9c
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [0x456dac]
mov ebx, eax
cmp ebx, ecx
ja 0x418430
or eax, 0xffffffff
mov esi, 0x456d98
call fcn.00405350
xor esi, esi
jmp 0x41843f
mov eax, ebx
push esi
sub eax, ecx
mov edi, 0x456d98
call fcn.00418a80
push 0xffffffffffffffff
xor edx, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], esi
push esi
mov eax, 0x456d98
mov ecx, ebp
mov word [ebp + 4], dx
call fcn.00405000
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x418570
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x441859
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov edi, ecx
xor eax, eax
mov dword [esp + 0x14], eax
lea esi, [edi + 4]
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], eax
mov dword [esp + 0x18], edi
mov byte [esp + 0x1c], 0x30
mov byte [esp + 0x1d], 0x31
mov byte [esp + 0x1e], 0x32
mov byte [esp + 0x1f], 0x33
mov byte [esp + 0x20], 0x34
mov byte [esp + 0x21], 0x35
mov byte [esp + 0x22], 0x36
mov byte [esp + 0x23], 0x37
mov byte [esp + 0x24], 0x38
mov byte [esp + 0x25], 0x39
mov byte [esp + 0x26], 0x61
mov byte [esp + 0x27], 0x62
mov byte [esp + 0x28], 0x63
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], 0x66
mov word [esi], cx
mov dword [esp + 0x38], eax
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x14], 1
cmp ebx, 0x20
ja 0x41864e
cmp dword [edi + 0x18], 0x20
je 0x41864e
push 1
push 0x20
mov eax, edi
call fcn.004053e0
test al, al
je 0x41864e
cmp dword [edi + 0x18], 8
mov dword [edi + 0x14], ebx
jb 0x418648
mov esi, dword [esi]
xor edx, edx
mov word [esi + ebx*2], dx
xor ebx, ebx
movzx esi, byte [ebx + ebp]
mov eax, esi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
and esi, 0x8000000f
jns 0x41866c
dec esi
or esi, 0xfffffff0
inc esi
movsx ax, byte [esp + eax + 0x1c]
movzx ecx, ax
push ecx
mov eax, 1
call fcn.00418a80
movsx dx, byte [esp + esi + 0x1c]
movzx eax, dx
push eax
mov eax, 1
call fcn.00418a80
inc ebx
cmp ebx, 0x10
jb 0x418650
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00427fa7
add esp, 0x28
ret
Function at 0x41aa20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440f1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00426c81
push 4
mov dword [esp + 0x20], 0
call fcn.00428400
mov edi, eax
add esp, 4
test edi, edi
je 0x41aa9e
call fcn.00426feb
mov dword [edi], eax
call fcn.00426e19
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00426c42
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41aa93
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00426c6a
jmp 0x41aaa0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x420260
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x70], 0
jne 0x420275
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x70]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4
Function at 0x421570
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test eax, eax
je 0x421585
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 1
test eax, eax
je 0x4215c3
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4215b2
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
ret
Function at 0x421c00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x442748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x421dd6
mov edi, edi
mov eax, dword [edi + 0x20]
call fcn.00422430
mov esi, eax
cmp esi, ebx
je 0x421da1
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x421c6a
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ebx
push ebx
push 1
push ecx
push edx
call eax
add esp, 0x14
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x1c], ax
push ebx
mov eax, esi
lea ecx, [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.00405000
mov dword [esp + 0x3c], ebx
cmp dword [edi + 0xc], ebx
jne 0x421d02
cmp ebp, dword [esi + 0x40]
jg 0x421cdb
push esi
mov ecx, edi
call fcn.004215d0
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x421cdb
mov eax, dword [edi + 0xc]
inc ebp
cmp eax, ebx
jne 0x421cdb
cmp ebp, dword [esi + 0x40]
jg 0x421cd6
lea esp, [esp]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0xc], 0
jne 0x421cd4
inc ebx
cmp ebx, 0xa
jl 0x421cc0
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x421c9a
cmp dword [edi + 0xc], ebx
jne 0x421d02
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x421cfc
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x4c]
push esi
push ecx
mov ecx, dword [esi + 0x48]
push 3
push edx
push ecx
call eax
add esp, 0x14
cmp dword [esp + 0x10], ebx
je 0x421d21
cmp dword [esi + 0x30], ebx
je 0x421d21
cmp dword [esi + 0x58], ebx
je 0x421d21
cmp dword [esi + 0x34], 8
jb 0x421d17
mov eax, dword [esi + 0x20]
jmp 0x421d1a
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x421d34
push eax
call fcn.00428033
add esp, 4
mov dword [esi + 0x38], ebx
cmp dword [esi + 0x34], 8
jb 0x421d46
mov eax, dword [esi + 0x20]
push eax
call fcn.00427f9c
add esp, 4
mov ebp, 7
xor edx, edx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebx
mov word [esi + 0x20], dx
cmp dword [esi + 0x18], 8
jb 0x421d69
mov eax, dword [esi + 4]
push eax
call fcn.00427f9c
add esp, 4
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push esi
mov word [esi + 4], ax
call fcn.00427f9c
add esp, 4
cmp dword [edi + 0xc], ebx
jne 0x421dc2
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x421db7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00427f9c
add esp, 4
jmp 0x421db7
mov edx, dword [edi + 0x24]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x421dd6
cmp dword [edi + 0xc], ebx
je 0x421c40
jmp 0x421dd6
cmp dword [esp + 0x2c], 8
jb 0x421dd6
mov eax, dword [esp + 0x18]
push eax
call fcn.00427f9c
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00427fa7
add esp, 0x30
ret
Function at 0x421e00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x441788
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
xor edi, edi
mov dword [esp + 0x14], edi
xor ecx, ecx
mov word [esp + 0x1c], cx
mov ecx, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
lea esi, [ecx + 2]
jmp 0x421e60
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x421e60
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1c]
call fcn.004050f0
mov dword [esp + 0x40], edi
lea edi, [esp + 0x14]
mov ebx, esi
mov dword [esp + 0x14], 0x2f
call fcn.004224b0
mov esi, ebp
cmp eax, 0xffffffff
jne 0x421ec4
xor edx, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
push edx
mov eax, 0x44714c
mov word [ebp + 4], dx
call fcn.004050f0
cmp dword [esp + 0x30], 8
jb 0x421ee8
mov eax, dword [esp + 0x1c]
push eax
jmp 0x421ee0
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + 1]
or ecx, 0xffffffff
call fcn.0040df00
cmp dword [esp + 0x30], 8
jb 0x421ee8
mov edx, dword [esp + 0x1c]
push edx
call fcn.00427f9c
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00427fa7
add esp, 0x30
ret 8
Function at 0x422040
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44297b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
je 0x42207a
lea eax, [ebx + 1]
jmp 0x422161
cmp dword [ebp + 0x54], ebx
mov dword [esp + 0x2c], ebx
jle 0x422156
push 0x28
call fcn.00428400
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
cmp esi, ebx
je 0x4220bc
lea eax, [esi + 4]
push eax
mov dword [esi], ebx
call fcn.004226c0
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
jmp 0x4220be
xor esi, esi
push ebx
lea edi, [esi + 4]
push ebx
push edi
push 0x422850
mov dword [esp + 0x34], 0xffffffff
push ebx
push ebx
mov dword [esp + 0x30], esi
mov dword [edi + 0xc], 0x421bf0
mov dword [edi + 0x10], esi
mov dword [edi + 8], ebx
call fcn.0042b512
add esp, 0x18
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x42211c
cmp esi, ebx
je 0x422144
call fcn.00421570
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x42210a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00422790
push esi
call fcn.00427f9c
add esp, 4
jmp 0x422144
mov esi, dword [ebp + 0x6c]
mov edx, dword [esi + 4]
lea ebx, [ebp + 0x58]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.004225e0
mov ecx, ebx
mov edi, eax
call fcn.00422620
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebp + 0x54]
mov dword [esp + 0x2c], eax
jl 0x422087
xor eax, eax
cmp dword [ebp + 0x70], ebx
setne al
mov dword [ebp + 0x50], eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x422180
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x4221a0
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x4221ae
cmp edi, eax
je 0x4221b3
call fcn.00428627
cmp dword [esp + 0xc], esi
je 0x4222df
test edi, edi
jne 0x4222d4
call fcn.00428627
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x4221da
call fcn.00428627
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x4221f6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x422237
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422226
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x42224c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x42228a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422279
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x422298
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00422790
push edi
call fcn.00427f9c
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x4222db
call fcn.00428627
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x4222c5
call fcn.00428627
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x4221a0
mov eax, dword [edi]
jmp 0x4221cc
mov eax, dword [eax]
jmp 0x4222b7
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x422315
mov esi, dword [eax]
push eax
call fcn.00427f9c
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x4222f6
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422790
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4426bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x422801
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4227f0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x422812
push esi
call fcn.00422910
call fcn.00422a60
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x18]
sub esi, 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422839
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x422ca0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
lea eax, [esp + 4]
push eax
xor bl, bl
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422cde
cmp dword [esp + 0x14], 2
jne 0x422cde
cmp dword [esp + 8], 6
mov al, 1
jae 0x422ce0
mov al, bl
mov ecx, dword [esp + 0x118]
pop ebx
xor ecx, esp
call fcn.00427fa7
add esp, 0x118
ret
Function at 0x422d00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x518
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x422d33
xor al, al
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.00427fa7
add esp, 0x518
ret
push esi
push 0x3ff
lea eax, [esp + 0x121]
push ebx
push eax
mov byte [esp + 0x128], bl
call fcn.0042c0a0
push 0xfe
lea edx, [esp + 0x2e]
xor ecx, ecx
push ebx
mov esi, 0x400
push edx
mov dword [esp + 0x20], esi
mov word [esp + 0x34], cx
call fcn.0042c0a0
lea eax, [esp + 0x34]
add esp, 0x18
lea ecx, [edi + 8]
test eax, eax
je 0x422da3
cmp ecx, ebx
je 0x422da3
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x422d85
sub eax, esi
inc eax
push eax
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push 0xffffffffffffffff
shr esi, 1
lea ecx, [esp + 0x128]
push esi
push ecx
call fcn.004286d0
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x128]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x422e01
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.00427fa7
add esp, 0x518
ret
push 0x400
lea ecx, [esp + 0x120]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0042c0a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.PnpInstanceID
push edx
call esi
test eax, eax
jne 0x422ef6
lea ecx, [esp + 0x11c]
push ecx
push 0x448bb8
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push 4
push edx
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
call fcn.004286d0
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0042b787
lea ecx, [esp + 0x30]
push 0x448bc0
push ecx
call fcn.0042b8af
add esp, 0x24
test eax, eax
jne 0x422ef6
call fcn.00422ca0
test al, al
je 0x422ea5
cmp dword [edi + 0x1a0], 6
jmp 0x422ef2
push 0x400
lea edx, [esp + 0x120]
push ebx
push edx
call fcn.0042c0a0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push str.MediaSubType
push eax
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x422ef6
cmp dword [esp + 0x11c], 1
jne 0x422ef6
mov bl, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x51c]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00427fa7
add esp, 0x518
ret