joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c3fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov edi, esi
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov ecx, dword [ebp + 0xc]
lodsb al, byte [esi]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
xor al, 3
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
stosb byte es:[edi], al
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
sub ecx, 1
jne 0x41c47c
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41cd81
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x7f5500]
push ebx
push edi
push 5
push eax
push 0x7fd60c
call fcn.00412eee
mov dword [0x7fd614], eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
mov al, byte [0x7f5500]
push 0xd
push eax
push 0x7fd618
call fcn.00412eee
add esp, 0x18
mov dword [0x7fd628], eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push 3
push 0
push dword [ebp + 8]
push dword [0x7fd628]
push dword [0x7fd614]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push dword [0x7fd614]
call fcn.0042881a
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
and dword [0x7fd614], 0
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push dword [0x7fd628]
call fcn.0042881a
pop ecx
pop ecx
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
and dword [0x7fd628], 0
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push 1
pop eax
pop edi
pop ebx
pop ebp
ret
Function at 0x41fbe7
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
push 0xa
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
rep stosd dword es:[edi], eax
push 0xa
lea edi, [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x41fcd2
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x41fcd2
cmp word [esi + 6], 1
je 0x41fcd2
push dword [esi + 0x38]
push dword [esi + 0x50]
call fcn.0041a5d0
movzx edx, word [esi + 6]
movzx eax, word [esi + 0x14]
pop ecx
mov dword [ebp - 4], edx
pop ecx
lea eax, [eax + esi + 0x18]
xor ecx, ecx
cmp edx, ebx
jle 0x41fcc0
add eax, 0x14
mov edx, dword [eax - 8]
mov dword [ebp + ecx*4 - 0xa4], edx
mov edx, dword [eax]
mov dword [ebp + ecx*4 - 0x54], edx
add eax, 0x28
movzx edx, word [esi + 6]
inc ecx
cmp ecx, edx
jl 0x41fca1
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
mov dword [0x80260c], eax
mov eax, dword [esi + 0x88]
cmp eax, ebx
jne 0x41fcd9
xor eax, eax
jmp 0x41fd68
push dword [ebp - 4]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.0041b4c0
movzx ecx, word [eax + edi + 0xe]
movzx edx, word [eax + edi + 0xc]
add eax, edi
add esp, 0x10
add ecx, edx
lea edx, [eax + 0x10]
je 0x41fd10
cmp dword [edx], 5
je 0x41fd10
inc ebx
add edx, 8
cmp ebx, ecx
jb 0x41fd03
mov edx, dword [edx + 4]
mov ecx, closesocket
and edx, ecx
mov edx, dword [edx + eax + 0x14]
and edx, ecx
mov ecx, dword [edx + eax + 0x14]
mov edx, dword [ecx + eax]
add ecx, eax
mov eax, dword [0x80260c]
cmp edx, eax
jae 0x41fd68
cmp edx, dword [esi + 0x88]
jbe 0x41fd68
push dword [ebp - 4]
mov eax, edx
mov dword [0x80260c], eax
mov ecx, dword [ecx + 4]
mov dword [0x802610], ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.0041b4c0
add esp, 0x10
add eax, edi
mov dword [0x80260c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424f23
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f2f48
push 0x429ed4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push 0x7faa18
push 0
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call esi
mov dword [0x7fae18], eax
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push 0x7faa18
push dword [0x7fae18]
call esi
mov dword [0x7fae18], eax
and dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x1c]
cmp esi, dword [0x7fae18]
jge 0x4250f9
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
lea esi, [esi*4 + 0x7faa18]
push 0x20
push 0x7fa9f2
push dword [esi]
call sub.IMM32.dll_ImmGetDescriptionA
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push 0x80376c
push 0x7fa9f2
call fcn.00428f30
pop ecx
pop ecx
mov dword [0x7faa14], eax
test eax, eax
jne 0x4250ea
push dword [esi]
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x4250ea
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.dj:]
sub edx, dword [0x7f550c]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub ecx, dword [0x7f5510]
mov edx, edx
add ebx, dword [str.dj:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
inc edx
add edx, dword [0x7f550c]
push dword [esi]
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
inc dword [ebp - 0x1c]
jmp 0x424feb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425575
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [0x7f5500]
push 0x32
push eax
push 0x7fdfd4
call fcn.00412eee
add esp, 0xc
mov dword [0x7fe008], eax
lea eax, [ebp - 8]
push eax
push 0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4255ec
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [0x7fe008]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4255e3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80060c
push dword [ebp - 4]
call esi
push 0x800710
push dword [ebp - 4]
call esi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fe008]
call fcn.0042881a
and dword [0x7fe008], 0
pop ecx
leave
ret
Function at 0x425ea8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
mov byte [ebp - 8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x327]
mov byte [ebp - 0x328], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
mov esi, 0x104
push 0x800710
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x120]
push eax
call fcn.00429500
mov dword [ebp - 0x18], eax
mov al, byte [0x7f5500]
push 0x18
push eax
push 0x7fd5b8
xor edi, edi
call fcn.00412eee
add esp, 0x10
mov dword [0x7fd5d4], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x426034
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push ebx
push dword [0x7fd5d4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426034
push esi
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00428b90
push esi
lea eax, [ebp - 0x328]
push ebx
push eax
mov dword [ebp - 0x14], esi
call fcn.00428b90
add esp, 0x18
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x425ff8
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x425ff5
inc dword [ebp - 4]
jmp 0x425f87
push 1
pop edi
lea eax, [ebp - 8]
push 0xa
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00431e2f
add esp, 0xc
cmp edi, ebx
jne 0x42602b
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea eax, [ebp - 0x120]
push eax
push 1
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fd5d4]
call fcn.0042881a
pop ecx
pop edi
mov dword [0x7fd5d4], ebx
pop esi
pop ebx
leave
ret
Function at 0x426130
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 1
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov al, byte [0x7f5500]
push 0x35
push eax
push 0x7fdf98
call fcn.00412eee
lea ecx, [ebp - 0x14]
mov dword [0x7fdfd0], eax
push ecx
push eax
lea eax, [ebp - 0x50]
push 0x3c
push eax
call fcn.00429fac
push dword [0x7fdfd0]
call fcn.0042881a
add esp, 0x20
and dword [0x7fdfd0], 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x50]
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4261d3
mov al, byte [0x7f5500]
push 0xc
push eax
push 0x7fe038
call fcn.00412eee
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [0x7fe048], eax
push ecx
lea ecx, [ebp - 8]
push dword [ebp + 8]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4261d8
or eax, 0xffffffff
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fe048]
call fcn.0042881a
and dword [0x7fe048], 0
pop ecx
push 1
pop eax
leave
ret
Function at 0x426205
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.00426130
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x4263ca
lea eax, [ebp - 0x224]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [0x7f5500]
push 6
push eax
push 0x7fdf74
call fcn.00412eee
lea ecx, [ebp - 0x328]
mov dword [0x7fdf7c], eax
push ecx
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.00429fac
push dword [0x7fdf7c]
call fcn.0042881a
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x24
lea eax, [ebp - 0x120]
xor esi, esi
push eax
mov dword [0x7fdf7c], esi
call edi
mov dword [ebp - 4], eax
mov al, byte [0x7f5500]
push 0x13
push eax
push 0x7fdf80
call fcn.00412eee
add esp, 0xc
mov dword [0x7fdf94], eax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x7fdf94]
mov ebx, eax
call fcn.0042881a
cmp ebx, esi
pop ecx
mov dword [0x7fdf94], esi
je 0x4263ca
call ebx
push esi
push esi
push 3
mov ebx, eax
sub ebx, dword [ebp - 4]
push esi
push 1
lea eax, [ebp - 0x120]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
mov al, byte [0x7f5500]
push 0xa
push eax
push 0x7fde9c
call fcn.00412eee
add esp, 0xc
mov dword [0x7fdea8], eax
push eax
call edi
push dword [0x7fdea8]
mov edi, eax
call fcn.0042881a
mov al, byte [0x7f5500]
push 0x15
push eax
push 0x7fe00c
mov dword [0x7fdea8], esi
call fcn.00412eee
add esp, 0x10
mov dword [0x7fe024], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x7fe024]
mov dword [ebp - 4], eax
call fcn.0042881a
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
pop ecx
stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [ebp - 0x52e]
mov word [ebp - 0x530], si
push 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x530]
mov dword [0x7fe024], esi
push eax
push 8
push 0x800710
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x530]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 4]
push 0x10
lea eax, [ebp - 0x14]
push dword [0x802640]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.004261f9
jmp 0x4263cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d1ece
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4e44ff
call fcn.004aef44
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cba8f
mov eax, dword [0x51f03c]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], 0x4ed97c
mov ecx, 0x5262f8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004d1d07
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004c6033
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004a72f2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004c5fe3
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4d1eda
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4e44ff
call fcn.004aef44
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cba8f
mov eax, dword [0x51f03c]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], 0x4ed97c
mov ecx, 0x5262f8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004d1d07
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004c6033
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004a72f2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004c5fe3
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x404b44
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x824
mov eax, dword [0x494334]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, dword [esp + 0x838]
lea ecx, [esp + 8]
push ebp
mov ebp, dword [esp + 0x838]
push esi
push edi
mov edi, dword [esp + 0x838]
xor esi, esi
push esi
call fcn.00419e5c
cmp dword [esp + 0x83c], 2
jae 0x404b95
push str.jusched_Error:_Events_array_too_small
call fcn.00419d51
pop ecx
push 0xffffffffffffff9d
pop esi
and dword [edi], 0
call fcn.004127d5
mov dword [edi], eax
test eax, eax
jne 0x404bb1
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.00419d51
pop ecx
push 0xfffffffffffffffe
pop esi
push 0
push ebx
call fcn.00412c5c
pop ecx
pop ecx
test eax, eax
jne 0x404bce
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.00419d51
pop ecx
push 0xfffffffffffffffd
jmp 0x404bea
push dword [ebx]
call fcn.00405591
mov dword [edi + 4], eax
pop ecx
test eax, eax
jne 0x404beb
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.00419d51
pop ecx
push 0xfffffffffffffffe
pop esi
and dword [ebp], 0
push str.SunJavaUpdateSchedulerMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp], eax
test eax, eax
jne 0x404c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00442b50
add esp, 0xc
lea eax, [esp + 0x30]
cmp esi, 0xb7
jne 0x404c3d
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x404c4d
push esi
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call fcn.00419d51
pop ecx
or esi, 0xffffffff
jmp 0x404c61
test esi, esi
je 0x404c88
push dword [ebp]
push dword [esp + 0x840]
push edi
call fcn.004047a8
add esp, 0xc
lea ecx, [esp + 0x14]
push dword [ebx]
call fcn.00419e9a
lea ecx, [esp + 0x14]
call fcn.00419ea4
mov ecx, dword [esp + 0x830]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044119a
add esp, 0x824
ret
Function at 0x406138
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x494334]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x128]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00405e4f
mov esi, eax
test esi, esi
jne 0x406217
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x4061ef
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00406138
mov esi, eax
test esi, esi
jne 0x406217
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x4061b4
jmp 0x4061f1
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x406206
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00404f0b
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x406228
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044119a
add esp, 0x120
ret 4
Function at 0x4070ab
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4070c5
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push ebp
mov ebp, ecx
jne 0x4070d4
push 0xd
pop eax
jmp 0x407105
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
push ebx
call fcn.00446b50
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x4070dc
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8