joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51bb00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575db8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c524c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x5c6940]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0051b830
test eax, eax
je 0x51bc28
mov esi, dword [ebp - 0x18]
mov edi, dword [0x5c6940]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x51bbd3
cmp dword [esi], 0
je 0x51bbc6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x51bb93
mov eax, 1
jmp 0x51bbf4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51bbcc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x51bbf4
cmp dword [esi + 4], 0
jne 0x51bbd3
mov eax, 1
jmp 0x51bbf4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x51bc1e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x51bc06
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x51bc2b
xor ebx, ebx
jmp 0x51bccf
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x51bccf
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x51bc88
mov ecx, dword [ebx]
test ecx, ecx
je 0x51bcee
push ecx
push eax
call fcn.005295d9
add esp, 8
test eax, eax
je 0x51bc88
mov edx, dword [edi]
test edx, edx
je 0x51bc88
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51bc60
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x51bc93
lea eax, [edx + 0xd]
jmp 0x51bcc8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51bca0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x5967c8
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x51bcda
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040e3e0
int3
Function at 0x51d380
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 0x51d3f1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x51d3bf
cmp eax, 2
jne 0x51d3db
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x51d3eb
test ecx, ecx
je 0x51d3e6
test cl, 1
jne 0x51d3db
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x51d3eb
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 0x54101b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540e9a

Function at 0x543dd0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00543a90

