joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004266
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1007044]
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, esi
jne 0x100429e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f18
jmp 0x10042f6
push 0x3ff
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [0x10073b8]
push 1
neg eax
sbb eax, eax
add eax, 3
push eax
push 0x10
push 0xf01ff
push dword [0x10073b4]
push dword [0x10073b0]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x1004304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ef4
push esi
call dword [sym.imp.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__]
add esp, 0xc
xor eax, eax
jmp 0x1004307
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01003792
leave
ret

Function at 0x1004318
Capabilities:
Delete service

Disassembly:
mov edi, edi
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
jne 0x100433c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f88
jmp 0x1004377
push 0xf01ff
push dword [0x10073b0]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
jne 0x1004360
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f64
jmp 0x1004377
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1004385
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001f3c
push esi
call dword [sym.imp.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__]
add esp, 0xc
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x1004c12
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x100533b
call fcn.01003a58
sub esp, 0x314
mov eax, dword [0x1007044]
push edi
push 0x80
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ecx
push dword [eax + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x10022d4
lea eax, [ebp - 0x110]
push eax
push 0x100
lea eax, [ebp - 0x310]
push eax
call fcn.01004704
xor edi, edi
cmp eax, edi
jge 0x1004c86
lea eax, [ebp - 0x110]
push eax
push 0x10023e8
push edi
call dword [sym.imp.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__]
add esp, 0xc
mov eax, 0x80004005
jmp 0x1004dac
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push esi
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x80000002
call ebx
cmp eax, edi
jne 0x1004d0d
push dword [ebp - 0x314]
lea eax, [ebp - 0x320]
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call fcn.010048fe
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov eax, 0x10021c4
jne 0x1004cd1
mov eax, 0x10023c8
push eax
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
mov esi, dword [sym.imp.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__]
je 0x1004cfb
lea ecx, [ebp - 0x310]
push ecx
push eax
push 0x1002390
push edi
call esi
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x320]
push eax
call fcn.010046b7
jmp 0x1004d26
mov esi, dword [sym.imp.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__]
lea ecx, [ebp - 0x310]
push ecx
push eax
push 0x1002368
push edi
call esi
add esp, 0x10
lea eax, [ebp - 0x314]
push eax
mov edi, 0x1002338
push edi
push 0x80000002
call ebx
test eax, eax
jne 0x1004d9a
push dword [ebp - 0x314]
lea eax, [ebp - 0x320]
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call fcn.010048fe
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x314]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1004d88
lea ecx, [ebp - 0x110]
push ecx
push eax
push 0x1002304
push 0
call esi
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x320]
push eax
call fcn.010046b7
jmp 0x1004da8
push eax
push edi
push 0x1002368
push 0
call esi
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
call fcn.01003792
leave
ret 8
Function at 0x40143d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x401468
lea eax, [ebp - 0x110]
push str._auto
push eax
call edi
pop ecx
pop ecx
jmp 0x40147a
lea eax, [ebp - 0x110]
push 0x40dd44
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], ebx
je 0x401491
lea eax, [ebp - 0x110]
push str.__scheduled
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x110]
push ebx
mov esi, 0x40d7ac
push eax
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x4014d6
push esi
mov esi, 0x40dbac
push str.Started_UpdateChecker_process_Successfully:_s_n
push esi
call edi
push esi
call fcn.00407421
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4014f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, 0x40dbac
push ebx
push str.Failed_to_start_UpdateChecker_process:_d_n
push esi
call edi
push esi
call fcn.00407421
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40261a
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
lea eax, [ebp - 8]
push 1
push eax
call fcn.0040475e
pop ecx
test eax, eax
pop ecx
je 0x402802
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0x10]
push 0x40c1ac
push eax
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40c1b0
mov dword [ebp - 4], 3
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
and byte [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40c1b8
mov dword [ebp - 4], 0x100
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x98]
push 0x40c1c8
push eax
call edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40c1cc
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x118]
push 0x40c1e0
push eax
call edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c1e4
mov dword [ebp - 4], 0x80
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c1f4
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40275e
push edi
lea eax, [ebp - 0x98]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40c204
lea eax, [ebp - 0x218]
push 0x40c208
push eax
call fcn.0040686c
add esp, 0x20
test eax, eax
je 0x40275e
push 0x40c20c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c21c
mov dword [ebp - 0x14], edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4027f5
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40c22c
mov dword [ebp - 0x18], edi
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x98]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40c240
lea eax, [ebp - 0x218]
push 0x40c244
push eax
call fcn.0040686c
add esp, 0x20
test eax, eax
je 0x4027f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x40c248
push dword [ebp - 8]
call esi
push 0x40c25c
push dword [ebp - 8]
call esi
push 0x40c270
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x402804
xor edi, edi
mov dword [0x40dd8c], edi
xor eax, eax
pop edi
leave
ret 4
Function at 0x402811
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
call fcn.00406118
test eax, eax
je 0x4028d3
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040475e
pop ecx
test eax, eax
pop ecx
je 0x4028d0
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x40c280
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40288e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x40c290
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
pop esi
je 0x4028d0
cmp dword [0x40dd8c], ebx
jne 0x4028d0
cmp dword [ebp + 8], ebx
jne 0x4028c0
push 0x40dd8c
push ebx
push ebx
push fcn.0040261a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x4028d0
push ebx
mov dword [0x40dd8c], 1
call fcn.0040261a
push 1
pop eax
pop ebx
leave
ret
Function at 0x403a88
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x40dcb4]
push ebx
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.004057fb
mov dword [esi + 0x38], eax
call fcn.00402152
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 0x403f8e
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
lea eax, [esi + 0x58]
push ebx
push eax
push 0x7b
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.00403cad
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x404de7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp + 8]
xor ebx, ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x40c9f4
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404e1a
xor eax, eax
jmp 0x404e73
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x34]
push 0x1e
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
jne 0x404e3c
mov byte [ebp - 0x34], bl
push esi
push edi
lea edi, [ebp - 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x34]
push ecx
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f5d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
and dword [ebp - 4], 0
push 0x25
xor eax, eax
pop ecx
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40500c
cmp dword [ebp - 0x94], 6
je 0x405007
cmp dword [ebp - 0x94], 5
jne 0x40500c
cmp dword [ebp - 0x90], 1
jae 0x405007
lea eax, [ebp - 0x84]
test eax, eax
je 0x404ff8
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404ff8
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404ff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push str.Service_Pack__d
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x90], 0
jne 0x40500c
cmp dword [ebp - 4], 2
jb 0x40500c
push 1
pop eax
jmp 0x40500e
xor eax, eax
pop edi
leave
ret

