joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40157d
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push 0x818
push 0x420758
call fcn.00412ebc
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push dword [ebp + 8]
push 0x429630
mov ecx, 0x42965c
call fcn.0040126a
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
mov esi, 0x420604
lea edi, [ebp - 0x28]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00408e64
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x401694
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x401691
push str.RegServer
push esi
call edi
test eax, eax
je 0x401691
push 4
push str.auto
push esi
call fcn.00413730
add esp, 0xc
test eax, eax
jne 0x40161b
mov dword [0x428064], ebx
jmp 0x401679
push 9
push str.scheduled
push esi
call fcn.00413730
add esp, 0xc
test eax, eax
jne 0x40163b
mov dword [0x429654], 1
jmp 0x401679
push 7
push str.pending
push esi
call fcn.00413730
add esp, 0xc
test eax, eax
jne 0x40165b
mov dword [0x429658], 1
jmp 0x401679
push 4
push str.test
push esi
call fcn.00413730
add esp, 0xc
test eax, eax
jne 0x401679
lea eax, [esi + 5]
push eax
call fcn.0040ec7f
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00408e64
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x4015df
jmp 0x401694
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], ebx
je 0x401751
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push str.SunJavaUpdateCheckerMutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x401727
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401727
call fcn.0040bc3c
test eax, eax
jne 0x40171d
mov edi, 0x400
push edi
lea eax, [ebp - 0x428]
push eax
push 0x72
push dword [0x4298c0]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
push edi
lea eax, [ebp - 0x828]
push eax
push 0x75
push dword [0x4298c0]
call esi
push 0x10
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1c], 0x80004005
jmp 0x401748
call fcn.00401531
mov dword [ebp - 0x1c], eax
jmp 0x401748
mov dword [ebp - 0x1c], 0x64
cmp dword [ebp - 0x20], ebx
je 0x401748
cmp dword [0x428064], ebx
jne 0x401743
cmp dword [0x429654], ebx
je 0x401748
call fcn.0040ee45
or dword [ebp - 4], 0xffffffff
call fcn.0040176e
mov ecx, 0x42965c
call fcn.004014df
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00412ef7
ret 0x10
Function at 0x40210e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41ed2e
call fcn.00413708
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x428060]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4021b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x402180
push edi
call fcn.00401b30
test al, al
pop ecx
je 0x402180
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00413830
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x402196
lea eax, [edi + 8]
push eax
call fcn.00413810
cmp eax, ebx
pop ecx
je 0x4021b7
mov dword [eax], ebx
mov dword [ebp - 0x18], eax
lea esi, [eax + 8]
cmp esi, ebx
je 0x4021b7
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4021b9
xor eax, eax
cmp eax, ebx
jne 0x4021e0
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4021d6
lea ecx, [ebp - 0x424]
call fcn.0040343b
mov esi, 0x8007000e
jmp 0x4022d3
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x4021ff
call fcn.00401b89
mov esi, eax
jmp 0x4022ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x402221
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40222b
call fcn.00401b89
jmp 0x4022af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
inc eax
cmp eax, 0x400
mov byte [ebp - 4], 2
jbe 0x402256
push eax
lea ecx, [ebp - 0x424]
call fcn.004022f4
jmp 0x402266
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x402266
mov edi, dword [ebp - 0x424]
cmp edi, ebx
mov dword [ebp - 4], 1
jne 0x40227e
mov esi, 0x8007000e
jmp 0x4022b1
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], bl
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.0040233a
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4022d3
lea ecx, [ebp - 0x424]
call fcn.0040343b
lea ecx, [ebp - 0x18]
call fcn.00401e02
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402efa
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00402e3b
cmp eax, esi
jne 0x402f72
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402f3b
lea eax, [ebp - 0x110]
push eax
call fcn.00402efa
cmp eax, esi
jne 0x402f71
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402f2b
call fcn.00402e24
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00402e24
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403347
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x403352
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40394a
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x460
push 0x420b20
call fcn.00412ebc
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40397e
mov eax, ebx
jmp 0x403ac7
push str.http:__java.sun.com
push 0x42094c
lea eax, [ebp - 0x170]
push eax
call fcn.00413b9e
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x420950
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x403abb
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x370]
mov dword [ebp - 0x60], eax
mov eax, 0x100
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], si
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x420958
push 0x420959
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x403abb
push esi
push 0x4400000
push esi
push 0x42095a
push 0x42095c
lea ecx, [ebp - 0x270]
push ecx
push 0x420968
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x403abb
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403a93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
sub eax, 0x2ee2
je 0x403a90
sub eax, 5
je 0x403a90
sub eax, 0x16
jne 0x403a93
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403abb
cmp dword [ebp - 0x20], 0x197
jne 0x403abb
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00403acf
mov eax, dword [ebp - 0x1c]
call fcn.00412ef7
ret
Function at 0x40514b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4051cf
cmp dword [ebp + 0xc], esi
je 0x4051ba
push dword [ebp - 0x14]
call fcn.00404cc1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x669
jne 0x4051bd
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4051d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4058d9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x604], bl
mov ecx, 0xff
lea edi, [ebp - 0x603]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
cmp dword [esi + 0x194c], ebx
mov byte [ebp - 0x204], bl
pop ecx
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x405929
cmp dword [esi + 0x58], ebx
je 0x405929
xor ecx, ecx
jmp 0x40592c
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x40596d
mov eax, dword [esi + 0x1948]
cmp eax, ebx
je 0x40593f
cmp ecx, ebx
je 0x40596d
mov edx, dword [esi]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x405963
push 1
call fcn.0040fb2d
test eax, eax
pop ecx
je 0x40596d
mov eax, 0x80070204
jmp 0x405a55
call fcn.0040b960
jmp 0x405a53
cmp dword [esi + 0x194c], ebx
je 0x405983
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0040ad91
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0040527e
mov edi, eax
cmp edi, ebx
jl 0x405a48
push str.Download_Status:_Download_Complete
call fcn.0040cba8
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x4059dd
push dword [ebp + 0xc]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x405a53
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x405a4d
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x72
push dword [0x4298c0]
call esi
push 0x400
lea eax, [ebp - 0x604]
push eax
push 0x74
push dword [0x4298c0]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffb
call fcn.0040f2be
call fcn.0040d2e9
mov dword [esp], str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x405a4d
push str.Download_Status:_Download_Failed
call fcn.0040cba8
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b3dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4298bc]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.0040ba46
mov dword [esi + 0x3c], eax
call fcn.0040ede6
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40b305
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40b463
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0040ad48
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40b791
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b7c5
xor eax, eax
jmp 0x40b82a
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x1e
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
pop edi
jne 0x40b7f8
mov byte [ebp - 0x38], bl
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b82d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
and dword [ebp + 0x74], 0
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x14], 2
pop edi
jne 0x40b8bf
cmp dword [ebp - 0x20], 6
je 0x40b8ba
cmp dword [ebp - 0x20], 5
jne 0x40b8bf
cmp dword [ebp - 0x1c], 1
jae 0x40b8ba
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b877
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40b8ae
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b88b
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40b8ae
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x10]
push 0x421fe4
push eax
call fcn.00413e41
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40b8bf
cmp dword [ebp + 0x74], 2
jb 0x40b8bf
xor eax, eax
inc eax
jmp 0x40b8c1
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40b8c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
pop edi
jne 0x40b90d
cmp dword [ebp - 0x18], 6
jne 0x40b8ff
xor eax, eax
inc eax
jmp 0x40b90f
cmp dword [ebp - 0x18], 5
jne 0x40b90d
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x40b90f
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40b960
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x422284
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b987
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4222ac
push dword [ebp - 4]
call esi
push 0x4222bc
push dword [ebp - 4]
call esi
push 0x4222cc
push dword [ebp - 4]
call esi
push 0x4222e0
push dword [ebp - 4]
call esi
push 0x4222f0
push dword [ebp - 4]
call esi
push 0x422300
push dword [ebp - 4]
call esi
push 0x422314
push dword [ebp - 4]
call esi
push 0x422324
push dword [ebp - 4]
call esi
push 0x422330
push dword [ebp - 4]
call esi
push 0x42233c
push dword [ebp - 4]
call esi
push 0x422348
push dword [ebp - 4]
call esi
push 0x422354
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
push 0x422368
push dword [ebp - 4]
call esi
push 0x422378
push dword [ebp - 4]
call esi
call fcn.0040b8c6
test eax, eax
je 0x40ba37
push 0x42238c
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40baa6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x422438
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb16
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x422460
push dword [ebp - 4]
call esi
push 0x422470
push dword [ebp - 4]
call esi
push 0x42247c
push dword [ebp - 4]
call esi
push 0x42248c
push dword [ebp - 4]
call esi
push 0x4224a0
push dword [ebp - 4]
call esi
push 0x4224b4
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40bb18
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x4224c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
call esi
push 0x4224f0
push edi
mov dword [ebp - 8], eax
call esi
push 0x422504
push edi
mov dword [ebp - 0x18], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x10], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x1c], eax
call esi
xor ebx, ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
mov dword [ebp - 0x14], ebx
call dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 8
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00413810
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x40bc06
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
jne 0x40bc06
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 8
cmp eax, dword [esi]
jb 0x40bbe9
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call fcn.00413011
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [ebp - 0x20]
cmp edi, ebx
je 0x40bc34
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bc3c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x9c
call esi
test eax, eax
jne 0x40bc7b
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call esi
test eax, eax
je 0x40bc97
cmp dword [ebp - 0x14], 2
jne 0x40bc94
cmp dword [ebp - 0x20], 6
jae 0x40bc94
cmp dword [ebp - 0x20], 4
jb 0x40bc94
call fcn.0040bb18
jmp 0x40bc97
xor eax, eax
inc eax
pop edi
pop esi
add ebp, 0x78
leave
ret