Function at 0x54eb0c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401b69
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x118]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call fcn.00401ae5
mov ebx, eax
cmp ebx, esi
je 0x401bd5
cmp dword [ebp - 0x118], esi
je 0x401bce
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401c6d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x401bfd
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x118]
call fcn.00401b69
mov dword [ebp - 0x124], eax
cmp eax, esi
jne 0x401c7e
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x11c], pe_nt_image_headers32
call ebx
test eax, eax
je 0x401bdd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], esi
je 0x401c48
push dword [ebp - 0x118]
call ebx
mov dword [ebp - 0x118], esi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], esi
call fcn.00401a0a
mov edi, eax
cmp dword [ebp - 0x118], esi
je 0x401c6b
push dword [ebp - 0x118]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e56d
leave
ret 4
cmp dword [ebp - 0x118], esi
je 0x401c92
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
jmp 0x401c6d
Function at 0x404bb2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x818], ebx
mov byte [ebp - 0x81c], bl
mov dword [esi], ebx
call fcn.0040e146
mov dword [esi], eax
cmp eax, ebx
jne 0x404c0e
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.0041262c
pop ecx
mov dword [ebp - 0x810], 0xfffffffe
push ebx
push dword [ebp - 0x814]
call fcn.0040d91e
pop ecx
pop ecx
test eax, eax
jne 0x404c36
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.0041262c
mov dword [ebp - 0x810], 0xfffffffd
jmp 0x404c5f
mov eax, dword [ebp - 0x814]
push dword [eax]
call fcn.00404b33
pop ecx
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x404c60
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.0041262c
mov dword [ebp - 0x810], 0xfffffffe
pop ecx
push str.SunJavaUpdateSchedulerMutex
push 1
push ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi], eax
cmp eax, ebx
jne 0x404ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7ff
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x80b]
push ebx
push eax
mov byte [ebp - 0x80c], bl
call fcn.0041f900
add esp, 0xc
cmp dword [ebp - 0x810], 0xb7
lea eax, [ebp - 0x80c]
jne 0x404cbf
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x404cd4
push dword [ebp - 0x810]
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
call fcn.0041262c
or dword [ebp - 0x810], 0xffffffff
pop ecx
cmp dword [ebp - 0x810], ebx
je 0x404d13
push dword [edi]
push esi
call fcn.00404b84
mov eax, dword [ebp - 0x814]
mov eax, dword [eax]
pop ecx
pop ecx
lea esi, [ebp - 0x830]
mov dword [ebp - 0x82c], eax
call fcn.00412d4a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x810]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e56d
leave
ret
Function at 0x406672
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
mov esi, dword [ebp + 0xb4]
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 [0x44a618]
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.0040e146
mov dword [esi + 0x3c], eax
xor eax, eax
mov byte [ebp - 0x7c], bl
lea edi, [ebp - 0x7b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x68], ebx
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.SunJavaUpdateRecheckUpdateEvent
lea eax, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x64], eax
push ebx
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0xc
call dword [sym.imp.KERNEL32.dll_CreateEventA]
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 - 0x80]
push eax
push ebx
push esi
push 0x406c47
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40675a
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 - 0x5c]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4067ac
lea eax, [ebp - 0x5c]
push eax
add esi, 0x15c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041e56d
add ebp, 0xac
leave
ret 4
Function at 0x40ae81
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4359cc
call fcn.0042501e
mov ebx, ecx
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x34], ebx
je 0x40af71
cmp byte [ebx + 0x49], 0
je 0x40af71
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40aeb9
xor al, al
jmp 0x40af73
push 0
push 8
pop edi
lea esi, [ebp - 0x2c]
call fcn.0040ab20
and dword [ebp - 4], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40af10
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push eax
push edx
push dword [ebp - 0x38]
call dword [esi + 0x18]
xor edi, edi
sub eax, edi
je 0x40af15
dec eax
je 0x40af19
dec eax
dec eax
je 0x40af6d
xor bl, bl
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405dcc
mov al, bl
jmp 0x40af73
mov edx, dword [ebp - 0x2c]
jmp 0x40aede
mov byte [ebx + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40af25
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x40af4b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40af38
lea eax, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.004223ff
add esp, 0x10
cmp esi, eax
jne 0x40aeff
cmp byte [ebx + 0x49], 0
je 0x40af6d
cmp esi, edi
jne 0x40aed0
push edi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040ab71
mov ebx, dword [ebp - 0x34]
jmp 0x40aed0
mov bl, 1
jmp 0x40af01
mov al, 1
call fcn.004250a1
ret
Function at 0x40dc2a
Capabilities:
Delete registry key

Disassembly:
push 0x38
mov eax, 0x436fcf
call fcn.00424fb3
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x40], 0x80000002
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x2c], bl
cmp eax, ebx
jne 0x40dc96
cmp dword [ebp + 0x10], ebx
jne 0x40dc73
push 0x2001f
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
lea eax, [ebp - 0x40]
call fcn.00412d13
mov eax, dword [ebp - 0x38]
mov dword [ebp + 8], eax
jmp 0x40dc88
push str.SetJavaUpdateStringKey_was_called_with_a_NULL_value_for_the_key__so_defaulting_to_trying_jucheck_key
call fcn.0041262c
pop ecx
lea eax, [ebp + 8]
push eax
call fcn.0040d96d
pop ecx
cmp dword [ebp + 8], ebx
je 0x40dc99
mov dword [ebp - 0x10], 1
jmp 0x40dc99
mov dword [ebp + 8], eax
xor esi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040e897
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x10], ebx
je 0x40dcca
push dword [ebp + 0x10]
lea ebx, [ebp - 0x24]
call fcn.0041be05
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40dd17
cmp dword [ebp + 0x10], ebx
jne 0x40dce2
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40dd10
push dword [ebp + 0x10]
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.0041f040
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.00412ded
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp - 0x10], ebx
je 0x40dd24
lea esi, [ebp - 0x40]
call fcn.00412d4a
lea esi, [ebp - 0x20]
call fcn.0040ad65
mov eax, edi
call fcn.0042508d
ret
Function at 0x40defb
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x40c]
xor ebx, ebx
push eax
mov esi, 0x80000003
push ebx
lea edx, [ebp - 0x408]
mov ecx, str.LocalFileName
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x410], ebx
mov byte [ebp - 0x414], bl
mov dword [ebp - 0x40c], 0x400
call fcn.0040da5f
pop ecx
pop ecx
test eax, eax
je 0x40df67
cmp dword [ebp - 0x40c], ebx
je 0x40df67
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [ebp - 0x408]
call fcn.0040d9ab
test eax, eax
je 0x40df8a
mov eax, edi
push eax
mov ecx, edi
call fcn.0040e69c
pop ecx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040e062
push ebx
push str.PreDownldStatus
push ebx
call fcn.0040dc2a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x408]
push eax
push ebx
push esi
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x424], esi
call edi
test eax, eax
jne 0x40e053
mov esi, 0x20019
inc dword [ebp - 0x40c]
push esi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x428]
call fcn.00412d13
cmp eax, ebx
jne 0x40e031
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x444], eax
push esi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x430], bl
call fcn.00412d13
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x440], ecx
cmp eax, ebx
jne 0x40e031
push str.VersionXmlURL
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x80
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
push dword [ebp - 0x424]
call edi
test eax, eax
je 0x40dfcd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e56d
leave
ret
Function at 0x40e3f3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0041f900
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40e44e
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x94
call esi
test eax, eax
je 0x40e473
cmp dword [ebp - 0x98], 2
jne 0x40e470
cmp dword [ebp - 0xa4], 6
jae 0x40e470
cmp dword [ebp - 0xa4], 4
jb 0x40e470
call fcn.0040e1f5
jmp 0x40e473
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041e56d
leave
ret