Function at 0x405011
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x40506b
cmp dword [ebp - 0x90], 6
jne 0x405057
push 1
pop eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x40506b
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x40506d
xor eax, eax
leave
ret
Function at 0x406326
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call esi
test eax, eax
jne 0x406372
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x406397
cmp dword [ebp - 0x8c], 2
jne 0x406394
cmp dword [ebp - 0x98], 6
jae 0x406394
cmp dword [ebp - 0x98], 4
jb 0x406394
call fcn.00406200
jmp 0x406397
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4065a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x27
xor eax, eax
pop ecx
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push str.win32
push eax
mov dword [ebp - 0xb0], 0x9c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xb0]
push eax
call edi
test eax, eax
jne 0x4065fa
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x94
push eax
call edi
cmp dword [ebp - 0xa0], 2
jne 0x406679
cmp dword [ebp - 0xac], 4
jne 0x406616
push str.winnt
jmp 0x4066b0
cmp dword [ebp - 0xac], 6
jne 0x406640
cmp dword [ebp - 0xa8], 0
jne 0x4066b6
cmp byte [ebp - 0x16], 1
jne 0x406639
push str.winvista
jmp 0x4066b0
push str.winlong
jmp 0x4066b0
cmp dword [ebp - 0xac], 5
jne 0x4066b6
cmp dword [ebp - 0xa8], 0
jne 0x406659
push str.win2000
jmp 0x4066b0
cmp dword [ebp - 0xa8], 1
jne 0x406669
push str.winxp
jmp 0x4066b0
cmp dword [ebp - 0xa8], 2
jne 0x4066b6
push str.win2003
jmp 0x4066b0
cmp dword [ebp - 0xa0], 1
jne 0x4066b6
cmp dword [ebp - 0xac], 4
jne 0x4066ab
cmp dword [ebp - 0xa8], 0xa
jne 0x40669b
push str.win98
jmp 0x4066b0
cmp dword [ebp - 0xa8], 0x5a
jne 0x4066ab
push str.winme
jmp 0x4066b0
push str.win95
lea eax, [ebp - 0x14]
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x14]
push eax
push 0x40d0b8
push dword [ebp + 8]
call edi
movzx eax, word [ebp - 0x1c]
add esp, 0xc
test eax, eax
jbe 0x4066e7
push eax
lea eax, [ebp - 0x14]
push eax
push str._s_sp_d
push dword [ebp + 8]
call edi
add esp, 0x10
mov ebx, dword [ebp + 0x10]
and word [ebp - 0xd4], 0
push str.Unknown
push ebx
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406726
push str.GetNativeSystemInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406726
lea ecx, [ebp - 0xd4]
push ecx
call eax
jmp 0x406733
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test edi, edi
je 0x40673e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xd4]
test eax, eax
je 0x406761
cmp eax, 6
je 0x40675a
cmp eax, 9
jne 0x406769
push str.amd64
jmp 0x406766
push str.ia64
jmp 0x406766
push 0x40d100
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407421
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
pop ecx
mov edx, eax
pop ecx
mov edi, 0x40de54
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp - 0x20c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp edx, edi
je 0x407495
push edx
call dword [sym.imp.MSVCRT.dll_asctime]
cmp eax, edi
pop ecx
je 0x407495
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ebx, 0x104
lea eax, [ebp - 0x10c]
push ebx
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x4074c7
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4074d5
lea eax, [ebp - 0x10c]
push 0x40d548
push eax
call esi
lea eax, [ebp - 0x10c]
push str.jusched.log
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
lea eax, [ebp - 0x10c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407559
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20c]
not ecx
dec ecx
push ecx
push eax
push ebx
call esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 8]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40755e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409350
push 0x4080b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0x94
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 2
jne 0x4075fd
cmp dword [ebp - 0xac], 5
jb 0x4075fd
mov dword [ebp - 4], esi
push 0x40d558
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb4], eax
cmp eax, esi
je 0x4075f4
push 0x40d564
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4075f4
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040760f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4077d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x40d5d4
push 0x80000002
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407831
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push str.ITCONFIG
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x407831
movzx esi, byte [ebp - 0x208]
mov eax, esi
pop esi
leave
ret

Function at 0x407849
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor esi, esi
mov dword [ebp - 4], 0x200
call fcn.00407836
test eax, eax
jne 0x4078ed
call fcn.00404f5d
test eax, eax
je 0x4078ed
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push 0x40d608
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4078f0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x40d630
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x4078f0
mov dword [ebp - 8], esi
call fcn.0040755e
test eax, eax
je 0x4078e2
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp - 0x20c]
push dword [ebp - 4]
push eax
call fcn.00407625
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4078e8
mov eax, dword [ebp - 0x20c]
cmp eax, 0x64
jne 0x4078f0
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4078f5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x40d648
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40792c
push 0x40d670
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40792e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push 0x80000001
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x64
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4079c1
call fcn.0040755e
test eax, eax
je 0x407994
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.004076e9
add esp, 0x10
jmp 0x40799d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x210], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret