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

Disassembly:
push 0x818
push 0x41e6d8
call fcn.00411b38
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push dword [ebp + 8]
push 0x426630
mov ecx, 0x426658
call fcn.004014a7
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
mov esi, 0x41e5b8
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.0040126a
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x4013be
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x4013bb
push str.RegServer
push esi
call edi
test eax, eax
je 0x4013bb
push 4
push str.auto
push esi
call fcn.004123b0
add esp, 0xc
test eax, eax
jne 0x401389
mov dword [0x425064], ebx
jmp 0x4013a7
push 9
push str.scheduled
push esi
call fcn.004123b0
add esp, 0xc
test eax, eax
jne 0x4013a7
mov dword [0x426654], 1
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0040126a
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x401355
jmp 0x4013be
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], ebx
je 0x40147b
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 0x401451
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401451
call fcn.0040bed1
test eax, eax
jne 0x401447
mov edi, 0x400
push edi
lea eax, [ebp - 0x428]
push eax
push 0x72
push dword [0x42677c]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
push edi
lea eax, [ebp - 0x828]
push eax
push 0x75
push dword [0x42677c]
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 0x401472
call fcn.004012ab
mov dword [ebp - 0x1c], eax
jmp 0x401472
mov dword [ebp - 0x1c], 0x64
cmp dword [ebp - 0x20], ebx
je 0x401472
cmp dword [0x425064], ebx
jne 0x40146d
cmp dword [0x426654], ebx
je 0x401472
call fcn.0040e9fa
or dword [ebp - 4], 0xffffffff
call fcn.00401498
mov ecx, 0x426658
call fcn.0040171c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00411b73
ret 0x10
Function at 0x402107
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41d8a6
call fcn.00412384
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x425060]
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 0x4021b0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x402179
push edi
call fcn.00401b21
test al, al
pop ecx
je 0x402179
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004124b0
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x40218f
lea eax, [edi + 8]
push eax
call fcn.00412490
cmp eax, ebx
pop ecx
je 0x4021b0
mov dword [eax], ebx
mov dword [ebp - 0x18], eax
lea esi, [eax + 8]
cmp esi, ebx
je 0x4021b0
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 0x4021b2
xor eax, eax
cmp eax, ebx
jne 0x4021d9
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4021cf
lea ecx, [ebp - 0x424]
call fcn.004022ed
mov esi, 0x8007000e
jmp 0x4022cc
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 0x4021f8
call fcn.00401b7a
mov esi, eax
jmp 0x4022b3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40221a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x402224
call fcn.00401b7a
jmp 0x4022a8
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 0x40224f
push eax
lea ecx, [ebp - 0x424]
call fcn.004022f6
jmp 0x40225f
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x40225f
mov edi, dword [ebp - 0x424]
cmp edi, ebx
mov dword [ebp - 4], 1
jne 0x402277
mov esi, 0x8007000e
jmp 0x4022aa
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.0040233c
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4022cc
lea ecx, [ebp - 0x424]
call fcn.004022ed
lea ecx, [ebp - 0x18]
call fcn.00401dfb
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 0x402efc
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.00402e3d
cmp eax, esi
jne 0x402f74
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402f3d
lea eax, [ebp - 0x110]
push eax
call fcn.00402efc
cmp eax, esi
jne 0x402f73
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], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402f2d
call fcn.00402e26
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.00402e26
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403349
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 0x403354
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 0x403943
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x460
push 0x41e9e8
call fcn.00411b38
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 0x403977
mov eax, ebx
jmp 0x403ac0
push str.http:__java.sun.com
push 0x41e998
lea eax, [ebp - 0x170]
push eax
call fcn.0041281e
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x41e99c
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x403ab4
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, pe_nt_image_headers32
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 0x41e9a4
push 0x41e9a5
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 0x403ab4
push esi
push 0x4400000
push esi
push 0x41e9a6
push 0x41e9a8
lea ecx, [ebp - 0x270]
push ecx
push 0x41e9b4
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x403ab4
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403a8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
sub eax, 0x2ee2
je 0x403a89
sub eax, 5
je 0x403a89
sub eax, 0x16
jne 0x403a8c
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 0x403ab4
cmp dword [ebp - 0x20], 0x197
jne 0x403ab4
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00403ac8
mov eax, dword [ebp - 0x1c]
call fcn.00411b73
ret
Function at 0x404c21
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
xor esi, esi
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 - 0x58], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404c8c
push dword [ebp - 0x14]
call fcn.004064d9
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404c81
cmp dword [ebp - 4], 0x669
jne 0x404c81
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x40b57a
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 [0x426778]
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 + 0x34], eax
call fcn.0040bb5d
mov dword [esi + 0x38], eax
call fcn.0040e9e9
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x3c], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x34]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40b4a3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
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.0040af1d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40b931
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 0x41f7f8
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b964
xor eax, eax
jmp 0x40b9bd
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
jne 0x40b986
mov byte [ebp - 0x38], bl
lea eax, [ebp - 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b98c
push esi
sub eax, edx
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 0x40b9d4
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 0x40ba66
cmp dword [ebp - 0x20], 6
je 0x40ba61
cmp dword [ebp - 0x20], 5
jne 0x40ba66
cmp dword [ebp - 0x1c], 1
jae 0x40ba61
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba1e
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40ba55
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba32
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40ba55
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x10]
push 0x41f884
push eax
call fcn.00412ba1
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40ba66
cmp dword [ebp + 0x74], 2
jb 0x40ba66
xor eax, eax
inc eax
jmp 0x40ba68
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40ba6d
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 0x40bab4
cmp dword [ebp - 0x18], 6
jne 0x40baa6
xor eax, eax
inc eax
jmp 0x40bab6
cmp dword [ebp - 0x18], 5
jne 0x40bab4
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x40bab6
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40bb07
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
mov dword [ebp - 0x48], str.Java_Update_Scheduler
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x40bb57
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40bb97
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x41fc78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bbc6
mov eax, 0x80004005
jmp 0x40bd10
cmp dword [ebp + 8], ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
jne 0x40bbe3
push 0x41fca0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40bc03
mov eax, dword [ebp + 8]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bbe9
sub eax, edi
push eax
push dword [ebp + 8]
push 1
push ebx
push str.LocalFileName
push dword [ebp - 4]
call esi
cmp dword [ebp + 0xc], ebx
jne 0x40bc18
push 0x41fcc0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40bc38
mov eax, dword [ebp + 0xc]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bc1e
sub eax, edi
push eax
push dword [ebp + 0xc]
push 1
push ebx
push str.InstallOptions
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x10], ebx
jne 0x40bc4d
push 0x41fce0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40bc6d
mov eax, dword [ebp + 0x10]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bc53
sub eax, edi
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.UpdateDescription
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x14], ebx
jne 0x40bc82
push 0x41fd08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40bca2
mov eax, dword [ebp + 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bc88
sub eax, edi
push eax
push dword [ebp + 0x14]
push 1
push ebx
push str.UpdateMoreInfoUrl
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x18], ebx
jne 0x40bcb7
push 0x41fd30
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40bcd7
mov eax, dword [ebp + 0x18]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bcbd
sub eax, edi
push eax
push dword [ebp + 0x18]
push 1
push ebx
push str.BalloonTitle
push dword [ebp - 4]
call esi
cmp dword [ebp + 0x1c], ebx
jne 0x40bcec
push 0x41fd50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40bd0c
mov eax, dword [ebp + 0x1c]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bcf2
sub eax, edi
push eax
push dword [ebp + 0x1c]
push 1
push ebx
push str.BalloonTip
push dword [ebp - 4]
call esi
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x40bd13
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x41fd78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdab
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x41fda0
push dword [ebp - 4]
call esi
push 0x41fdb0
push dword [ebp - 4]
call esi
push 0x41fdb8
push dword [ebp - 4]
call esi
push 0x41fdc0
push dword [ebp - 4]
call esi
push 0x41fdd4
push dword [ebp - 4]
call esi
push 0x41fde4
push dword [ebp - 4]
call esi
push 0x41fdf0
push dword [ebp - 4]
call esi
push 0x41fe00
push dword [ebp - 4]
call esi
push 0x41fe14
push dword [ebp - 4]
call esi
push 0x41fe28
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40bdad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push str.advapi32.dll
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 str.OpenProcessToken
push edi
mov dword [ebp - 8], eax
call esi
push str.GetTokenInformation
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.00412490
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 0x40be9b
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 0x40be9b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 8
cmp eax, dword [esi]
jb 0x40be7e
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call fcn.00411c8d
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 0x40bec9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bed1
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 0x40bf10
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call esi
test eax, eax
je 0x40bf2c
cmp dword [ebp - 0x14], 2
jne 0x40bf29
cmp dword [ebp - 0x20], 6
jae 0x40bf29
cmp dword [ebp - 0x20], 4
jb 0x40bf29
call fcn.0040bdad
jmp 0x40bf2c
xor eax, eax
inc eax
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40bf33
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xdc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
push str.win32
lea eax, [ebp + 0x50]
xor ebx, ebx
push eax
mov dword [ebp + 0x64], ebx
mov dword [ebp - 0x50], 0x9c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x50]
push eax
call edi
test eax, eax
jne 0x40bf85
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x94
call edi
cmp dword [ebp - 0x40], 2
jne 0x40bfe6
cmp dword [ebp - 0x4c], 4
jne 0x40bf98
push str.winnt
jmp 0x40c011
cmp dword [ebp - 0x4c], 6
jne 0x40bfba
cmp dword [ebp - 0x48], ebx
jne 0x40c017
cmp byte [ebp + 0x4a], 1
lea eax, [ebp + 0x50]
jne 0x40bfb3
push str.winvista
jmp 0x40c014
push str.winlong
jmp 0x40c014
cmp dword [ebp - 0x4c], 5
jne 0x40c017
cmp dword [ebp - 0x48], ebx
jne 0x40bfcc
push str.win2000
jmp 0x40c011
cmp dword [ebp - 0x48], 1
jne 0x40bfd9
push str.winxp
jmp 0x40c011
cmp dword [ebp - 0x48], 2
jne 0x40c017
push str.win2003
jmp 0x40c011
cmp dword [ebp - 0x40], 1
jne 0x40c017
cmp dword [ebp - 0x4c], 4
jne 0x40c00c
cmp dword [ebp - 0x48], 0xa
jne 0x40bfff
push str.win98
jmp 0x40c011
cmp dword [ebp - 0x48], 0x5a
jne 0x40c00c
push str.winme
jmp 0x40c011
push str.win95
lea eax, [ebp + 0x50]
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x50]
push eax
push 0x41ff7c
push dword [ebp + 0x70]
call edi
lea eax, [ebp - 0x3c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c034
sub eax, edx
mov dword [ebp + 0x4c], eax
je 0x40c070
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x3c]
push str.Service_Pack__d
push eax
call fcn.00412ba1
add esp, 0xc
cmp dword [ebp + 0x64], ebx
jbe 0x40c070
push dword [ebp + 0x64]
lea eax, [ebp + 0x50]
push eax
push str._s_sp_d
push dword [ebp + 0x70]
call edi
add esp, 0x10
mov ebx, dword [ebp + 0x78]
test ebx, ebx
je 0x40c0ea
and word [ebp - 0x74], 0
push str.Unknown
push ebx
call esi
push 0x41ffa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c0ad
push str.GetNativeSystemInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c0ad
lea ecx, [ebp - 0x74]
push ecx
call eax
jmp 0x40c0b7
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test edi, edi
je 0x40c0c2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x74]
test eax, eax
je 0x40c0e2
cmp eax, 6
je 0x40c0db
cmp eax, 9
jne 0x40c0ea
push str.amd64
jmp 0x40c0e7
push str.ia64
jmp 0x40c0e7
push 0x41ffd4
push ebx
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x68
leave
ret