Function at 0x40e69c
Capabilities:
Get common file path
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x5cc]
sub esp, 0x64c
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp + 0x5c8], eax
mov eax, dword [ebp + 0x5d4]
push ebx
push esi
push edi
push 0x3c
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x80]
push ebx
push eax
mov esi, ecx
mov byte [ebp + 0x3c4], bl
call fcn.0041f900
lea eax, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x50], 0x400
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edi, 0x104
cmp eax, ebx
je 0x40e744
push pe_nt_image_headers32
lea eax, [ebp + 0x3c4]
push eax
push edi
lea eax, [ebp + 0x4c4]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00422a6a
lea eax, [ebp + 0x4c4]
push 0x43e234
push eax
call fcn.0041f500
add esp, 0x2c
test eax, eax
je 0x40e78d
mov eax, esi
mov dword [ebp - 0x40], ebx
cmp byte [esi], bl
je 0x40e775
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e759
cmp cl, 9
jne 0x40e762
push eax
call dword [sym.imp.USER32.dll_CharNextA]
jmp 0x40e74d
mov ecx, dword [ebp - 0x40]
movsx edx, byte [eax]
imul ecx, ecx, 0x1f
add ecx, edx
inc eax
mov dword [ebp - 0x40], ecx
cmp byte [eax], bl
jne 0x40e74d
push dword [ebp - 0x40]
lea eax, [ebp + 0x4c4]
push str.jupdate__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x4c4]
push eax
push dword [ebp - 0x44]
call esi
lea eax, [ebp + 0x3c4]
push eax
push dword [ebp - 0x44]
call esi
mov ecx, dword [ebp + 0x5c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e56d
add ebp, 0x5cc
leave
ret
Function at 0x4109fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x448630]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push esi
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push 0x80000002
mov dword [ebp - 0x78], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410add
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.TransferJobID
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x78], 0
jbe 0x410add
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
je 0x410add
lea eax, [ebp - 0x70]
push eax
call esi
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x410a9b
xor eax, eax
jmp 0x410ab1
lea eax, [edi + edi]
call fcn.00430a00
mov esi, esp
push 3
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.00401106
push dword [ebp - 0x74]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x10
push 0x439410
push dword [ebp - 0x74]
call fcn.00420158
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x410ae2
mov eax, 0x80004005
lea esp, [ebp - 0x88]
pop edi
pop esi
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
call fcn.0041e56d
add ebp, 0x394
leave
ret

Function at 0x411d60
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x60
mov eax, 0x4362f2
call fcn.0042501e
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x5c], eax
xor eax, eax
dec ecx
push 4
neg ecx
sbb ecx, ecx
mov esi, edx
pop edx
and ecx, 0xfffffffc
mov dword [ebp - 0x54], ebx
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
add ecx, edx
lea eax, [ebp - 0x54]
push eax
or ecx, 1
push ecx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x60], edx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x411ded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea esi, [ebp - 0x30]
call fcn.00411cfa
push eax
lea eax, [ebp - 0x4c]
push str.encryption_failed__sysError
push eax
mov dword [ebp - 4], ebx
call fcn.004060a2
add esp, 0x14
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00407285
push 0x44234c
mov eax, esi
push eax
call fcn.00424705
mov edi, dword [ebp - 0x58]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov esi, dword [ebp - 0x54]
mov eax, edi
call fcn.0040e897
push dword [ebp - 0x54]
mov eax, dword [edi]
push dword [ebp - 0x50]
push eax
call fcn.0041e580
add esp, 0xc
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
call fcn.004250a1
ret